Summer 2003 Lecture 21 07/15/03

Similar documents
PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1

Lecture-50 Intel 8255A: Programming and Operating Modes

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A

MICROPROCESSOR B.Tech. th ECE

Lecture-55 System Interface:

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

Week 7. Input/Output Interface Circuits and LSI Peripheral Devices

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li

These three counters can be programmed for either binary or BCD count.

The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port

Design with Microprocessors

Lecture-53 Mode 2: (Strobed Bidirectional bus I/O) This functional configuration provides means for communicating with a peripheral device on a

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016

The MC9S12 address, data and control buses The MC9S12 single-chip mode memory map Simplified write/read cycle. Address, Data and Control Buses

Chapter NINE 8088,80286 MICROPROCESSORS AND ISA BUS


CHAPTER: 3 PROGRAMMABLE PERIPHERAL INTERFACE & ELECTROMECHANICAL DEVICES INTERFACING

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

The 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14

Chapter 13 Direct Memory Access and DMA-Controlled I/O

Unit 5 DOS INTERRPUTS

Architecture of 8085 microprocessor

< W3150A+ / W5100 Application Note for SPI >

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

The Purpose of Interrupt

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

8051 Microcontroller

Lab #2: Building the System

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

Overview of Intel 80x86 µp

INTERFACING THE ISCC TO THE AND 8086

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Microprocessors and Microcontrollers (EE-231)

Unit DMA CONTROLLER 8257

CPE/EE 421 Microcomputers

Topics. Interfacing chips

1. Internal Architecture of 8085 Microprocessor

Embedded Applications. COMP595EA Lecture03 Hardware Architecture

Exercise 1: Static Control of a Data Bus

CPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview

EE 3170 Microcontroller Applications

Address connections Data connections Selection connections

The D igital Digital Logic Level Chapter 3 1

Summer 2003 Lecture 18 07/09/03

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B

7/19/2013. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to: Chapter Objectives 12 1 BASIC INTERRUPT PROCESSING

Microprocessor Architecture. mywbut.com 1

Chapter 12: Interrupts

UNIT - II PERIPHERAL INTERFACING WITH 8085

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

UART Register Set. UART Master Controller. Tx FSM. Rx FSM XMIT FIFO RCVR. i_rx_clk o_intr. o_out1 o_txrdy_n. o_out2 o_rxdy_n i_cs0 i_cs1 i_ads_n

CSCE 312 Lab manual. Lab 4 - Computer Organization and Data Path Design. Instructor: Dr. Yum. Fall 2016

INTERFACING INTERFACING. Richa Upadhyay Prabhu. NMIMS s MPSTME February 25, 2016

Lecture-9 Intel 8085 Microprocessor It is a 40-pin DIP(Dual in package) chip, base on NMOS technology, on a single chip of silicon.

8086 Hardware Specification

EE4380 Microprocessor Design Project

The Memory Component

9. PERIPHERAL CHIPS 9a

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

Configurable UART ver 2.10

ECE 485/585 Microprocessor System Design

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

Lecture-51 INTEL 8259A Programmable Interrupt Controller

MICROPROCESSOR TECHNOLOGY

Chapter TEN. Memory and Memory Interfacing

Registers Format. 4.1 I/O Port Address

EET2411 DIGITAL ELECTRONICS. A device or electrical circuit used to store a single bit (0 or 1) Ex. FF.

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

COMP3221: Microprocessors and. and Embedded Systems. Overview. Computer Buses. Bus Oriented Architecture

Allmost all systems contain two main types of memory :

Using MSI Logic To Build An Output Port

13. IN PORT: This is an ALP statement. PORT is the symbolic name given to 8-bit address of the input device available as a 2 nd byte of the

Interfacing an Intel386 TM EX Microprocessor to an CAN Controller

Features: 3 8-bit IO ports PA, PB, PC. PA can be set for Modes 0, 1, 2. PB for 0,1 and PC for mode 0 and for BSR. Modes 1 and 2 are interrupt driven.

Lab 16: Data Busses, Tri-State Outputs and Memory

Ch 4. Standard Single Purpose Processors: Peripherals

1. state the priority of interrupts of Draw and explain MSW format of List salient features of

Configurable UART with FIFO ver 2.20

EE251: Thursday November 30

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

82C54 CHMOS PROGRAMMABLE INTERVAL TIMER

TECHNICAL PAPER Interfacing the Byte- Wide SmartVoltage FlashFile Memory Family to the Intel486 Microprocessor Family

To Interface The 8085 Microprocessor

TM ~.0 00 COMPUTER INTERFACE Z80 S-100. Philip J. Lucas. February 27, 1978

UNIT III. 2. Non-maskable interrupts. 3. Software interrupt. 4. Internal interrupt

8086 Interrupts and Interrupt Responses:

82C55. Programmable Peripheral Interface. Interfacing Part III

Introduction to Microcontrollers

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

PC Interrupt Structure and 8259 DMA Controllers

INPUT-OUTPUT ORGANIZATION

RA8835. Dot Matrix LCD Controller Specification. Version 1.2 June 1, RAiO Technology Inc. Copyright RAiO Technology Inc.

