Datasheet
64
7799D–AVR–11/10
ATmega8U2/16U2/32U2
11. Interrupts
11.1 Overview
This section describes the specifics of the interrupt handling as performed in
ATmega8U2/16U2/32U2. For a general explanation of the AVR interrupt handling, refer to
“Reset and Interrupt Handling” on page 13.
11.2 Interrupt Vectors in ATmega8U2/16U2/32U2
Table 11-1. Reset and Interrupt Vectors
Vector
No.
Program
Address
(2)
Source Interrupt Definition
1 $0000
(1)
RESET
External Pin, Power-on Reset, Brown-out Reset,
Watchdog Reset, USB Reset and debugWIRE AVR
Reset
2 $0002 INT0 External Interrupt Request 0
3 $0004 INT1 External Interrupt Request 1
4 $0006 INT2 External Interrupt Request 2
5 $0008 INT3 External Interrupt Request 3
6 $000A INT4 External Interrupt Request 4
7 $000C INT5 External Interrupt Request 5
8 $000E INT6 External Interrupt Request 6
9 $0010 INT7 External Interrupt Request 7
10 $0012 PCINT0 Pin Change Interrupt Request 0
11 $0014 PCINT1 Pin Change Interrupt Request 1
12 $0016 USB General USB General Interrupt request
13 $0018 USB Endpoint USB Endpoint Interrupt request
14 $001A WDT Watchdog Time-out Interrupt
15 $001C TIMER1 CAPT Timer/Counter1 Capture Event
16 $001E TIMER1 COMPA Timer/Counter1 Compare Match A
17 $0020 TIMER1 COMPB Timer/Counter1 Compare Match B
18 $0022 TIMER1 COMPC Timer/Counter1 Compare Match C
19 $0024 TIMER1 OVF Timer/Counter1 Overflow
20 $0026 TIMER0 COMPA Timer/Counter0 Compare Match A
21 $0028 TIMER0 COMPB Timer/Counter0 Compare match B
22 $002A TIMER0 OVF Timer/Counter0 Overflow
23 $002C SPI, STC SPI Serial Transfer Complete
24 $002E USART1 RX USART1 Rx Complete
25 $0030 USART1 UDRE USART1 Data Register Empty
26 $0032 USART1TX USART1 Tx Complete