完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,
我有USART半双工的问题。我的STM8L设备的输出太奇怪了。 前半部分(大约10个字节)来自主机。我的设备可以很好地接收。之后,主机等待立即从我的设备接收数据。 当我的设备开始向主机发送数据时,信号电平下降约300uSec。之后,等级回来了。这是什么 ??? 我尝试使用连接的Tx-Rx进行全双工模式。看起来效果很好,但主机更改Rx和我的设备更改Tx之间发生了相同的级别下降。 我尝试将同一引脚上的GPIO模式设置为浮动输入和开漏输出。但结果是一样的。 我尝试使用重映射的USART(PC5-6)。但结果是一样的。 我有另一台不是STM的设备效果很好.....哎呀。 有谁知道我有什么问题吗?任何建议都是受欢迎的。 最好的祝福, 扎克 #stm8l #half- duplex #usart 以上来自于谷歌翻译 以下为原文 Hi, I have a problem with USART half duplex. The output from my STM8L device is too strange. The first half (about 10 bytes) is from host. My device can receive this well. After that, the host is wait to receive the data from my device immediately. When my device starts to send back data to the host, the signal level is down about 300uSec. After that, the level is back. What is this ??? I try to do same thing with full duplex mode with connected Tx-Rx. It looks like work well but same level down is happened between host changed Rx and my device changed Tx. I try to set the mode of GPIO on same pin to both floating input and open drain output. But the result is same. I try to use remapped USART (PC5-6). But the result is same. I have another device that is not STM works well.....Oops. Does anyone know what is wrong with me ? Any suggestion is welcome. Best Regards, Zak #stm8l #half-duplex #usart |
|
相关推荐
2个回答
|
|
|
您可能需要发布源代码才能找到帮助。
以上来自于谷歌翻译 以下为原文 You probably need to post the source code in order to find help. |
|
|
|
|
|
主机在传输之后对线路进行三态分析很慢,似乎将其拉低了一段时间。当您的设备启用其发射器并尝试将其拉高时,电压将进入中间点。稍后您可以看到主机最终表明级别恢复的状态。
以上来自于谷歌翻译 以下为原文 The host is slow in tri-stating the line after transmission it appears to be pulling it low for a while. When your device enables its transmitter and tries to pull it high the voltage goes to the mid point. You can see later on when the host eventually tristates that the levels recover. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1472 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1524 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3674 浏览 1 评论
3864 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2483 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
751浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
684浏览 5评论
730浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
974浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
779浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-14 07:43 , Processed in 0.712703 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3769