Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.

Slides:



Advertisements
Similar presentations
Parul Polytechnic Institute
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
DMA Controller (8237 Programming Examples)
Dr A Sahu Dept of Comp Sc & Engg. IIT Guwahati I/O + Timer 8155 I/O + Timer 8255 I/O 8255 I/O 8253/54 Timer 8253/54 Timer 2 Port (A,B), No Bidirectional.
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.
Programmable Interval Timer
8253/54 Timer Section /54 Timer Description and Initialization
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
The 8085 Microprocessor Architecture
Microprocessor and Microcontroller
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
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
Khaled A. Al-Utaibi  8086 Pinout & Pin Functions  Minimum & Maximum Mode Operations  Microcomputer System Design  Minimum Mode.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
SAP1 (Simple-As-Possible) Computer
ENEE 440 Chapter Timer 8254 Register Select The 8254 timer is actually 3 timers in one. It is an upgraded version of the 8253 timer which was.
8253 TIMER. Engr 4862 Microprocessors 8253 / 8254 Timer A.k.a. PIT (programmable Interval Timer), used to bring down the frequency to the desired level.
PIT: Programmable Interval Timer
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
The 8253 Programmable Interval Timer
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.
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Timers.
Minimum System Requirements Clock Generator Memory Interfacing.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
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.
Computer Architecture Lecture 6 by Engineer A. Lecturer Aymen Hasan AlAwady 1/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
PPI-8255.
Programmable Interrupt Controller (PIC)
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8255:Programmable Peripheral Interface
8085 Microprocessor: Architecture & Support Components.
Gandhinagar Institute of Technology
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
8255 Programmable Peripheral Interface
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Diagram of microprocessor interface with IO devices
Programmable Interval Timer
The 8255 Programmable Peripheral Interface
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
8254 Timer and Counter (8254 IC).
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255.
Parallel communication interface 8255
Timers.
Programmable Peripheral Interface
8085 Microprocessor Architecture
Programmable Peripheral Interface
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
8085 Microprocessor Architecture
Programmable Interval Timer
The Programmable Peripheral Interface (8255A)
Presentation transcript:

Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati

Programmable Interface device (Introduction) Requirement for programmable interface device Simple example configurable device Programmable Interface device 8155 – Block diagram – Address diagram – Interfacing LED using Timer – Modes of timer – Square wave generation using 8155 interfaced timer Next class (8055 Handshake & Interrupt mode)

Designed to perform various I/O functions Device can be setup to perform specific functions – By writing instruction to a internal register Can be changed during execution of the program Devices are flexible, versatile & economical

Functions are determined by software instructions Can be viewed as multiple I/O device Perform many functions – Time delay, counting, interrupts Consists of many devices on a chip, interconnect through a common Bus Software programmable approach of I/O reduce design time

I/P & O/P Regs: A group of latches to hold data Tri-State Buffer Capability of Bidirectional data flow Handshake & Interrupt signal Control Logic Chip Select Logic Interrupt control logic

Configurable Device Example Latch Direction A B DirectionChip Select

Program MVIA,01 H ; Set Do=1, D1-D7==0 OUTFFH;Write in control register MVI A,BYTE1;Load data bye OUTFEH; Send Data out 7A 0A DIR G: Enable 7B 0B Control Reg Control Reg D0 D1 D7 A7 A6 A5 A4 A3 A2 A1 A0

2kbits static RAM 256x8 2 programmable 8 bit I/O ports 1 programmable 6 bit I/O port 1 programmable 14 bit binary counter/timer Internal address latch to Demux AD0-AD7, using ALE line

RAM Port A Port A Port B Port B Port C Port C Timer MSB LSB Timer MSB LSB PA0-PA7 PB0-PB7 PC0-PC5 Timer Out Reset in RD WR ALE CE IO/M AD0-AD Timer CLK

3 to 8 Decoder CWR Port A Port A Port B Port B Port C Port C Timer MSB LSB Timer MSB LSB Latch Clock for timer PA0-PA7 PB0-PB7 PC0-PC5 Timer Out A0 A1 A2 ALE AD0-AD7 A0-A7 D7-D CE b A2A1A0Port (ALE high, AD0=A0) 000Command /Status Register 001PA 010PB 011PC 100Timer LSB 101Timer MSB

3 to 8 Decoder 3 to 8 Decoder 0404 A13 A12 A11 A15 A14 A2 A1 A0 5V 3 to 8 Decoder RAM Con trol CWR Port A Port A Port B Port B Port C Port C Timer MSB LSB Timer MSB LSB Latch Clock for timer PA0-PA7 PB0-PB7 PC0-PC5 Timer Out Reset in RD WR A0A0 A1A1 A2A2 ALE CE IO/M AD0-AD7 A0-A7 D7-D0 20H 21H 22H 23H 24H 25H CS

3 to 8 Decoder RAM Con trol CWR Port A Port A Port B Port B Port C Port C Timer MSB LSB Timer MSB LSB Latch Clock for timer PA0-PA7 PB0-PB7 PC0-PC5 Timer Out Reset in RD WR A0 A1 A2 ALE CE IO/M AD0-AD7 A0-A7 D7-D H 21H 22H 23H 24H 25H

D0, D1: mode for PA and PB, 0=IN, 1=OUT D2, D3: mode for PC D4, D5: interrupt EN for PA and PB, 0=disable 1=enable D6, D7: Timer command: – 00: No effect – 01: Stop if running else no effect – 10: Stop after terminal count (TC) if running, else no effect – 11: Start if not running, reload at TC if running. Port C bits (D2, D3) D7D6D5D4D3D2D1D0 Timer CommandIEBIEAPCPBPA ALTD3D2PC5PC4PC3PC2PC1PC0 100IN 201OUT 310 STB A BF A INTR A 411STB B BF B INTR B STB A BF A INTR A

8155 PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 AD7 to AD0 IO/M b ALE RD b WR b RESET OUT IO/M b ALE RD b WR b RESET OUT 7 Seg LED Driver 7 Seg LED Driver 7 Seg LED Driver 7 Seg LED Driver 7 Seg LED Driver 7 Seg LED Driver 7 Seg LED Driver 7 Seg LED Driver 3 to 8 Decoder 3 to 8 Decoder 0404 A13 A12 A11 A15 A14 A2 A1 A0 5V

Port Address – Control Register=20H, Port A= 21H, Port B= 22H Control word: Program – MVIA,03 ; initialize Port A &B for O/P – OUT 20H – MVI A, BYTE1; Display BYTE1 at port A – OUT21H – MVIA, BYTE2; Display BYTE2 at port B – OUT22H D7D6D5D4D3D2D1D TimerNot Applicable Use for Port C Port B Output Port A Output

R S Gaonkar, “Microprocessor Architecture”, Chapter 14