UART (universal asynchronous receiver/transmitter) is a communication interface used between two microcontrollers. Data signals are transferred using two lines, one for transmitting signals (Tx) and one for receiving signals (Rx).
Most microcontrollers these days have built-in UARTs that can be used to receive and transmit data. Their UARTs are used for the programming, control, configuration and/or analysis/debugging. These connections are used for remote connections to the microcontroller. This allows access to a microcontroller, using another microcontroller controlled device containing an interface (third party interface). Commonly used interfaces include PC based software which utilises USB to TTL serial converters containing FT232 microcontroller chips (e.g. the FTDI USB to TTL serial converter module), but a direct connection can also be made.
Data signals are transmitted sequentially (in serial), over a single wire, 1 bit at a time. Data signals are received (Rx) from the communicating microcontroller’s transmit (Tx) line and is send/transmitted (Tx) to the communicating microcontroller’s receive (Rx) line.
Each bit is represented by a ‘0’ or a ‘1’. The supplied voltage of the microcontroller is used to represent these bits. Microcontrollers use TTL (transistor-transistor logic) to send/receive bits. TTL serial signals exist between a microcontroller’s voltage supply range – usually 0V to 3.3V or 5V. 0V (GND) will represent a bit value of ‘0’ and Vcc will represent a bit value of ‘1’. A signal at the Vcc level can also indicate an idle line or a stop bit whereas a 0V signal can also represent a start bit.
Data format and transmission speeds are configurable. The speed/rate at which data is transmitted is specified as bits per second, or bps. Common data rates used are 9600bps, 115200bps, etc.
Other data characteristics include the direction (“full duplex” will send and receive data at the same time and “half duplex” will take turns to send and receive data) and with or without parity.
RS-232 serial connections
Although there are many similarities, TTL serial connections are different from RS-232 serial port connections. Connecting TTL devices directly to a serial port (of, for example, a PC – 13V) may damage the device. PCs can, however, safely use TTL for serial communication by using USB to TTL serial converters (e.g. The FTDI USB to TTL serial converter module).
Save, share & Disqus
Comment via Disqus
More microelectronic related posts
20 November 2018
Improve your knowledge on anything from programming to business skills with Lynda.com’s huge range of professional video courses.
15 October 2018
Breadboard power supplies are easy-to-use, companion modules which provide regulated voltage to the power rails of solderless breadboards. They are both easy to use and extremely useful for fast, efficient breadboard prototyping of micro-electronic projects.
7 October 2018
There are some times in life where decisions are based on cost of running an electrical devices. Comparative decisions based on, for example, Wattage alone is real easy, but what about putting those values into an actual money value. This post will show you how.
18 September 2018 | Updated 12 October 2018
When using the Arduino IDE to program Arduino or Arduino-like microcontrollers, there are 4 basic sections that each sketch should have. They are the comment section, the variables section, the setup section and the loop section.
22 June 2018
The ESP8266 community created an add-on for the Arduino IDE that allows Arduino-like (C or C++) programming to be uploaded/flashed as software for the ESP8266 microcontroller.
5 June 2018
The FTDI USB to TTL serial converter module is an UART (universal asynchronous receiver-transmitter) board used for TTL serial communication. It is a breakout board for the FTDI FT232R chip with an USB interface, can use 3.3 or 5 V DC and has Tx/Rx and other breakout points.