SlideShare a Scribd company logo
UART
Presented BY
G. Sai praneeth kumar
contents
• Introduction
• Block diagram
• How it works
• Frame
• parity
• Configuration
• Example
• Advantages & disadvantages
• Conclusion
Introduction
• UART – Stands for Universal Asynchronous Receiver
Transmitter
• It is a piece of hardware that acts as a bridge
between the processor and the serial communication
protocol or port (RS-232)
• It performs parallel – to – serial data conversion at
the transmitter side and serial – to – parallel data
conversion at the receiver side.
• Asynchronous serial communication.
WHY UART
• A serial communication can be done using fewer wires as compared
to its parallel counterpart.
• It is a cheapest communication device with a single wire for
transmitting the data and another wire for receiving.
• When the high-speed data transfer is not required UART is used.
Block diagram
Block diagram
UART TxD
UART RxD
DESCRIPTION
• In a simple serial communication, 3 pins are used: TxD, RxD
and GND.
• At Transmission side (i.e. From Microcontoller), one can write
data into UART Data Register (e.g. UART0_DR) by
using software code.
• These 8 bits of data from Data Register is passed to Tx FIFO
Buffer. After that, the data is sent out(one at a time) from Tx
Shift Register.
• TxFIFO flag = 1 (Buffer full) TxFIFO flag = 0 (not full - Software
can write to Data Register)
• At Receiver end, there is Rx FIFO Buffer.
• RxFIFO Empty flag = 1 (Buffer is empty) RxFIFO Empty flag = 0
(Buffer has data to be read)
How UART works
FRAME
• A frame is the unit of transmission inserial
communications
– Start bit: To declare the start of transmission.
– Data bits: 4,5,6,7, or 8 bits of useful data bits.
– Parity bit : To check for transmission errors.
– Stop bit: To declare end of frame
PARITY
• Parity bit is used to check the integrity of a
frame and signal if an error occurred during
transmission.
• It is an extra bit added to the end of a frame.
• Even parity :The number of ‘1’ symbols inside
a frame must always be even.
• Odd parity : The number of ‘1’ symbols inside
a frame must always be odd
Transmisson and reception
• Transmission
• Reception
configuration
• The configuration settings at both ends of Txd
and Rxd:
• Full or half-duplex operation
• Data length
• Start/Stop bits
• Transmission speed.
Example
• EX:-198 = 11000110
• Transmission speed
– Common speed = 9600 bits/sec
– 1/9600 = 104 us.
Example
• After detecting start it will count 104us and complets start bit.
• Then begins sampling the input bits after 52us with equal count
of 104us between each bit untill the next stop bit with high
pulse.
Advantages & Disadvantages
• Advantages
– Requires minimum wires
– No need for clock or any other timing signal.
– Parity bit ensures basic error checking.
• Disadvantages
– Size of the data in the frame is limited.
– Can connect only two devices at a time
– Speed for data transfer is less compared to parallel.
– Transmitter and receiver must agree to the rules of
transmission and appropriate baud rate must be
selected.
Conclusion
• if we are looking for a device to device serial
communication then UART proves itself the
best as it is easy to deal with and also widely
used in many peripheral devices.
Thank you

More Related Content

What's hot (20)

I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
Anurag Tomar
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
Sudhanshu Janwadkar
 
SPI Protocol
SPI ProtocolSPI Protocol
SPI Protocol
Anurag Tomar
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
Sudhanshu Janwadkar
 
Uart
UartUart
Uart
sean chen
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
Anurag Tomar
 
80486 microprocessor
80486 microprocessor80486 microprocessor
80486 microprocessor
Mihika Shah
 
Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)
Emertxe Information Technologies Pvt Ltd
 
I2C
I2CI2C
I2C
rchovatiya
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
Kruti Niranjan
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
abhikalmegh
 
I2C introduction
I2C introductionI2C introduction
I2C introduction
SUNODH GARLAPATI
 
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
SIVA NAGENDRA REDDY
 
Serial buses
Serial busesSerial buses
Serial buses
Umar Shuaib
 
I2 c protocol
I2 c protocolI2 c protocol
I2 c protocol
Azad Mishra
 
I2C BUS PROTOCOL
I2C BUS PROTOCOLI2C BUS PROTOCOL
I2C BUS PROTOCOL
Kashyap Mandaliya
 
axi protocol
axi protocolaxi protocol
axi protocol
Azad Mishra
 
PCI express
PCI expressPCI express
PCI express
sarangaprabod
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded System
Karan Thakkar
 

Similar to UART(universal asynchronous receiver transmitter ) PPT (20)

FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
Varun Kambrath
 
UART SPI and I2C serial Interfaces .pptx
UART SPI and I2C serial Interfaces .pptxUART SPI and I2C serial Interfaces .pptx
UART SPI and I2C serial Interfaces .pptx
rohinitalekar1
 
