CHAPTER 14 SERIAL ARRAY UNIT
Page 369 of 920
Figure 14 - 37 Flowchart of Master Reception (in Single-Reception Mode)
Note
For the initial setting, refer to
.(Select Transfer end interrupt)
SAU default setting
Starting CSI communication
Wait for receive completes
End of communication
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI)
Reading receive data to
SIOp (= SDRmn [7:0])
Yes
No
Setting receive data
Setting storage area of the receive data, number of communication data
(Storage area, Reception data pointer, Number of communication data and
Communication end flag are optionally set on the internal RAM by the software)
Enables interrupt
Writing dummy data to
SIOp (= SDRmn [7:0])
Writing to SIOp makes SCKp signals out
(communication starts)
Transfer end interrupt
generated?
When transfer end interrupt is generated, it
moves to interrupt processing routine
Read receive data then writes to storage area.
Update receive data pointer and number of
communication data.
RETI
All reception completed?
Disable interrupt (MASK)
Write STmn bit to 1
Check the number of communication data
M
a
in
rou
tine
In
te
rru
pt
pro
ces
si
ng r
o
ut
in
e
M
a
in
rou
tine
Note
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...