Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
162
Добавлен:
01.03.2016
Размер:
3.56 Mб
Скачать

Universal asynchronous receiver transmitter (UART)

RM0016

 

 

Impact of clock deviation on maximum baud rate

The choice of the nominal baud rate (UARTDIVNOM) will influence both the quantization error (DQUANT) and the measurement error (DMEAS). The worst case occurs for UARTDIVMIN.

Consequently, at a given CPU frequency, the maximum possible nominal baud rate (LPRMIN) should be chosen with respect to the maximum tolerated deviation given by the equation:

DTRA + 1 / (2*UARTDIVMIN) + DREC + DTCL < 3.75%

Example:

A nominal baud rate of 20 Kbits/s at TCPU = 125 ns (8 MHz) leads to UARTDIVNOM = 25d.

UARTDIVMIN = 25 - 0.15*25 = 21.25

DQUANT = 1 / (2*UARTDIVMIN) = 0.0015%

Figure 138. Bit sampling in reception mode

RDI LINE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

sampled values

 

 

 

 

 

 

Sample

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

clock

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

 

 

 

 

 

 

 

 

 

 

 

 

 

6/16

 

 

 

 

 

 

 

7/16

 

 

 

 

 

 

 

 

7/16

 

 

 

 

 

 

 

 

 

 

 

One bit time

 

 

 

 

 

 

22.4.4LIN mode selection

Table 58. LIN mode selection

LINE

LSLV

LASE

Meaning

 

 

 

 

0

0

0

LIN mode disabled

 

 

 

LIN Master Mode

 

 

 

 

 

 

 

 

 

0

LIN Slave Mode

1

 

with Automatic resynchronization disabled

1

 

 

 

 

 

1

LIN Slave Mode

 

 

 

 

with Automatic resynchronization enabled

 

 

 

 

 

 

 

346/454

Doc ID 14587 Rev 9

Соседние файлы в папке Минимум документации STM8_1