CHAPTER 14 SERIAL ARRAY UNIT
Page 387 of 920
Figure 14 - 55 Flowchart of Slave Transmission (in Continuous Transmission Mode)
Note
For the initial setting, refer to
.(Select buffer empty interrupt)
Remark
<1> to <6> in the figure correspond to <1> to <6> in Figure 14 - 54 Timing Chart of Slave Transmission (in Continuous
Transmission Mode) (Type 1: DAPmn = 0, CKPmn = 0).
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>
M
a
in rout
ine
In
ter
rup
t p
ro
cess
in
g
ro
ut
in
e
Ma
in
r
o
ut
in
e
Note
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...