RL78/G15 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 458 of 765
Mar 7, 2023
12.6 Operation of UART (UART0) Communication
This is a start-stop synchronization communication function using two lines: serial data transmission (TxD) and serial
data reception (RxD) 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 asynchronous communication UART communication can be performed by using
a channel dedicated to transmission (even-numbered channel) and a channel dedicated to reception (odd-numbered
channel).
[Data transmission/reception]
●
Data length of 7, 8, or 9 bits
●
MSB/LSB first selectable
●
Level setting of transmit/receive data (selecting whether to reverse the level)
●
Parity bit appending and parity check functions
●
Stop bit appending, stop bit check function
[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
The ISC register can be used to set up the input signal on the RxD0 pin of UART0 as an external interrupt input or as a
timer input for the timer array unit. The input pulse interval measurement mode of the timer array unit can then be used
to measure the width at the baud rate of the other party in communications and make the required adjustments in
response.