Datasheet

49
8197C–AVR–05/11
ATtiny261A/461A/861A
9. Interrupts
This section describes the specifics of the interrupt handling as performed in
ATtiny261A/461A/861A. For a general explanation of the AVR interrupt handling, refer to “Reset
and Interrupt Handling” on page 12.
9.1 Interrupt Vectors
Interrupt vectors of ATtiny261A/461A/861A are described in Table 9-1 below.
If the program never enables an interrupt source, the Interrupt Vectors are not used, and regular
program code can be placed at these locations.
The most typical and general program setup for the Reset and Interrupt Vector Addresses in
ATtiny261A/461A/861A is shown in the following program example.
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 PCINT Pin Change Interrupt Request
4 0x0003 TIMER1_COMPA Timer/Counter1 Compare Match A
5 0x0004 TIMER1_COMPB Timer/Counter1 Compare Match B
6 0x0005 TIMER1_OVF Timer/Counter1 Overflow
7 0x0006 TIMER0_OVF Timer/Counter0 Overflow
8 0x0007 USI_START USI Start
9 0x0008 USI_OVF USI Overflow
10 0x0009 EE_RDY EEPROM Ready
11 0x000A ANA_COMP Analog Comparator
12 0x000B ADC ADC Conversion Complete
13 0x000C WDT Watchdog Time-out
14 0x000D INT1 External Interrupt Request 1
15 0x000E TIMER0_COMPA Timer/Counter0 Compare Match A
16 0x000F TIMER0_COMPB Timer/Counter0 Compare Match B
17 0x0010 TIMER0_CAPT Timer/Counter1 Capture Event
18 0x0011 TIMER1_COMPD Timer/Counter1 Compare Match D
19 0x0012 FAULT_PROTECTION Timer/Counter1 Fault Protection