完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我在使用UART2的MICROtiCK 2遇到了一些麻烦。我安装了PIC32MX250F128B-50。如果直接运行程序,在TX-ing时就会出现问题。但如果我在TX代码前面加上BREAKPOINT,然后在它断点之后重新启动程序,那么它看起来就正确了。我认为它可能需要延迟,但是在尝试之后G,这仍然不起作用。我想知道这有什么问题吗?
以上来自于百度翻译 以下为原文 Hi, I am having some trouble with a Microstick 2 using the UART2. I have a PIC32MX250F128B-50 installed. It appears if I run the program straight through, it has a problem when TX-ing. But if I put a BREAKPOINT right before the TX code, and then resume the program after it breakpoints, it appears to do it correctly. I thought maybe it needed a delay, but after trying that, it still did not work. I was wondering if there was a known issue with this? |
|
相关推荐
3个回答
|
|
|
嗨,检查一下单片机的差错表,看看是否有关于UART2的已知问题。这个PIC32有PPS吗?如果是这样,请确保它是正确设置的,如果不是,它意味着它在你的代码中;
以上来自于百度翻译 以下为原文 Hi, check the erratasheet for your microcontroller to see if there is any known issue about UART2. Does this PIC32 have PPS ? if so make sure it is setup properly If not it means it is in your code ;=) Regards |
|
|
|
|
|
你确信你的代码没有问题,因为你没有费心去展示它。
以上来自于百度翻译 以下为原文 Are you 100% sure there is no problem with your code, as you didn't bother showing it. |
|
|
|
|
|
嗨,我想调试器一定有什么问题。我从调试器中“释放”了项目,它正在正确地执行TX。可能当我在调试中使用断点时,它清除了什么?
以上来自于百度翻译 以下为原文 Hi, I think there must be some thing wrong with the Debugger. I "released" the project from the debugger and it is TX-ing properly. Probably when I used the breakpoint in debug, it cleared something? |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475 浏览 0 评论
5794 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1125浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 16:55 , Processed in 0.649145 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1361