RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
376
Nov 29, 2019
Figure 11-55. Flowchart of Slave Transmission (in Continuous Transmission Mode)
Starting setting
Wait for transmit completes
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and
set interrupt enable (EI)
Writing transmit data to
SIOp (= SDRmn [7:0])
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)
Enables interrupt
Writing transmit data to
SIOp (=SDRmn[7:0])
Number of transmit
data
>
1?
Buffer empty/transfer end interrupt
When buffer empty/transfer end interrupt is
generated, it moves to interrupt processing routine
No
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
Yes
<1>
<2>
<3><5>
End of communication
Disable interrupt (MASK)
Reading transmit data
RETI
Number of communication
data = -1?
Yes
Write MDmn0 bit to 1
Communication continued?
No
SAU default setting
No
Yes
Read transmit data from buffer and write it to SIOp. Update
transmit data pointer
Start communication when master start providing
the clock
Subtract -1 from number of
transmit data
Clear MDmn0 bit to 0
<4>
It is determined as follows depending on the
number of communication data.
+1:
Transmit data completion
0:
During the last data received
-1:
All data received completion
Write STmn bit to 1
<6>
Main routine
Interrupt processing routine
Main routine
For the initial setting, refer to Figure 11-49.
(Select buffer empty interrupt)
Remark
<1> to <6> in the figure correspond to <1> to <6> in
Figure 11-54 Timing Chart of Slave
Transmission (in Continuous Transmission Mode)
.