SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 173
Version 1.1
15.5 BAUD RATE CALCULATION
The UART baud rate is calculated as:
UARTn_PCLK
UART
BAUDRATE
=
Oversampling x (256 x DLM + DLL) x (1 + DIVADDVAL / MULVAL)
Where UARTn_PCLK is the peripheral clock,
are the standard UART baud rate divider
registers, and DIVADDVAL and MULVAL are UART fractional baud rate generator specific parameters in
register.
The value of MULVAL and DIVADDVAL should comply with the following conditions:
1. 1
≤ MULVAL ≤ 15
2. 0
≤ DIVADDVAL ≤ 14
3. DIVADDVAL< MULVAL
4. Oversampling is 8 or 16
The value of the
register should not be modified while transmitting/receiving data or data may be lost or
corrupted.
The oversampling method can be selected by programming the OVER8 bit in
or 8 times the baud rate clock.
● OVER8=1: Oversampling by 8 to achieve higher speed (up to UARTn_PCLK/8). In this case the maximum receiver
tolerance to clock deviation is reduced.
RX
1
2
3
4
5
6
7
8
Sampled values
3 / 8
3 / 8
2 / 8
Sampling Clock
1-BIT TIME
● OVER8=0: Oversampling by 16 to increase the tolerance of the receiver to clock deviations. In this case, the
maximum speed is limited to maximum UARTn_PCLK/16
RX
1
3 4
Sampled values
7 / 16
7 / 16
6 / 16
Sampling Clock
1-BIT TIME
2
6 7
5
9 10
8
12 13
11
15 16
14
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...