CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 297 / 703
12.1.2 UART (UART0~UART2)
This is a function that communicates asynchronously through a total of two lines: serial data transmission
(TxD) and serial data reception (RxD). Using these two communication lines, data is sent and received
asynchronously (using the internal baud rate) with other communicating parties in a data frame (consisting of a
start bit, data, parity bit, and stop bit). Full-duplex UART communication can be achieved by using two channels,
send private (even channel) and receive private (odd channel).
For specific setting examples, see 12.7 Operation of UART (UART0~UART2) communication.
[Transmit and receive data]
7-bit, 8-bit or 9-bit data length
Note
•
MSB/LSB preferred choice
Level settings for sending and receiving data, selection of inversions
Appending parity function for parity bits
Appending stop bits
[Interrupt function].
End of transfer interrupt, buffer empty interrupt
Error interrupts caused by frame errors, parity errors, or overflow errors
[Error detection flag].
Frame errors, parity errors, overflow errors