COMP3221: Microprocessors and. and Embedded Systems. Overview. Computer Buses. Bus Oriented Architecture

Similar documents
Buses and Parallel Input/Output

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li

Summer 2003 Lecture 21 07/15/03

COMP2121: Microprocessors and Interfacing. I/O Devices (I)

Embedded Applications. COMP595EA Lecture03 Hardware Architecture

Microprocessors & Interfacing

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

Pin Description, Status & Control Signals of 8085 Microprocessor

PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1

COMP3221: Microprocessors and. Embedded Systems

FIGURE Three EPROMs interfaced to the 8088 microprocessor.

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

COMP2121: Microprocessors and Interfacing. I/O Devices (II)

Microprocessors and Microcontrollers (EE-231)

(1) Define following terms: Instruction, Machine Cycle, Opcode, Oprand & Instruction Cycle. Instruction:

a8255 Features General Description Programmable Peripheral Interface Adapter

INPUT/OUTPUT ORGANIZATION

Interconnection Structures. Patrick Happ Raul Queiroz Feitosa

Introduction to Microcontrollers

Microprocessors & Interfacing

INPUT/OUTPUT ORGANIZATION

Lecture-55 System Interface:

Memory System Design. Outline

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

1. Internal Architecture of 8085 Microprocessor

Microcomputer Architecture and Programming

Lecture-50 Intel 8255A: Programming and Operating Modes

The 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Micro computer Organization

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

INPUT/OUTPUT ORGANIZATION

Parallel-to-Serial and Serial-to-Parallel Converters

Adding PC Connectivity to the MTS-88 Microcomputer Teaching. Omar Walid Abdul-Wahab, Wameedh Nazar Flayyih. System

Interfacing. Introduction. Introduction Addressing Interrupt DMA Arbitration Advanced communication architectures. Vahid, Givargis

ECEN 449 Microprocessor System Design. Memories. Texas A&M University

PAS 9796/DIO ENGINEERING SPECIFICATION

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Contents. Chapter 9 Datapaths Page 1 of 28

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A

Week 7. Input/Output Interface Circuits and LSI Peripheral Devices

2-megabit Firmware Hub and Low-Pin Count Flash Memory AT49LH002. Features. Description. Pin Configurations

University of Alexandria Faculty of Engineering Division of Communications & Electronics

Digital Input and Output

Overview of Intel 80x86 µp

Interconnecting Components

8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

8051 Microcontroller

Boundary Scan Implementation

Sri Vidya College of Engineering and Technology. EC6703 Embedded and Real Time Systems Unit IV Page 1.

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks)

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

Question Bank Microprocessor and Microcontroller

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

Input/Output Devices. Lecturer: Sri Parameswaran Notes by: Annie Guo

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016

Handout 15. by Dr Sheikh Sharif Iqbal. Memory Interface of 8088 and 8086 processors

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

Unit 5 DOS INTERRPUTS

Interface: Ports. Microprocessor System Design EHB432E Lecture - 6. Interface: Bus. Timing Diagrams. Istanbul Technical University

EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA)

ENGIN 112 Intro to Electrical and Computer Engineering

82C55. Programmable Peripheral Interface. Interfacing Part III

commodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA Tel.: 215/ TWX: 510/ (MEMORY, I/O, TIMER ARRAY)

Allmost all systems contain two main types of memory :

DSP56002 PIN DESCRIPTIONS

Address connections Data connections Selection connections

Altera FLEX 8000 Block Diagram

These three counters can be programmed for either binary or BCD count.

4-megabit Top Boot, Bottom Partitioned Firmware Hub and Low-Pin Count Flash Memory AT49LH00B4

Chapter Operation Pinout Operation 35

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

The IIC interface based on ATmega8 realizes the applications of PS/2 keyboard/mouse in the system

INTERFACING THE ISCC TO THE AND 8086

TMS320C672x DSP Serial Peripheral Interface (SPI) Reference Guide

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

3. The MC6802 MICROPROCESSOR

COMP3221: Microprocessors and. and Embedded Systems. Instruction Set Architecture (ISA) What makes an ISA? #1: Memory Models. What makes an ISA?


32-Megabit 2.7-volt Minimum SPI Serial Flash Memory AT25DF321A Preliminary

Basics of Microprocessor

4-megabit Firmware Hub and Low-Pin Count Flash Memory AT49LH004. Not Recommended for New Design

1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7.

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur

L12: I/O Systems. Name: ID:

Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION

Chapter ELEVEN 8255 I/O PROGRAMMING

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

Chapter 2 Logic Gates and Introduction to Computer Architecture

32-Mbit 2.7V Minimum Serial Peripheral Interface Serial Flash Memory

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

Lecture Note On Microprocessor and Microcontroller Theory and Applications

MC68HC12 Parallel I/O

A microprocessor-based system

Transcription:

COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) http://www.cse.unsw.edu.au/~cs3221 Lecturer: Hui Wu Session 2, 2005 Overview Buses Memory mapped I/O and Separate I/O I/O Synchronization 2 Bus Oriented Architecture Computer Buses Address Bus Control Bus Memory Parallel I/O Device I/O Interface Parallel I/O Device is connected to memory and I/O devices via data, address and control buses. Data bus is bi-directional and transfers information (memory data and instruction, I/O data) to and from. Address bus may be bi-directional (with more than one source of information) but is most often unidirectional because is the only source of the addresses. Control bus carries all other signals required to control the operation of the system. 3 4

