完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问题:本身触发中断信号
我用2的PSoC控制我的机器人 cy8c4125pvi-482控制面板和CapSense cy8c5468axi-lp042控制电机驱动(剑齿虎2x32)及其他 我打算做的是 当CapSense活跃,cy8c4125pvi-482(P1.0)将触发信号cy8c5468axi-lp042(P2.7) 自从P2.7是GPIO中断,中断会引起停止电机 问题: 当电机不接,中断如预期触发工作,因此 CapSense主动>;P1.0触发- >;P2.7接收>;中断触发 但当电机连接,甚至CapSense不活跃,中断触发P2.7 甚至是非常罕见的,即使电机不连接和CapSense不活跃,有时P2.7触发中断本身 对策: 自cy8c5468axi-lp042(P2.6)信号继电器电路,我试图改变GPIO中断口P3.5的…结果=仍自触发中断 检查是否有在P2.7或P3.5 ..结果=无穗/噪声等任何秒杀 禁用CapSense的…结果还是选择触发 你的帮助和想法是感激 谢谢你 参考文献PDF 22 K 邮递员 39.3兆字节 以上来自于百度翻译 以下为原文 Problem: interrupt signal triggered by itself I'm using 2 PSoC to control my robot CY8C4125PVI-482 to control panel and capsense CY8C5468AXI-LP042 to control Motor Driver(Sabertooth 2x32) and others What I intend to do is When capsense active, CY8C4125PVI-482 (P1.0) will trigger signal to CY8C5468AXI-LP042 (P2.7) Since P2.7 is GPIO with interrupt, interrupt will triggered to stop the motor Problem: When motor is not connected, the interrupt triggering work as expected, thus CapSense Active->P1.0 triggered->P2.7 received->interrupt triggered BUT when motor connected, EVEN CapSense not active, interrupt triggered at P2.7 AND even it was very rare, even the motor not connected and CapSense not active, sometimes P2.7 triggered interrupt by itself Countermeasure done: -since CY8C5468AXI-LP042 (P2.6) signaling a relay circuit, I've tried to change GPIO interrupt port to P3.5....result=still interrupt self-triggered -check if there is any spike at P2.7 or P3.5..result=no spike/noise etc -disable Capsense....result=still sel-triggered Your helps and ideas are appreciated Thank you
|
|
相关推荐
4个回答
|
|
有点难检查:两个拉链有八个(!)!!!)每个项目。这对我来说有点过分了。尽量把问题减少到最低限度。
我假设你从移动马达/继电器到PSoC电源中得到一些不需要的反馈。检查范围(交流耦合放大器,直到限制)。 鲍勃 以上来自于百度翻译 以下为原文 A bit difficult to check: Two Zips with eight(!!!) projects each. That is a bit too much work for me. Try to reduce the issue to its barest. I presume that you get some unwanted feedback from the moving motors/relays to your PSoC power supply. Check with a scope (AC coupling amplificatrion until limited). Bob |
|
|
|
ncmza 发表于 2018-8-20 03:55 谢谢鲍伯 我已经检查过GPIOs说为PSoC范围交流耦合电源端口 电机运行时的稳态噪声,50mvp-p观察…没有其他噪声或穗观察 这里我重新附上相关项目文件供参考。 在ISGMIN中,我宣布ISR为 CysIsRyPrto(ISRB BoydY-SESESE-DET); 在ISGPAND中,用于激活ISGMAN的ISR AS的信号 BydiySeNeSynOnLoad编写(1); 提前感谢你的帮助 当做 卡马里 ISGM 8.2兆字节 以上来自于百度翻译 以下为原文 thanks Bob I've checked said GPIOs and power supply port for both PSoC with scope AC coupling when motor is running, steady noise of 50mVp-p observed...no other noise or spike observed Here I've reattached related project file for reference In isgMain, I declared the ISR as CY_ISR_PROTO(ISR_BODY_SENSE_DET); and in isgPanel, signal used to activate isgMain's ISR as BODY_SENSE_ON_Write(1); Thanks in advance for your help Regards Kamari
|
|
|
|
嗨,Kamari, 为BydySythyDET添加下拉电阻如何? 如果psoc4遭受意外复位,驱动引脚将保持高阻抗一会儿在启动。这可能会导致BydySythyDET不稳定的信号。 谢谢, 赖安 以上来自于百度翻译 以下为原文 Hi Kamari, How about adding a pull-down resistor for BODY_SENS_DET? If PSoC4 suffered unexpected reset, The driver pin will keep Hi-Z for a while during boot. That may cause unstable signal on BODY_SENS_DET. Thanks, Ryan |
|
|
|
pengzhongdianzi 发表于 2018-8-20 04:17 谢谢瑞安 但实际上我也试过了 为什么我配置BoyDySythyDET到HI-Z是 当我配置为上拉或下拉,输入电压2.6v不管了 是什么body_sense_on_write…意味着总是ISR触发 当我配置到高阻抗,然后确定(即0,1基于输入)但仍有自启动程序。 但今天我试了一次,你的建议…这是工作(指0,1基于输入)和无自启动了 还是不明白… 以上来自于百度翻译 以下为原文 Thanks Ryan But actually I've tried that too The reason why I configured BODY_SENS_DET to Hi-Z was, when I configured it to pull-up or pull-down, the input voltage became 2.6V no matter what BODY_SENSE_ON_Write was...means always ISR triggered When I configured it to Hi-Z, then OK(means 0,1 based on input) but still got self triggered ISR. But today I tried again as your advise...it's work(means 0,1 based on input) and no self triggered anymore Still dont understand.... |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1826 浏览 1 评论
3634 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1510 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 15:12 , Processed in 0.857541 second(s), Total 86, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号