完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嘿,大家好。我一直在用UART来处理我的LCD屏幕,在把它添加到我的现场PIC18F4680之前我在台上测试设置。这一切都在工作台上正常工作,我可以使用9600k波特率通过UART传输Tx和Rx数据。我现在已经用UART设置和编码更新了我的实时PIC18F4680,它看起来Rx正确,但是不能传输Tx。我用一个范围检查逻辑级别,我发现了一些非常奇怪的东西。在Tx线上,逻辑电平从5V变为4V。Rx线从3V变为0V,我推测开关电平在2.4V左右,这就是为什么Rx线工作而Tx线不工作。有人知道我会有什么问题吗?只是为了记录它(因为有些人会抱怨)使用;PIC18F4680 C18编译器MPLAB 8.63
以上来自于百度翻译 以下为原文 Hey All. I have been messing with UART for my LCD Screen and been testing the set-up on the bench before adding it to my live PIC18F4680. It all worked onbench correctly and I could Tx and Rx data over UART using 9600k Baud Rate. I have now updated my live PIC18F4680 with the UART set-up and Code and it seem to Rx Corrrectly but couldn't Tx. I check the logic level using an scope and I have noticed something very strange. On the Tx Line the logic level is going from 5V and only switching to 4V. the Rx Line is going from 3V and switching down to 0V and i presume the switch level is around 2.4V and thats why the Rx Line is working and Tx Line isn't. Does anyone know what I could have this issue? Just to document it (because some people would moan) Using; PIC18F4680 C18 Compiler MPLAB 8.63 (Yes I know this is an older version but not updated yet - will be as soon as this project has ended) Jason |
|
相关推荐
15个回答
|
|
|
|
|
|
同意NKurzman。你可能有RX和Tx反转到屏幕上。
以上来自于百度翻译 以下为原文 Agree with NKurzman. You probably have Rx and Tx reversed to the screen. |
|
|
|
|
|
|
|
无法回答,因为你没有透露你的意思是“RX Work”。
以上来自于百度翻译 以下为原文 Cannot answer as you have not revealed what you mean by "Rx works". |
|
|
|
怎么走?如果线路没有命中极限,它要么被炸毁,要么与另一个驾驶员战斗。
以上来自于百度翻译 以下为原文 RX which way? If the Line is not hitting its limits it is either Blown, or it is fighting another driver. |
|
|
|
我收到的UART数据到PIC,并可以读取它在RCREG寄存器。所以我知道它没有混淆。但不确定为什么它没有达到极限。但是从PIC传输到Nextion设备不能工作,因为它不会低于4v。当我查看范围时,信号在那里,并且通信,但是在切换时限制在4v。不过,我可以看到数据。杰森。
以上来自于百度翻译 以下为原文 I receive Uart data into the PIC and can read it in the RCREG Register. So I know it's not mixed up. But not sure why it's not hitting the limits. But Transmit from PIC to Nextion device doesn't work because it's not going below 4v. When I look on the scope, the signal is there and communicating but limiting at 4v when switching. I can see the data though. Jason. |
|
|
|
有些东西是连接不到的,没有配置好的,或者坏掉的。
以上来自于百度翻译 以下为原文 Something is Miss-connected, miss-configured, or Broken. |
|
|
|
将PIC TX从NEXT断开,再次测试逻辑电平。
以上来自于百度翻译 以下为原文 Disconnect your PIC Tx from Nextion and test the logic levels again. |
|
|
|
怎么用?这个NEXT设备发送一些东西,而不需要先发送任何东西吗?
以上来自于百度翻译 以下为原文 How? Does this Nextion device send something without you having to send anything to it first? |
|
|
|
好的,这是我的下一个测试。谢谢你的帮助。怎么用?这个NEXT设备发送一些东西,而不需要先发送任何东西吗?是的,它可以发送数据而不需要任何RX。杰森。
以上来自于百度翻译 以下为原文 Ok, this is my next test. Thanks for your help. How?Does this Nextion device send something without you having to send anything to it first? Yeah, it can send data without having anyone Rx. Jason. |
|
|
|
好,我做了更多的测试并取得了一些进展;我移除了我的下一个装置,试图发送uart数据,但是它仍然下降到4v。所以我在uart Tx和地之间添加了一个4k7的电阻器,uart Tx现在工作了。这样行吗?这会带来什么影响吗?我被告知,我所需要的是连接PIC TX到NeXT RX和PIC RX到NEXTX TX。请告知?杰森
以上来自于百度翻译 以下为原文 Ok I have done some more testing and made some progress; I removed my nextion devise and attempted to send uart data and it still only dropped to 4v. So I added a 4k7 resister between uart Tx and ground and the uart Tx now works. Is this ok? Would this effect anything? I was told that all I needed was to connect PIC Tx to Nextion Rx and PIC Rx to Nextion Tx. !! Please advise? Jason |
|
|
|
有些事情还是不对的。你不需要那个下拉电阻。我猜还有一个信号短路到TX信号,或者PIC输出驱动器被损坏。
以上来自于百度翻译 以下为原文 Something's still not right. You shouldn't need that pull-down resistor. I'd guess there's still another signal shorted to the TX signal or the PIC output driver is damaged. |
|
|
|
检查信号路径,没有短路或连接到它。我可能会改变我的照片,看看它是否相同。但是下拉抵抗者有问题吗?杰森。
以上来自于百度翻译 以下为原文 Checked signal path and nothing shorted or tied to it. I might change out my PIC and see if it's the same. But would the pull down resister have an issue? Jason. |
|
|
|
|
|
|
|
然后,它确实确认了这个PIC引脚驱动器的低侧NMOS已经被烧毁。替换你的照片。
以上来自于百度翻译 以下为原文 Then it does clearly confirm that the low side NMOS of this PIC pin driver has been burnt. Replace your PIC. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3209 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2260 浏览 5 评论
779浏览 1评论
672浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
598浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
682浏览 0评论
579浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 03:14 , Processed in 1.622256 second(s), Total 104, Slave 88 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号