SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 157
Version 2.0
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
16 or 8 times the baud rate clock.
● OVER8=1: Oversampling by 8 to achieve higher speed (up to USARTn_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 USARTn_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
If the
register value does not comply with these two requests, then the fractional divider output is
undefined. If DIVADDVAL is zero then the fractional divider is disabled, and the clock will not be divided.
USART can operate with or without using the Fractional Divider. The desired baud rate can be achieved using several
different Fractional Divider settings. The following algorithm illustrates one way of finding a set of DLM, DLL, MULVAL,
and DIVADDVAL values. Such set of parameters yields a baud rate with a relative error of less than 1.1% from the
desired one.
The following example illustrates selecting the DIVADDVAL, MULVAL, DLM, and DLL to generate BR = 115200 when
USARTn_PCLK = 12 MHz, and Oversampling = 16.
USARTn_PCLK
UART
BAUDRATE
=
Oversampling x (256 x DLM + DLL) x (1 + DIVADDVAL / MULVAL)
12000000
115200 =
16 x (256 x DLM + DLL) x (1 + DIVADDVAL / MULVAL)
Содержание SN32F755
Страница 218: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 218 Version 2 0 22 2 LQFP 64 PIN...
Страница 220: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 220 Version 2 0 22 4 QFN 46 PIN...
Страница 221: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 221 Version 2 0 22 5 QFN 33 PIN 5x5...