Lecture-47 INTEL 8085A INTERRUPT STRUCTURE

Similar documents
T 2 : WR = 0, AD 7 -AD 0 (μp Internal Reg.) T 3 : WR = 1,, M(AB) AD 7 -AD 0 or BDB

Other Flip-Flops. Lecture 27 1

Chapter 2. Digital Circuits

UNIVERSITI TEKNOLOGI MALAYSIA

ELCT201: DIGITAL LOGIC DESIGN

Lecture 8: Sequential Logic

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

Asynchronous (Ripple) Counters

Registers and Counters

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Digital Circuits ECS 371

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

ELCT201: DIGITAL LOGIC DESIGN

EECS150 - Digital Design Lecture 10 - Interfacing. Recap and Topics

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

ECE 341. Lecture # 2

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

M(0) M(1) M(2) M(3) M(4) M(5) M(6) M(7)

Registers and Counters

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Synchronous Sequential Logic

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

DIGITAL REGISTERS. Serial Input Serial Output. Block Diagram. Operation

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

0 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 1 1 Stop bits. 11-bit Serial Data format

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Counter dan Register

Unit 11. Latches and Flip-Flops

Factory configured macros for the user logic

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

D Latch (Transparent Latch)

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Counters

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

Experiment # 4 Counters and Logic Analyzer

Sequential Design Basics

Sequential Logic Circuit

Why FPGAs? FPGA Overview. Why FPGAs?

Decade Counters Mod-5 counter: Decade Counter:

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

UC Berkeley CS61C : Machine Structures

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Sequential Logic and Clocked Circuits

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

CMSC 313 Preview Slides

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

Chapter 3 Unit Combinational

Flip-flops, like logic gates are defined by their truth table. Flip-flops are controlled by an external clock pulse. C

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

CHAPTER 4: Logic Circuits

Reaction Game Kit MitchElectronics 2019

CHAPTER 4: Logic Circuits

CS8803: Advanced Digital Design for Embedded Hardware

Sequential Logic Circuits

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

ELCT201: DIGITAL LOGIC DESIGN

Introduction to Microprocessor & Digital Logic

Experiment 8 Introduction to Latches and Flip-Flops and registers

ECE321 Electronics I

MC9211 Computer Organization

INTRODUCTION TO SEQUENTIAL CIRCUITS

EECS 373 Design of Microprocessor-Based Systems

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Sequential Circuits: Latches & Flip-Flops

Theory Lecture Day Topic Practical Day. Week. number systems and their inter-conversion Decimal, Binary. 3rd. 1st. 1st

Registers & Counters. BME208 Logic Circuits Yalçın İŞLER

Go BEARS~ What are Machine Structures? Lecture #15 Intro to Synchronous Digital Systems, State Elements I C

Logic Design II (17.342) Spring Lecture Outline

Logic Circuits. A gate is a circuit element that operates on a binary signal.

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Chapter 5 Flip-Flops and Related Devices

UNIT IV. Sequential circuit

The NOR latch is similar to the NAND latch

Engr354: Digital Logic Circuits

Chapter. Synchronous Sequential Circuits

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Module 4:FLIP-FLOP. Quote of the day. Never think you are nothing, never think you are everything, but think you are something and achieve anything.

CP316 Screencast mini-project

CHAPTER1: Digital Logic Circuits

(Refer Slide Time: 2:00)

Transcription:

Lecture-47 INTEL 8085A INTEUPT STUCTUE There are five interrupt inputs TAP, ST7.5, ST6.5, ST5.5 and INT. TAP is a non-maskable interrupt, that is, it cannot be disabled by an instruction. ST7.5, ST6.5, ST5.5 and INT are maskable interrupts i.e. they can be enabled or disabled through software. The 8085A interrupt structure is shown in fig.8.8. 6 TAP 1 D CLK CL Vector location 0024 ESET IN TAP ACKNOWLEDGE 7 ESET IN ST 7.5 8 D CLK ST 7.5 CL 7.5 ACKNOWLEDGE ST 6.5 8 M7.5 M6.5 S S 003C 0034 9 DI ESET IN Any Interrupt Acknowledge ST 5.5 10 INT S INTE F/F M5.5 MSE S 002C Get ST Code from external device Fig.8.8 Interrupt Structure of Intel 8085A

