STM32 UART Lecture 3 – UART frame formats

  • Post author:
  • Post category:Blog

 

UART frame formats

 

 

In the previous article, we understand UART pins. In this article, let’s discuss URAT frame formats.

UART Frame Formats

A frame refers to the entire data packet which is being sent or received during the data communication. Depending upon the communication protocols, the format of the frame might vary.

For example, TCP/IP has a particular frame format, whereas UDP has another frame format. Similarly, in our case, UART also has a frame format. The typical frame format of the UART has an order of bit, as shown in Figure 1.

 

UART frame formats
Figure 1. Frame format for UART.

 

It starts with a start bit, which is always low for a 1-bit duration. Then follows data bits from LSB to MSB, which usually occupies 5 to 9 bits. You can decide how many data bits have to be there in a frame between 5 to 9 bits using configuration registers in the UART peripheral. There is a parity bit followed by the data bits, and it is optional. You can choose either an even parity or odd parity mechanism.

Parity bit consumes a single bit. Finally, a frame ends with a stop bit. The stop bit is always high. You can configure for 1, 1.5, or 2-bit duration stop bits.

 

In the following article, let’s see Baud Rate

 

FastBit Embedded Brain Academy Courses

Click here: https://fastbitlab.com/course1

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.

Leave a Reply