完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
在启用ADC之后,我将用PIC24FJ64GA002进行褐变复位。我尝试的是(在伪代码中):AD1.CON1=0x00E0;//ADC off,在采样AD1.CON2=0x0000结束之后自动转换;//使用MUXA,AVss和AVdd用作Vref+/-AD1.CON3=0x1F02;//采样时间=31Tad,Tad=3TcyAD1.CSSL=0x0000;//不需要扫描,AD1.CHS=4;//选择固定A/D通道,负输入为VR-AD1.CON1<15>;=1;//设置位15,PIC上的ADC配置成使用内部FRC振荡器和PLL(Fosc/2=16MHz)。和Vss。我可以重现切换ADC后不久PIC复位的问题。RCON寄存器之后包含0x0002,这意味着发生了褐变复位。在调试器中,如果在切换ADC之后设置了断点,然后立即继续,一切正常我搜索了论坛,发现PIC18也有类似的问题。我试过推荐的解决办法,但是没有帮助。这是已知的问题吗?PIC24还有工作吗?
以上来自于百度翻译 以下为原文 I am getting brown-out resets with a PIC24FJ64GA002 after enabling the ADC. What I am trying is (in pseudo code): AD1.CON1 = 0x00E0; // ADC off, auto convert after end of sampling AD1.CON2 = 0x0000; // use MUXA, AVss and AVdd are used as Vref+/- AD1.CON3 = 0x1F02; // sample time = 31Tad, Tad = 3Tcy AD1.CSSL = 0x0000; // no scanning required AD1.CHS = 4; // select fixed A/D channel, negative input is VR- AD1.CON1<15> = 1; // set bit15, ADC on The PIC is configured to use the internal FRC oscillator with PLL (Fosc/2=16MHz). There is a low ESR 10uF cap at VCAP/VDDCORE and 100uF between Vdd and Vss. I can reproduce the issue that shortly after the switching the ADC on, the PIC resets. The RCON register contains 0x0002 after this, which means a brown-out reset happened. In the debugger, if a set a break point after switching the ADC on, and then immediately continue, everything works fine. I searched the forum and found a similar issue with a PIC18. I tried the recommended workaround but that didn't help. Is this a known issue and is there a work around for the PIC24? |
|
相关推荐
2个回答
|
|
|
|
|
|
是的。改变了电源模块,问题就不复存在了。谢谢你的帮助!
以上来自于百度翻译 以下为原文 Yep. Changed the power supply module and the problem is gone. Thanks for the help! |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
779浏览 1评论
673浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
599浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
683浏览 0评论
580浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 21:21 , Processed in 1.145019 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号