11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL 62901 I/O System Design.

Slides:



Advertisements
Similar presentations
Serial Interface Dr. Esam Al_Qaralleh CE Department
Advertisements

I/O Organization popo.
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
The Intel 8255 Programmable Peripheral Interface chip is used to give the microprocessor (8088) access to programmable input/ output devices. It has three.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Design of Microprocessor-Based Systems Dr. Esam Al_Qaralleh CE Department Princess Sumaya University for Technology I/O System Design.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Chapter 10 Input / Output Organization CS 147 Yueyang Zhou.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Microprocessor and Microcontroller
Serial I/O - Programmable Communication Interface
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
4-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Hardware Detail of Intel.
kashanu.ac.ir Microprocessors 10-1 IO Devices Stepper Motors DAC, ADC, PPI Lec note 10.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
Unit-5 CO-MPI autonomous
Chapter 10 Input/Output Interface Circuits and LSI Peripheral Devices
INPUT-OUTPUT ORGANIZATION
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
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
By, Prof. Tambe S. S. S.N.D. College of Engineering and Research Center Department of Electrical Engineering.
I NTRODUCTION P IN CONFIGARATION O PERATING MODE.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Universal Asynchronous Receiver/Transmitter (UART)
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
Serial Communications
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Applications of PPI A/D - Temperature Sensor. Analog to Digital.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
PPI-8255.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
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.
Example 1 Program the divisor Latch for 300 baud. Assume Xin=1.8432MHz The Base Address: 0x3F8 0RX_TX / Divisor.low 1IER: Interrupt Enable Reg. / Divisor.high.
8255:Programmable Peripheral Interface
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
8251 USART.
DEPARTMENT OF ELECTRONICS ENGINEERING
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
8255 Programmable Peripheral Interface
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Serial mode of data transfer
Diagram of microprocessor interface with IO devices
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
The 8255 Programmable Peripheral Interface
Serial Communication: RS-232 (IEEE Standard)
E3165 DIGITAL ELECTRONIC SYSTEM
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Computer Organization and Design
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255.
Serial Communication Interface: Using 8251
8251A UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER TRANSMITTER
Parallel communication interface 8255
Programmable Peripheral Interface
Programmable Peripheral Interface
The Programmable Peripheral Interface (8255A)
Presentation transcript:

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design

11-2 Overview of 8088 I/O System  65,536 possible I/O ports  Data transfer between ports and the processor is over data bus  8088 uses address bus A[15:0] to locate an I/O port  AL (or AX) is the processor register that takes input data (or provide output data) I/O Data bus Address bus A[15:0] AL AX 8088

Port Addressing Space  Addressing Space FFFF F8 00FF Accessed directly by instructions Accessed through DX  Accessing directly by instructions IN AL, 80H IN AX, 6H OUT 3CH, AL OUT 0A0H, AX  Accessing through DX IN AL, DX IN AX, DX OUT DX, AL OUT DX, AX

11-4 Input Port Implementation 8088 Data Bus Address bus Decoder Input Gating device Other control signals — The outputs of the gating device are high impedance when the processor is not accessing the input port — When the processor is accessing the input port, the gating device transfers input data to CPU data bus — The decoding circuit controls when the gating device has high impedance output and when it transfers input data to data bus

11-5 Input Port Implementation  Circuit Implementation — Assume that the address of the input port is 9CH Data busInput data Tri-state buffer CE RDIO/M A7 A6 A5 A4 A3 A2 A1 A0

11-6 Output Port Implementation  Circuit Implementation — Assume that the address of the output port is 9CH Data busOutput dataLatch CLK WRIO/M A7 A6 A5 A4 A3 A2 A1 A0

11-7 A Reconfigurable Port Decoder 1Vcc

