External Interrupt Module MTT48 13 - 1 EXTERNAL INTERRUPT REQUEST MODULE (IRQ)

Slides:



Advertisements
Similar presentations
Microprocessors.
Advertisements

Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
PROGRAMMABLE PERIPHERAL INTERFACE -8255
System Overview MTT48 V Motorol a MOTOROLA 68HC08 INTRODUCTION AND SYSTEM OVERVIEW.
MC68HC11 System Overview. System block diagram (A8 version)
Programmable Keyboard/ Display Interface: 8279
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
Interrupts Disclaimer: All diagrams and figures in this presentation are scanned from the book “Microprocessors and Programmed Logic” authored by Kenneth.
I/O Unit.
68HC11 Polling and Interrupts
ECE 372 – Microcontroller Design Parallel IO Ports - Interrupts
COMP3221: Microprocessors and Embedded Systems Lecture 15: Interrupts I Lecturer: Hui Wu Session 1, 2005.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Monitor ROM Module MTT48 V MONITOR ROM MODULE (MON)
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
UNIT 8 Keypad Interface Contact Closure Counter Exceptions (Interrupts and Reset)
created by :Gaurav Shrivastava
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
MICROPROCESSOR INPUT/OUTPUT
HC08 ARCHITECTURE DETAILS
The KC-85 and the U880 Team members: Nadine Spörl Angela Roggan Martin Burkard Alexander Becker.
Interrupts and reset operations. Overview  Introduction to interrupts – What are they – How are they used  68HC11 interrupt mechanisms – Types of interrupts.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Lecture 11 Low Power Modes & Watchdog Timers
Direct Memory Access Module MTT M DIRECT MEMORY ACCESS MODULE (DMA)
Low Power Modes MTT48 V LOW POWER OPERATION.
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
1 © Unitec New Zealand Interrupt Lecture 6 Date: - 20 Sept, 2011 Embedded Hardware ETEC 6416.
IO Subsystem IV Ports and peripherals. IO Subsystem (1) All devices connected to the system buses, other than memory and CPU – Input and output ports.
1 Interrupts, Resets Today: First Hour: Interrupts –Section 5.2 of Huang’s Textbook –In-class Activity #1 Second Hour: More Interrupts Section 5.2 of Huang’s.
AT91 Interrupt Handling. 2 Stops the execution of main software Redirects the program flow, based on an event, to execute a different software subroutine.
I/O Ports MTT I/O PORTS. I/O Ports MTT Module Objectives Configure any pin as either input or output Read or write data from/to port.
Appendix B: System Development Example MTT48 V2.1 B - 1 APPENDIX B: SYSTEM DEVELOPMENT.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
PPI-8255.
ECE 447 Fall 2009 Lecture 7: MSP430 Polling and Interrupts.
System Integration Module MTT Motoola SYSTEM INTEGRATION MODULE (SIM)
CIT 673 Created by Suriyong1 Micro controller hardware architechture.
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
MICRO-CONTROLLER MOTOROLA HCS12 Interrupts Mechatronics Department Faculty of Engineering Ain Shams University.
Resets & Interrupts MTT CPU08 Core Motorola CPU08 RESETS & INTERRUPTS.
بسم الله الرحمن الرحيم MEMORY AND I/O.
EPROM/OTPROM Module MTT48 V EPROM PROGRAMMING.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Interrupt Control Unit (ICU) Ver
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Interrupt-Driven I/O There are different types of interrupts –Hardware Generated by the 8259 PIC – signals the CPU to suspend execution of the current.
Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)
Interrupts ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
The 8051 Microcontroller Chapter 6 INTERRUPTS. 2/29 Interrupt is the occurrence of a condition an event that causes a temporary suspension of a program.
8255:Programmable Peripheral Interface
Low-Voltage Inhibit Module MTT M LOW VOLTAGE INHIBIT MODULE (LVI)
HCS12 Exceptions Maskable Interrupts
ECE 3430 – Intro to Microcomputer Systems
68HC11 Interrupts & Resets.
Mon. Oct 2 Announcements Quiz Postponed to Wednesday – still only on 2.a + 2.b Video lecture for 2.a posted Lab 6 experiment extension You must come to.
Interrupts In 8085 and 8086.
Hardware Source: ttp:// under
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
Interrupt Source: under
YOVI 2008 Core Interrupt Controller (INTC)
전자의료시스템 및 실습 System Configuration/Interrupt
X1 & X2 These are also called Crystal Input Pins.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Presentation transcript:

External Interrupt Module MTT EXTERNAL INTERRUPT REQUEST MODULE (IRQ)

External Interrupt Module MTT Module Objective By the end of this module, you should be able to: Enable/disable IRQ interrupts Configure the trigger sensitivity Acknowledge the interrupts Configure port external interrupts

External Interrupt Module MTT EXTERNAL INTERRUPT (IRQ) MODULE 68HC08 CPU System Integration Module (SIM) Clock Generation Module (CGM) Timer Interface Module (TIM) Direct Memory Access Module (DMA) Serial Communications Interface (SCI) Internal Bus (IBUS) Serial Peripheral Interface (SPI) Random Access Memory (RAM) Electronically Programmable Memory (EPROM) LVI COP Monitor ROM IRQ BREAK RESET Supports external interrupt functions Two dedicated external interrupt pins IRQ1/Vpp and IRQ2 Individually programmable Separate interrupt masks IRQ2 Interrupt Disable Configurable Port as external interrupts Allows additional external interrupts

External Interrupt Module MTT Global Interrupt Mask Code Condition Register (CCR) Global CPU interrupt disable mask 1 = All CPU interrupts are disabled SWI interrupt is non-maskable 0 = CPU interrupts are processed RESET:x11x1xxx WRITE: READ: CCR V 1 1HI N C Z

