What is the UART data format?
Technical Blog / Author: icDirectory United Kingdom / Date: Jun 24, 2024 02:06
UART (Universal Asynchronous Receiver/Transmitter) is a widely-used communication protocol that transmits data serially. The UART data format defines the structure of the data frame that is transmitted from the sender to the receiver. Understanding this format is crucial for ensuring correct and efficient communication between devices.

## Basic Structure of UART Data Frame


The UART data frame consists of several components:

1. Start Bit
2. Data Bits
3. Optional Parity Bit
4. Stop Bit(s)

Let's break down each component in detail:

## 1. Start Bit

- Description: The start bit signals the beginning of a data frame. It is used to synchronize the transmitter and receiver.
- Value: Always a logic low ('0').
- Duration: Lasts for one bit period, defined by the baud rate (e.g., at 9600 bps, one bit period is approximately 104 microseconds).

## 2. Data Bits

- Description: These bits represent the actual data being transmitted.
- Number: Typically 5 to 9 bits per frame, with 8 bits being the most common.
- Order: Sent in a little-endian fashion, meaning the least significant bit (LSB) is sent first.

## 3. Optional Parity Bit

- Description: The parity bit is an optional error-checking mechanism.
- Types:
- None: No parity bit included.
- Even: The parity bit is set to '1' if the number of '1's in the data bits is odd, making the total count even.
- Odd: The parity bit is set to '1' if the number of '1's in the data bits is even, making the total count odd.
- Purpose: Provides a simple form of error detection by ensuring the consistency of the transmitted data.

## 4. Stop Bit(s)

- Description: The stop bit(s) indicate the end of the data frame.
- Number: Can be 1, 1.5, or 2 bits (most commonly 1 or 2).
- Value: Always a logic high ('1').

## Example UART Data Frame


Suppose we are transmitting the character 'A' using the ASCII encoding (binary value `01000001`), with the following configuration:
- 8 data bits
- No parity
- 1 stop bit

The data frame would look like this:
```
| Start Bit | Data Bits | Stop Bit |
| 0 | 01000001 (8 bits) | 1 |
```

If we include even parity, the frame would be:
```
| Start Bit | Data Bits | Parity Bit | Stop Bit |
| 0 | 01000001 (8 bits) | 0 | 1 |
```
(Note: The parity bit is '0' because the number of '1's in `01000001` is two, which is already even.)

## Detailed Breakdown of Each Component


1. Start Bit:
- Purpose: Synchronizes the receiver with the incoming data stream.
- Detection: The receiver continuously monitors the data line; a transition from high to low indicates the start of a new frame.

2. Data Bits:
- Transmission: Sent sequentially, starting with the least significant bit (LSB).
- Flexibility: Configurable to accommodate different data word sizes (e.g., 7-bit, 8-bit).

3. Parity Bit:
- Configuration: Optional, based on the application’s need for error checking.
- Error Detection: Helps detect single-bit errors but does not correct them.

4. Stop Bit(s):
- Purpose: Provides a clear indication of the end of the data frame and allows the receiver to process the received byte.
- Variants: Multiple stop bits can be used for increased reliability, especially in noisy environments.

## Practical Considerations


- Baud Rate: Both the transmitter and receiver must agree on the baud rate to ensure proper timing and synchronization.
- Flow Control: Additional flow control mechanisms (hardware or software) may be used to manage data transmission rates and prevent buffer overflows.
- Error Handling: While the parity bit provides basic error detection, more advanced protocols might use checksums or cyclic redundancy checks (CRC) for enhanced error detection and correction.

## Summary


The UART data format is composed of a start bit, a series of data bits, an optional parity bit, and one or more stop bits. This structure allows for flexible and reliable asynchronous serial communication between devices. Understanding each component and how they work together is essential for designing and troubleshooting UART-based communication systems.

icDirectory United Kingdom | https://www.icdirectory.co.uk/a/blog/what-is-the-uart-data-format.html
Related Products
XR16C2852CJ-F
XR16C2852CJ-F
MaxLinear
Date: Jun 02, 2026
SC16C2550BIA44,512
SC16C2550BIA44,512
NXP Semiconductors
Date: Jun 01, 2026
XR16C2850CM-F
XR16C2850CM-F
MaxLinear
Date: Jun 01, 2026
XR16C2850IJTR-F
XR16C2850IJTR-F
MaxLinear
Date: Jun 01, 2026
SC16C2550IA44,529
SC16C2550IA44,529
NXP Semiconductors
Date: Jun 01, 2026
SC26C92A1A,529
SC26C92A1A,529
NXP Semiconductors
Date: Jun 01, 2026
XR16C2850CJ-F
XR16C2850CJ-F
MaxLinear
Date: Jun 01, 2026
SC26C92A1B,551
SC26C92A1B,551
NXP Semiconductors
Date: May 31, 2026
CS82C52Z
CS82C52Z
Renesas Electronics
Date: May 31, 2026
XR16C2550IJTR-F
XR16C2550IJTR-F
MaxLinear
Date: May 31, 2026
SC16C2550IA44,518
SC16C2550IA44,518
NXP Semiconductors
Date: May 31, 2026
ST16C1450CJ28TR-F
ST16C1450CJ28TR-F
MaxLinear
Date: May 31, 2026
Technical Blog
  • What is the UART data framing error?
  • What is the role of start and stop bits in UART?
  • What is the UART overrun error?
  • How do you calculate the UART baud rate?
  • What is the UART communication data parity bit usage?
  • What is the baud rate in UART communication?
  • What is the UART communication reliability?
  • What is the UART communication data buffering strategy?
  • How do you troubleshoot UART communication issues?
  • What is the UART communication handshaking?
  • What is the UART communication master-slave mode?
  • What is the UART communication data stop bit duration?
  • What is the UART communication data integrity check?
  • What is the UART communication multipoint mode?
  • What is the UART data overrun error?
  • What is the UART communication flow control?
  • How do you configure UART communication?
  • What is the UART communication distance?
  • What is the UART idle line condition?
  • What is the UART communication data word length configuration?
  • What is the UART communication data multiplexing technique?
  • What is the UART break condition?
  • What is the UART communication full-duplex mode?
  • What are the disadvantages of UART communication?
  • What is the UART communication data error detection mechanism?
  • What is the UART communication data framing format?
  • What is the UART communication data integrity?
  • What is the UART data idle line condition?
  • What is the maximum cable length for UART communication?
  • What is the UART stop bit?