Basic I/O Interface A Course in Microprocessor

Slides:



Advertisements
Similar presentations
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.
Advertisements

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
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
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Lecture 07: 8255 PPI Chip. The 80x86 IBM PC and Compatible Computers Chapter PPI Chip PPI: Programmable Parallel Interface (so it is an I/O.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
- Microprocessor - Programming 8255 Mode 1 (slide ) Prepared by: Mahmoud Abdullah Mahdi (33)
Microprocessor and Microcontroller
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
kashanu.ac.ir Microprocessors 10-1 IO Devices Stepper Motors DAC, ADC, PPI Lec note 10.
Chapter 10 Input/Output Interface Circuits and LSI Peripheral Devices
INPUT-OUTPUT ORGANIZATION
Microcomputer & Interfacing Lecture 2
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
CPU Interfacing Memory.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
8086/8088 Hardware Specifications A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
The 8253 Programmable Interval Timer
Port Mapped I/O.
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.
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.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Input/Output Interface Circuits and LSI Peripheral Devices
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.
Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Applications of PPI A/D - Temperature Sensor. Analog to Digital.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
Input / Output (Peripheral) Interfacing
Programmable Peripheral Interface Parallel port Interface 8255
8254 Timer.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
PPI-8255.
EE3721 Computer System Principles
Programmable Interrupt Controller (PIC)
I/O AND THE 8255; ISA BUS INTERFACING
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Basic I/O Interface Fixed Address Variable Address
Basic LED Interface.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
1 Microprocessors CSE – 341 Basic I/O Interfacing.
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.
8255:Programmable Peripheral Interface
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
8255 Programmable Peripheral Interface
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255: Programmable Peripheral Interface (PPI)
Diagram of microprocessor interface with IO devices
The 8255 Programmable Peripheral Interface
8085 Microprocessor Architecture
E3165 DIGITAL ELECTRONIC SYSTEM
Interfacing Memory Interfacing.
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255.
Parallel communication interface 8255
Programmable Peripheral Interface
8085 Microprocessor Architecture
82C55 Programmable Peripheral Interface
X1 & X2 These are also called Crystal Input Pins.
8259 Programmable Interrupt Controller
Programmable Peripheral Interface
8085 Microprocessor Architecture
The Programmable Peripheral Interface (8255A)
Presentation transcript:

Basic I/O Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia

Isolated and Memory-Mapped I/O Isolated I/O The addresses for isolated I/O devices are separate from the memory. Memory-Mapped I/O A memory-mapped I/O device is treated as a memory location in the memory map. (Figure of Isolated I/O and Memory-Mapped I/O)

I/O Instructions Performed by using IN, INS, OUT and OUTS instructions There are Fixed/Direct I/O address (8-bit I/O address) and Variable I/O address (16-bit I/O address) 16-bit I/O address MOV DX,1F00H MOV AL,0FFH OUT DX,AL 8-bit I/O address MOV AL,0FFH OUT AB,AL

I/O Port Address Decoding I/O port address decoding = memory address decoding The main difference between memory decoding and isolated I/O decoding is the number of address pins connected to the decoder. Another difference is that we use the IORC and IOWC to activite I/O devices for a read or a write operation. On earlier versions of the microprocessor, IO/M =1 and RD or WR are used to activate I/O devices

I/O Port Address Decoding (cont’d) On the newest versions of the microprocessor, the M/IO = 0 and W/R are used to activate I/O devices. Decoding 8-Bit I/O Address The fixed I/O instruction uses an 8-bit I/O port address that appears on A15-A0 as 0000H - 00FFH. Fig. 10-6 illustrates a 74ALS138 decoder that decodes 8-bit I/O ports F0H-F7H.

I/O Port Address Decoding(cont’d) 8-and 16-Bit I/O Ports Fig. 10-10 illustrates a system that contains two different 8-bit output devices located at 8-bit I/O address 40H and 41H. Fig. 10-11 illustrates a 16-bit input device connected to function at 8-bit I/O addresses 64H and 65H.

The Programmable Peripheral Interface The 82C55 programmable peripheral interface (PPI) : (see Fig. 10-13) 24 pins for I/O, programmable in groups of 12 pins (that are used in three separate modes of operation) Basic Description of the 8255 Its three I/O ports (labeled A,B, and C) are programmed in groups of 12 pins : Group A connections consist of port A (PA7-PA0) and the upper half of port C (PC7-PC4)

The Programmable Peripheral Interface (cont’d) Group B consists of port B (PB7-PB0) and the lower half of port C(PC3-PC0) The 82C55 is selected by its CS pin for programming, for reading or writing to a port. Register selection is accomplished through the A1 and A0 input pins, which select an internal register for programming or operation

The Programmable Peripheral Interface (cont’d) Table 10-2 shows the I/O port assignments used for programming and access to the I/O ports. Fig. 10-14 shows an 82C55 connected to the 80386SX so that it functions at 8-bit I/O port address C0H (port A), C2H (port B), C4H (port C) and C6H(command register) uses the low bank of the 80386SX IO map RESET input to the 82C55 initializes the device whenever the microprocessor is reset.

The Programmable Peripheral Interface (cont’d) Programming the 82C55 is easy to program (see Fig. 10-15) notice that bit position 7 selects either command byte A or command byte B : Command byte A programs the function of group A & B Command byte B sets (1) or reset (0) bits of port C only if the 82C55 is programmed in mode 1 or 2

The Programmable Peripheral Interface (cont’d) Group B pins (port B and the lower part of port C) are programmed as either input or output pins. Group B can operate in either mode 0 or mode 1 Group A pins (port A and the upper part of port C) are also programmed as either input or output pins. The difference is that group A can operate in modes 0, 1, and 2

The Programmable Peripheral Interface (cont’d) Mode 0 operation causes the 82C55 to function as either a buffered input device or as a latched output device Fig. 10-16 shows the 82C55 connected to a set of eight 7-segment LED displays (see also Example 10-9)

The Programmable Peripheral Interface (cont’d) Mode 1 Strobed Input causes port A and /or port B to function as latching input devices this allows external data to be stored into the port until the microprocessor is ready to retrieve it Port C is also used in mode 1 operation for control or handshaking signals that help operate either or both port A and port B as strobed input ports (see Fig. 10-21)

The Programmable Peripheral Interface (cont’d) The strobed input port captures data from the port pins when the strobe (STB) is activated IBF (input buffer full) and INTR (interrupt request) signals. An excellent example of a strobed input device is a keyboard (see Example 10-12) Mode 1 Strobed Output Fig. 10-23 illustrates the internal configuration and timing diagram of 82C55 when it is operated as a strobed ouput device under mode 1

The Programmable Peripheral Interface (cont’d) Whenever data are written to a port programmed as a strobed output port, the OBF (output buffer full) signal becomes a logic 0 to indicate that data are present in the port latch (study Fig. 10-24 and Example 10-13) Mode 2 Bidirectional Operation in mode 2, only group A is allowed (see Fig. 10-25) The Bi-directional Bus is used by referencing port A with the IN and OUT instructions

The Programmable Peripheral Interface (cont’d) To transmit data the program first tests the OBF signal to determine whether the output buffer is empty sent to the output buffer via the OUT instruction (see Example 10-14) To receive data, the IBF bit is tested with software to decide if data have been strobed into the portIf IBF = 1, then data are input using the IN instruction the external interface sends data into the port using the STB signal (STB active IBF signal = logic 1 dan data at port A are held inside the port in a latch)

The Programmable Peripheral Interface (cont’d) IBF bit is cleared and the data in the port are moved into AL, when the IN instruction executes (study Example 10-15) The INTR (interrupt request) pin can be activated from both directions of data flow through the bus Fig. 10-26 shows a graphical summary of the three modes of operation for the 82C55

ADC and DAC Converters Are used to interface the microprocessor to the analog world The DAC0830 (see Fig. 10-48 & 10-49) is connected to the microprocessor as illustrated in Fig. 10-50 Study The ADC0804 Study Fig. 10-56 dan Example 10-28

Pin-out and Internal Structure of DAC0830