RL78/G13 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0146EJ0100 Rev.1.00 611
Sep 22, 2011
Figure 12-55. Flowchart of Slave Transmission (in Single-Transmission Mode)
Starting CSI communication
Write STmn bit to 1
Continuing transmit?
Yes
No
Clear SAUmEN bit of the
PER0 register to 0.
End of communication
Transfer end interrupt?
No
Writing transmit data to
SIOp (=SDRmn[7:0])
Start communication when master
start providing the clock
When transmit end, interrupt is generated
Wait for transmit completes
For the initial setting, refer to Figure 12-51.
(Select transfer end interrupt)
SAU default setting
Setting transmit data
Set storage area and the number of data for transmit data
(Storage area, Transmission data pointer, Number of communication data and
Communication end flag are optionally set on the internal RAM by the software)
Transmitting next data?
Yes
No
Read transmit data from storage area and write it to SIOp. Update
transmit data pointer.
Clear interrupt request flag
Yes
Enables interrupt
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI).
Disable interrupt (MASK)
Determine if it completes by counting number of communication data
<R>