External Interrupt Module MTT FROM RESET I BIT SET? FETCH NEXT YES NO INTERRUPT? INSTRUCTION. SWI INSTRUCTION? RTI INSTRUCTION? NO STACK CPU REGISTERS. NO SET I BIT. LOAD PC WITH INTERRUPT VECTOR. NO YES UNSTACK CPU REGISTERS. EXECUTE INSTRUCTION. YES IRQ Interrupt Flowchart

External Interrupt Module MTT IRQ1 Block Diagram ACK1 IMASK1 D Q CK CLR IRQ1 INTERRUPT REQUEST HIGH VOLTAGE DETECT TO MODE SELECT LOGIC IRQ1 LATCH IRQ1/V pp V DD MODE1 SYNCHRO- NIZER

External Interrupt Module MTT IRQ1 Interrupt request is latched on falling edge Trigger may be edge sensitive only or level and edge sensitive Maskable through IMASK1 bit CPU automatically clears request during interrupt processing Software may optionally clear the request Vector address is $FFFA and $FFFB (68HC708XL36)

External Interrupt Module MTT IRQ1 Control IRQ Status and Control Register (ISCR) IRQ1 edge/level select (MODE1) –Selects trigger sensitivity of the IRQ1 pin 1 = Interrupt requests on falling edges or low levels 0 = Interrupt requests on falling edges only IRQ1 Interrupt Mask (IMASK1) 1 = IRQ1 Interrupts requests disabled 0 = IRQ1 Interrupts requests enabled IRQ1 Interrupt request acknowledge (ACK1): write-only –Used to Clear the IRQ1 request Writing logic 1 clears the IRQ latch –Always reads as logic zero. RESET: WRITE: ACK2 ACK1 READ: 0 0 ISCR PIN2IMASK2MODE2IRQ2DISIMASK1MODE1

External Interrupt Module MTT IRQ2/ KEYBOARD INTERRUPT IRQ2 ACK2 DQ CK CLR V DD MODE2 SYNCHRO- NIZER IMASK2 PIN2 IRQ2DIS IRQ2/KEYBOARD INTERRUPT LATCH REQUEST IRQ2 Block Diagram CONFIGURABLE PORT PINS

External Interrupt Module MTT IRQ2 Interrupt request is latched on falling edge Trigger may be edge sensitive only or level and edge sensitive Maskable through the IMASK2 bit CPU automatically clears request during interrupt processing Software may optionally clear the request Vector address is $FFE0 and $FFE1 (68HC708XL36)

External Interrupt Module MTT IRQ Status and Control Register (ISCR) IRQ2/Keyboard Interrupt edge/level select (MODE2) –Selects trigger sensitivity of the IRQ2 and Keyboard Interrupt Pins 1 = Interrupt on falling edges or low levels 0 = Interrupt on falling edges only IRQ2/Keyboard Interrupt Mask (IMASK2) 1 = IRQ2 and Keyboard Interrupts disabled 0 = IRQ2 and Keyboard Interrupts enabled IRQ2/Keyboard Interrupt request acknowledge (ACK2) –Used to Clear the IRQ2/Keyboard requests Writing logic 1 acknowledges the request –ACK2 always reads as logic zero IRQ2 Pin Interrupt Latch Disable (IRQ2DIS) –Prevents the IRQ2 pin from latching interrupt requests into the IRQ2/Keyboard interrupt latch 1 = IRQ2 pin interrupt requests not latched 0 = IRQ2 pin interrupt requests latched IRQ2 Control IRQ2 Pin state (PIN2) –Reflects the current level of the IRQ2 pin –Can be used to distinguish between Port interrupt and an actual IRQ2 interrupt 1 = IRQ2 pin at logic one 0 = IRQ2 pin at logic zero RESET: WRITE: ACK2 ACK1 READ: 0 0 ISCR PIN2IMASK2MODE2IRQ2DISIMASK1MODE1

External Interrupt Module MTT KB0IE TO PTD0 PULL-UP ENABLE KB7IE TO PTD7 PULL-UP ENABLE IRQ2/ KEYBOARD INTERRUPT PTD0/KBD0 PTD7/KBD7 IRQ2 ACK2 DQ CK CLR V DD MODE2 SYNCHRO- NIZER IMASK2 PIN2... IRQ2DIS IRQ2/KEYBOARD INTERRUPT LATCH REQUEST Configurable Port Interrupts Block Diagram

External Interrupt Module MTT Keyboard Interrupt Pins Port D pins can be enable as port interrupts Interrupt requests are latched into the IRQ2/Keyboard Interrupt Latch Interrupt request is latched on falling edge Trigger may be edge sensitive only or level and edge sensitive Generate an IRQ2 interrupt request Vector address is $FFE0 and $FFE1 (68HC708XL36)

External Interrupt Module MTT Keyboard Interrupt Control Register (KBICR) Keyboard Interrupt Enable bits (KB7IE - KB0IE) –Enables corresponding keyboard interrupt pin to latch interrupt request –Port pin data direction automatically changed to input 1 = Corresponding Keyboard interrupt pin enabled and pull-up device on 0 = Corresponding Keyboard interrupt pin disabled and pull-up device off RESET: WRITE: READ: KBICR KB7IE KB6IE KB5IE KB4IE KB3IE KB2IE KB1IE KB0IE Keyboard Interrupt Control

External Interrupt Module MTT Summary RESET: WRITE: ACK2 ACK1 READ: 0 0 ISCR PIN2IMASK2MODE2IRQ2DISIMASK1MODE1 RESET: WRITE: READ: KBICR KB7IE KB6IE KB5IE KB4IE KB3IE KB2IE KB1IE KB0IE RESET:x11x1xxx WRITE: READ: CCR V 1 1HI N C Z