wire / wire-format / uart-frame

UART frame (asynchronous serial)

A UART (Universal Asynchronous Receiver/Transmitter) frame: start bit (low), 5-9 data bits (LSB first), optional parity bit, 1-2 stop bits (high). No clock line; baud rate must be agreed upon. Common: 8 data bits, no parity, 1 stop bit (8N1) at 9600/115200 baud.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: UART frame (asynchronous serial)

wire format

spec: UART (asynchronous serial)

A UART (Universal Asynchronous Receiver/Transmitter) frame: start bit (low), 5-9 data bits (LSB first), optional parity bit, 1-2 stop bits (high). No clock line; baud rate must be agreed upon. Common: 8 data bits, no parity, 1 stop bit (8N1) at 9600/115200 baud.

fieldsizemeaning
Start bit1 bitAlways 0 (low). Signals the beginning of a frame.
Data bits5-9 bitsData, LSB first. Common: 8 bits.
Parity bit0 or 1 bitOptional: even/odd/mark/space parity for error detection.
Stop bits1-2 bitsAlways 1 (high). Signals the end of a frame.
Baud rateconfigBits per second: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, etc.
8N110 bits8 data + no parity + 1 stop = 10 bits per byte. Most common configuration.

example:

00 80 80 80 80 80 80 80 80 01

UART 8N1 frame for byte 0x00: start(0) + 8 data bits(0) + stop(1)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/uart-frame or /wire-format/uart-frame.json