Definition: What is UART?
UART stands for Universal Asynchronous Receiver/Transmitter and refers to a hardware component or interface for serial data transmission between digital devices. UART is commonly integrated into microcontrollers, embedded systems, and industrial electronic systems.
The task of a UART module is to convert parallel data from a system (e.g., a microcontroller) into a serial data stream and transmit it over a line. On reception, the reverse process takes place: the UART converts the serial data back into parallel data that can be processed by the system.
Synonyms / related terms:
Features: What distinguishes UART?
Key Figures / Basic Data
Functionality: How does UART work?
UART communication is based on structured serial data transmission between two devices.
Since no common clock is used, the sender and receiver must first configure identical communication parameters such as baud rate, data bits, and stop bits.
Application areas: Where is UART used?
UART is used in numerous electronic applications, especially in embedded systems:
Differences from similar technologies
| Feature | UART | SPI |
|---|---|---|
| Communication | Asynchronous | Synchronous |
| Clock line | Not required | Separate clock line required |
| Lines | TX, RX, GND | MOSI, MISO, SCLK, CS |
| Speed | Low to moderate | High |
| Number of devices | Point-to-point | Multiple devices possible |
| Typical use | Debug interfaces, simple communication | High-speed communication with peripherals |
Deep Dives: The topic explored holistically
In contrast to synchronous protocols, UART does not require a separate clock line. Instead, the sender and receiver synchronize using a start bit and a previously defined baud rate. This simplifies the hardware, but reduces the maximum data rate.
Many microcontrollers have integrated UART modules that can be accessed directly via registers or drivers. This greatly simplifies the implementation of serial communication and requires only a few additional hardware components.
Historically, UART was often used in combination with standards such as RS-232 or RS-485. In this setup, UART handles data formatting, while additional driver components provide the electrical signal levels for longer cables or industrial environments.
UART is often used as a debug interface. During software development, developers can output and analyze system messages, logs, or diagnostic data via a serial console. This function is especially common in embedded systems.
Advantages and Disadvantages
Advantages
Disadvantages
Practical examples
Related terms