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

RM0016

Universal asynchronous receiver transmitter (UART)

 

 

22 Universal asynchronous receiver transmitter (UART)

22.1Introduction

The UARTs in the STM8S and STM8AF microcontroller families (UART1, UART2, UART3 or UART4) offer a flexible means of full-duplex data exchange with external equipment requiring an industry standard NRZ asynchronous serial data format (UART mode). The STM8 UARTs offer a very wide range of baud rates and can also be used for multiprocessor communication. They also support LIN (Local Interconnection Network) protocol version 1.3, 2.0 and 2.1 and J2602.

UART1, UART2 and UART4 have extended features (see Table 52):

LIN slave mode is supported in UART2, UART3 and UART4.

Synchronous one-way communication, Smartcard Protocol and IrDA (Infrared Data Association) SIR ENDEC specifications are supported in UART1, UART2 and UART4.

Half-duplex single wire communication is supported in UART1 and UART4.

Refer to the datasheet for information on the availability of the UART configurations (UART1, UART2, UART3 or UART4) in each microcontroller type.

Table 52. UART configurations(1)

Feature

UART1

UART2

UART3

UART4

 

 

 

 

 

Asynchronous mode

X

X

X

X

 

 

 

 

 

Multiprocessor communication

X

X

X

X

 

 

 

 

 

Synchronous communication

X

X

NA

X

 

 

 

 

 

Smartcard mode

X

X

NA

X

 

 

 

 

 

IrDA mode

X

X

NA

X

 

 

 

 

 

Single-wire Half-duplex mode

X

NA

NA

X

 

 

 

 

 

LIN master mode

X

X

X

X

 

 

 

 

 

LIN slave mode

NA

X

X

X

 

 

 

 

 

1. X = supported; NA = not applicable.

Doc ID 14587 Rev 9

307/454

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