📔
Notes
  • Embedded systems
    • GPIO concepts
    • 📈SPI protocol
    • 📈I2C Protocol
    • 📈UART Protocol
    • 📈CAN Protocol
    • 📈DMA
  • FreeRTOS / RTOS
    • Basics
    • Stm32 FreeRTOS setup
  • Interview Questions
    • Basic C
    • Electronics / mcu
  • Hardware design
  • C programming
  • C++ programming
    • Basics
  • Data structure and Algorithms
    • Data Structures in C
  • Design Patterns
  • Algorithms
  • OS concepts
  • VLSI
  • DSP
  • Motors and sensors
    • BLDC motor
  • Important/ intersting documents
Powered by GitBook
On this page
  • Introduction
  • Configuration / Connection
  • Details
  • Usage and limitations
  • Reference:
  1. Embedded systems

UART Protocol

Notes on USART/UART protocol

PreviousI2C ProtocolNextCAN Protocol

Last updated 2 years ago

Introduction

  • Async protocol , uses same baudrate beteween devices to communicate

  • Its just converting parallel data into a serial format

  • data frame has a start, data, parity , stop bits

  • low speed communication usually used for getting debugging info or simple communication

Configuration / Connection

  • RX and TX pins are used to connect

  • If Hardware flow control is present RTS and CTS pins will be required as well. ( Request to Send and Clear to Send).

Details

  • Data frame constitutes a start bit + data(8 or 9 bits) + parity bit and finally stop bit (1 or 2 bits)

  • even parity vs odd parity : In even parity the number of 1s is always even including parity bit whereas in odd parity number of 1s is odd including the parity bit.

Usage and limitations

  • Used for short distance communication or slower communication

  • can be seen used for debugging devices

Reference:

📈
UART: A Hardware Communication Protocol Understanding Universal Asynchronous Receiver/Transmitter | Analog Devices
Logo
UART