完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,大家,我们从PIC18F46K22交换到PIC18F47 K40,给我们更多的代码区域。我们使用EUARTAR1在115200波特,驱动LCD显示器在PIC18F46K22系统上运行良好。虽然我们已经尝试了各种组合和建议,从各种结果Google问题,我们没有成功使EUSATAR1以任何波特率运行。我们已经尝试了MCC生成一个基本系统与EUSATAR1配置,但仍然没有成功。(但我们中没有一个与C)很熟。系统频率是64 MHz,但是数据表在这个频率上没有显示115200的波特率值,115200的最大值似乎是32兆赫,我怀疑这只是一个数据表遗漏,我们已经尝试过各种较慢的波特率。哦,看看我们能不能…但是没有。有没有人有一些汇编代码来初始化这个芯片上的EuSART1,这已经在一个真实的设备上被证明了?我相信它会去一些简单的东西,那就是丢失或不正确…但是什么/哪里等?如有任何帮助,我们将不胜感激。
以上来自于百度翻译 以下为原文 Hi all, we have swapped out from a PIC18F46K22 to a PIC18F47K40 to give us more code area. We use EUSART1 at 115,200 baud to drive an LCD display which works fine on the PIC18F46K22 based systems. Although we have tried all sorts of combinations and suggestions from various results from Googling the issue, we have had no success in getting EUSART1 to operate at any baud rate. We have tried the MCC to generate a basic system with the EUSART1 configuration, but still without success. (But non of us are conversant with ‘C’). The system frequency is 64MHz but the data sheet does not show an example baud rate value for 115,200 at this frequency, the max for 115,200 seems to be 32MHz, I suspect this is just a data sheet omission, we have tried at various slower baud rates just to see if we could anything ... but nothing. Is there anybody out there that has some ASSEMBLY code for initialising the EUSART1 on this chip that has been proven on a real device ? I’m convinced it’s going to de something simple that’s missing or incorrect .... but what/where etc. ? It would be much appreciated for any help available. Regards Roy |
|
相关推荐
5个回答
|
|
然后显示你的代码。至于32对64兆赫,你应该能够只双值BRG(波特率发生器)注册…
以上来自于百度翻译 以下为原文 Show your code then. As for 32 vs 64MHz, you should be able to just double the value for BRG (baud rate generator) register... |
|
|
|
这个UART看起来不像任何其他PIC18 UART。你建立PPS了吗?默认情况下,TX引脚将无法映射。忽略波特率的“示例”并使用该等式。
以上来自于百度翻译 以下为原文 This UART doesn't look much different than any other PIC18 UART. Have you set up PPS? The TX pin won't be mapped by default. Ignore the "examples" of baud rates and use the equation. |
|
|
|
这将是很接近的。(原始+ 1)* 2)-1)会更好。回到公式会更好,因为最接近的值可能是奇数。
以上来自于百度翻译 以下为原文 That will be close. (Original +1)*2)-1) would be better. Going back to the formula would be even better, as the closest value might be odd. |
|
|
|
是的,我并不是想提供一个合适的等式,而是表明它应该是可行的。
以上来自于百度翻译 以下为原文 Yeah, I did not mean to provide a proper equation - but just show that it should've been doable |
|
|
|
感谢所有…问题解决…现在快乐地跑上115200波特在EuSART1……一点点徘徊,…我们设法把它踢翻了。
以上来自于百度翻译 以下为原文 Thanks to all .... Problem resolved ... now running happily at 115,200 baud on EUSART1 ... A little bit of frigging around, .... we managed to kick it into life. |
|
|
|
只有小组成员才能发言,加入小组>>
5159 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2223 浏览 5 评论
724浏览 1评论
608浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
496浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
621浏览 0评论
520浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-20 04:40 , Processed in 1.402577 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号