完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我有16F1765设备的问题。我用PoTa作为一个数字输入。所有引脚都工作良好除了针Ra2,这是一个奇怪的行为,它作为一个数字输入,但它的信号正在实现,这意味着一个可靠的信号在其他引脚往往是不可靠的这个引脚。当MCU运行和TrISA配置为一个输入,引脚A2的电压为0.7V,另一方面引脚A0的电压为0V。两个引脚具有相同的外部电路,包括下拉电阻器到GND。当重新编程设备时,电压消失,因此它似乎与MCU运行时无关,但与我的Fi无关。RMWORD。这也证明它与我的外部电路无关。确保模拟输入被禁止-没有从A2改变的IMPPs -没有改变的T0CKIPPS从A2 -没有改变围绕ZCD -启用和改变的极性-没有改变的COG1in从A2 -没有变焦弱拖拉相关-禁用和没有可转换开路输出-没有CHA禁止转换速率控制-没有改变输入电平控制-没有嫦娥证实它不是我的固件通过写一段时间(1);我仍然得到0.7V输出的RA2引脚????它也不仅仅是一个芯片。我们已经建立了数百个董事会,所有董事会都出现了同样的问题。我已经检查了数据表和勘误表,现在我的想法已经过时了。那么有人有什么建议吗????悲伤?
以上来自于百度翻译 以下为原文 Hello, I'm having a problem with the 16F1765 devices. I'm using PortA as a digital input. All pins are working well apart from pin RA2 which is behaving slightly strangely, it works as a digital input but the signals going to it are being effected which means a reliable signal on the other pins is often unreliable on this pin. When the MCU is running and TRISA is configured as an input, pin A2 has a voltage of 0.7V, pin A0 on the other hand has a voltage of 0V. Both pins have the same external circuitry including a pull down resistor to GND. When reprogramming the device the voltage disappears so it seems to be somehow related to when the MCU is running but nothing to do with my firmware. This also proves that it's nothing to do with my external circuitry. Ensured Analog inputs are disabled - no change Moved INTPPS from A2 - no change Moved T0CKIPPS from A2 - no change Played around with ZCD – enabled and changed polarity – no change Moved COG1IN from A2 - no change Not Weak Pull Ups related - disabled and no change Enable open drain outputs – no change Disable slew rate control – no change Input level control – no change I've confirmed it's not my firmware by writing a while (1); and I still get the 0.7V output on the RA2 pin??? It's also not just one chip that is doing it. we have built hundreds of boards and all boards are exhibiting the same problem. I've checked the datasheet and the errata and am now out of ideas. So does anyone have any suggestions???? sad: |
|
相关推荐
4个回答
|
|
|
|
|
|
ZCD必须禁用。我同意马克,您可能无意中启用它。
以上来自于百度翻译 以下为原文 ZCD must be disabled. I agree with Mark, you probably inadvertently have it enabled. |
|
|
|
你好,谢谢你的回复。我试过在配置设置中禁用和启用ZCD,没有变化。
以上来自于百度翻译 以下为原文 Hello, thanks for the replies. I've tried ZCD disabled and enabled in the config settings, no change. |
|
|
|
啊哈,你的钱在那里,我把ZCD配置位放错了位置,这就造成了问题。把比特移到正确的位置确实解决了这个问题。再次感谢:
以上来自于百度翻译 以下为原文 Aha, You're on the money there, I had the ZCD config bit in the wrong position and this was causing the problem. Moving the bit to the correct position has indeed fixed the issue. Thanks again Smile: |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 10:14 , Processed in 1.368703 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号