RL78/G13 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0146EJ0100 Rev.1.00 593
Sep 22, 2011
Figure 12-39. 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
Clear SAUmEN bit of the
PER0 register to 0.
End of communication
Reading receive data to
SIO
=SDRmn
7:0
For the initial setting, refer to Figure 12-35.
(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
<R>