完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我有一个问题的中断线和RX冲洗MRF24J40。我使用的是简单的MiWi P2P驱动程序。中断问题:我使用的是使用PIC32 MX120 F032 B和MRF24J40MD的自定义HW板。在我的情况下,INT PIN是在HW中被拔出的。配置的ITCCON启用RX和Tx中断(11110110),SLPCON0与ITEDGE作为下降沿(0x00)和EDGEGTRAGEGRY在PIC侧和谐下降。在成功广播之后,INTSTAT使TXIF=1,但我的INTPIN只从3.3V转换到2.45 V,因此它不被识别为中断,因此ISR不会引起。所以我已经更改了代码来查询ItSTAT。即使在RX端,INT只会下降到2.5V,INT不会触发,但是,RXIF也没有设置。刷新问题:只希望在我以前的消息中再加一件事情。我看到RX FIFO即使在每次读取操作之后都给出了下面的命令也不刷新。这是否与RXIF相关,因为RXIF即使在接收到数据之后也没有被设置?有人建议我在上述问题上漏掉什么吗?非常感谢。你的建议对我的工作很有帮助。
以上来自于百度翻译 以下为原文 Hello All, I have a problem with interrupt line and Rx Flush of MRF24J40. I am using the simple MiWi P2P driver. Interrupt Issue: I am using the custom HW Board using PIC32MX120F032B and MRF24J40MD. In my case the INT pin is pulled up in HW. Configured INTCON to enable Rx and Tx Interrupts (11110110), SLPCON0 with INTEDGE as falling edge (0x00) and edge_trigger_falling in HARMony on PIC side. After successful broadcast, INTSTAT enables TXIF=1, but my INT pin is translating from 3.3V to 2.45V only and hence it is not identified as interrupt thus ISR does not evoke. So I have changed the code to polling INTSTAT. And even on the Rx side, the INT only pulls down to 2.5V and INT does not trigger, but, here RXIF is also not set. Flush Issue: Just wish to add up one more thing to my previous message. I am seeing that Rx FIFO does not flush even after giving the following command after every read operation. lowWrite(WRITE_RXFLUSH,0x01); // flush RX hw FIFO manually (workaround for silicon errata #1) lowWrite(WRITE_BBREG1, 0x00); // reset RXDECINV to enable radio to receive next packetIs this in any way related to RXIF as RXIF is not being set even after receiving the data? Can someone suggest if I am missing something on above issues? Thank you so much. Your suggestion would be very helpful for my work. |
|
相关推荐
4个回答
|
|
为什么INT引脚被拉高?这是生产还是样板?如果是后者,你能重做吗?如果你能按计划使用中断,一切都会更快更好。
以上来自于百度翻译 以下为原文 Why is the INT pin pulled high? Is this is production or prototype board? If the latter, can you rework it to remove the pull-up? Everything will work faster and better if you can use the interrupts as intended. |
|
|
|
谢谢你的回应戴夫。这是一个原型板。我甚至试过移除具有下降和上升边缘配置的上拉电阻,但仍然无法看到INT引脚上完美的逻辑电平。它在2.45伏和3.3V之间,这不是触发中断。在主机上,我通过用GND缩短PIN和调用ISR来检查INT功能。MRF寄存器配置是否有任何依赖性?
以上来自于百度翻译 以下为原文 Thanks for the response Dave. It's a prototype board. I have even tried removing the pull up resistor with both falling and rising edge configuration but still unable to see the perfect logic levels on INT pin. It is between 2.45V and 3.3V which is not triggering the Interrupt. On host, I have checked the INT functionality by shorting the Pin with GND and it's calling ISR. Will there be any dependency on MRF register configuration? |
|
|
|
嗨,在附图中是我从MRF24J40MA中断的例子。没有上拉电阻连接到INT线。如果中断引脚有内部上拉或不关,请在数据表中签入。
以上来自于百度翻译 以下为原文 Hi, in attached image is my example of interrupt from MRF24J40MA. No pull-up resistor is connected to INT line. Check in datasheet if the interrupt pin has internal pull-up or not. Attached Image(s) |
|
|
|
嗨,我已经试过删除INT引脚的上拉电阻。但是,问题仍然没有解决。在TXIF设置之后,int转换仅从3.3V到2.45 V。我已经配置了主机int和不带内部拔出。但问题依然存在。谢谢。
以上来自于百度翻译 以下为原文 Hi, I have tried removing the pull up resistor for INT pin. But, still the problem didn't solve. The INT transition is only from 3.3V to 2.45V after TXIF got set. I have configured the HOST INT with and without internal pull up also. But still the problem exists. Thanks. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 10:32 , Processed in 1.569518 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号