RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
356
Nov 29, 2019
Figure 11-37. Flowchart of Master Reception (in Single-Reception Mode)
Starting CSI communication
Writing dummy data to
SIOp (=SDRmn[7:0])
Write STmn bit to 1
All reception completed?
No
Yes
End of communication
Reading receive data to
SIOp (=SDRmn[7:0])
For the initial setting, see
Figure 11-33
.
(Select Transfer end interrupt)
SAU default setting
Wait for receive completes
When transfer end interrupt is generated, it moves
to interrupt processing routine
Writing to SIOp makes SCKp signals out
(communication starts)
RETI
Transfer end interrupt
generated?
Setting receive data
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)
Read receive data then writes to storage area.
Update receive data pointer and number of
communication data.
Enables interrupt
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI)
Disable interrupt (MASK)
Check the number of communication data
Main
r
outine
Main r
out
ine
Interru
p
t processing routine