Datasheet
52
8024A–AVR–04/08
ATmega8HVA/16HVA
12. Interrupts
12.1 Overview
This section describes the specifics of the interrupt handling as performed in
ATmega8HVA/16HVA. For a general explanation of the AVR interrupt handling, refer to ”Reset
and Interrupt Handling” on page 13.
12.2 Interrupt Vectors in ATmega8HVA
.
If the program never enables an interrupt source, the Interrupt Vectors are not used, and regular
program code can be placed at these locations.
The most typical and general program setup for the Reset and Interrupt Vector Addresses in
ATmega8HVA is:
Table 12-1. Reset and Interrupt Vectors
Vector
No.
Program
Address Source Interrupt Definition
1 0x0000 RESET
External Pin, Power-on Reset, Brown-out Reset,
Watchdog Reset, and debugWIRE Reset
2 0x0001 BPINT Battery Protection Interrupt
3 0x0002 VREGMON Voltage Regulator Monitor Interrupt
4 0x0003 INT0 External Interrupt Request 0
5 0x0004 INT1 External Interrupt Request 1
6 0x0005 INT2 External Interrupt Request 2
7 0x0006 WDT Watchdog Time-out Interrupt
8 0x0007 TIMER1 IC Timer 1 input Capture
9 0x0008 TIMER1 COMPA Timer 1 Compare Match A
10 0x0009 TIMER1 COMPB Timer 1 Compare Match B
11 0x000A TIMER1 OVF Timer 1 Overflow
12 0x000B TIMER0 IC Timer 0 input Capture
13 0x000C TIMER0 COMPA Timer 0 Compare Match A
14 0x000D TIMER0 COMPB Timer 0 Compare Match B
15 0x000E TIMER0 OVF Timer 0 Overflow
16 0x000F SPI, STC SPI, Serial Transfer Complete
17 0x0010 VADC Voltage ADC Conversion Complete
18 0x0011 CCADC CONV
CC-ADC Instantaneous Current Conversion
Complete
19 0x0012 CCADC REG CUR CC-ADC Regular Current
20 0x0013 CCADC ACC CC-ADC Accumulate Current Conversion Complete
21 0x0014 EE READY EEPROM Ready