RL78/G13 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0146EJ0100 Rev.1.00 638
Sep 22, 2011
12.6 Operation of UART (UART0 to UART3) Communication
This is a start-stop synchronization function using two lines: serial data transmission (T
XD) and serial data reception
(R
XD) lines. By using these two communication lines, each data frame, which consist of a start bit, data, parity bit, and
stop bit, is transferred asynchronously (using the internal baud rate) between the microcontroller and the other
communication party. Full-duplex UART communication can be performed by using a channel dedicated to transmission
(even-numbered channel) and a channel dedicated to reception (odd-numbered channel). The LIN-bus can be
implemented by using timer array unit 0 with an external interrupt (INTP0).
[Data transmission/reception]
• Data length of 7, 8, or 9 bits
Note
• Select the MSB/LSB first
• Level setting of transmit/receive data and select of reverse
• Parity bit appending and parity check functions
• Stop bit appending
[Interrupt function]
• Transfer end interrupt/buffer empty interrupt
• Error interrupt in case of framing error, parity error, or overrun error
[Error detection flag]
• Framing error, parity error, or overrun error
In addition, UART0 reception (channel 1 of unit 0) supports the SNOOZE mode. When RxD0 pin input is detected while
in the STOP mode, the SNOOZE mode makes data reception that does not require the CPU possible. Only following
UARTs can be specified for the reception baud rate adjustment function.
• 24 to 64-pin products: UART0
• 80, 100, 128-pin products: UART0 and UART2
The LIN-bus is accepted in UART2 (channels 0 and 1 of unit 1) (30, 32, 36, 40, 44, 48, 52, 64, 80, 100, and 128-pin
products only).
[LIN-bus functions]
• Wakeup signal detection
• Sync break field (SBF) detection
• Sync field measurement, baud rate calculation
Note Only following UARTs can be specified for the 9-bit data length.
• 24 to 64-pin products: UART0
• 80, 100, 128-pin products: UART0 and UART2
Using the external interrupt (INTP0) and
timer array unit 0
<R>
<R>