B ASIC I NTERFACING C ONCEPTS ( CONT.) L ECTURE 2 Gunjeet Kaur Dronacharya Group of institutions.

Slides:



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

Part 4: combinational devices
Parul Polytechnic Institute
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 4.
Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.
Memory & IO Interfacing to CPU
Programmable Interval Timer
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Computer Science 210 Computer Organization Clocks and Memory Elements.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
The 8085 Microprocessor Architecture
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Latches Section 4-2 Mano & Kime. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
Recap: Registers A register is a single byte (or word) memory element. Once written to (clocked) it remembers the input byte and outputs the same number.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
TK Memory Interface DR MASRI AYOB. 2 Requirement and memory structure There are two types of memory: –RAM: read and write –ROM: read only Figure.
TK I/O Peripherals Interface DR MASRI AYOB.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
SAP1 (Simple-As-Possible) Computer
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Computer Architecture
The 8253 Programmable Interval Timer
Computer Architecture Lecture 8 by Engineer A. Lecturer Aymen Hasan AlAwady 30/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
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,
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.
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.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Khaled A. Al-Utaibi  Memory Interface and the 3 Buses  Interfacing the 8088 Processor  Interfacing the 8086 Processor  Interfacing.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
Computer Organization CSC 405 (VSC) Very Simple Computer.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
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.
Decoders. A decoder is multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs. Input code with fewer bits than the.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Basic LED Interface.
Ch5. 기본 컴퓨터의 구조와 설계.
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
INTRODUCTION TO MICROPROCESSOR. Do you know computer organization? Arithmetic Logic Unit Memory Output Input Control Unit.
8255:Programmable Peripheral Interface
8085 Microprocessor: Architecture & Support Components.
Microprocessors 3 Buses, Addresses and Machine Cycles 1 Modified April 2011 ©Paul R. Godin prgodin gmail.com.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Computer Organization
Computer Science 210 Computer Organization
Class Exercise 1B.
8255: Programmable Peripheral Interface (PPI)
The 8085 Microprocessor Architecture
Interfacing I/O Devices
The 8085 Microprocessor Architecture
Computer Science 210 Computer Organization
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Chapter 11 Sequential Circuits.
Kanwaljeet Singh, Lovely Professional University.
Interfacing Memory Interfacing.
Computer Science 210 Computer Organization
Parallel communication interface 8255
Architecture & Support Components
The 8085 Microprocessor Architecture
Prof. Nitin Ahire XIE, Mahim
Microprocessor I 7/18/2019.
A CCESSING I/O DEVICES. I/O devices accessed through I/O interface. Requirements for I/O interface: –CPU communication –Device communication –Data buffering.
Presentation transcript:

B ASIC I NTERFACING C ONCEPTS ( CONT.) L ECTURE 2 Gunjeet Kaur Dronacharya Group of institutions

D EVICE S ELECTION AND D ATA T RANSFER Steps are summarized as: ● Decode the address bus to generate unique pulse corresponding to device address on the bus called device address bus or I/O address pulse. ● Combine the device address pulse with the control signal to generate a device select pulse(I/O select) that is generated only when both signals are asserted. ● Use the I/O select pulse to activate interfacing device(I/O port). Figure: Block Diagram of IO interface

* D EVICE S ELECTION AND D ATA T RANSFER Figure: Practical decoding circuit for the output device with address 01H ● Address lines A7-A0 are connected to 8-input NAND gate that functions as decoder (A0-Directly connected; A7-A1 with inverters). ● When Address bus is carries 01H, gate G1 generated a low pulse otherwise output remain high. ● G1 and G2 are combined to generate I/O select pulse which clocks data (AC content on data bus available for few microsecond) into latch for display by LEDs.

A BSOLUTE V S P ARTIAL D ECODING ● All eight lines are decoded to generate one unique pulse called absolute decoding like device will be selected only with the address 01H(good design practice). ● To minimize the cost, the output port can be selected by decoding some address lines called partial decoding (device has multiple addresses). ● A1 and A0 are at don’t care logic level so output port can access by address 00, 01, 02 and 03(commonly used techniques in small systems). Partial Decoding Output Latch with Multiple Addresses

I NPUT I NTERFACING Decode logic for a Dip-Switch Input Port ● Address lines are high(FFH), output of NAND gate goes low which is combined by control signal IOR’ which generates Device Select Pulse. ● Device select pulse enable Tri-state Buffer (used as interfacing port). Data flow from keys to the AC.

I NTERFACING I/O U SING D ECODERS ● First Step is to decode the address bus using 3x8 Decoder and 4-input NAND gate. A0 to A2 are used as input and remaining A3 to A7 are used to enable decoder. ● Second step is to decode address with appropriate control signal (IOR’/IOW’) output will generate select pulse. ● Third step is to use this pulse to enable I/O port (pulse enables LED latch with the output port address F8H similarly input buffer is enable with address FAH).

M EMORY M APPED I/O ● Instead of using 8-bit address, the full 16-bits of the address bus must be used. ● Instead of using IORD and IOWR, use MEMR and MEMW. ● To transfer data Memory Related Instructions such as LDA(Load AC Direct transfers data from memory to Accumulator), STA (Store contents of AC into Memory)are used. ● IN STA 8000H output device instead of a memory Register is connected to the address, so that accumulator contents will be transferred to output device.

M EMORY M APPED I/O IN LDA 8000H accumulator receives data from input device rather than Memory. Execution of Memory Related data Transfer Instruction STA 8000H

F LOW C HART S YMBOLS

F LOW C HART S TEPS