Question
USART and stop bits
Posted on June 23, 2011 at 23:58
In playing around with USART3, I'm attempting to configure it for DMX (250000 baud, 8 data bits, 2 stop bits). In fact, when configured this way, what actually seems to happen is that any data I attempt to send is actually sent as 7 bits (the MSB is dropped). The stop bits are there, but the last data bit was stolen.
I can get what I want by configuring for 9 data bits and two stop bits, what comes out is actually 8 data bits and two stop bits. This behavior doesn't match what I would expect from the reference manual, but since I can do what I need to do I'll proceed. I haven't tested to see if this behavior is the same on the other USARTs/UARTs, but I would expect that it would be identical. #usart #stop-bits #stm32