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