CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 429 / 703
12.7.3 Calculation of the baud rate
(1) Formula for calculating the baud rate
The baud rate of UART (UART0~UART2) communication can be calculated using the following
formula:
Note The SDRmn [15:9] of the serial data register mn (SDRmn) is disabled from being set to 0000000B and
0000001B.
Notice 1 Because the value of SDRmn [15:9] when using UART is the value of bit15~9 of the SDRmn register (0000010B
~1111111B), so 2~127.
2.m: Unit number (m=0, 1) n: channel number (n=0~2). mn=00~03, 10~11.
The operating clock (f
MCK
) depends on the serial clock select register m (SPSm) and bit 15 (CKSmn
bit) of the serial mode register mn (SMRmn).