Research Careers Contact

GlossaryUART

UART

UART, short for universal asynchronous receiver-transmitter, is the hardware block that sends and receives serial data one bit at a time over one wire in each direction, with no shared clock. It is the simplest and most common serial link between a microcontroller and a GNSS module, radio, companion computer or debug console.

How it works

A UART link wires the transmit line (TX) of one device to the receive line (RX) of the other, plus a common ground. The line idles high. To send a byte, the transmitter pulls the line low for one bit period, the start bit, then shifts out the data bits, usually least significant bit first, then an optional parity bit, then one or two stop bits at the idle level. The common setting written 8N1 means eight data bits, no parity and one stop bit.

There is no clock wire, so both sides must agree on the baud rate in advance. The receiver detects the falling edge of the start bit and samples each following bit near its center using its own clock. Small differences between the two clocks are tolerated. Large ones move the sampling point across bit boundaries and corrupt data. Optional RTS and CTS lines add hardware flow control, so a busy receiver can pause the sender.

UART defines framing and timing, not voltage levels. Microcontroller pins use logic-level voltages. RS-232 inverts the signal and uses larger swings, and RS-485 carries the same frames over a differential pair.

UART vs SPI and I2C

SPI and I2C are synchronous: a controller drives a clock line, so the receiver never has to infer timing, and one bus can serve several devices. UART is point to point and asynchronous. It needs no clock wire, and either side can start sending at any time. That makes UART a natural fit for data streams between two processors or modules, while SPI and I2C suit sensors and memory on the same board.

Why it matters

UART is often the first interface brought up on a new board, because a serial console shows boot messages and errors when nothing else works. It is also how many GNSS receivers, telemetry radios and companion computers exchange data with a flight controller. A wrong baud rate, swapped TX and RX lines or a logic level mismatch is a classic first-day bring-up fault.

How to get it right

  • Label TX and RX from each device's point of view on the schematic, and check the crossover.
  • Match logic levels, and add a level shifter where parts run at different I/O voltages.
  • Use a clock source accurate enough for the highest baud rate in the design.
  • Bring a debug UART to a test point or connector on every board.
  • Add flow control or DMA where streams are long or fast.
  • Keep long UART runs inside the enclosure, or convert them to RS-485 or CAN.

UART in robotics and drone hardware

A typical flight controller exposes several UARTs for GNSS, telemetry radios, companion computers and ESC telemetry, and MAVLink usually runs over one of them. On robots, UARTs link motor controllers, lidar units and smart servos, often through RS-485 transceivers once the cable leaves the enclosure. Board designers assign UARTs early, because each one is tied to specific microcontroller pins.

Learn more