UART Frames: Start Bits, Local Clocks and Parity
2026-11-07

UART Frames: Start Bits, Local Clocks and Parity

UART frames give an asynchronous serial receiver a way to find and read one character at a time. The two ends agree on a baud rate and a character format. Each end supplies its own timing. The falling edge of the start bit gives the receiver a fresh reference for deciding where the next data bits belong.

A frame carries one character

The Microchip frame format chapter for ATmega48PB, ATmega88PB and ATmega168PB shows a low start bit followed by the data bits in order from least to most significant. An optional parity bit follows the data, and one or two high stop bits complete the character format. Another frame can follow immediately, or the line can remain idle at a high level. The receiver therefore interprets a high level according to its position in a frame as well as its voltage.

The common shorthand 8N1 specifies eight data bits, no parity, and one stop bit. The start bit is implicit. A hypothetical stream using this format occupies ten bit periods for each eight-bit character. In the simple case of one bit per symbol and back-to-back characters at 9,600 baud, those ten periods yield 960 character slots per second. That calculation describes the wire format. Inter-character gaps and higher-layer overhead can reduce the delivered data rate.

A hypothetical 8N1 character with a low start bit, eight data bits, and a high stop bit.
One start bit and one stop bit make ten wire bit periods for an 8N1 character. Source: Zhilianhai editorial desk, original AI-assisted conceptual illustration.

The receiver reconstructs timing locally

The Microchip AVR DB clock recovery chapter explains why agreeing on a baud rate leaves a second problem. The receiver’s local timing grid can be shifted relative to the transmitter’s grid. Asynchronous operation provides no shared clock wire to align the grids. Detecting the falling transition from idle gives the receive logic a starting reference for the character it is about to read.

The receiver samples the incoming signal faster than the nominal baud rate. The cited AVR DB implementation uses sixteen samples per baud interval in Normal mode and eight in Double-Speed mode. These are internal sampling rates in that product family. The transmitter and receiver still need compatible baud settings on the wire. Internal oversampling does not mean sixteen characters are sent during a single bit period.

Several samples establish a valid start

Detecting a falling edge starts the validation process. In the AVR DB example, three subsequent samples are evaluated. At least two must read low before the receiver accepts the start bit and proceeds with data recovery. If fewer read low, the candidate start is rejected. A momentary low transition can therefore be treated differently from a sustained start bit.

That decision happens for each incoming start bit. The receiver can establish a new timing reference on the next character, even if it starts immediately after the previous one. The AVR DB documentation also identifies more synchronization uncertainty with its eight-sample Double-Speed mode. This difference belongs to that receiver design and should be preserved when interpreting a trace or comparing modes.

There are two timing errors to distinguish. The start decision can have a small offset because the falling edge occurs between samples of the local clock. A difference between actual baud rates can also accumulate across later bits. Fresh start detection establishes a new origin for each character, while a rate mismatch still changes where the receive samples land inside that character.

The falling edge enters a stable low start bit, with Normal-mode sample positions 8, 9, and 10 indicated.
The AVR DB example accepts the start when at least two of the three readings are low. Source: Zhilianhai editorial desk, original AI-assisted conceptual illustration.

Parity and stop bits check different conditions

Parity adds a bit derived from the data bits so the receiver can check whether the expected even or odd parity relationship is present. A single altered bit changes the parity relationship. Two altered bits can leave it unchanged, so a passing parity check does not establish that the character is error free.

The ATmega chapter separately describes a frame error when the first stop bit is read low. Its receiver ignores the second stop bit, even though transmission can include two. This implementation detail should be attributed to the ATmega source. The separate AVR DB chapter supplies the clock recovery example, and neither chapter establishes the behavior of every UART peripheral.

Keep the serial character and the application message separate

One character can be part of a sensor report, a command, or a longer stream. The serial start and stop bits mark that character’s transfer. A larger message needs its own format, such as a length field, delimiter, or other rules shared by the two applications. Changing the character format can corrupt reception even if the application’s message layout has stayed the same.

A communication record can therefore identify the line format, nominal baud rate, and any parity or frame errors before interpreting the message. When a decoded report seems wrong, that separation helps distinguish a disagreement about character timing from a disagreement about the meaning of the received bytes. Related references appear in the equipment communications section and the technical article directory.

18028484626 CONTACT US

公司:智联海(惠州)科技有限公司

地址:惠州仲恺高新区陈江街道白云山工业大道 5 号六楼 601

Q Q:18028484626

Copyright © 2002-2026

粤xxx

咨询 在线留言 电话:18028484626
微信 微信扫码添加我