Fig 8-4 p-341. S 5 =IF flag (interrupt Enable). S 6 =0 always.

Slides:



Advertisements
Similar presentations
MICROPROCESSOR BASED SYSTEM DESIGN
Advertisements

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.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
INPUT-OUTPUT ORGANIZATION
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Parul Polytechnic Institute
There are two types of addressing schemes:
ECE 2211 Microprocessor and Interfacing Chapter 8 The 8088/8086 Microprocessors and their memory and I/O interfaces Br. Athaur Rahman Bin Najeeb Room.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
The 8085 Microprocessor Architecture
Chapter 2 Microprocessor Bus Transfers. Big- and Little-Endian Ordering Bit-endian processor architecture –High-order-byte-first (H-O-B-F) map the highest-order.
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Basic Input/Output Operations
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 2: 80386DX Internal Architecture & Data Organization.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
The 8088 and 8086 Microprocessors  The 8086, announced in 1978, was the first 16- bit microprocessor introduced by Intel Corporation  8086 and 8088 are.
Chapter 10 Input/Output Interface Circuits and LSI Peripheral Devices
INPUT-OUTPUT ORGANIZATION
Microcomputer & Interfacing Lecture 2
Khaled A. Al-Utaibi  8086 Pinout & Pin Functions  Minimum & Maximum Mode Operations  Microcomputer System Design  Minimum Mode.
MODES OF Details of Pins Pin 1 –Connected Ground Pins 2-16 –acts as both input/output. Outputs address at the first part of the cycle and outputs.
Memory interface Memory is a device to store data
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
MICROPROCESSOR INPUT/OUTPUT
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
Computer Architecture Lecture 8 by Engineer A. Lecturer Aymen Hasan AlAwady 30/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Basic I/O Interface A Course in Microprocessor
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
Input/Output Interface Circuits and LSI Peripheral Devices
MICROPROCESSORS AND APPLICATIONS
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
MODES OF Details of Pins Pin 1GND –Connected Ground Pins 2-16 AD14-AD0–acts as both input/output. Outputs address at the first part of the cycle.
Input-Output Organization
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
EE3721 Computer System Principles
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Basic I/O Interface Fixed Address Variable Address
Block diagram of 8086.
Computer Architecture Lecture 5 by Engineer A. Lecturer Aymen Hasan AlAwady 25/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
بسم الله الرحمن الرحيم MEMORY AND I/O.
8085 Microprocessor: Architecture & Support Components.
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
Gandhinagar Institute of Technology
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
The 8085 Microprocessor Architecture
Interfacing I/O Devices
The 8085 Microprocessor Architecture
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
8086/8088 Hardware Specifications
8085 microprocessor.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interfacing Memory Interfacing.
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Architecture & Support Components
8085 Microprocessor Architecture
The 8085 Microprocessor Architecture
第四章 80386的存贮器和输入/输出接口 作业:P335 5,7,13,17,21,25,36,37,41,44,45,46,48,52,65 21:46.
Presentation transcript:

Fig 8-4 p-341. S 5 =IF flag (interrupt Enable). S 6 =0 always.

SSO=during read cycle, it is identifies whether a code or data access is in progress.

Types of I/O for 8088/8086 Input/output system allows peripherals to: –Provide data or –Receive results after processing the data. Implemented using I/O ports. Employs two different types of I/O: –Isolated I/O. –Memory mapped I/O. Method differs in how I/O ports are mapped into MPU’s address spaces. Some microcomputer employs both method.

Isolated I/O I/O devices treated separately from memory. –Hardware and software architecture of 8088/8086 support separate memory I/O address space. Can be accessed as either byte-wide or word-wide. Can be treated as either independent byte-wide I/O ports or word-wide I/O ports. Page 0: –Certain I/O instructions can only perform operations to ports in this part of the address range. –Other I/O instructions can input/output data for ports anywhere in the address space.

Isolated I/O FFFFPort I/O address space 00FFPort FEPort Port Port Port Port Port 0 Port 0 (16 bit port) Port 1 (16 bit port) Page 0

Isolated I/O Advantages: –1 MByte memory address space is available for use with memory. –Special instructions have been provided in the instruction set of 8088/8086 to perform isolated I/O input and output operations. These instructions have been tailored to maximize I/O performance. Disadvantages: –All input and output data transfers must take place between AL or AX register and the I/O port.

Memory-mapped I/O I/O devices is placed in memory address space of the microcomputer. –The memory address space is assigned to I/O devices. –MPU looks at the I/O port as though it is a storage location in memory. –Make use of instructions that affect data in memory rather than special input/output instructions.

Memory-mapped I/O FFFFF : Memory address space : E0FFF :: I/O ports : : E0003 E0002 E0001 E0000 :::::: Port 4095 : I/O ports : Port 3 Port 2 Port 1 Port 0 I/O addresses Port 0 (16 bit port) Port 1 (16 bit port)

Memory-mapped I/O Advantages: –Many more instructions and addressing modes are available to perform I/O operations. –I/O transfers can now take place between I/O port and internal registers other than just AL/AX. Disadvantages: –Memory instructions tend to execute slower than those specifically designed for isolated I/O. –Part of the memory address space is lost.

Isolated Input/Output Interface The interface permits 8088/8086 microcomputers to communicate with the outside world. The interface between MPU and I/O is similar to MPU and memory. Input output data transfers also take place over the multiplexed address/data bus. Through this I/O interface, the MPU can input or output data in bit, byte or word (8086) formats.

Isolated Input Output Interface :: Minimum-mode Interface Minimum-mode 8088 system I/O interface

