完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我正在用PIC24FJ64 GA06做一个项目,用XC16编译器在MPLAB XIDE V3.5中编译,并用一个LED拨号程序启动。但是PIC没有输出。配置位设置是否正确或者还有什么要做的?请帮助我解决这个问题。请在附件中找到CODELDED ToGGLY.TXT。
以上来自于百度翻译 以下为原文 Hi , I am working on a project with PIC24FJ64GA006 , compiled in MPLAB XIDE v3.5 with XC16 compiler and started with a led toggle program .But there is no output coming from the PIC. Is the configuration bit settings correct or anything more to be done ? Please help me with the issue. Please find attached the code led_toggle.txt Attachment(s) led_toggle.txt (1.80 KB) - downloaded 142 times |
|
相关推荐
12个回答
|
|
里面有水晶连接吗?我建议你从内部振荡器开始……而且,延迟对于眼睛来说可能太快了:使它更长,并且可能使用编译器允许的γ延迟宏。
以上来自于百度翻译 以下为原文 Do you have a crystal connected in there? I'd suggest you start with internal oscillator... Also, that delay may be too quick for the eyes to notice: make it longer, and possibly use the __delay macros that your compiler allows for. |
|
|
|
变化包括:p24fj64 GA0.6. h & gt;包含和lt;xc.h & gt;是否有一个连接到你的PIC的晶体(POSSMOD= XT设置,你说)。什么频率?使用编译器提供的γ-DelayyMs-()宏。不要尝试自己滚动,优化器将停止工作。
以上来自于百度翻译 以下为原文 change #include to #include Do you have a crystal connected to your PIC (the POSCMOD=XT settings says you do). What frequency? Use the __delay_ms() macro supplied by the compiler. Don't try to roll your own, the optimiser will stop it working. |
|
|
|
嗨,谢谢你的回复。试着删除“{包含& p24fj64 GA06.h & gt”),并添加“γ包含& lt;xc.h & gt;”和改变延迟。但是没有效果。我们有8MHz晶体连接到PIC。我们是第一次编程PIC检查它是否工作。在没有示波器的情况下,使GPIO引脚高,也不会使PIN高。该构建成功完成,编程/验证完成,没有任何错误。有人能告诉一种方法来检查它是硬件还是软件问题?
以上来自于百度翻译 以下为原文 Hi , Thanks for the replies. Tried removing the "#include We have 8MHz crystal connected to the PIC. We are programming the PIC for the first time to check if it is working or not . Making the GPIO pin high , without providing delay is also not making the pin high at the oscilloscope. The BUILD is successfully completed and programming/verify completed without any errors. Could anyone please tell a way to check whether it is a hardware or software issue? |
|
|
|
那么我们需要看看你的原理图:“MCLR被拉起了吗?”电源引脚电容器?
以上来自于百度翻译 以下为原文 Then we need to see your schematics :) MCLR is pulled up? Capacitors at power pins? |
|
|
|
嗨,是的,MCLR被拔起,电容在电源引脚上。谢谢。
以上来自于百度翻译 以下为原文 Hi, Yes the MCLR is pulled up and Capacitors are at power pins. Thanks |
|
|
|
“电容器”是相当模糊的。你是指低ESR旁路电容安装非常接近每对电源引脚?
以上来自于百度翻译 以下为原文 "Capacitors" is pretty vague. Do you mean low ESR bypass capacitors mounted very close to every pair of power pins? |
|
|
|
|
|
|
|
|
|
|
|
当有模拟的共享I/O引脚时,默认情况下PIN被配置为模拟输入。您必须设置适当的寄存器禁用PIN上的模拟功能。然后可以用TIS、端口或LAT寄存器配置PIN。
以上来自于百度翻译 以下为原文 When there is a shared I/O pin with analog, so pin is configured as analog input by default. You have to set appropriate register to disable analog function on the pin. Then you can configure pin with TRIS, PORT or LAT registers. |
|
|
|
模拟设置并不重要,如果你使用PIN作为输出,并且只通过LATX地址写入端口。
以上来自于百度翻译 以下为原文 The analog setting does not matter if you are using the pin as an output, and only write to the port via the LATx address. |
|
|
|
“构建调试”怎么样?你能单步完成你的代码吗?
以上来自于百度翻译 以下为原文 What about "Build for Debugging ... ". Can you single step through your code ? |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
777浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
676浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 03:03 , Processed in 1.627206 second(s), Total 99, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号