Interrupts
This section describes the specifics of the interrupt handling as performed in ATmega128. For a
general explanation of the AVR interrupt handling, refer to “Reset and Interrupt Handling” on
page 15.
Interrupt Vectors
in ATmega128
Table 23. Reset and Interrupt Vectors
Vector
No.
Program
Address(2) Source
Interrupt Definition
External Pin, Power-on Reset, Brown-out Reset,
Watchdog Reset, and JTAG AVR Reset
1
$0000(1)
$0002
$0004
$0006
$0008
$000A
$000C
$000E
$0010
$0012
$0014
$0016
$0018
$001A
$001C
$001E
$0020
$0022
$0024
$0026
$0028
$002A
$002C
$002E
$0030(3)
$0032(3)
$0034(3)
$0036(3)
$0038(3)
$003A(3)
RESET
INT0
2
External Interrupt Request 0
External Interrupt Request 1
External Interrupt Request 2
External Interrupt Request 3
External Interrupt Request 4
External Interrupt Request 5
External Interrupt Request 6
External Interrupt Request 7
Timer/Counter2 Compare Match
Timer/Counter2 Overflow
3
INT1
4
INT2
5
INT3
6
INT4
7
INT5
8
INT6
9
INT7
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
TIMER2 COMP
TIMER2 OVF
TIMER1 CAPT
TIMER1 COMPA
Timer/Counter1 Capture Event
Timer/Counter1 Compare Match A
TIMER1 COMPB Timer/Counter1 Compare Match B
TIMER1 OVF
TIMER0 COMP
TIMER0 OVF
SPI, STC
Timer/Counter1 Overflow
Timer/Counter0 Compare Match
Timer/Counter0 Overflow
SPI Serial Transfer Complete
USART0, Rx Complete
USART0 Data Register Empty
USART0, Tx Complete
ADC Conversion Complete
EEPROM Ready
USART0, RX
USART0, UDRE
USART0, TX
ADC
EE READY
ANALOG COMP
Analog Comparator
TIMER1 COMPC Timer/Countre1 Compare Match C
TIMER3 CAPT
Timer/Counter3 Capture Event
TIMER3 COMPA
Timer/Counter3 Compare Match A
TIMER3 COMPB Timer/Counter3 Compare Match B
TIMER3 COMPC Timer/Counter3 Compare Match C
TIMER3 OVF
Timer/Counter3 Overflow
60
ATmega128(L)
2467P–AVR–08/07