UART(universal asynchronous receiver transmitter ) PPT

Sai_praneeth 1,159 views 19 slides Aug 03, 2021
Slide 1
Slide 1 of 19
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19

About This Presentation

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 – paralle...


Slide Content

UART Presented BY G. Sai praneeth kumar

contents Introduction Block diagram How it works Frame parity Configuration Example Advantages & disadvantages C onclusion

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 in serial 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