DS14928 · DatasheetArm® Cortex®-M33 32-bit MCU with FPU, 144 MHz, 593 CoreMark®, up to 512‑Kbyte dual‑bank flash memory, 128-Kbyte RAM
Download .pdfOpen in the full document

Universal synchronous/asynchronous receiver transmitter (USART/UART) and low-power universal asynchronous receiver transmitter (LPUART)

Universal synchronous/asynchronous receiver transmitter (USART/UART) and low-power universal asynchronous receiver transmitter (LPUART)

The devices have four embedded universal synchronous receiver transmitters (USART1/2/3), three universal asynchronous receiver transmitters (UART4/5), and one low‑power universal asynchronous receiver transmitter (LPUART1).
Table 9. USART, UART, and LPUART features
Features(1)USART1/2/3UART4/5LPUART1
Hardware flow control for modemXXX
Continuous communication using DMAXXX
Multiprocessor communicationXXX
Synchronous mode (controller/target)X--
Smartcard modeX--
Single-wire half-duplex communicationXXX
IrDA SIR ENDEC blockXX-
LIN modeXX-
Dual-clock domain and wake-up from Stop modeX(2)X(2)X(2)
Receiver timeout interruptXXX
Modbus communicationXXX
Autobaud rate detectionXXX
Driver enableXXX
USART data length7, 8, and 9 bits
Tx/Rx FIFOXXX
Tx/Rx FIFO size8 bytes
1 X = supported.
2 Wake‑up supported from Stop mode.

Universal synchronous/asynchronous receiver transmitter (USART/UART)

The USART offers a flexible means to perform full‑duplex data exchange with external equipment requiring an industry standard NRZ asynchronous serial data format. A very wide range of baud rates can be achieved through a fractional baud rate generator.

The USART supports both synchronous one-way and half-duplex single-wire communications, as well as LIN (local interconnection network), Smartcard protocol, IrDA (infrared data association) SIR ENDEC specifications, and modem operations (CTS/RTS). Multiprocessor communications are also supported.

High-speed data communications are possible by using the DMA (direct memory access) for multibuffer configuration.

The USART main features are:
  • Full-duplex asynchronous communication
  • NRZ standard format (mark/space)
  • Configurable oversampling method by 16 or 8 to achieve the best compromise between speed and clock tolerance
  • Baud rate generator systems
  • Two internal FIFOs for transmit and receive data
  • Each FIFO can be enabled/disabled by software and come with a status flag.
  • A common programmable transmit and receive baud rate
  • Dual-clock domain with dedicated kernel clock for peripherals independent from PCLK
  • Auto baud rate detection
  • Programmable data word length (7, 8, or 9 bits)
  • Programmable data order with MSB-first or LSB-first shifting
  • Configurable stop bits (one or two stop bits)
  • Synchronous controller/target mode and clock output/input for synchronous communications
  • SPI controller transmission underrun error flag
  • Single-wire half-duplex communications
  • Continuous communications using DMA
  • Received/transmitted bytes are buffered in reserved SRAM using centralized DMA
  • Separate enable bits for transmitter and receiver
  • Separate signal polarity control for transmission and reception
  • Swappable Tx/Rx pin configuration
  • Hardware flow control for modem and RS-485 transceiver
  • Communication control/error detection flags
  • Parity control:
    • Transmits parity bit
    • Checks parity of received data byte
  • Interrupt sources with flags
  • Multiprocessor communications: wake-up from Mute mode by idle line detection or address mark detection
  • Wake-up from Stop capability
  • LIN controller synchronous break send capability and LIN target break detection capability
    • 13-bit break generation and 10/11-bit break detection when USART is hardware configured for LIN
  • IrDA SIR encoder decoder supporting 3/16-bit duration for Normal mode
  • Smartcard mode
    • Supports the T = 0 and T = 1 asynchronous protocols for smartcards as defined in the ISO/IEC 7816‑3 standard
    • 0.5 and 1.5 stop bits for Smartcard operation
  • Support for Modbus communication
    • Timeout feature
    • CR/LF character recognition

Low-power universal asynchronous receiver transmitter (LPUART)

The LPUART is a UART, which enables bidirectional UART communications with a limited power consumption. Only a 32.768 kHz LSE clock is required to enable UART communications up to 9600 bauds. Higher baud rates can be reached when the LPUART is clocked by clock sources different from the LSE clock.

Even when the microcontroller is in low-power mode, the LPUART can wait for an incoming UART frame while having an extremely low energy consumption. The LPUART includes all necessary hardware support to make asynchronous serial communications possible with minimum power consumption.

It supports half-duplex single-wire communications and modem operations (CTS/RTS).

It also supports multiprocessor communications. The direct memory access (DMA) can be used for data transmission/reception.

