
BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
699 / 1149
Rev.1.02
19.7.3
Calculation of baud rate
(1) Equation for calculating baud rate
The baud rate of UART (UART0~UART3) communication can be calculated using the following calculation
equation:
Note It is forbidden to set
the serial data register
mn
(SDRmn)
to SDRmn [15:9]
to
"0000000B"
and
"0000001B".
Note 1
Because when using
UART, the value of SDRmn [15:9]
is the value
of
bit15~9
of
the SDRmn
register
(
0000010B
~1111111B), so it is
2
to
127. 2.m: unit number (m=0~2)n: channel number (n=0~3).
mn=00
~
03, 10
~
11, 20
~
21
The operating clock (fMCK) depends on bit15 of the serial clock selection register m (SPSm) and the serial mode
register mn (SMRmn). (CKSmn bit).
(baud rate) = {Operating clock (f
MCK
) frequency
of the object channel
}
(SDRmn[15:9]+
1)
÷
2[bps]