What is UART Protocol? UART Communication Explained

Universal asynchronous receiver-transmitter (UART) is one of the simplest and oldest forms of device-to-device digital communication. You can find UART devices as a part of integrated circuits (ICs) or as individual components. UARTs communicate between two separate nodes using a pair of wires and a common ground.

UART Protocol Guide

As a “universal” setup, we can configure UART to work with many different types of serial protocols.  UART was adapted into single-chip units in the early 1970s, starting with Western Digital’s WD1402A.

In a UART communication scheme:

1. One chip’s Tx (transmit) pin connects directly to the other’s Rx (receive) pin and vice versa. Commonly, the transmission will take place at 3.3 or 5V. UART is a single-master, single-slave protocol, where one device is set up to communicate with only one partner.

2. Data travels to and from a UART in parallel to the controlling device (e.g., a CPU).

3. When sending on the Tx pin, the first UART translates this parallel information into serial and transmits it to the receiving counterpart.

4. The second UART receives this data on its Rx pin and transforms it back into parallel to communicate with its controlling device.

UARTs transmit data serially, in one of three modes:

- Full duplex: Simultaneous communication to and from each master and slave

- Half duplex: Data flows in one direction at a time

- Simplex: One-way communication only

Data transmission takes place in the form of data packets, beginning with a start bit, where the ordinarily high line is pulled to ground. After the start bit, five to nine data bits transmit in what is known as the packet’s data frame, followed by an optional parity bit to verify proper data transmission. Finally, one or more stop bits are transmitted where the line is set to high. This ends a packet.

As an asynchronous protocol— no clock line regulates data transmission speed— users must set both devices to communicate at the same speed. This speed is known as the baud rate, expressed in bits per second, or bps. Transmission speeds vary dramatically, from the typical 9600 baud setting to 115200 and beyond.

While something of an “ancient” protocol, and one that can only communicate between a single master and slave, UART is well known, easy to set up, and extremely versatile. As such, you’re likely to encounter this system when working with microcontroller projects. UARTs may be a part of systems that you use every day, whether you realize it or not.

最新消息

Sorry, your filter selection returned no results.

请仔细阅读我们近期更改的隐私政策。当按下确认键时,您已了解并同意艾睿电子的隐私政策和用户协议。

本网站需使用cookies以改善用户您的体验并进一步改进我们的网站。此处阅读了解关于网站cookies的使用以及如何禁用cookies。网页cookies和追踪功能或許用于市场分析。当您按下同意按钮,您已经了解并同意在您的设备上接受cookies,并给予网站追踪权限。更多关于如何取消网站cookies及追踪的信息,请点击下方“阅读更多”。尽管同意启用cookies追踪与否取决用户意愿,取消网页cookies及追踪可能导致网站运作或显示异常,亦或导致相关推荐广告减少。

我们尊重您的隐私。请在此阅读我们的隐私政策。