11-8 Direct I/O v.s. Memory-Mapped I/O Memory addressing space I/O addressing space I/O Memory addressing space FFFFF 0000 FFFF FFFFF Direct I/O Memory-mapped I/O  Direct I/O: I/O addresses are separated from memory address — Advantage: Do not take memory addressing space — Disadvantage: Use only AL or AX transferring data  Memory-mapped I/O: I/O ports are treated as memory locations — Advantage: Accessing I/O ports is like accessing memory locations Can use other instructions to access I/O ports — Disadvantage: Take memory addressing space

Programmable Peripheral Interface Data bus 8088 D[7:0] A0 A1 RD WR RESET CS Control port PA[7:0] PB[7:0] PC[7:0] A7 A6 A5 A4 A3 A2 IO/M A1 A0 Port PA PB PC Control

11-10 Programming 8255  8255 has three operation modes: mode 0, mode 1, and mode Command register Mode set flag 0: disabled 1: enabled Mode select A 00: mode 0 01: mode 1 1x: mode 2 Port A 0: out 1: in Port C (C4-C7) 0: out 1: in Mode select B 0: mode 0 1: mode 1 Port B 0: out 1: in Port C (C0-C3) 0: out 1: in

11-11 Programming 8255  Mode 0: — Ports A, B, and C can be individually programmed as input or output ports — Port C is divided into two 4-bit ports which are independent from each other  Mode 1: — Ports A and B are programmed as input or output ports — Port C is used for handshaking PA[7:0] STB A IBF A INTR A PC3 PC5 PC4 PB[7:0] STB B IBF B INTR B PC0 PC1 PC2 PC6, PA[7:0] OBF A ACK A INTR A PC3 PC6 PC7 PB[7:0] OBF B ACK B INTR B PC0 PC1 PC2 PC4,

11-12 Programming 8255  Mode 2: — Port A is programmed to be bi-directional — Port C is for handshaking — Port B can be either input or output in mode 0 or mode 1 PA[7:0] OBF A ACK A INTR A PC4 PC6 PC7 STB A IBF A PC0 PC3 PC PC0 PB[7:0] In Out Mode 0 STB B OBF B IBF B ACK B INTR B Mode 1 1.Can you design a decoder for an 8255 chip such that its base address is 40H? 2.Write the instructions that set 8255 into mode 0, port A as input, port B as output, PC0-PC3 as input, PC4-PC7 as output ?

11-13 Serial Data Transfer  Asynchronous v.s. Synchronous — Asynchronous transfer does not require clock signal. However, it transfers extra bits (start bits and stop bits) during data communication — Synchronous transfer does not transfer extra bits. However, it requires clock signal Frame Start bit B0B1B2B3B4B5B6 Parity Stop bits Asynchronous Data transfer Synchronous Data transfer clk data B0B1B2B3B4B5 data

USART Interface A7 A6 A5 A4 A3 A2 A1 IO/M D[7:0] RD WR A0C/D CLK TxC RxC TxD RxD 8251 RS232

11-15 Programming 8251  8251 mode register Mode register Number of Stop bits 00: invalid 01: 1 bit 10: 1.5 bits 11: 2 bits Parity 0: odd 1: even Parity enable 0: disable 1: enable Character length 00: 5 bits 01: 6 bits 10: 7 bits 11: 8 bits Baud Rate 00: Syn. Mode 01: x1 clock 10: x16 clock 11: x64 clock

11-16 Programming 8251  8251 command register EHIRRTSERSBRKRxEDTRTxE command register TxE:transmit enable DTR:data terminal ready RxE:receiver enable SBPRK:send break character ER:error reset RTS:request to send IR:internal reset EH:enter hunt mode

11-17 Programming 8251  8251 status register DSR SYNDE TFEOEPE TxEMPTY RxRDYTxRDY status register TxRDY:transmit ready RxRDY:receiver ready TxEMPTY:transmitter empty PE:parity error OE:overrun error FE:framing error SYNDET:sync. character detected DSR:data set ready

11-18 Simple Serial I/O Procedures  Read start Check RxRDY Is it logic 1? Read data register* end Yes No * This clears RxRDY  Write start Check TxRDY Is it logic 1? Write data register* end Yes No * This clears TxRDY