UART Jin-Fu Li. 2 EE613 VLSI DesignNational Central University Introduction UART (modem)  Universal asynchronous receiver and transmitter Data format.

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
Advertisements

INPUT-OUTPUT ORGANIZATION
Smart Card Reader. Quick Start Training Agenda Smart Card Introduction ISO 7816 Standard Smart Card Operation CoolRunner-II Smart Card Reader CoolRunner-II.
Review: Interrupts & Timers
ECT 357 Ch 18 UART. Today’s Quote: Be careful that your marriage doesn’t become a duel instead of a duet. Be careful that your marriage doesn’t become.
Input/Output Organization Asynchronous Bus
Serial I/O - Programmable Communication Interface
Shift Register Application Chapter 22 Subject: Digital System Year: 2009.
Hierarchy of I/O Control Devices
Asynchronous Communication Hardware  Data within a DTE is usually stored and moved in a parallel fashion.  Data sent across the channel is generally.
Sequential PLD timing Registers Counters Shift registers
Input/Output and Communication
Unit-5 CO-MPI autonomous
Design and Synthesis of Universal Asynchronous Receiver and Transmitter (UART) Using Verilog HDL Prepared by: Engr. Qazi Zia, Assistant Professor EED,
PS2 Keyboard Interface Using Spartan-3 Starter Kit Board
INPUT-OUTPUT ORGANIZATION
Computer Architecture Lecture 08 Fasih ur Rehman.
The University of New Hampshire InterOperability Laboratory Serial ATA (SATA) Protocol Chapter 10 – Transport Layer.
The 8051 Microcontroller and Embedded Systems
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
Lecture Set 9 MCS-51 Serial Port.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Unit 4 Design and Synthesis of Datapath Controllers
UART ELEC 418 Advanced Digital Systems Dr. Ron Hayne Images Courtesy of Thomson Engineering.
BYU ECEn 320 Lab 4 UART Transmitter. BYU ECEn 320 UART Transmimtter Specification VGA Serial A1 Expansion Connector PS2 A2 Expansion Connector B1 Expansion.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
Simulation & Synthesis of UART HD-6402 using VHDL [02-384] Deepak Patel Presented by.
Switch Fabric Team Members Xuan Bao Jacob Cox Bryan Fleming Wenzhong Wu 20 February 2009.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
Digital Logic Design Alex Bronstein
Serial Communications
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
EKT 221 : DIGITAL 2.
Chapter 6 Input/Output Organization
Serial mode of data transfer
CS-401 Computer Architecture & Assembly Language Programming
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Project Custom Designed Integrated Circuits
Source: Serial Port Source:
Input/Output and Communication
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Operating Systems (CS 340 D)
CPU Sequencing 6/30/2018.
Homework Reading (linked from my web page) Machine Projects Labs
I/O Memory Interface Topics:
Serial I/O and Data Communication.
SERIAL PORT PROGRAMMING
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
E3165 DIGITAL ELECTRONIC SYSTEM
Computer Organization and Design
Source: Serial Port Source:
UART Serial Port Programming
Serial Communication Interface: Using 8251
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
COMP3221: Microprocessors and Embedded Systems
CSE 370 – Winter Sequential Logic-2 - 1
Programmable Data Communication Blocks
Source: Serial Port Source:
Switching Theory and Logic Design Chapter 5:
Serial Communication 19th Han Seung Uk.
Source: Serial Port Source:
Serial Communications
Introduction Communication Modes Transmission Modes
Presentation transcript:

UART Jin-Fu Li

2 EE613 VLSI DesignNational Central University Introduction UART (modem)  Universal asynchronous receiver and transmitter Data format Host processor 1 Modem Host processor 2 Modem Serial Data Channel Data Bit 7 Data Bit 6 Data Bit 5 Data Bit 4 Data Bit 3 Data Bit 2 Data Bit 1 Data Bit 0 Start Bit Stop Bit Parity Bit

3 EE613 VLSI DesignNational Central University Block Diagram of a UART Receiver controller Transmitter controller To host processor Clock Generator 1 Serial in Byte ready T byte Load XMT Data reg Serial out Sys clock Rcv shtreg Rcv datareg XMT datareg XMT shfteg 1

4 EE613 VLSI DesignNational Central University UART – Transmitter Byte ready T byte Load XMT Datareg Bit count State Clear Load XMT shtreg Start Next state Shift Transmitter data path controller Byte ready: asserted by the host processor to indicate that data bus has valid data Load XMT Datareg: asserting transfers data bus to the transmitter data storage register, XMT datareg T byte: asserting initiates transmission of a byte of data, along with the stop, start, and parity bits Bit count: counts bits in the word during transmission State : state of the transmitter controller state machine Load XMT shtreg: asserting loads the contents of XMT datareg into XMT shtreg Start: signals the start of transmission Shift: directs XMT shtreg to shift by one bit toward the LSB and backfill with stop bit (1) Clear : clears bit counter Next state: the next state of the state machine controlling the data path of the transmitter

5 EE613 VLSI DesignNational Central University FSM State Diagram of Transmitter Idle waiting sending Byte ready==0 Byte ready==1 T byte==1 T byte==0 Bit count ==word size +1 Shift=1 Start=0 Start=1 Clear=1 Load XMT shtreg=1

6 EE613 VLSI DesignNational Central University UART – Receiver Read not ready in Sample counter Bit counter State load Clr sample counter Inc sample counter Next state Shift Receiver data path controller Serial in error1 error2 Read not ready in: signals that the host is not ready to receive data Sample counter: counts the samples of a bit Bit counter: counts the bits that have been sampled State: state of the state machine controlling the data path of the receiver Clr sample counter: clear sample counter Clr bit counter: clear bit counter Shift: causes RCV shftreg to shift towards the LSB Load: causes RCV shftreg to transfer data to RCV datareg Error1: asserted if host is not ready to receive data after last bit has been sampled Error2: asserts if the stop-bit is missing Next state: next state of the state machine controlling the data path of the receiver

7 EE613 VLSI DesignNational Central University FSM State Diagram of Receiver Idle starting receiving Serial in==1 Serial in==0 Sample counter==3 Inc sample counter=1 Clr sample counter=1 Clear=1 Load XMT shtreg=1 Serial in==1 Serial in==0 Sample counter 1=3 Inc sample counter=1 Sample counter 1=word size -1