RL78/G10 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 322
Dec 22, 2016
Figure 12-35. Flowchart of Master Reception (in Single-Reception Mode)
Starting CSI communication
Writing dummy data to
SIOp (=SDR0nL)
Write 1 to ST0n bit
All reception completed?
No
Yes
End of communication
Reading receive data to
SIO
=SDR0nL
For the initial setting, refer to Figure 12-31.
(Select Transfer end interrupt)
SAU default settin
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 routine Main routineInterrupt processing routine