2013-05-15 11:18 PM
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 #usart2013-08-30 03:13 PM
You probably need to post the source code in order to find help.
2013-09-25 02:51 AM
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.