RM0016 Universal asynchronous receiver transmitter (UART)
Doc ID 14587 Rev 8 307/449
22 Universal asynchronous receiver transmitter (UART)
22.1 Introduction
The UARTs in the STM8S and STM8A microcontroller families (UART1, UART2 or UART3)
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 multi-processor
communication. They also support LIN (Local Interconnection Network) protocol version
1.3, 2.0 and 2.1 and J2602.
UART1 and UART2 have extended features (see Table 5 2):
● LIN slave mode is supported in UART2 and UART3.
● Synchronous one-way communication, Smartcard Protocol and IrDA (Infrared Data
Association) SIR ENDEC specifications are supported in UART1 and UART2.
● Half-duplex single wire communication is supported in UART1.
Refer to the datasheet for information on the availability of the UART configurations (UART1,
UART2 or UART3) in each microcontroller type.
Table 52. UART configurations
(1)
1. X = supported; NA = not applicable.
Feature UART1 UART2 UART3
Asynchronous mode X X X
Multiprocessor Communication X X X
Synchronous communication X X NA
Smartcard mode X X NA
IrDA mode X X NA
Half-Duplex (Single-Wire mode) X NA NA
LIN master mode X X X
LIN slave mode NA X X