The following flip-flops are internally provided in the interrupt system of the μp. 1. 7.5 F/F: The ST7.5 signal is a LOW to HIGH transition active interrupt control signal input. The LOW to HIGH transition of the signal is registered in 7.5 flip-flop. Thus 7.5 F/F provides a seat for ST7.5 interrupt. It is normally ESET when the power is on. Only LOW to HIGH transition of ST7.5 sets this 7.5 flipflop to store interrupt. When M7.5 is ESET only then 7.5 signal can interrupt the processor. 7.5 flip-flop can be reset or cleared through the SIM instruction. It is for the user to make use of these facilities. 2. MSE F/F: A common chain MASK SET ENABLE (MSE) F/F is provided for all the interrupt masks. This flip-flop must be SET Mask set enable (MSE) flip-flop is also set. This flip-flop can be SET to 1 using SIM instruction for individually enabling or disabling the MASK doors. 3. INTE F/F: It is an interrupt enable flip-flop. When the power is turned ON for the first time, ESET IN signal goes LOW. It resets the processor 8085A. It also resets the INTE flip-flop so that the entire interrupt structure is disabled. The INTE F/F can be SET or ESET using instructions. When INTE F/F is ESET, except for TAP no other interrupt signal can interrupt the processor. When the INTE F/F is SET, the interrupt system is enabled and other interrupt control signals can be selectively enabled or disabled.

4. INTA F/F: This is an Interrupt acknowledge flip-flop used only for internal operation by the microprocessor. When first the power is ON this F/F is reset by the ESET IN control signal. Thereafter, whenever a valid interrupt is recognized by the μp it always resets the INTE F/F and then sets the INTA F/F before further action. Thus, further interrupts shall not be recognized, unless, user through instructions in the programme desires further recognition of the interrupt. 5. MASK F/F (M5.5, M6.5, M7.5): M7.5, M6.5 and M5.5 are mask flip-flops. These Mask F/Fs are used individually to MASK the interrupts ST5.5, ST6.5 and ST7.5 When these F/Fs are individually SET, then the corresponding interrupt is masked and the interrupt control signal in question can not interrupt the μp. These mask flip-flops are SET to 1 during power ON by ESET IN control signal going LOW. These mask flip-flops can be individually and selectively clear to 0 through SIM instruction (SET INTEUPT MASK) provided MSE F/F is also SET. MASK SET ENABLE F/F can be SET simultaneously using SIM instruction. TAP: TAP is a non-maskable vectored interrupt. It can interrupt the μp once the power is ON. Most μp interrupt inputs are level sensitive however, some are edge sensitive and others are both edge and level sensitive. The TAP input is both edge sensitive and level

sensitive interrupt. It means that TAP make a low to high transition and remain high until it is acknowledged. The positive edge of the TAP signal sets the D flip-flop. Because of the AND gate, however the final TAP also depends on a sustained high level TAP input. This is why the TAP is both edge and level sensitive. This also avoids false triggering caused by noise and transients. For example, suppose the 8085A is midway through an instruction cycle with another 2μsec to completion. If a 300nsec noise spike hits the TAP input, it will edge triggered but not level trigger the TAP interrupt because 8085A is still working on the current instruction cycle. Because the TAP is both edge and level sensitive the 8085A avoids responding to false TAPs. Since the TAP input has the highest priority, it is used for catastrophic events such as power failure, parity errors, and other events that require immediate attention. In the case of brief power failure it may be possible to save critical data. With parity errors, the data may be re-sampled or corrected before going on. Whenever TAP comes, μp completes the current instruction, pushes the program counter on the top of the slack and branches to fixed location 0024H. Once the 8085A microprocessor recognizes a TAP interrupt, it will send a high TAP ACKNOWLEDGE bit to the TAP F/F, thus clears the F/F so that even if TAP remains high it is not recognized again and again. It is further recognized only if it goes low, then high and remains high. The TAP F/F is also cleared when μp is being reset during which ESET IN goes low and clears the F/F.

