FAQ

FAQ

How to generate a 9-bit data frame with the UART function?  Issue Date:2015-02-11

A 9-bit data frame in the UART application includes 8-bit data and parity bit (9th bit), and is normally used in the RS485 application to indicate the address or data byte. Refer to (follow) the table below to control SPE bit, EPE bit, and PBE bit of UA_LCR register for parity bit (9th bit) level first, and then write 8-bit data into the UA_THR register to generate a 9-bit data frame after UART is initiated.

SPE

EPE

PBE

Parity Bit Level

1

1

1

0

1

0

1

1

Products: Microcontrollers ,Arm Cortex-M0 MCUs ,M051 Base Series ,M0518 Series ,Mini51 Base Series ,Nano100/102 Base Series ,Nano110/112 LCD Series ,Nano120 USB Series ,Nano130 Advanced Series ,NUC029 Series ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series ,NUC130/230 CAN Series ,NUC131/NUC1311 CAN Series ,NUC140/240 Connectivity Series ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,NUC442/472 Series ,NUC505 Series
Applications:
Function: Peripherals,Connectivity,UART
This website uses cookies to ensure you get the best experience on our website. Learn more
OK