BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
686 / 1149
Rev.1.02
(2) Procedure
Figure 19-96
UART transmission
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 into 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 data (SOmn) initial
output voltage
set SOEmn bit to "1", allow data
output of target channel.
via Configure port register and port
mode register, set data output of
target channel set to valid.
set SSmn bit of target channel to "1"
(Semn=1: set to operation enable
state).
initial configuration completes. Configure transmit
data to SDRmn[7:0] (TXDq register, 8 bits) or
SDRmn[8:0] register (9 bits), start communication.
Modifing SOLm register
configuration
configure output data voltage level
Figure 19-97 The abort steps sent by the UART
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
while emergency stop, based on needs,
modifyserial data(Somn) voltage of target
channel.
stop clock of univeral serial communication
unit, set to reset state.
termination configuration completes, enter
into next processing.
(selection)
(mandatory)
(mandatory)
(selection)
(selection)