ST7.5, ST6.5 & ST5.5: These are maskable vectored interrupts. These interrupts can be enabled or disabled through software. ST 7.5 has the highest priority among these & ST5.5 has the lowest priority. ST7.5 control signal input is a rising edge sensitive interrupt. Whenever LOW to HIGH transition occurs, it can interrupt the microprocessor. This LOW to HIGH transition is registered in second D flip-flop. The output of this flip-flop is labeled I7.5. Whenever the other inputs are high the μp recognizes this interrupt. This request is remembered until 1. the processor 8085A responds to the interrupt. When interrupt is acknowledged, it sends a high ST7.5ACKNOWLEDGE bit to the clear input of D flip-flop. This clears it for future interrupts. 2. or until the request is ESET by SIM instruction. 7.5 bit is made high through SIM instruction and the flip-flop can be cleared. It is for the user to make use of these facilities. 3. or until the μp is being reset i.e., ESET IN signal becomes low. Whenever ST7.5 is recognized, control is transferred to 003CH. ST6.5 & ST5.5 are also vectored and maskable interrupts but are HIGH level sensitive interrupt control signal inputs. These are directly connected to AND gate. The signal at these inputs must be maintained until the interrupt is acknowledged. Whenever ST6.5 is recognized, the control is transferred to 0034H & whenever ST5.5 is recognized, the control is transferred to 002CH.

The internal control signals I7.5, I6.5 & I5.5 are called pending interrupts. The signal IE (output of bottom flip-flop) is called interrupt enable flag. It must be high to activate the AND gates. Also, notice the M7.5, M6.5 & M5.5 signals. They must be low to enable the AND gates. e.g., to activate ST7.5 interrupt, I7.5 must be high, M7.5 must be low and IE must be high. The interrupt enable flip-flop can be set or reset through software. This flip-flop can be set using EI instruction. EI stands for enable interrupt. Whenever EI is executed, it produces a high EI bit and sets the INTE F/F and produces a high IE output. This flip-flop can be reset in three ways. 1. When the power is ON for the first time or ESET IN signal goes low, it resets the INTE F/F so that that entire interrupt structure is disabled. When INTE F/F is reset except for TAP no other interrupt can interrupt the μp. 2. The INTE F/F can be reset using DI instruction. DI stands for disable interrupt. When executed it produces a high DI bit & clear the INTE F/F. 3. When the processor 8085A recognizes an interrupt, it produces a high ANY INTEUPT ACKNOWLEDGE bit. This disables the interrupts. Because the interrupts are automatically disabled by the ANY INTEUPT ACKNOWLEDGE bit, programmer usually includes an EI as the next to last instruction in the service subroutine so that the interrupt structure is enabled again. For instance, the last two instructions of interrupt service subroutines typically are

Subroutine: : : EI ET This subroutine cannot be interrupted (except by a TAP). After the EI is executed, the processing returns to the main program with the interrupt system enabled. INT: INT is a maskable interrupt. A high on this pin interrupts the processor. The interrupt signal input INT is not affected by SIM instruction. Only INTE F/F must be SET to 1 before this interrupt comes. With the above explanation can write the logic expression for the logic variable, VALID INT VALID INT = 0 when none of the interrupt control signal input are interrupting the. VALID INT = 1 when any of the interrupt control signal is active. Thus, in 8085A, we can write the logical expression for the LOGIC variable VALID INT as below: VALID INT = TAP + INTE.[INT + 75. M7.5 + ST6.5. M6.5 + ST5.5. M5.5]