CHAPTER 14 SERIAL ARRAY UNIT
Page 421 of 920
Figure 14 - 86 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, 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)
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)
Ma
in r
outine
In
te
rr
u
pt
pr
oc
es
si
ng
r
ou
tin
e
Ma
in
r
o
ut
in
e
For the initial setting, refer to
Figure 14 - 82
.
(setting to mask for error interrupt)
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...