
RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
409
Nov 29, 2019
Figure 11-82. Flowchart of Slave Transmission (in Single-Transmission Mode)
SAU default setting
Starting CSI communication
Wait for transmit completes
Setting transmit data
For the initial setting, refer to Figure 11-78.
(Select transfer end interrupt)
Enables interrupt
No
Yes
Yes
No
Transfer end interrupt
RETI
End of communication
Write STmn bit to1
Ma
in
ro
u
tin
e
Inter
ru
pt
pr
o
c
es
s
in
g
ro
u
tin
e
Ma
in
ro
u
tin
e
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)
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK)
and set interrupt enable (EI).
Read transmit data from storage area and write it to SIOp.
Update transmit data pointer.
When transmit end, interrupt is generated
Start communication when master
start providing the clock
Clear the interrupt request flag (xxIF).
Determine if it completes by counting number of communication
data
Disable interrupt (MASK)
Continuing transmit?
Transmitting next data?
Writing transmit data to
SIOp (= SDRmn [7:0])
Remark
m: Unit number (m = 0), n: Channel number (n = 0), p: CSI number (p = 00)