ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9.

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7.
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
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Programmable Interval Timer
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) Lecturer: Hui.
Microprocessor and Microcontroller
I/O Unit.
Processor System Architecture
DIRECT MEMORY ACCESS CS 147 Thursday July 5,2001 SEEMA RAI.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
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
The 8253 Programmable Interval Timer
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 7.
MICROPROCESSOR INPUT/OUTPUT
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
Port Mapped I/O.
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.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Internal Input/Output Devices (I/O Subsystems)
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Direct Memory Access (DMA) Microprocessors I -1. Topics to be discussed  Basic DMA Concept Basic DMA Concept  DMA pins and timing DMA pins and timing.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Programmable Peripheral Interface Parallel port Interface 8255
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
PPI-8255.
Programmable Interrupt Controller (PIC)
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 8.
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8255:Programmable Peripheral Interface
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
8255 Programmable Peripheral Interface
PROGRAMMABLE PERIPHERAL INTERFACE -8255
UNIT – Microcontroller.
Direct Memory address and 8237 dma controller LECTURE 6
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
DMA CONTROLLER 8257 Features: It is a 4-channel DMA.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interfacing Memory Interfacing.
Number Representations and Basic Processor Architecture
PROGRAMMABLE PERIPHERAL INTERFACE -8255
8255.
Parallel communication interface 8255
Programmable Peripheral Interface
Programmable Peripheral Interface
The Programmable Peripheral Interface (8255A)
Presentation transcript:

ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9

Topics I/O port basics I/O ports with MSI devices  P compatible devices Address decoding for isolated and memory-mapped I/O Conditional I/O 80C188EB integrated I/O unit 82C55A PPI

I/O Port Basics I/O subsystems allow CPU to interact with the outside world Input, output, and combined I/O blocks Input ports Byte Word Output ports Byte Word Unconditional I/O

MSI I/O Ports Medium Scale Integration (MSI) circuits are available to construct ports Simple byte input ports can be constructed from… Octal buffers Octal registers Simple byte output ports can be constructed from octal latches

 P Compatible I/O Devices Complex I/O devices typically require complex interface and control logic  P compatible I/O devices have the necessary logic built in to the device itself Interface designed to be reasonably compatible with many microprocessor buses Need to add decoding/selection logic Examples Device controllers Used to control complex I/O devices (LCD, disk drives, etc.) Generic model

I/O Address Decoding I/O address decoding determines the logical location of the I/O device Isolated I/O Memory-mapped I/O Input vs. output ports Same address does not guarantee same function! Device select pulses Wait states Using the CSU with I/O devices

I/O Address Decoding (cont.) PAL/PLA Decoders Nonspecific I/O strobes /IOW /IOR Linear selection Conventional decoders Device select strobes Cascading

Conditional I/O Conditional vs. unconditional transfers Hardware example Polling Overhead Flags / semaphores Wait loops Timeouts Software exercise Possible race condition

80C188EB Integrated I/O Unit Port 1 Functions Port 2 Functions Bidirectional pin structure Synchronizer Programming Port Control Register Port Direction Register Port Data Latch Register Port Pin State Register

82C55A Programmable Peripheral Interface (PPI) LSI device providing 24 bits of I/O Logical organization Block diagram Software configurable ports Three modes of operationmodes  Mode 0 Basic Input/Output ports  Mode 1 Strobed Input/OutputInputOutput  Mode 2 Bidirectional data bus Bit set/reset capability

Real-World Example Interface the MAX154 8-bit, 4-channel ADC to the 80C188EB Hardware interface  Use /GCS0 at I/O address 1000h (CSU)CSU  Poll conversion status using Port 2.Port 2 P2CON / P2DIR / P2LTCH / P2PIN P2CONP2DIRP2LTCHP2PIN Software interfacing  Write a procedure that does an ADC conversion and then reads the ADC value using mode 1  Input: AL = ADC input channel to use (0-3)  Output: ADC value returned in AL What about mode 0? Timing?

Byte Input Port Example

Byte Output Port Example

74HC540/541

74HC573

74HC574

MAX1200

AD7865

Generic Device Controller (Fig )

Hitachi HD44780U LCD Controller

Port 1 Functions

Port 2 Functions

Bidirectional Port Pin

Port Control Register

Port Direction Register

Port Data Latch Register

Port Pin State Register

Conditional I/O Exercise Write a procedure to read data from an input device like the hardware example. Assume that the flag is a READY signal (active high). If the device does not become ready after 1 million polling attempts, return with the carry flag set, otherwise, return with the data in AL and the carry flag cleared.

82C55A Block Diagram

82C55A Modes of Operation

82C55A Mode 1 Input

82C55A Mode 1 Output

Chip- Select Start Reg

Chip- Select Stop Register - Part 1

Chip- Select Stop Register - Part 2

Conditional I/O Example

Synchronization