
RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
365
Nov 29, 2019
Figure 11-45. Flowchart of Master Transmission/Reception (in Single-Transmission/Reception Mode)
Starting CSI communication
Disable interrupt (MASK)
Transmission/reception
completed?
No
Yes
End of communication
Read receive data to SIOp
(=SDRmn[7:0])
Writing transmit data to
SIOp (=SDRmn[7:0])
When transfer end interrupt is generated, it
moves to interrupt processing routine.
Wait for transmission/reception
completes
For the initial setting, see
Figure 11-41
.
(Select transfer end interrupt)
Transfer end interrupt
Read receive data then writes to storage area, update receive
data pointer
RETI
If there are the next data, it continues
Write STmn bit to 1
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
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI)
Writing to SIOp makes SOp
and SCKp signals out
(communication starts)
Read transmit data from storage area and write it
to SIOp. Update transmit data pointer.
Ma
in
r
o
u
ti
n
e
Ma
in
r
o
u
tine
In
te
rr
u
p
t p
ro
ce
s
si
n
g
r
o
u
tin
e
Summary of Contents for RL78/G1P
Page 770: ...RL78 G1P R01UH0895EJ0100 ...