UART help on K10

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART help on K10

863 Views
huaping
Contributor III

Referring to K10 user manual, the UART can work 8 bit,9 bit data bits, but my customer requires 7 bit data bits, 1 bit parity (odd) check, 2 stop bits.

in K10 manual, it can work at 8bit data format, and enable parity bits, it only 7 bits data, but we can't generate 2 bit stop.

Do you have any suggestion?

Thanks in advance!

0 Kudos
1 Reply

333 Views
mjbcswitzerland
Specialist V

Hi

 

"The UARTs support 10 and 11 bit characters. That means that they can operate in 8 bit character mode with or without parity but plus one stop bit:

-       start bit, 8 bit character, one stop bit)

-       start bit, 8 bit character, parity bit, one stop bit)

or 7 bit character mode with parity

-       start bit, 7 bit character, parity bit, one stop bit)

In addition an address bit can be used (generally known as multi-drop or 9 bit mode).

When in 7 bit character mode the parity bit is received as 8th bit in the receive data register and so needs to be masked out in software to avoid corruption.

This means that there are some restrictions as to what formats are possible since 1.5 or 2 stop bits cannot be configured and also 7 bit character mode without parity is not supported."

 

Reference: http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis_demo.pdf (section UARTs).

 

Regards

 

Mark

 

0 Kudos