0% found this document useful (0 votes)
2 views

Embedded Systems Architecture, Device Drivers - Part 1_ Interrupt Handling _ EDN

The document discusses interrupt handling in embedded systems, focusing on how interrupt acknowledgment (IACK) is managed by the master processor when external devices trigger interrupts. It explains the differences between vectored and non-vectored interrupts, as well as the importance of interrupt priorities in managing multiple requests. The overall interrupt-handling scheme can vary significantly across different architectures, affecting how interrupts are processed and prioritized.

Uploaded by

karishma.bava7
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Embedded Systems Architecture, Device Drivers - Part 1_ Interrupt Handling _ EDN

The document discusses interrupt handling in embedded systems, focusing on how interrupt acknowledgment (IACK) is managed by the master processor when external devices trigger interrupts. It explains the differences between vectored and non-vectored interrupts, as well as the importance of interrupt priorities in managing multiple requests. The overall interrupt-handling scheme can vary significantly across different architectures, affecting how interrupts are processed and prioritized.

Uploaded by

karishma.bava7
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

6/28/2017 Embedded Systems Architecture, Device Drivers - Part 1: Interrupt Handling | EDN

EDN MOMENT
Atari is
established,
June 27, 1972

DESIGN CENTERS TOOLS & LEARNING COMMUNITY EDN VAULT


About Us

Search

Sign In | Sign Up

Home > Systems-design Design Center > How To Article

Embedded Systems Architecture, Device Drivers - Part 1:


Interrupt Handling
Tammy Noergaard ­March 05, 2013

Share 0 Tweet Like 0

Interrupt acknowledgment (IACK) is typically handled by the master processor when an external
device triggers an interrupt. Because IACK cycles are a function of the local bus, the IACK
function of the master CPU depends on interrupt policies of system buses, as well as the interrupt
policies of components within the system that trigger the interrupts. With respect to the external
device triggering an interrupt, the interrupt scheme depends on whether that device can provide
an interrupt vector (a place in memory that holds the address of an interrupt’s ISR (Interrupt
Service Routine), the software that the master CPU executes after the triggering of an interrupt).
For devices that cannot provide an interrupt vector, referred to as non­vectored interrupts, master
processors implement an auto­vectored interrupt scheme in which one ISR is shared by the non­
vectored interrupts; determining which specific interrupt to handle, interrupt acknowledgment, etc.,
are all handled by the ISR software.

Figure 8­7a. Motorola/Freescale MPC860 Interrupt Controllers.[4] © Freescale


Semiconductor, Inc. Used by permission.

http://www.edn.com/design/systems-design/4408329/5/Embedded-Systems-Architecture--Device-Drivers---Part-1--Interrupt-Handling 1/4
6/28/2017 Embedded Systems Architecture, Device Drivers - Part 1: Interrupt Handling | EDN
Click for larger image

Figure 8­7b. Mitsubishi M37267M8 Circuitry.[5]

An interrupt­vectored scheme is implemented to support peripherals that can provide an interrupt


vector over a bus and where acknowledgment is automatic. An IACK­related register on the
master CPU informs the device requesting the interrupt to stop requesting interrupt service, and
provides what the master processor needs to process the correct interrupt (such as the interrupt
number and vector number). Based upon the activation of an external interrupt pin, an interrupt
controller’s interrupt select register, a device’s interrupt select register, or some combination of the
above, the master processor can determine which ISR to execute. After the ISR completes, the
master processor resets the interrupt status by adjusting the bits in the processor’s status register
or an interrupt mask in the external interrupt controller. The interrupt request and acknowledgment
mechanisms are determined by the device requesting the interrupt (since it determines which
interrupt service to trigger), the master processor, and the system bus protocols.
Keep in mind that this is a general introduction to interrupt handling, covering some of the key
features found in a variety of schemes. The overall interrupt­handling scheme can vary widely
from architecture to architecture. For example, PowerPC architectures implement an auto­
vectored scheme, with no interrupt vector base register. The 68000 architecture supports both
auto­vectored and interrupt­vectored schemes, whereas MIPS32 architectures have no IACK
cycle and so the interrupt handler handles the triggered interrupts.
8.1.1 Interrupt Priorities
Because there are potentially multiple components on an embedded board that may need to
request interrupts, the scheme that manages all of the different types of interrupts is priority­
based. This means that all available interrupts within a processor have an associated interrupt
level, which is the priority of that interrupt within the system. Typically, interrupts starting at level
“1” are the highest priority within the system and incrementally from there (2, 3, 4, etc.) the
priorities of the associated interrupts decrease. Interrupts with higher levels have precedence over
any instruction stream being executed by the master processor, meaning that not only do
interrupts have precedence over the main program, but higher priority interrupts have priority over
interrupts with lower priorities as well. When an interrupt is triggered, lower priority interrupts are
typically masked, meaning they are not allowed to trigger when the system is handling a higher­
priority interrupt. The interrupt with the highest priority is usually called an NMI.

Share 0 Tweet Like 0

Next: Title­4

< Previous Page 5 of 7 Next >

Write a Comment

http://www.edn.com/design/systems-design/4408329/5/Embedded-Systems-Architecture--Device-Drivers---Part-1--Interrupt-Handling 2/4
6/28/2017 Embedded Systems Architecture, Device Drivers - Part 1: Interrupt Handling | EDN

Submit Comment

To comment
please Log In

Most Popular Most Commented

Hot technologies: Looking


ahead to 2017
Industrial IoT to gain traction
in 2017
Non­invasive blood glucose
monitoring using near­infrared
spectroscopy
Equations and Impacts of
Setup and Hold Time
Understanding SSD over­
provisioning
Embedded Systems
Architecture, Device Drivers ­
Part 1: Interrupt Handling
Low power wide­area
networking alternatives for the
IoT
Memory Hierarchy Design ­
Part 1. Basics of Memory
Hierarchies
Embedded Systems Security ­
Part 1: Security requirements
An efficient RDL routing for
flip­chip designs

FEATURED RESOURCES

Subscribe to RSS: or

http://www.edn.com/design/systems-design/4408329/5/Embedded-Systems-Architecture--Device-Drivers---Part-1--Interrupt-Handling 3/4
6/28/2017 Embedded Systems Architecture, Device Drivers - Part 1: Interrupt Handling | EDN

DESIGN CENTERS MORE EDN

5G LEDs Blogs EDN TV


Analog Medical Design Ideas Events
Automotive PCB Tech Papers About Us
Components & Packaging Power Management Courses
Consumer Sensors Webinars
DIY Systems Design
IC Design Test & Measurement

ASPENCORE NETWORK
EBN EDN EE Times EEWeb Electronic Products Electronics­Tutorials Embedded Planet Analog ElectroSchematics
Power Electronics News TechOnline Datasheets.com Embedded Control Europe Embedded Know How Embedded News
IOT Design Zone Motor Control Design Electronics Know How

GLOBAL NETWORK
EE Times Asia EE Times China EE Times India EE Times Japan EE Times Taiwan EDN Asia EDN China EDN Taiwan
EDN Japan ESM China

Working With Us: About | Contact Us | Media Kits


Terms of Service | Privacy Statement | Copyright ©2017 AspenCore All Rights Reserved

http://www.edn.com/design/systems-design/4408329/5/Embedded-Systems-Architecture--Device-Drivers---Part-1--Interrupt-Handling 4/4

You might also like