
51
8052B–AVR–09/08
ATmega4HVD/8HVD
11. Interrupts
This section describes the specifics of the interrupt handling as performed in
ATmega4HVD/8HVD. For a general explanation of the AVR interrupt handling, refer to ”Reset
and Interrupt Handling” on page 11.
11.1 Interrupt Vectors in ATmega4HVD/8HVD
If the program never enables an interrupt source, the Interrupt Vectors are not used, and regu-
lar program code can be placed at the locations of the Interrupt Vectors.
The most typical and general program setup for the Reset and Interrupt Vector Addresses in
ATmega4HVD/8HVD is:
Table 1. Reset and Interrupt Vectors
Vector
No.
Program
Address Source Interrupt Definition
1 0x0000
RESET External Pin, Power-on Reset, Black-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 WDT Watchdog Time-out Interrupt
7 0x0006 TIMER1 IC Timer 1 Input Capture
8 0x0007 TIMER1 COMPA Timer 1 Compare Match A
9 0x0008 TIMER1 COMPB Timer 1 Compare Match B
10 0x0009 TIMER1 OF Timer 1 Overflow
11 0x000A TIMER0 IC Timer 0 Input Capture
12 0x000B TIMER0 COMPA Timer 0 Compare Match A
13 0x000C TIMER0 COMPB Timer 0 Compare Match B
14 0x000D TIMER0 OF Timer 0 Overflow
15 0x000E ADC COMPLETE ADC Conversion Complete
16 0x000F EE_READY EEPROM Ready
Commentaires sur ces manuels