BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
695 / 1149
Rev.1.02
(2) Procedure
Figure 19-104 UART reception
initial configuration starts
configure PER0 register
configure SPSm register
configure SMRmn register
and SMRmr register
configure SCRmn register
configure SDRmn register
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)
via Configure port register and port
mode register, set data output of
target channel to valid.
set SSmn bit of target channel to "1",
make Semn to "1" (operation enable
state), and wait for start bit detection.
Note that at least 4 fMCK clocks must be spaced after the RXEmn position of the SCRmn register "1" and then the SSmn
position “1”
。
Figure 19-105 Abort steps for UART reception
termination configuration
starts
TSFmn = 0
?
write into STm register
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).
stop clock of universal serial communication
unit, set to reset state
finish termination configuration, enter into
next processing.
(selection)
(mandatory)
(selection)