Datasheet

57
4317K–AVR–03/2013
AT90PWM2/3/2B/3B
10. Interrupts
This section describes the specifics of the interrupt handling as performed in
AT90PWM2/2B/3/3B. For a general explanation of the AVR interrupt handling, refer to “Reset
and Interrupt Handling” on page 16.
10.1 Interrupt Vectors in AT90PWM2/2B/3/3B
Table 10-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, and Emulation AVR Reset
2 0x0001 PSC2 CAPT PSC2 Capture Event
3 0x0002 PSC2 EC PSC2 End Cycle
4 0x0003 PSC1 CAPT PSC1 Capture Event
5 0x0004 PSC1 EC PSC1 End Cycle
6 0x0005 PSC0 CAPT PSC0 Capture Event
7 0x0006 PSC0 EC PSC0 End Cycle
8 0x0007 ANACOMP 0 Analog Comparator 0
9 0x0008 ANACOMP 1 Analog Comparator 1
10 0x0009 ANACOMP 2 Analog Comparator 2
11 0x000A INT0 External Interrupt Request 0
12 0x000B TIMER1 CAPT Timer/Counter1 Capture Event
13 0x000C TIMER1 COMPA Timer/Counter1 Compare Match A
14 0x000D TIMER1 COMPB Timer/Counter1 Compare Match B
15 0x000E
16 0x000F TIMER1 OVF Timer/Counter1 Overflow
17 0x0010 TIMER0 COMPA Timer/Counter0 Compare Match A
18 0x0011 TIMER0 OVF Timer/Counter0 Overflow
19 0x0012 ADC ADC Conversion Complete
20 0x0013 INT1 External Interrupt Request 1
21 0x0014 SPI, STC SPI Serial Transfer Complete
22 0x0015 USART0, RX USART0, Rx Complete
23 0x0016 USART0, UDRE USART0 Data Register Empty
24 0x0017 USART0, TX USART0, Tx Complete
25 0x0018 INT2 External Interrupt Request 2
26 0x0019 WDT Watchdog Time-Out Interrupt
27 0x001A EE READY EEPROM Ready
28 0x001B TIMER0 COMPB Timer/Counter0 Compare Match B