完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,在我试图在下面的专用引脚中设置UART3时,这个单片机有一些问题:(17)-PGEC2/LCDBIAS3/AN6/RP6/RB6(18)-PGED2/SEG63/AN7/RP7/U6TX/RB7(它意味着专用,因为它是一个不能放置在其他地方的紧凑板)。正如可以观察到的,这些是RP信号,它们能够被重新映射到一个UART(在我的例子中,UART 3是必须的),并且按照我通常所做的顺序进行的是下一个:主循环代码只不过是每隔2秒通过这个UART发送的一个消息…但是不幸的是,在白蚁RS232程序中没有看到任何东西:(其他的UART配置必须是好的,因为我已经在同一个家庭的几个微控制器中使用它(例如PIC24FJ256GB110)完美地工作。这一个不行。最好是丹尼尔。
以上来自于百度翻译 以下为原文 Hello there, I am having some troubles with this single microcontroller when I am trying to set up the UART3 in the following dedicated pins: (17) - PGEC2/LCDBIAS3/AN6/RP6/RB6 (18) - PGED2/SEG63/AN7/RP7/U6TX/RB7 (It means dedicated because is a compact board that is not possible to put in other place). As it is possible to observe, these are RP signals which are able to be remapped to a single UART (in my case, UART number 3 is a must), and the sequence I followed as I usually do is the next: /* Signals for this CORE are completely digital */ DEBUG_MISO_AD = 0; /* Digital */ DEBUG_MOSI_AD = 0; /* Digital */ //UART3 /*Configure digital I/O*/ DEBUG_MISO_TRIS = 1; /* MISO */ DEBUG_MOSI_TRIS = 0; /* MOSI */ /* Peripheral pin select: UART3 SELECT */ RPINR17bits.U3RXR = 0x07; /* RX recepcion */ RPOR3bits.RP6R = 0x1C; /* TX Transmision*/ And the main loop code is nothing but a message sending through this UART every 2 seconds... but unfortunately, nothing is seen in the Termite RS232 program :(. The rest of the UART configurations have to be OK, because I have used it in several microcontrollers from the same family (for instance, PIC24FJ256GB110) working perfectly. Any help would be appreciated, because I am getting stuck if this one does not work. Best regards. Daniel. |
|
相关推荐
2个回答
|
|
好,伙计,这个案例的更多线索:RX工作得很好,我将每个字符添加到一个全局数组中,并且它被正确存储(如果检测到“hello rn”消息,一个LED二极管将被切换)…所以,看来这个错误可能只在TX信号上,在这里会发生什么?期待尽快收到你的来信,最好是丹尼尔。
以上来自于百度翻译 以下为原文 OK guys, more clues for this case: RX is working well, I am appending every characters into a global array and it is being stored properly (if a "hellorn" message is detected, a led diode will be toggled)... so, it seems that the mistake may be only on TX signal, what could be happening here? Looking forward to hearing from you soon. Best regards. Daniel. |
|
|
|
没关系,我发现了错误。对于这个新的家庭,可选择的输出源(MAP函数输出)对UART3有不同的数值,比PIC24FJ256GB110家族有(我知道,所有坏的评论都是当之无愧的,现在,格林先生)。谢谢所有尝试过的人!
以上来自于百度翻译 以下为原文 Nevermind, I found the mistake. For this new family, the selectable output sources (map functions to output) have a different numeration for UART3 than the PIC24FJ256GB110 family have (I know, all bad comments are well deserved right now mr green: ). Thanks to everybody who had tried something! |
|
|
|
只有小组成员才能发言,加入小组>>
5161 浏览 9 评论
1999 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3171 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 19:31 , Processed in 1.338013 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号