RL78/G13 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0146EJ0100 Rev.1.00 620
Sep 22, 2011
Figure 12-63. Flowchart of Slave Reception (in Single-Reception Mode)
Starting CSI communication
Write STmn bit to 1
Reception completed?
No
Yes
Clear SAUmEN bit of the
PER0 register to 0
End of communication
Reading receive data to
SIOp (=SDRmn[7:0])
For the initial setting, refer to Figure 12-59.
(Select transfer end interrupt only)
SAU default setting
Start communication when master start providing
the clock
When transmit end, interrupt is generated
Wait for recieve completes
RETI
Transfer end interrupt
Read receive data then writes to storage area, and counts
up the number of receive data.
Update receive data pointer.
Check completion of number of receive data
Ready for reception
Clear storage area setting and the number of receive data
(Storage area, Reception data pointer, Number of communication data and
Communication end flag are optionally set on the internal RAM by the software)
Enables interrupt
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI).
Disable interrupt (MASK)
Main routine Main routineInterrupt processing routine
<R>