BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
629 / 1149
Rev.1.02
Figure 19-51
Flowchart of Slave send (single send mode).
SSPI communication starts
configure transmit and receive
data
enable interrupt
write transmit data into
SIOp(=SDRmn[7:0])
wait transmission completes.
relevant intial configure, please refer to
diagram 19~50 (select transmission
completion interrupt)
regarding transmit data, configure storage region and
data count (via software, any specified internal RAM
storage region, transmit data pointer communnication
data count)
after clear interrupt request flag(Ifxx) and release
interrupt mask(MKxx), enable interrupt
start communication via clock
provided by master device.
clear interrupt request flag (Ifxx).
SCI initial configuration
transmission completion
interrupt
RETURN
continue transmitting?
disable interrupt (mask).
set STmn bit to 1.
communcation completes.
No
Yes
m
a
in
p
ro
g
ra
m
in
te
rr
u
p
t
p
ro
c
e
s
s
p
ro
g
ra
m
m
a
in
p
ro
g
ra
m
generate interrupt request via
transmission completion.
count based on communication data
count, determine completion.
read transmit data from buffer and write into
SIOp, update transmit data pointer
transmit next data?
No
Yes