Lec 5
Lec 5Lec 5
Lec 5
Mohamed Zain Allam
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart soc
Satyam Sharma
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
MeenaAnusha1
 
8251 USART
8251 USART8251 USART
8251 USART
ShivamSood22
 
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdfMPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
saadbutt43215
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
Techvilla
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
Aneesh Raveendran
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
Yogesh Mashalkar
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
Md.Shohel Rana ( M.Sc in CSE Khulna University of Engineering & Technology (KUET))
 
serial.ppt
serial.pptserial.ppt
serial.ppt
AhmadZafrullah1
 
serial.ppt
serial.pptserial.ppt
serial.ppt
jordan307266
 
UART_Presentation_uart guide for bigge.pptx
UART_Presentation_uart guide for bigge.pptxUART_Presentation_uart guide for bigge.pptx
UART_Presentation_uart guide for bigge.pptx
mortazaking44
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networking
Arul Kumar
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
cisco49
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
Sandesh Agrawal
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home Automation
Apoorv Gupta
 
Serial Communication In Atmega 16
Serial Communication In Atmega 16Serial Communication In Atmega 16
Serial Communication In Atmega 16
Suren Kumar
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
Elchuri Rajeswari
 

Recently uploaded (20)

world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos10
 
Dr. Shivu__Machine Learning-Module 3.pdf
Dr. Shivu__Machine Learning-Module 3.pdfDr. Shivu__Machine Learning-Module 3.pdf
Dr. Shivu__Machine Learning-Module 3.pdf
Dr. Shivashankar
 
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
하이플럭스 / HIFLUX Co., Ltd.
 
A New Enhanced Hybrid Grey Wolf Optimizer (GWO) Combined with Elephant Herdin...
A New Enhanced Hybrid Grey Wolf Optimizer (GWO) Combined with Elephant Herdin...A New Enhanced Hybrid Grey Wolf Optimizer (GWO) Combined with Elephant Herdin...
A New Enhanced Hybrid Grey Wolf Optimizer (GWO) Combined with Elephant Herdin...
Journal of Soft Computing in Civil Engineering
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
Scilab Chemical Engineering application.pptx
Scilab Chemical Engineering  application.pptxScilab Chemical Engineering  application.pptx
Scilab Chemical Engineering application.pptx
OmPandey85
 
PPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptxPPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptx
manesumit66
 
Particle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdf
Particle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdfParticle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdf
Particle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdf
DUSABEMARIYA
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
Mathias Magdowski
 
Java Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyondJava Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyond
arzu TR
 
Full_Cybersecurity_Project_Report_30_Pages.pdf
Full_Cybersecurity_Project_Report_30_Pages.pdfFull_Cybersecurity_Project_Report_30_Pages.pdf
Full_Cybersecurity_Project_Report_30_Pages.pdf
Arun446808
 
Internship_certificate_by_edunetfoundation.pdf
Internship_certificate_by_edunetfoundation.pdfInternship_certificate_by_edunetfoundation.pdf
Internship_certificate_by_edunetfoundation.pdf
prikshitgautam27
 
Introduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdfIntroduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdf
Bharti Shinde
 
Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...
Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...
Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...
balbaliadam1980
 
Comprehensive Guide to Distribution Line Design
Comprehensive Guide to Distribution Line DesignComprehensive Guide to Distribution Line Design
Comprehensive Guide to Distribution Line Design
Radharaman48
 
MS Project - Pelaksanaan Proyek Fisik 2020
MS Project - Pelaksanaan Proyek Fisik 2020MS Project - Pelaksanaan Proyek Fisik 2020
MS Project - Pelaksanaan Proyek Fisik 2020
Bagus ardian
 
International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)
jaresjournal868
 
1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf
VikasNirgude2
 
HVAC Air Filter Equipment-Catalouge-Final.pdf
HVAC Air Filter Equipment-Catalouge-Final.pdfHVAC Air Filter Equipment-Catalouge-Final.pdf
HVAC Air Filter Equipment-Catalouge-Final.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos10
 
Dr. Shivu__Machine Learning-Module 3.pdf
Dr. Shivu__Machine Learning-Module 3.pdfDr. Shivu__Machine Learning-Module 3.pdf
Dr. Shivu__Machine Learning-Module 3.pdf
Dr. Shivashankar
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
Scilab Chemical Engineering application.pptx
Scilab Chemical Engineering  application.pptxScilab Chemical Engineering  application.pptx
Scilab Chemical Engineering application.pptx
OmPandey85
 
PPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptxPPT on Grid resilience against Natural disasters.pptx
PPT on Grid resilience against Natural disasters.pptx
manesumit66
 
