Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Interrupt Control Unit (ICU) Ver. 1.00.

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems
Advertisements

Exceptions. Exception Types Exception Handling Vectoring Interrupts Interrupt Handlers Interrupt Priorities Interrupt applications 6-2.
Interrupts Chapter 8 – pp Chapter 10 – pp Appendix A – pp 537 &
Computertechniek Hogeschool van Utrecht / Institute for Computer, Communication and Media Technology 1.
External Interrupt Module MTT EXTERNAL INTERRUPT REQUEST MODULE (IRQ)
COMP3221: Microprocessors and Embedded Systems Lecture 15: Interrupts I Lecturer: Hui Wu Session 1, 2005.
LOGO Chapter 1 Interrupt handling. hardware interrupt Under x86, hardware interrupts are called IRQ's. When the CPU receives an interrupt, it stops whatever.
6-1 I/O Methods I/O – Transfer of data between memory of the system and the I/O device Most devices operate asynchronously from the CPU Most methods involve.
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: internal fault (e.g.. divide by.
Chapter 7 Interupts DMA Channels Context Switching.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
1 Interrupts INPUT/OUTPUT ORGANIZATION: Interrupts CS 147 JOKO SUTOMO.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX210 Multi-Function Pin Controller (MPC) Ver
INTERRUPTS PROGRAMMING
What are Exception and Interrupts? MIPS terminology Exception: any unexpected change in the internal control flow – Invoking an operating system service.
Introduction to Embedded Systems
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose:  This training module provides a technical description of Renesas.
Lecture 23: LM3S9B96 Microcontroller - Interrupts.
CORTEX-M0 Structure Discussion 2 – Core Peripherals
MSP430 Mixed Signal Microcontroller – Parte 2 Afonso Ferreira Miguel Source: slau056d – Texas instruments.
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
7/23 Interrupt Controller and Edge Port in Coldfire Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
Interrupts and reset operations. Overview  Introduction to interrupts – What are they – How are they used  68HC11 interrupt mechanisms – Types of interrupts.
Lecture 11 Low Power Modes & Watchdog Timers
RX Voltage Detection Circuit (LVD) and Power-On Reset (POR)
Microprocessors 1 MCS-51 Interrupts.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
13-Nov-15 (1) CSC Computer Organization Lecture 7: Input/Output Organization.
ARM Cortex-M0 August 23, 2012 Paul Nickelsberg Orchid Technologies Engineering and Consulting, Inc. CORTEX-M0 Structure Discussion.
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.
6-1 Infineon 167 Interrupts The C167CS provides 56 separate interrupt sources that may be assigned to 16 priority levels. The C167CS uses a vectored interrupt.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the Direct Memory.
ECE 447 Fall 2009 Lecture 7: MSP430 Polling and Interrupts.
Embedded Systems Design 1 Lecture Set 8 MCS-51 Interrupts.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Direct Memory Access Controller (DMAC) Ver
MICRO-CONTROLLER MOTOROLA HCS12 Interrupts Mechatronics Department Faculty of Engineering Ain Shams University.
Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Bus State Controller (BSC) Ver
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
CS-280 Dr. Mark L. Hornick 1 Sequential Execution Normally, CPU sequentially executes instructions in a program Subroutine calls are synchronous to the.
Interrupts ELEC 330 Digital Systems Engineering Dr. Ron Hayne
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.
Introduction to Exceptions 1 Introduction to Exceptions ARM Advanced RISC Machines.
Chapter 10 Interrupts. Basic Concepts in Interrupts  An interrupt is a communication process set up in a microprocessor or microcontroller in which:
HCS12 Exceptions Maskable Interrupts
Interrupts and interrupt responses
Interrupts and signals
ECE 3430 – Intro to Microcomputer Systems
Microprocessor Systems Design I
Timer and Interrupts.
Interrupts In 8085 and 8086.
RX Watchdog Timer (WDT)
8259-programmable interrupt controller
RX Compare Match Timer (CMT)
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
Lecture 10 Device Systems & Interrupt Controller
8259 Chip The Intel 8259 is a family of Programmable Interrupt Controllers (PIC) designed and developed for use with the Intel 8085 and Intel 8086 microprocessors.
Interrupt and Exception Programming
YOVI 2008 Core Interrupt Controller (INTC)
* * * * * * * 8051 Interrupts Programming.
Interrupt and Exception Programming
Subject Name: Microprocessors Subject Code:10EC46 Department: Electronics and Communication Date: /20/2018.
Computer System Overview
Interrupt and Exception Programming
8259 Programmable Interrupt Controller
Interrupts.
Programmable Interrupt Controller (PIC)
COMP3221: Microprocessors and Embedded Systems
Presentation transcript:

Renesas Electronics America Inc. © 2011 Renesas Electronics America Inc. All rights reserved. RX Interrupt Control Unit (ICU) Ver. 1.00

Course Introduction Purpose Learn architecture & features of RX Interrupt Control Unit (ICU) Content Interrupt sources & features RX Interrupt Processing Vector Tables Registers Fast Interrupt Learning Time 20 Minutes © 2011 Renesas Electronics America Inc. All rights reserved. 2

RX Interrupt Control Unit © 2011 Renesas Electronics America Inc. All rights reserved. 3

Interrupt Sources © 2011 Renesas Electronics America Inc. All rights reserved. 4 External interrupts Up to 16: IRQ0 to IRQ15 Low level/falling edge/rising edge/rising and falling edges Peripheral interrupts 146 sources Edge or level detection Automatic clearing on vector to ISR (edge sensitive only) Software interrupt Generated by writing to a register One interrupt source Non-maskable interrupts NMI pin Falling power-voltage Oscillator stop detection

RX Interrupt Features © 2011 Renesas Electronics America Inc. All rights reserved. 5 Priorities are register selectable Levels from zero (disabled) to 15 IPL 15 = highest priority Compared to IPL bits in PSW Nesting allowed ISR must set PSW.I bit Only higher priorities may interrupt Return from power-down modes Sleep mode: Any interrupt source All-module clock stop mode: NMI, IRQ0-15, WDT, timers, USB resume, or RTC Software standby: NMI, IRQ0-15, USB resume, or RTC

Interrupt Processing © 2011 Renesas Electronics America Inc. All rights reserved. 6 Preconditions: I bit in PSW is set Interrupt source IPL > IPL bits in PSW Valid ISP IER.IEN=1, interrupt is routed to CPU (not DMAC/DTC) Context save: PC & PSW saved on stack SP -> Interrupt SP (PSW.U = 0) Interrupts disabled (PSW.I = 0) CPU -> Supervisor Mode (PSW.PM = 0) IPL set to priority of active interrupt (PSW.IPL = IPRx) Vector decode & branch RTE starts context restore

Fixed Vector Table © 2011 Renesas Electronics America Inc. All rights reserved. 7 Critical vectors for: Reset NMI FPU exception Undefined instruction Priveleged instruction At top of memory: 0xFFFFFF80 Includes ID code area

Relocatable Vector Table © 2011 Renesas Electronics America Inc. All rights reserved. 8 INTB register points to base address Must be a multiple of 4 reset Relocatable Vector Table byte entries 1024 bytes long Vectors listed in HW Manual

Interrupt Request Register Interrupt Request Register (IRi) One IR register per vector number (i = vector number) Interrupt Status Flag (IR bit) 1 = interrupt request is pending Edge sensitive: cleared automatically on vector to ISR Level sensitive: clear after all sources are cleared Can be polled/cleared manually in polled mode © 2011 Renesas Electronics America Inc. All rights reserved b7 After reset0 Interrupt Request Register i (IRi) (i = interrupt vector number) --- IR b6b5b4b3b2b1b

Interrupt Request Enable Register Interrupt Request Enable Register (IERm) Bank of 30 registers (02h to 1Fh) Each contains one or more enable bits Each bit enables an interrupt source Setting/clearing IEN bits does NOT affect IRi.IR flag HW Manual lists assignments © 2011 Renesas Electronics America Inc. All rights reserved. 10 IEN7 b7 After reset0 Interrupt Request Enable Register n (IERm) (m=02h to 1Fh) IEN6IEN5IEN4IEN3IEN2IEN1IEN0 b6b5b4b3b2b1b

Interrupt Priority Register Interrupt Priority Register (IPRm) Bank of 144 registers (00h to 8Fh) Each contains IPR field to set IPL 16 interrupt levels: 0 = disabled, 0x0F = highest priority HW Manual lists assignments © 2011 Renesas Electronics America Inc. All rights reserved b7 After reset0 Interrupt Priority Register n (IPRm) (m=00h to 8Fh) --- b6b5b4b3b2b1b IPR[3:0]

IRQ Control Register IRQ Control Register (IRQCRn) (n=0 to 15) Configure external interrupt pins: IRQ0-IRQ15 IRQMD bits configure interrupt: © 2011 Renesas Electronics America Inc. All rights reserved b7 After reset0 IRQ Control Register n (IRQCRn) (n=0 to 15) --- b6b5b4b3b2b1b IRQMD[1:0] b3b2Description 00Low level 01Falling edge 10Rising edge 11Rising and falling edges

Putting it all Together: Peripheral Sample © 2011 Renesas Electronics America Inc. All rights reserved. 13

RX Fast Interrupt © 2011 Renesas Electronics America Inc. All rights reserved. 14 RX Normal Interrupt 7clks typ. Resolve Interrupt PC & PSW to Stack Optional Push Gen Regs to Stack ISR Optional Pop Gen Regs from Stack Return POP PC & PSW from Stack 6 clks IRQ Optional Push Gen Regs to Stack ISR Optional Pop Gen Regs from Stack RX Fast Interrupt Resolve Interrupt, PC & PSW to Backup Regs 5 clks PC&PSW from B/U Regs, Return 3 clks Save 5 clocks ISR Resolve Interrupt, PC & PSW to Backup Regs 5 clks Return 3 clks RX Fast Interrupt plus Gen Register Usage General CPU Registers R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 Save many clocks Automatic by CPUDone by Firmware

Fast Interrupt Register (FIR) FVCT[7:0] selects source for Fast Interrupt Contains it’s own enable bit, FIEN (1=enabled) MUST set IERx for corresponding interrupt source IPRx ignored for Fast Interrupt © 2011 Renesas Electronics America Inc. All rights reserved b7 After reset Fast Interrupt Register (FIR) b6b5b4b3b2b1b0 FVCT[7:0] FIEN b b14b13b12b11b10b9b

Summary RX Interrupt Sources & Features Interrupt Processing Vector Tables Registers Fast Interrupt Thank you! © 2011 Renesas Electronics America Inc. All rights reserved. 16

Renesas Electronics America Inc. Thank You © 2011 Renesas Electronics America Inc. All rights reserved. 18