Datasheet

56
ATmega162/V
2513G–AVR–03/05
Interrupts This section describes the specifics of the interrupt handling as performed in
ATmega162. For a general explanation of the AVR interrupt handling, refer to “Reset
and Interrupt Handling” on page 12. Table 24 shows the interrupt table when the com-
patibility fuse (M161C) is unprogrammed, while Table 25 shows the interrupt table when
M161C Fuse is programmed. All assembly code examples in this sections are using the
interrupt table when the M161C Fuse is unprogrammed.
Interrupt Vectors in
ATmega162
Table 24. Reset and Interrupt Vectors if M161C is unprogrammed
Vector No.
Program
Address
(2)
Source Interrupt Definition
10x000
(1)
RESET External Pin, Power-on Reset, Brown-out
Reset, Watchdog Reset, and JTAG AVR
Reset
2 0x002 INT0 External Interrupt Request 0
3 0x004 INT1 External Interrupt Request 1
4 0x006 INT2 External Interrupt Request 2
5 0x008 PCINT0 Pin Change Interrupt Request 0
6 0x00A PCINT1 Pin Change Interrupt Request 1
7 0x00C TIMER3 CAPT Timer/Counter3 Capture Event
8 0x00E TIMER3 COMPA Timer/Counter3 Compare Match A
9 0x010 TIMER3 COMPB Timer/Counter3 Compare Match B
10 0x012 TIMER3 OVF Timer/Counter3 Overflow
11 0x014 TIMER2 COMP Timer/Counter2 Compare Match
12 0x016 TIMER2 OVF Timer/Counter2 Overflow
13 0x018 TIMER1 CAPT Timer/Counter1 Capture Event
14 0x01A TIMER1 COMPA Timer/Counter1 Compare Match A
15 0x01C TIMER1 COMPB Timer/Counter1 Compare Match B
16 0x01E TIMER1 OVF Timer/Counter1 Overflow
17 0x020 TIMER0 COMP Timer/Counter0 Compare Match
18 0x022 TIMER0 OVF Timer/Counter0 Overflow
19 0x024 SPI, STC Serial Transfer Complete
20 0x026 USART0, RXC USART0, Rx Complete
21 0x028 USART1, RXC USART1, Rx Complete
22 0x02A USART0, UDRE USART0 Data Register Empty
23 0x02C USART1, UDRE USART1 Data Register Empty
24 0x02E USART0, TXC USART0, Tx Complete
25 0x030 USART1, TXC USART1, Tx Complete
26 0x032 EE_RDY EEPROM Ready
27 0x034 ANA_COMP Analog Comparator
28 0x036 SPM_RDY Store Program Memory Ready