Top Banner
BASIC UART Thursday, April 2 1, 2022 BASIC UART 1 PREPAID BY:RAHUL TIWARI ROLL NO: 36
24
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Basic Uart

BASIC UART

April 7, 2023 BASIC UART 1

PREPAID BY:RAHUL TIWARIROLL NO: 36

Page 2: Basic Uart

CONTENT

History Introduction Block diagram Working Structure Timing diagram Advantage and Disadvantage Application

2BASIC UARTApril 7, 2023

Page 3: Basic Uart

HISTORY

Need: A mean to connect peripherals RS-232 Serial Port UART First Applications: Teletypes or Visual

Display Units (VDU), Printers and Modems 8250: The first “PC” UART made by National UART Evolution:

8250 16450 16550 16C650A 16C850 Driven by Modem speeds, later by other applications Currently: sophisticated devices with numerous features

3April 7, 2023 BASIC UART

Page 4: Basic Uart

INTRODUCTION

It is a type of "asynchronous receiver/transmitter“, communication standards such as EIA RS-232, RS-422 or RS-485. data format and transmission speeds A UART is usually an individual (or part of an) integrated circuit used for

serial communications over a computer or peripheral device serial port. types of UART

A dual UART, or DUART, combines two UARTs into a single chip.

4April 7, 2023 BASIC UART

Page 5: Basic Uart

BLOCK DIAGRAM

5BASIC UARTApril 7, 2023

Page 6: Basic Uart

WORKING /OPERATION

takes bytes of data and transmits the individual bits in a sequential fashion. At the destination, re-assembles the bits into complete bytes

Transmission line are held high while no transmission/reception is taking place.

In the transmission of a sequence ,the active low start bit to the receiving UART that a new sequence of data is on its way. Lastly, a high stop bit is used to indicate the end of a block

6April 7, 2023 BASIC UART

Page 7: Basic Uart

Frame Structure

UART is capable of transmitting/receiving 7 or 8 bits of data plus 2 or 3 framing bits.

One start bit, eight data bits and one stop bit, is the common configuration.

7April 7, 2023 BASIC UART

Fig: General Form.

Fig: example of showing transmission of character ‘A’.

Page 8: Basic Uart

TRANSMITTER

8April 7, 2023 BASIC UART

Page 9: Basic Uart

Transmitter output

Page 10: Basic Uart

RECEIVER

10April 7, 2023 BASIC UART

Page 11: Basic Uart

ASMD CHART OF RECEIVER

Page 12: Basic Uart

RECEIVER OUTPUT

Page 13: Basic Uart

UART REGISTERS

I. Control Register - Contains settings for the UART. LCR: line control register(read/write) FCR:FIFO control register(write-only) IER: Interrupt enable register(read/write) MCR: Modem control register

II. Status Register - From its name, this contains information about the UART's condition or state.

IIR: Interrupt identification register(read-only) LSR: Line status register MSR: Modem status register(read-only)

13April 7, 2023 BASIC UART

Page 14: Basic Uart

III. Receive Register - This is the where received data is temporarily stored. RBR: Receiver buffer register RHR : Receive Holding Register (read-only)

IV. Transmit Register - A buffer register/s for temporarily storing data to be sent.

THR: Transmitter holding register(write-only)

14April 7, 2023 BASIC UART

Page 15: Basic Uart

Baud Rate Generator

UART clock =16 times original clock. The UART contains a programmable Baud Generator . Two 8-bit latches store the divisor in a 16-bit binary format.

DLL, divisor latch LSBDLM, divisor latch MSB(read/write)

15April 7, 2023 BASIC UART

Page 16: Basic Uart

16April 7, 2023 BASIC UART

Fig: block diagram of baud rate generator

The baud rate generator is a frequency divider that generates baud rates according to the following equation:

Here: 1. BAUD = Baud rate2. f CK = Crystal Clock frequency3. UBR = Contents of the UBRRHI and UBRR registers, (0-4095)

Page 17: Basic Uart

BAUD GENERATOR OUTPUT

Page 18: Basic Uart

ADVANTAGE

The UART system can tolerate a moderate amount of system noise without losing any information. 

Supports all data rates from 9600 to 921600 band Internal diagnostic capabilities:

- Loop-back controls for communications link fault isolation- Break, parity, overrun, framing error simulation

18April 7, 2023 BASIC UART

Page 19: Basic Uart

DISADVANTAGE

As we increase the baud rate, distance of communication will decrease.

Due to asynchronous transmission, it is not accurate compared to synchronous transmission.

19April 7, 2023 BASIC UART

Page 20: Basic Uart

APPLICATION

Inter board communications Simple PC to Board interface For all serial communications Industrial

Heating-Ventilation-Air-Conditioning (HVAC),Security, Telemetry, Sensors, Medical, Test & Measurement, Data Terminals, Video Conf. Systems, Copiers, Printers, Data Recorder, Avionic, Robotic.

Telecom:Network Server Management (24/7, QoS, Redundancy), Hub, Router, Switch, Console Management, Keyboard-Video-Mouse (KVM) Switches, Home Networks, Bluetooth Devices, PDA Modules. Point of-Sale (POS)

Credit Authorization Systems, Handheld and Inventory Terminals, Banking ATM, Ticketing and Vending, Tolls Collection Systems, Car Parking Systems.

20April 7, 2023 BASIC UART

Page 21: Basic Uart

Inter board communication:

21April 7, 2023 BASIC UART

Page 22: Basic Uart

Telecom Application:

Server Management: Easy connections Simple protocol Chain to other systems or peripherals via RS-232/485

22April 7, 2023 BASIC UART

Page 23: Basic Uart

REFRENCE

http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_111%20What%20is%20UART.pdf

http://layadcircuits.com/layad_articles/UART_Basics.htm http://www.cse.sc.edu/~jimdavis/Courses/CSCE-612(Spring03)/

CSCE612-Project-2-uart8251-030214.pdf http://www.seminarprojects.com/Thread-basic-uart-full-report http://www.rosehulman.edu/~simoni/Classes/EC551/ProjectInfo/

UARTChallenge.pdf http://www.xmos.com/system/files/uart-tutorial.pdf http://www.mikroe.com/eng/chapters/view/43/chapter-10-uart-module/ http://www.exar.com/uploadedFiles/ICI/UARTIntro_100_030507.pdf http://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter www.cosmiac.org/pdfs/T4_UART_TUTORIAL_vf.doc

23April 7, 2023 BASIC UART

Page 24: Basic Uart

Thank You

24April 7, 2023 BASIC UART

? •Any Question