BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
637 / 1149
Rev.1.02
Figure 19-59
Flowchart of Slave receive (single receive mode).
SSPI communication starts
receiving preparation
enable interrupt
wait receiving complete
relevant initial configuration, refer to diagram 19-58
(select transmission completion interrupt)
configure receiving data storage region, clear receiving
data count (via software, any configured internal RAM
storage region, receiving data pointer and receiving
data count).
enable interrupt after clear interrupt request
flag(Ifxx) and release interrupt mask(MKxx)
start communication via clock
provided by master device.
read received data and write into storage region,
perform inccremental counting to receiving data
count.
update receiving data count
SCI initial configuration
transmission completion interrupt
read receiving data to
SIOp(=SDRmn[7:0])
RETURN
receiving completed?
disable interrupt (mask).
write STmn bit to 1.
communication completed.
No
Yes
m
a
in
p
ro
g
ra
m
in
te
rr
u
p
t
p
ro
ce
ss
p
ro
g
ra
m
m
a
in
p
ro
g
ra
m
generate interrupt via
transmission completion
confirm receiving data count