RL78/G1A CHAPTER 12 SERIAL ARRAY UNIT
R01UH0305EJ0200 Rev.2.00 474
Jul 04, 2013
Figure 12-53. Flowchart of Slave Transmission (in Single-Transmission Mode)
Starting CSI communication
Write 1 to STmn bit
Continuing transmit?
Yes
No
End of communication
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, see Figure 12-50.
(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.
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
Transfer end interru
p
t
RETI
Clear the interrupt request flag (xxIF).
Main routine
Main routine
Interrupt processing routine
Remark m: Unit number (m = 0, 1), n: Channel number (n = 0 to 3), p: CSI number (p = 00, 01, 10, 11, 20, 21),
mn = 00 to 03, 10, 11
<R>