Datasheet
59
7728G–AVR–06/10
ATtiny87/ATtiny167
7. Interrupts
This section describes the specifics of the interrupt handling as performed in ATtiny87/167.
For a general explanation of the AVR interrupt handling, refer to “Reset and Interrupt Han-
dling” on page 12.
7.1 Interrupt Vectors in ATtiny87/167
Table 7-1. Reset and Interrupt Vectors in ATtiny87/167
Vector
Nb.
Program Address
Source Interrupt DefinitionATtiny87 ATtiny167
1 0x0000 0x0000 RESET
External Pin, Power-on Reset, Brown-out Reset and
Watchdog System Reset
2 0x0001 0x0002 INT0 External Interrupt Request 0
3 0x0002 0x0004 INT1 External Interrupt Request 1
4 0x0003 0x0006 PCINT0 Pin Change Interrupt Request 0
5 0x0004 0x0008 PCINT1 Pin Change Interrupt Request 1
6 0x0005 0x000A WDT Watchdog Time-out Interrupt
7 0x0006 0x000C TIMER1 CAPT Timer/Counter1 Capture Event
8 0x0007 0x000E TIMER1 COMPA Timer/Counter1 Compare Match A
9 0x0008 0x0010 TIMER1 COMPB Timer/Coutner1 Compare Match B
10 0x0009 0x0012 TIMER1 OVF Timer/Counter1 Overflow
11 0x000A 0x0014 TIMER0 COMPA Timer/Counter0 Compare Match A
12 0x000B 0x0016 TIMER0 OVF Timer/Counter0 Overflow
13 0x000C 0x0018 LIN TC LIN/UART Transfer Complete
14 0x000D 0x001A LIN ERR LIN/UART Error
15 0x000E 0x001C SPI, STC SPI Serial Transfer Complete
16 0x000F 0x001E ADC ADC Conversion Complete
17 0x0010 0x0020 EE READY EEPROM Ready
18 0x0011 0x0022 ANALOG COMP Analog Comparator
19 0x0012 0x0024 USI START USI
Start Condition Detection
20 0x0013 0x0026 USI OVF USI Counter Overflow