BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
610 / 1149
Rev.1.02
(2) Procedure
Figure 19-31
Initial setup steps for master reception
initial configuration starts
configure PER0 register
configure SPSm register
configure SMRmn register
configure SCRmn register
configure SDRmn register
configure SOm register
configure port
Write SSm register
initial configuration completes
release universal serial communication unit
from reset state, start providing clock.
configure operational clock
configure operational mode..etc.
configure communication format
configure transmit baud rate (configure
operationl clock(fMCK) scaled transmission
clock)
configure serial clock (CKOmn) initial output
voltage
via Configure port register and port mode
register, set data output and clock output of
target channel to valid.
SSmn bit of target channel set to "1"
(Semn=1: set to operation enable state).
Wait for master device clock.
complete initial configuration.
Communication starts when dummy data is
set in the SIOp register (bit7~0 of the
SDRmn register).
Figure 19-32
The abort step of the master receive
termination configuration
starts
TSFmn = 0
?
write into STm register
modify SOEm register
configuration
modify SOm register
configuration
configure PER0 register
termination configuration
ends.
(selection)
(mandatory)
(mandatory)
Yes
No
if there are ongoing data transmission,
then wait till transmission completed. (if
need urgent stop, then no need to wait).
set STmm bit of target channel to 1.
(SEmn=0: set to operation stop state).
set SOEmn bit to 0, stop output of target
channel
while emergency stop, based on needs,
modify serial clock (CKOmn) and serial
data(Somn) voltage of target channel.
stop clock of universal serial communcaiton
unit, set to reset state.
finish termination configuration, enter into
next processing.
(selection)
(selection)