BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
564 / 1149
Rev.1.02
19.1.2
UART (UART0
~
UART3)
This is a function of asynchronous communication over two lines: Serial Data Transmission (TxD) and Serial
Data Receiving (RxD). Using these two communication lines, data is sent and received asynchronously (using the
internal baud rate) by data frame (consisting of start bits, data, parity bits, and stop bits). Full-duplex UART
communication can be achieved by using two channels dedicated for transmit (even channel) and receive dedicated
(odd channel).
For a specific setup example, please refer to "19.7Operation of UART (UART0~UART3
".
[Sending and receiving data].
• 7-bit, 8-bit, or 9-bit data length (SCI0).
7-bit, 8-bit, 9-bit, or 16-bit data lengths (SCI1 and SCI2).
•
MSB/LSB preferred
• Level setting of sending and receiving data, selection of inverted phase
• Additional, parity function of parity bits
• Additional stop bits
[Interrupt function].
• Transmit end interrupt, buffer empty interrupt
• Error interrupts caused by frame errors, parity errors, or overflow errors
[Error Detection Flag].
• Frame error, parity error, overflow error