CHAPTER 14 SERIAL ARRAY UNIT
Page 377 of 920
Figure 14 - 45 Flowchart of Master Transmission/Reception (in Single- Transmission/Reception Mode)
Note
For the initial setting, refer to
.(Select transfer end interrupt)
SAU default setting
Starting CSI communication
Wait for transmission/
reception completes
End of communication
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and
set interrupt enable (EI)
Read receive data to SIOp
(= SDRmn [7:0])
Yes
No
Setting
transmission/reception data
Setting storage data and number of data for transmission /reception data
(Storage area, Transmission data pointer, Reception 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)
Transfer end interrupt
When transfer end interrupt is generated, it
moves to interrupt processing routine.
Read receive data then writes to storage area, update receive
data pointer
RETI
Transmission/reception
completed?
Disable interrupt (MASK)
Write STmn bit to 1
If there are the next data, it continues
M
a
in
rout
ine
In
te
rr
up
t p
roc
es
sing
ro
ut
in
e
Ma
in
ro
ut
ine
Note
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...