BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
626 / 1149
Rev.1.02
(2) Procedure
Figure 19-47
Initial setup steps for Slave sending
initial configuration starts
configure PER0 register
configure SPSm register
configure SMRmn register
configure SCRmn register
configure SDRmn register
configure SOm register
Modifing SOEm register
configuration
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
set baud rate (bit15~9) to "0000000B"
configure serial data (Somn) initial
output voltage
set SOEmn bit to 1, enable data
output of target channel
via Configure port register and port
mode register, set data output of
target channel to valid.
set SSmn bit of target channel to "1":
set to enable operation state).
complete initial configuration.
If transmit data to SIOp register (bit 7~0 of
SDRmn register), wait for master device clock.
Figure 19-48
Abort step of the slave send
termination configuration
starts
TSFmn = 0
?
write into STm register
modify SOEm register
configuration
modify SOm register
configuration
configure PER0 register
termination configuration
ends.
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
when emergency stop, based on needs,
modify serial data (SOmn) voltage level of the
target channel.
stop clock of universal serial communication
unit, set to reset state
finish termination configuration, enter into
next processing.
(selection)
(mandatory)
(mandatory)
(selection)
(selection)