Levels of Buses Computer Buses (Cont.) Component level bus is defined by the signals on the microprocessor chip, such as /WRITE. Component level signals are different for different manufacturers and used when designing single borad computers or dedicated application systems. System level bus is defined by more generic signals such as MEMRD and IORD. Often designed for use as a backplane into which printed circuit boards are plugged. Intersystem bus is is used to connect different systems. Each line of a bus may have multiple sources and destinations. Multiple Destinations 5 Multiple s 6 Information s The Input Interface Typical Bus Interface Gates Vcc A The input interface provides three-state buffers between the source and the data bus. For example, a parallel, eight-bit input interface can be constructed with eight three-state gates whose enable lines are tied together. The open-collector gate is often used for control signal such as request for interrupts. 1G 1G A Y 0 0 0 0 1 1 1 0 X 1 1 X High Impedance External Pull-up Resistor Open Collector 7 (a) Three-state gate (b) Typical open-collector gate 8

Information Destinations The Output Interface The output interface between the data bus and a destination or output device is a latch. DBn Address Decoding The interface must provides the ability for to select one of many sources and destinations. Addressing and address decoding can select one out of many sources and destinations. Clock D C1 Q Dual 4-bit with Clear Destination or Output Device C2 CLR 9 10 Address Decoding for Input Devices Address Decoding for Output Devices From Read Control 74LS139 1-of-4 O0 O1 E O2 O3 From Write Control 74LS139 1-of-4 O0 O1 E O2 O3 Info Info Info Info To/From To/From 11 12

Timing Signals Typical Read Cycle must provide timing and synchronization so that the transfer of information occurs at the right time. has its own clock. I/O devices may have a separate I/O clock. Typical timing signals include and WRITE. Clock Address Bus A Address From Valid C Data From Device Valid Control Signal B 13 14 Typical Read Cycle Typical Write Cycle places the address on the address bus at point A. The control signal is asserted at point B to signal the external device that is ready to take the data from the data bus. reads the data bus at point C whether or not the input device has put it ready If NOT, some form of synchronization is required. Clock Address Bus WRITE Control Signal A Address From Valid B Data From Valid C D 15 16

Typical Write Cycle Complete I/O Interface places the address on the address bus at point A. The data bits are supplied by at point B. The control signal WRITE is asserted by at point C to signal the external device that is ready to take the data from the data bus. This signal is used to create the clock to latch the data at the correct time. Depending on the type of latch and when WRITE is asserted, the data may be captured on the falling edge or rising edge. 17 WRITE E E 74LS139 1-of-4 O0 O1 O2 O3 O0 O1 O2 O3 74LS244 Octal Buffer SOURCE_ADR_OK DES_ADR_OK Destination 18 Complete I/O Interface (Cont.) I/O Addressing and WRITE control the enable (E). Three state enables and the latch clock signals are not asserted until the correct address is on the address bus AND the correct time in the read or write cycle has arrived. If the same address bus is used for both memory and I/O, how does hardware distinguish between memory reads and writes and I/O reads and writes? Two approaches: Memory-mapped I/O. Separate I/O. AVR supports both. 19 20

Memory Mapped I/O Memory Mapped I/O (Cont.) The entire memory space is divided into memory space and I/O space. 0x0000 Memory Advantages: Simpler design. No special instructions for I/O accesses. Disadvantages: I/O devices reduce the amount of memory available for application programs. The address decoder needs to decode the full address bus to avoid conflict with memory addresses. 0xFBFF 0xFC00 I/O 0xFFFF 21 22 I/O Interface for Memory-Mapped I/O Separate I/O Address Bus ADR_OK Information D Q CL Information Destination Two separate spaces for memory and I/O. Less expensive address decoders than those needed for memorymapped I/O. Additional control signal, called IO/M, is required to prevent both memory and I/O trying to place data on the bus simultaneously. IO/M is high for I/O use and low for memory use. Special I/O instructions such as in and out are required. WRITE 23 24

I/O Interface for Separate I/O I/O Synchronization Reduced Address Bus ADR_OK IO_ Information D Q CL 74LS373 Octal Information Destination is typically much faster than I/O devices. I/O devices need to transfer data at unpredictable intervals. Therefore, synchronization between and I/O devices is required. Two synchronization approaches: IO/M Software synchronization. WRITE ADR_OK Hardware synchronization. IO/M IO_WRITE 25 26 Software Synchronization Handshaking I/O Two software synchronization approaches: Real-time synchronization. Uses a software delay to match to the timing requirements of the I/O device. Polled I/O. Sensitive to clock frequency. Wastes time. A status register, with a DATA_Y bit, is added to the device. The software keeps reading the status register until the DATA_Y bit is set. This hardware synchronization approach needs a control signal Y or WAIT. For an input device, when is asking for input data, the input device will assert WAIT if the input data is NOT available. When the input data is available, it will deassert WAIT. While WAIT is asserted, must wait until this control signal is deasserted. For an output device, when is sending output data via the data bus, the output device will assert WAIT if it is not ready to take the data. When it is ready, it will deassert WAIT. While WAIT is asserted, must wait until this control signal is deasserted. Not sensitive to clock frequency. Still wastes time, but can do other tasks. 27 28

Input Handshaking Hardware Reading To WAIT or Y DATA_REQUEST Wait State Logic INPUT DEVICE Data Register 1. Chapter 7: Computer Buses and Parallel Input and Output. Microcontrollers and Microcomputers by Fredrick M. Cady. Address Bus INFO_ADD_OK 29 30