Atmel Evaluation Kit for ATxmega32E5, 8/16-bit AVR XMEGA Microcontroller Atmel ATXMEGAE5-XPLD ATXMEGAE5-XPLD データシート

製品コード
ATXMEGAE5-XPLD
ページ / 147
28
XMEGA E5 [DATASHEET]
Atmel-8153H–AVR-ATxmega8E5-ATxmega16E5-ATxmega32E5_Datasheet–07/2014
15.
Interrupts and Programmable Multilevel Interrupt Controller
15.1
Features
z
Short and predictable interrupt response time
z
Separate interrupt configuration and vector address for each interrupt
z
Programmable multilevel interrupt controller
z
Interrupt prioritizing according to level and vector address
z
Three selectable interrupt levels for all interrupts: low, medium and high
z
Selectable, round-robin priority scheme within low-level interrupts
z
Non-maskable interrupts for critical functions
z
Interrupt vectors optionally placed in the application section or the boot loader section
15.2
Overview
Interrupts signal a change of state in peripherals, and this can be used to alter program execution. Peripherals can have 
one or more interrupts, and all are individually enabled and configured. When an interrupt is enabled and configured, it 
will generate an interrupt request when the interrupt condition is present. The programmable multilevel interrupt 
controller (PMIC) controls the handling and prioritizing of interrupt requests. When an interrupt request is acknowledged 
by the PMIC, the program counter is set to point to the interrupt vector, and the interrupt handler can be executed.
All peripherals can select between three different priority levels for their interrupts: low, medium, and high. Interrupts are 
prioritized according to their level and their interrupt vector address. Medium-level interrupts will interrupt low-level 
interrupt handlers. High-level interrupts will interrupt both medium- and low-level interrupt handlers. Within each level, the 
interrupt priority is decided from the interrupt vector address, where the lowest interrupt vector address has the highest 
interrupt priority. Low-level interrupts have an optional round-robin scheduling scheme to ensure that all interrupts are 
serviced within a certain amount of time.
Non-maskable interrupts (NMI) are also supported, and can be used for system critical functions.
15.3
Interrupt vectors
The interrupt vector is the sum of the peripheral’s base interrupt address and the offset address for specific interrupts in 
each peripheral. The base addresses for the Atmel AVR XMEGA E5 devices are shown in 
Offset addresses 
for each interrupt available in the peripheral are described for each peripheral in the XMEGA AU manual. For peripherals 
or modules that have only one interrupt, the interrupt vector is shown in 
The program address is the word 
address.
Table 15-1. Peripheral module address map
Program address
(base address)
Source
Interrupt Description
0x0000
RESET
0x0002
OSCF_INT_vect
Crystal oscillator failure and PLL lock failure interrupt vector (NMI)
0x0004
PORTR_INT_vect
Port R Interrupt vector
0x0006
EDMA_INT_base
EDMA Controller Interrupt base
0x000E
RTC_INT_base
Real time counter interrupt base
0x0012
PORTC_INT_vect
Port C interrupt vector
0x0014
TWIC_INT_base
Two-wire interface on Port C interrupt base