RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
411
Nov 29, 2019
Figure 11-84. Flowchart of Slave Transmission (in Continuous Transmission Mode)
Starting setting
Wait for transmit completes
Setting transmit data
For the initial setting, refer to Figure 11-78.
(Select buffer empty interrupt)
Enables interrupt
No
Yes
End of communication
Reading transmit data
RETI
Yes
No
SAU default setting
No
Yes
Ma
in
ro
u
tin
e
Inter
rupt pr
oc
es
s
ing r
out
ine
Ma
in
r
o
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 buffer and write it to SIOp. Update
transmit data pointer
Start communication when master start providing
the clock
When buffer empty/transfer end interrupt is
generated, it moves to interrupt processing routine
If transmit data is left, read them from storage area
then write into SIOp, and update transmit data pointer.
If not, change the interrupt to transmission complete
Clear MDmn0 bit to 0
<4>
It is determined as follows depending on the
number of communication data.
Number of communication
data = -1?
Communication continued?
Disable interrupt (MASK)
Write STmn bit to 1
<6>
Write MDmn0 bit to 1
Subtract -1 from number of
transmit data
Writing transmit data to
SIOp (= SDRmn [7:0])
Number of transmit
data > 1?
Buffer empty/transfer end interrupt
Writing transmit data to
SIOp (= SDRmn [7:0])
<2>
<3><5>
<1>
+1: Transmit data completion
0: During the last data received
-1: All data received completion
Remarks
1.
<1> to <6> in the figure correspond to <1> to <6> in
Figure 11-83 Timing Chart of Slave
Transmission (in Continuous Transmission Mode)
.
2.
m: Unit number (m = 0), n: Channel number (n = 0), p: CSI number (p = 00)