58
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
Reset and
Interrupt Handling
The embedded AVR and FPGA core provide 35 different interrupt sources. These interrupts
and the separate reset vector each have a separate program vector in the program memory
space. All interrupts are assigned individual enable bits (masks) which must be set (one)
together with the I-bit in the status register in order to enable the interrupt.
The lowest addresses in the program memory space must be defined as the Reset and Inter-
rupt vectors. The complete list of vectors is shown in Table 15. The list also determines the
priority levels of the different interrupts. The lower the address the higher the priority level.
RESET has the highest priority, and next is FPGA_INT0 – the FPGA Interrupt Request 0 etc.
Table 15.
Reset and Interrupt Vectors
Vector No.
(hex)
Program
Address
Source
Interrupt Definition
01
$0000
RESET
Reset Handle: Program
Execution Starts Here
02
$0002
FPGA_INT0
FPGA Interrupt0 Handle
03
$0004
EXT_INT0
External Interrupt0 Handle
04
$0006
FPGA_INT1
FPGA Interrupt1 Handle
05
$0008
EXT_INT1
External Interrupt1 Handle
06
$000A
FPGA_INT2
FPGA Interrupt2 Handle
07
$000C
EXT_INT2
External Interrupt2 Handle
08
$000E
FPGA_INT3
FPGA Interrupt3 Handle
09
$0010
EXT_INT3
External Interrupt3 Handle
0A
$0012
TIM2_COMP
Timer/Counter2 Compare
Match Interrupt Handle
0B
$0014
TIM2_OVF
Timer/Counter2 Overflow
Interrupt Handle
0C
$0016
TIM1_CAPT
Timer/Counter1 Capture
Event Interrupt Handle
0D
$0018
TIM1_COMPA
Timer/Counter1 Compare
Match A Interrupt Handle
0E
$001A
TIM1_COMPB
Timer/Counter1 Compare
Match B Interrupt Handle
0F
$001C
TIM1_OVF
Timer/Counter1 Overflow
Interrupt Handle
10
$001E
TIM0_COMP
Timer/Counter0 Compare
Match Interrupt Handle
11
$0020
TIM0_OVF
Timer/Counter0 Overflow
Interrupt Handle
12
$0022
FPGA_INT4
FPGA Interrupt4 Handle
13
$0024
FPGA_INT5
FPGA Interrupt5 Handle
14
$0026
FPGA_INT6
FPGA Interrupt6 Handle
15
$0028
FPGA_INT7
FPGA Interrupt7 Handle
16
$002A
UART0_RXC
UART0 Receive Complete
Interrupt Handle