How to generate a 9-bit data frame with the UART function?

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

27 Mar 2017, 13:27

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.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests