Computer Organization and Design

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
Programmable Interval Timer
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
Serial I/O - Programmable Communication Interface
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
Input/Output and Communication
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
Unit-5 CO-MPI autonomous
INPUT-OUTPUT ORGANIZATION
Computer Architecture Lecture 08 Fasih ur Rehman.
Input/Output mechanisms
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
I NTRODUCTION P IN CONFIGARATION O PERATING MODE.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Universal Asynchronous Receiver/Transmitter (UART)
Example. SBUF Register SCON Register(1) SCON Register(2)
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
1 Input-Output Organization Computer Organization Prof. H. Yoon Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes of Transfer.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
8251 USART.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
Computer Organization and Design
Serial Communications
Types of format of data transfer
ASYNCHRONOUS DATA TRANSFER
Department of Computer Science and Engineering
Lecture 2 Interrupts.
Chapter 6 Input/Output Organization
Serial mode of data transfer
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Input/Output and Communication
Chapter 10 Input/Output Organization
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Operating Systems (CS 340 D)
Diagram of microprocessor interface with IO devices
Input-Output Organization
I/O Memory Interface Topics:
INPUT-OUTPUT ORGANIZATION
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.
The 8255 Programmable Peripheral Interface
E3165 DIGITAL ELECTRONIC SYSTEM
Keyboard/Display Controller INTEL 8279
Overview Peripheral Devices Input-Output Interface
Communication Lines Fundamentals.
INPUT-OUTPUT ORGANIZATION
INPUT-OUTPUT ORGANIZATION
INPUT-OUTPUT ORGANIZATION
INPUT-OUTPUT ORGANIZATION
Parul Institute of Engineering & Technology
Serial Communication Interface: Using 8251
8251A UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER TRANSMITTER
Parallel communication interface 8255
11. Input-Output Organization
INPUT-OUTPUT ORGANIZATION
COMP3221: Microprocessors and Embedded Systems
INPUT-OUTPUT ORGANIZATION
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Programmable Peripheral Interface
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
UART PC16550 (Universal Asynchronous Receiver/Transmitter) By Derwyn Hollobaugh
INPUT-OUTPUT ORGANIZATION
Serial Communication 19th Han Seung Uk.
Serial Communications
Introduction Communication Modes Transmission Modes
Presentation transcript:

Computer Organization and Design CSE211 Computer Organization and Design Lecture : 3 Tutorial: 1 Practical: 0 Credit: 4 Deepak Kumar (Asst. Professor, LPU)

Overview Peripheral Devices Input-Output Interface Input/Output Organization 2 Lecture 36 Overview Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes of Transfer Priority Interrupt Direct Memory Access Input-Output Processor

11-3 Asynchronous Data Transfer All data transfers occur simultaneously during the occurrence of a clock pulse Two units such as CPU and I/O Interface are designed independently of each other. If the registers in the interface share a common clock with CPU registers. The transfer between the two are said to be synchronous. Asynchronous Data Transfer Internal timing in each unit (CPU and Interface) is independent Each unit uses its own private clock for internal registers Asynchronous data transfer between two independent units requires that control signals be transmitted between the communicating units to indicate the time at which data is being transmitted. STROBE HANDSHAKING

Strobe : Control signal to indicate the time at which data is being transmitted 1) Source-initiated strobe : Fig. 11-3 2) Destination-initiated strobe : Fig. 11-4 Disadvantage of strobe method Destination Data Handshake method Data     Fig. 11-3 Source-initiated strobe Fig. 11-4 Destination-initiated strobe

      Handshake : Agreement between two independent units 1) Source-initiated handshake : Fig. 11-5 2) Destination-initiated handshake : Fig. 11-6 Timeout : If the return handshake signal does not respond within a given time period, the unit assumes that an error has occurred.       Fig. 11-5 Source-initiated handshake Fig. 11-6 Destination-initiated handshake

Asynchronous Serial Transfer Synchronous transmission : The two unit share a common clock frequency Bits are transmitted continuously at the rate dictated by the clock pulses Asynchronous transmission : Binary information sent only when it is available and line remain idle otherwise Special bits are inserted at both ends of the character code Each character consists of three parts : 1) start bit : always “0”, indicate the beginning of a character 2) character bits : data 3) stop bit : always “1” Asynchronous transmission rules :  When a character is not being sent, the line is kept in the 1-state  The initiation of a character transmission is detected from the start bit, which is always “0”  The character bits always follow the start bit  After the last bit of the character is transmitted, a stop bit is detected when the line returns to the 1-state for at least one bit time    

Baud Rate : Data transfer rate in bits per second 10 character per second with 11 bit format = 110 bit per second UART (Universal Asynchronous Receiver Transmitter) : 8250 UART (Universal Synchronous/Asynchronous Receiver Transmitter) : 8251

Universal Asynchronous Receiver Transmitter Input/Output Organization 8 Universal Asynchronous Receiver Transmitter A typical asynchronous communication interface available as an IC Transmitter Register - Accepts a data byte(from CPU) through the data bus - Transferred to a shift register for serial transmission Receiver - Receives serial information into another shift register - Complete data byte is sent to the receiver register Status Register Bits - Used for I/O flags and for recording errors Control Register Bits - Define baud rate, no. of bits in each character, whether to generate and check parity, and no. of stop bits Chip select I/O read I/O write CS RS RD WR Timing and Control Bus buffers Bidirectional data bus Transmitter register Status Shift control and clock Transmit data clock Receive CS RS Oper. Register selected 0 x x None 1 0 WR Transmitter register 1 1 WR Control register 1 0 RD Receiver register 1 1 RD Status register Internal Bus

Any Questions ?