design and implementation of uart
description
Transcript of design and implementation of uart
![Page 1: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/1.jpg)
DESIGN AND IMPLEMENTATION OF UART USING VHDL
PRESENTED BY:
A.Bhanu Swetha 09/455.K.Tirupati Naidu 09/479.K.Suresh 09/472.K.Sneha 09/474.G.Rajesh 09/468
Under The Guidance OfS.Maha Lakshmi
![Page 2: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/2.jpg)
CONTENTS:
Introduction What is UART When do we need a UART How do we use the UART UART Block diagram Features Applications Conclusion
![Page 3: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/3.jpg)
INTRODUCTION:
The objective of this project is to simulate UART using VHDL, a high level language for modeling digital circuits and by using Xilinx foundation.
![Page 4: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/4.jpg)
What is UART?
The UART we have designed consists 2 modules. They are transmitter, receiver.
Transmitter converts the parallel data words into serial data bits and transmits them over the txd line.
The receiver receives serial bits from rxd line and converts them into parallel data word.
The UART (universal asynchronous receiver and transmitter)
Transmits data in frames.
![Page 5: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/5.jpg)
When do we need a UART?
Control the receiving and transmitting time of the data.
Increase the accuracy and decrease the effect of the noise
![Page 6: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/6.jpg)
UART: What it is and how it works:
UART provides the computer with the RS-232C Data Terminal Equipment
(DTE) interface so that it can "talk" to and exchange data with modems and
other serial devices.
As part of this interface, the UART also:
Converts the bytes it receives from the computer along parallel circuits
into a single serial bit stream for outbound transmission
On inbound transmission, converts the serial bit stream into the bytes that
the computer handles
![Page 7: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/7.jpg)
Adds a parity bit (if it's been selected) on outbound transmissions
and checks the parity of incoming bytes (if selected) and discards the
parity bit
• Adds start and stop delineators on outbound and strips them from
inbound transmissions
• Handles interrupts from the keyboard and mouse (which are serial
devices with special ports)
![Page 8: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/8.jpg)
How do we use the UART?
The use of the UART can be confusing at first but is rather straightforward once an understanding of the UART is acquired.
Let us take the UART data format. This implementation of the UART transmits in blocks of 11 bits; 1 leading low start bit, 1 trailing high stop bit, 1 parity bit and 8 data bits.
The UART data format
![Page 9: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/9.jpg)
Start Bit Always 0
Parity bit As per parity selected
Stop Bit Always 1
Data Bits 5-9
UART FRAME:
![Page 10: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/10.jpg)
FOR EXAMPLE:
UART Port
![Page 11: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/11.jpg)
UART Block Diagram:
![Page 12: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/12.jpg)
PINS DESCRIPTION:•UART Registers
•TDR Transmit Data Register
•TSR Transmit Shift Register
•SCCRSerial Communications Control Register
•SCSR Serial Communications Status Register
•RSR Receiver Shift Register
•RDR Receiver Data Register
•UART Flags
•TDRETransmit Data Register Empty
•RDRF Receive Data Register Full
![Page 13: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/13.jpg)
BASIC UART MODULE:
![Page 14: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/14.jpg)
Supports all data rates from 9600 to 921600 baud
Receive and Transmits interrupt flags
Faster performance than industry
8-bit data word with 1 start bit
Features of UART:
![Page 15: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/15.jpg)
The Xilinx foundation system is a development tool that consists of an integrated set of programs to create, synthesis and simulate .
DESIGN SYNTHESIS:
The Language used for programming design for UART is VHDL.
![Page 16: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/16.jpg)
SIMULATION RESULTS:
Transmitter simulation snap shot
![Page 17: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/17.jpg)
Reciver simulation snap shot:
![Page 18: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/18.jpg)
Inter board communications .
Simple PC to Board interfacing.
UART communications.
For all serial communications.
APPLICATIONS:
Interfacing Mouse
![Page 19: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/19.jpg)
Conclusion :
Project mainly deals with the chip level modelling,
taking designing of UART as an example.
During the course of the project it is realized and
experienced the definite advantages that a hardware
description language offers over the conventional
method of designing
![Page 20: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/20.jpg)
THANKYOU
![Page 21: design and implementation of uart](https://reader034.fdocuments.us/reader034/viewer/2022052504/552ab5885503464f518b470a/html5/thumbnails/21.jpg)
Submitted by:A.Bhanu Swetha 09/455.K.Tirupati Naidu 09/479.K.Suresh 09/472.K.Sneha 09/474.G.Rajesh 09/468