cancel
Showing results for 
Search instead for 
Did you mean: 

USART3 at 7E1 problem

iagenjo
Associate
Posted on February 10, 2011 at 08:35

USART3 at 7E1 problem

2 REPLIES 2
Andrew Neil
Evangelist
Posted on May 17, 2011 at 14:24

''It 's not defined the option USART_WordLength_7b''

 

Are you sure that the hardware supports it?

What does the Datasheet/User Manual say?
Posted on May 17, 2011 at 14:24

Do you think USART is correctly programmed for 7E1 conditions?

 

No.

Parity might appear to ''work'' for about half the bit patterns, and the stop bit is a problem. Once the receiver registers a parity error, that needs to be cleared before more data arrives.

You'd be better to program the USART as 8N1, and create the ''parity'' bit in software (ie  7+1 bits = 8 bits)
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..