The LPUART main features are:

  • Full-duplex asynchronous communications
  • NRZ standard format (mark/space)
  • Programmable baud rate
  • From 300 bauds to 9600 bauds using a 32.768 kHz clock source
  • Higher baud rates can be achieved by using a higher frequency clock source
  • Two internal FIFOs to transmit and receive data

    Each FIFO can be enabled/disabled by software and come with status flags for FIFOs states.

  • Dual-clock domain with dedicated kernel clock for peripherals independent from PCLK
  • Programmable data word length (7 or 8 or 9 bits)
  • Programmable data order with MSB‑first or LSB‑first shifting
  • Configurable stop bits (one or two stop bits)
  • Single-wire half-duplex communications
  • Continuous communications using DMA
  • Received/transmitted bytes are buffered in reserved SRAM using centralized DMA
  • Separate enable bits for transmitter and receiver
  • Separate signal polarity control for transmission and reception
  • Swappable Tx/Rx pin configuration
  • Hardware flow control for modem and RS‑485 transceiver
  • Transfer detection flags:
    • Receive buffer full
    • Transmit buffer empty
    • Busy and end of transmission flags
  • Parity control:
    • Transmits parity bit
    • Checks parity of received data byte
  • Four error detection flags:
    • Overrun error
    • Noise detection
    • Frame error
    • Parity error
  • Interrupt sources with flags
  • Multiprocessor communications: wake-up from Mute mode by idle line detection or address mark detection
  • Wake-up from Stop mode

Serial peripheral interface (SPI)/Inter-integrated sound interfaces (I2S)

The devices embed three serial peripheral interfaces (SPI) that can be used to communicate with external devices while using the specific synchronous protocol. The SPI protocol supports half‑duplex, full‑duplex, and simplex synchronous, serial communication with external devices.

Table 10. SPI features
SPI feature

SPI2S1, SPI2S2, SPI2S3
(full feature set instances)

Data sizeConfigurable from 4 to 32-bit
CRC computationCRC polynomial length configurable from 5 to 32‑bit
Size of FIFOs16 × 8-bit
Number of transferred dataUnlimited, expandable
I2S featureYes

The serial peripheral interface (SPI) can be used to communicate with external devices while using the specific synchronous protocol. The SPI protocol supports half-duplex, full-duplex, and simplex synchronous, serial communication with external devices. The interface can be configured as master or slave and can operate in multimaster or multislave configurations. The device configured as master provides a communication clock (SCK) to the slave device. The slave select (SS) and ready (RDY) signals can be applied optionally just to set up communication with a specific slave and to ensure it handles the data flow properly. The Motorola® data format is used by default, but some other specific modes are supported as well.

The SPI main features are:

  • Full-duplex synchronous transfers on three lines
  • Half-duplex synchronous transfer on two lines (with bidirectional data line)
  • Simplex synchronous transfers on two lines (with unidirectional data line)
  • From 4-bit up to 32-bit data size selection
  • Multimaster or multislave mode capability
  • Dual clock domain, the peripheral kernel clock is independent from the APB bus clock
  • Baud rate prescaler up to kernel frequency/2 or bypass from RCC in master mode
  • Protection of configuration and setting
  • Hardware or software management of SS for both master and slave
  • Adjustable minimum delays between data and between SS and data flow
  • Configurable SS signal polarity and timing, MISO × MOSI swap capability
  • Programmable clock polarity and phase
  • Programmable data order with MSB-first or LSB-first shifting
  • Programmable number of data within a transaction to control SS and CRC
  • Dedicated transmission and reception flags with interrupt capability
  • SPI Motorola and TI format support
  • Hardware CRC can verify the integrity of the communication at the end of a transaction by:
    • Adding CRC value in Tx mode
    • Automatic CRC error checking for Rx mode
  • Error detection with interrupt capability in case of data overrun, CRC error, data underrun, mode fault, and frame error, depending on the operating mode
  • Two 8-bit width embedded Rx and Tx FIFOs (FIFO size depends on instance)
  • Configurable FIFO thresholds (data packing)
  • Capability to handle data streams by system DMA controller
  • Configurable behavior at slave underrun condition (support of cascaded circular buffers)
  • Optional status pin RDY signaling that the slave device is ready to handle the data flow

The I2S main features are:

  • Full duplex communication
  • Simplex communication (only transmitter or receiver)
  • Master or slave operations
  • 8-bit programmable linear prescaler
  • Data length can be 16, 24, or 32 bits
  • Channel length can be 16 or 32 in master, any value in slave
  • Programmable clock polarity
  • Error flags signaling for improved reliability: Underrun, overrun, and frame errors
  • Embedded Rx and Tx FIFOs
  • Supported I2S protocols:
    • I2S Philips standard
    • MSB-justified standard (left-justified)
    • LSB-justified standard (right-justified)
    • PCM standard (with short and long frame synchronization)
  • Data ordering programmable (LSB or MSB first)
  • DMA capability for transmission and reception
  • Master clock can be output to drive an external audio component:
    • FMCK = 256 × FWS for all I2S modes
    • FMCK = 128 × FWS for all PCM modes