Datasheet

48
ATtiny25/45/85 [DATASHEET]
2586Q–AVR–08/2013
9. Interrupts
This section describes the specifics of the interrupt handling as performed in ATtiny25/45/85. For a general expla-
nation of the AVR interrupt handling, refer to “Reset and Interrupt Handling” on page 12.
9.1 Interrupt Vectors in ATtiny25/45/85
The interrupt vectors of ATtiny25/45/85 are described in Table 9-1below.
If the program never enables an interrupt source, the Interrupt Vectors are not used, and regular program code can
be placed at these locations.
Table 9-1. Reset and Interrupt Vectors
Vector No. Program Address Source Interrupt Definition
1 0x0000 RESET
External Pin, Power-on Reset,
Brown-out Reset, Watchdog Reset
2 0x0001 INT0 External Interrupt Request 0
3 0x0002 PCINT0 Pin Change Interrupt Request 0
4 0x0003 TIMER1_COMPA Timer/Counter1 Compare Match A
5 0x0004 TIMER1_OVF Timer/Counter1 Overflow
6 0x0005 TIMER0_OVF Timer/Counter0 Overflow
7 0x0006 EE_RDY EEPROM Ready
8 0x0007 ANA_COMP Analog Comparator
9 0x0008 ADC ADC Conversion Complete
10 0x0009 TIMER1_COMPB Timer/Counter1 Compare Match B
11 0x000A TIMER0_COMPA Timer/Counter0 Compare Match A
12 0x000B TIMER0_COMPB Timer/Counter0 Compare Match B
13 0x000C WDT Watchdog Time-out
14 0x000D USI_START USI START
15 0x000E USI_OVF USI Overflow