Datasheet
RL78/L12    CHAPTER 12 SERIAL ARRAY UNIT 
R01UH0330EJ0200 Rev.2.00      493 
Dec 13, 2013 
Figure 12-87. Flowchart of UART Reception 
Starting UART communication
Interrupt (mask) 
End of UART 
Reception completed?
No 
Yes 
No 
Yes 
Error processing 
Writing 1 to the STmn bit
Enables interrupt 
Clear interrupt request flag (XXIF), reset interrupt mask 
(XXMK) and set 
Wait for receive completes
Starting reception if start bit is 
detected 
When receive complete, transfer end 
interrupt is generated.
Transfer end interrupt
Indicating normal reception?
Reading receive data from 
the SDRmn[7:0] bits 
(RXDq register) (8 bits) or 
the SDRmn[8:0] bits (9 bits)
Read receive data then writes to storage area.   
Update receive data pointer and number of 
communication data. 
RETI 
For the initial setting, refer to Figure 12-83. 
(setting to mask for error interrupt) 
SAU default setting
Setting storage area of the receive data, number of communication 
data (storage area, reception data pointer, number of communication 
data and communication end flag are optionally set on the internal 
RAM by the software) 
Setting receive data
Check the number of communication data, 
determine the completion of reception 
Main routine Main routine Interrupt processing routine
<R> 