Isolated Input Output Interface :: Minimum-mode Interface Minimum-mode 8086 system I/O interface

Isolated Input Output Interface :: Minimum-mode Interface Example of I/O device: –Keyboard (input). –Printer (output). –Asynchronous serial communications port (input/output). Circuits in the interface section must perform functions such as: –Select I/O port. –Latch output data. –Sample input data. –Synchronize data transfers.

Isolated Input Output Interface :: Minimum-mode Interface (8088) Data/Address Lines: –Multiplexed address/data bus. –Only 16 least significant lines used. AD 0 -AD 7 and A 8 -A 15. Control Signals: –Similar to memory interface. Difference between 8088 and –Complete data bus used for data transfer. AD 0 -AD 15. –M/IO complement of IO/M. –SSO replaced with BHE.

Isolated Input Output Interface :: Maximum-mode Interface Maximum-mode 8088 system I/O interfaceMaximum-mode 8086 system I/O interface

Isolated Input Output Interface :: Maximum- mode Interface (8088/86) 8288 bus controller produces control signals for the I/O subsystems. Decoded S 2 S 1 S 0 will determine which type of bus cycle is in progress. If code corresponds to: –I/O read bus cycle, 8288 generates IORC. –I/O write bus cycle, then IOWC and AIOWC generated also produces ALE, DT/R and DEN control signals. Data and addresses are transferred over AD 0 -AD 7 and A 8 -A differs from 8088 as follows: –16 bit data bus is the path for data transfers. –Signal BHE is included.

Input Output Data Transfers Data transfers: –Byte-wide or word-wide. I/O address used to select the input/output port to be accessed. –I/O address specified as part of the instruction that performs the I/O operation. The addresses: –16 bits in length. –Output over AD 0 (LSb) – AD 7 and A 8 -A 15 (MSb). The most significant address lines A 16 -A 19 = 0 during address period (T 1 ) of all bus cycles. IO/M determines I/O operations. Held at 1 during the complete input/output bus cycles.

Input Output Data Transfers Data transfer (8088). –Performed over data bus. –Byte-wide transfers = 1 cycle (D 0 -D 7 ). –Word-wide transfers require two bus cycles. Two consecutive byte-wide data transfers. Data transfer (8086): –The addresses are output on address/data bus lines AD 0 -AD 15. –A 0 and BHE determine whether access at odd- addressed byte-wide port, even-addressed byte-wide port or word-wide port. i.e. A 0 BHE = 10  odd-addressed byte wide I/O port is accessed.

Input Output Data Transfers –Even and odd addressed byte transfer require 1 bus cycle. Even-addressed byte transfer  D 0 -D 7. Odd-addressed byte transfer  D 8 -D 15. –Word data transfer can either require one or two bus cycles. Word data transfer performed over D 0 -D 15. One cycle word transfer  I/O port is aligned at even address boundaries. Two cycles word transfer  Misaligned word.

Input Output Instructions Isolated I/O mode uses special input and output instructions together with I/O port addressing modes. Can either be direct or variable I/O instructions. –Can be used to transfer byte/word. –All data transfer take place over I/O device and accumulator register (AL/AX). Known as accumulator I/O. –Byte/word wide transfer determined by AL/AX.

Input Output Instructions MnemonicMeaningFormatOperation IN Input directIN Acc, Prt(Acc)  (Port) Acc = AL or AX Input indirect (variable) IN Acc, DX(Acc)  ((DX)) OUT Output directOUT Prt, Acc(Port)  (Acc) Output indirect (variable) OUT DX, Acc((DX))  (Acc) Input/output instructions

Input Output Instructions :: Direct I/O Instructions Address of the I/O port: –Specified as part of the instruction. 8 bits provided for direct address, thus: –Address range is limited to FF 16. –This range is referred as page 0 in I/O address space. i.e. IN AL, 0FEH –(AL)  (FE 16 ) –Content of address FE to be input to the AL register. –Only one bus cycle.

Input Output Instructions :: Direct I/O Instructions Example 2: –Write a sequence of instructions that will output the data to a byte-wide output port at address of the I/O address space.

Input Output Instructions Difference between direct and variable: –The way in which the address of the I/O port is specified. –Direct  8 bit address is specified as part of the instruction. –Variable  use 16 bit address in DX register. (DX) is not an offset but actual address. Variable I/O instructions can access ports located anywhere in the 64 K byte I/O address space. Data/address must be loaded into or removed from AL/AX/DX before another input or output operation can be performed.

Input Output Instructions Example 2: –Write a program that will output DA 16 to an output port located at address EA20 16 of the I/O address space. –Data are to be read in from two byte-wide input ports at address AA 16 and BA 16 and then output as a word-wide output port at address B Write a program to perform this input/output operation.

Input Output Bus Cycles Signals (minimum-mode) similar to those involved in memory interface. Function, logic levels and timing of all signals other than IO/M are identical to section IO/M changes at logic level, not the timing.

Input Bus Cycles :: 8088 T 1 : –IO/M =1 and maintained throughout the cycle. Indicate IO operation. –ALE output together with address. –DEN =0. Signals interface circuitry when to put data onto the bus reads data off the bus during period T 3. Input bus cycle of the 8088

Output Bus Cycles :: puts data on the bus late in T 2 and maintains it during the rest of the bus cycle. This time WR = 0. –Signals I/O system that valid data are on the bus. Output bus cycle of the 8088

Input Bus Cycles :: 8086 Differences: –BHE output along with address in state T 1. Used with A 0 to select even/odd address byte/word wide port. –Data transfer over 16 bit address/data bus at T 3. –M/IO replaces IO/M. –SSO = none. Refer figure 8-52 & 8-53