8 years, 4 months ago.

9 bit serial uart transmision and received

Hi, I need use the 9 bit of uart, the Kinetis allow use 9 bit for uart, with codewarrior I can do this, but with mbed the library dont support, any idea? regards

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

1 Answer

8 years, 3 months ago.

The mbed library doesn't care if you bit-bang the registers to get what you want. Set the baud rate, etc. using the mbed library, then change what you need to get 9 bits. You can use the CMSIS library or directly change registers. mbed will make no attempt to put it back.