EECS150 - Digital Design Lecture 17 Memory 2

MICROPROCESSOR TECHNOLOGY

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1

UMBC. 80C86/80C88: CMOS version draws 10mA with temp spec -40 to 225degF. 450mV while input max can be no higher than 800mV). 0 0.

RA8835A. Dot Matrix LCD Controller Specification. Version 1.1 September 18, RAiO Technology Inc. Copyright RAiO Technology Inc.

I/O Organization John D. Carpinelli, All Rights Reserved 1

EE251: Tuesday December 4

Transcription:

Summer 2003 Lecture 21 07/15/03 Simple I/O Devices Simple i/o hardware generally refers to simple input or output ports. These devices generally accept external logic signals as input and allow the CPU to read the value, or accept values from the CPU and hold them as output logic levels. A simple output port can be implemented using a latch circuit or a flip-flop circuit. Latches and flip-flops have data inputs, data outputs, and gate or clock inputs. They sample their inputs when the gate or clock signal is true, and hold that value until the next time the gate or clock is asserted. Different devices can trigger at different times. Examples of different triggering is the NMI which is edge-sensitive, and the INT which is levelsensitive. Generally, the latches have a level sensitive gate input and flip-flops have an edge sensitive clock input. A latch with a level sensitive gate input will continually sample its inputs and pass them through to the output as long as the gate input is asserted. When the gate input is de-asserted, the last input will be held on the outputs until then next time that the gate is asserted. A flip-flop with an edge sensitive clock will sample the inputs and hold them on its outputs whenever the active edge (either rising or falling edge) occurs. The 74LS373 and 74LS374 are two chips commonly used to implement simple output ports. The 74LS373 is an 8 bit wide latch with an active high, level sensitive gate input. The 74LS374 is an 8 bit wide D flip-flop with a rising edge sensitive clock input. Each of these devices has tri-state outputs and so each also has an active low output enable to enable the tri-state output drivers. The following symbols can be used to represent these devices. The and pins represent an 8 bit wide data bus in and out of the devices. The G input of the 74LS373 is the active high gate input. The input signal with the caret

G OE OE 74LS373 74LS374 A simple input port can be implemented using nothing more than a tri-state buffer chip. It is necessary to use a tri-state buffer, as the outputs of the buffer need to be connected to the data bus. It is essential that the buffer output only appear on the data bus when a read is being performed at the port address for the buffer. Otherwise, bus contention would occur between the buffer chip and any other device attempting to place data on the bus. A common tri-state buffer is the 74LS244. This is chip contains two sets of four tri-state buffers with a common output enable. If the two output enables are tied together, it can be used as an 8 bit wide buffer with active low enable.

The following symbol can be used for the 74LS244. The and pins represent an 8 bit wide data bus in and out of the chip. The two enables, OE1 and OE2 are active low enables. OE1 enables output bits 0-3 and OE2 enables output bits 4-7. OE1 OE2 74LS244 Complex I/O Devices There are many peripheral chips available that implement more complex i/o functions. For example, the 16550 UART used in most IBM PC type computers performs: parallel to serial data conversion, serial to parallel data conversion, FIFO buffering of received data, and baud rate (data clock rate) generation in a single chip. As another example, the 8254 provides three 16 bit programmable timers that can be independently configured to work in any one of five different timing modes. Although the internal operation of these devices can be quite complex, they are generally relative simple to interface to a computer system bus.

These devices generally have several internal registers, and so will have some number of address inputs used to select the specific register being read from or written to. There will be a chip select signal of some sort that is used to enable the device to respond to its bus interface inputs. There will usually be read and write strobe inputs that are used to read from or write to the device. Most manufacturers that produce microprocessor chips will also have a line of peripheral chips that are designed to work with that manufacturers microprocessors. These chips will have inputs that are compatible with the bus timing generated by the microprocessor. It is generally very simple to hook up peripherals within a product family line, as they are designed to work together. It is sometimes more difficult when trying to use a peripheral chip from one vendor with a microprocessor from a different manufacturer as the bus timings may be different and incompatible. One example of a peripheral chip within the Intel 8088 family product line is the 8255 Programmable Peripheral Interface. This device has three 8 bit parallel input/output ports that can be configured to work in one of several modes, a control port that is used to configure the operating modes of the three data ports, four internal registers, it requires two address lines to select one of the ports, an active low chip select line, an active low RD (read) and WR (write) inputs, HTTP://drew.hickmans.net/8255a.pdf

The following symbol can be used to represent the 8255: A1 A0 RD WR CS Port A Port B Port C 8255 A1 A0 RD WR CS READ Op. 0 0 0 1 0 Port A -> Data Bus 0 1 0 1 0 Port B -> Data Bus 1 0 0 1 0 Port C -> Data Bus 1 1 0 1 0 Ctrl Word -> Data Bus WRITE Op. 0 0 1 0 0 Data Bus -> Port A 0 1 1 0 0 Data Bus -> Port B 1 0 1 0 0 Data Bus -> Port C 1 1 1 0 0 Data Bus -> Ctrl Word DISABLE FUNC. X X X X 1 Data Bus -> Three State X X 1 1 0 Data Bus -> Three State