Particle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdf
Particle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdfParticle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdf
Particle Swarm Optimization by Aleksandar Lazinica (Editor) (z-lib.org).pdf
DUSABEMARIYA
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
Mathias Magdowski
 
Java Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyondJava Programming Language: until 2025 and beyond
Java Programming Language: until 2025 and beyond
arzu TR
 
Full_Cybersecurity_Project_Report_30_Pages.pdf
Full_Cybersecurity_Project_Report_30_Pages.pdfFull_Cybersecurity_Project_Report_30_Pages.pdf
Full_Cybersecurity_Project_Report_30_Pages.pdf
Arun446808
 
Internship_certificate_by_edunetfoundation.pdf
Internship_certificate_by_edunetfoundation.pdfInternship_certificate_by_edunetfoundation.pdf
Internship_certificate_by_edunetfoundation.pdf
prikshitgautam27
 
Introduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdfIntroduction-to-Prestressed-Concrete.pdf
Introduction-to-Prestressed-Concrete.pdf
Bharti Shinde
 
Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...
Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...
Learning Spark- Lightning-Fast Big Data Analysis -- Holden Karau, Andy Konwin...
balbaliadam1980
 
Comprehensive Guide to Distribution Line Design
Comprehensive Guide to Distribution Line DesignComprehensive Guide to Distribution Line Design
Comprehensive Guide to Distribution Line Design
Radharaman48
 
MS Project - Pelaksanaan Proyek Fisik 2020
MS Project - Pelaksanaan Proyek Fisik 2020MS Project - Pelaksanaan Proyek Fisik 2020
MS Project - Pelaksanaan Proyek Fisik 2020
Bagus ardian
 
International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)
jaresjournal868
 
1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf
VikasNirgude2
 

UART(universal asynchronous receiver transmitter ) PPT

  • 1. UART Presented BY G. Sai praneeth kumar
  • 2. contents • Introduction • Block diagram • How it works • Frame • parity • Configuration • Example • Advantages & disadvantages • Conclusion
  • 3. Introduction • UART – Stands for Universal Asynchronous Receiver Transmitter • It is a piece of hardware that acts as a bridge between the processor and the serial communication protocol or port (RS-232) • It performs parallel – to – serial data conversion at the transmitter side and serial – to – parallel data conversion at the receiver side. • Asynchronous serial communication.
  • 4. WHY UART • A serial communication can be done using fewer wires as compared to its parallel counterpart. • It is a cheapest communication device with a single wire for transmitting the data and another wire for receiving. • When the high-speed data transfer is not required UART is used.
  • 9. DESCRIPTION • In a simple serial communication, 3 pins are used: TxD, RxD and GND. • At Transmission side (i.e. From Microcontoller), one can write data into UART Data Register (e.g. UART0_DR) by using software code. • These 8 bits of data from Data Register is passed to Tx FIFO Buffer. After that, the data is sent out(one at a time) from Tx Shift Register. • TxFIFO flag = 1 (Buffer full) TxFIFO flag = 0 (not full - Software can write to Data Register) • At Receiver end, there is Rx FIFO Buffer. • RxFIFO Empty flag = 1 (Buffer is empty) RxFIFO Empty flag = 0 (Buffer has data to be read)
  • 11. FRAME • A frame is the unit of transmission inserial communications – Start bit: To declare the start of transmission. – Data bits: 4,5,6,7, or 8 bits of useful data bits. – Parity bit : To check for transmission errors. – Stop bit: To declare end of frame
  • 12. PARITY • Parity bit is used to check the integrity of a frame and signal if an error occurred during transmission. • It is an extra bit added to the end of a frame. • Even parity :The number of ‘1’ symbols inside a frame must always be even. • Odd parity : The number of ‘1’ symbols inside a frame must always be odd
  • 13. Transmisson and reception • Transmission • Reception
  • 14. configuration • The configuration settings at both ends of Txd and Rxd: • Full or half-duplex operation • Data length • Start/Stop bits • Transmission speed.
  • 15. Example • EX:-198 = 11000110 • Transmission speed – Common speed = 9600 bits/sec – 1/9600 = 104 us.
  • 16. Example • After detecting start it will count 104us and complets start bit. • Then begins sampling the input bits after 52us with equal count of 104us between each bit untill the next stop bit with high pulse.
  • 17. Advantages & Disadvantages • Advantages – Requires minimum wires – No need for clock or any other timing signal. – Parity bit ensures basic error checking. • Disadvantages – Size of the data in the frame is limited. – Can connect only two devices at a time – Speed for data transfer is less compared to parallel. – Transmitter and receiver must agree to the rules of transmission and appropriate baud rate must be selected.
  • 18. Conclusion • if we are looking for a device to device serial communication then UART proves itself the best as it is easy to deal with and also widely used in many peripheral devices.