CHAPTER 14 SERIAL ARRAY UNIT
Page 361 of 920
Figure 14 - 29 Flowchart of Master Transmission (in Single-Transmission Mode)
Note
For the initial setting, refer to
.(Select Transfer end interrupt)
SAU default setting
Starting CSI communication
Wait for transmit completes
End of communication
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI).
Writing transmit data to
SIOp (= SDRmn [7:0])
Yes
No
Setting transmit data
Set data for transmission and the number of data. Clear communication end flag
(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])
Read transmit data from storage area and write it
to SIOp. Update transmit data pointer.
Writing to SIOp makes SOp and
SCKp signals out
(communication starts)
Transmitting next data?
Transfer end interrupt
When Transfer end interrupt is generated, it
moves to interrupt processing routine
No
Sets communication
completion flag
Read transmit data, if any, from storage area and
write it to SIOp. Update transmit data pointer.
If not, set transmit end flag
RETI
Transmission completed?
Disable interrupt (MASK)
Write STmn bit to 1
Check completion of transmission by
verifying transmit end flag
Yes
Ma
in
r
o
ut
in
e
In
te
rru
pt
pr
oc
es
si
ng
ro
ut
ine
M
a
in
rou
tin
e
Note
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...