完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
|
大家好,我已经设法通过文本滚动等来操纵LCD文本,但现在我想把串行数据从我的电脑发送到MCU来操纵LCD上显示的文本,但是我似乎不知道如何让UART工作,也找不到任何示例代码。非常感谢您的帮助。谢谢。
以上来自于百度翻译 以下为原文 Hi all, I've managed to manipulate the LCD text by making text scroll etc, but now I'd like to send serial data from my pc to the MCU to manipulate what text is shown on the LCD but I can't seem the figure out how to get the UART working, nor can I find any example code. Any help is greatly appreciated. Thanks. |
|
相关推荐
5个回答
|
|
|
你可以在这个论坛上找到很多USAT代码
以上来自于百度翻译 以下为原文 You can find a lot of code for USART on this forum |
|
|
|
|
|
嗨,谢谢你的回复。在这里寻找Explorer 16/32的例子代码,所以我试着直接去数据表,但是有很多事情我不明白。你能推荐一种建立UART的方法吗?
以上来自于百度翻译 以下为原文 Hi, thanks for the reply. Struggling to find example code for the Explorer 16/32 here, so I've just tried going straight to the datasheet, but there's a lot of things I don't understand. Can you recommend a way of setting up the UART without already having experience at doing so? |
|
|
|
|
|
好,要点是,库函数是有帮助的,但是您必须知道一些硬件是如何工作的……此外,您的PIC相当新,因此可能不受现有库的支持(“PLIB”,现在中断)。你可以试试MCC,代码配置器,但我不是它的大专家(不太喜欢!)像OpenUART、WriteUART这样的函数是我过去一直使用的,您应该能够找到关于它们使用google搜索论坛的示例。
以上来自于百度翻译 以下为原文 Ok, point is, library functions help but you have to know a little bit of how the hardware works... Moreover your PIC is rather new and hence possibly not supported by existing libraries ("PLIB", now discontinued). You could try MCC, Code configurator, but I am not a big expert of it (don't like much!) Functions like OpenUART, WriteUART are what I've been using in the past, and you should be able to find examples about them searching the forum with google. |
|
|
|
|
|
你搜索特定于该板或PIC的代码吗?忽略这块板,因为这里有PIC。试着寻找任何PIC24的例子,外围设备的硬件及其配置对于同一家庭甚至不同家庭的PIC来说都是相当常见的。只要我2美分……
以上来自于百度翻译 以下为原文 Hi Are you searching for code specific to that board or that PIC? Ignore the board because what matters for this is the PIC in it. Try searching for examples for any PIC24, the hardware of the peripheral devices and its configuration is fairly common to PICs on the same family and even in different families. Just my 2 cents.... Best regards Jorge |
|
|
|
|
|
在MCC插件中支持HiTeX24FJ1024GB610,可能尝试通过MCC图形工具来配置UART。
以上来自于百度翻译 以下为原文 Hi the PIC24FJ1024GB610 is supported in MCC plugin. Maybe try to configure the UART through MCC graphical tool Regards |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
503 浏览 0 评论
5812 浏览 9 评论
2350 浏览 8 评论
2237 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3544 浏览 3 评论
1159浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1121浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
888浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
503浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-13 20:49 , Processed in 0.677484 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1727