English
Language : 

AT90PWM161_14 Datasheet, PDF (62/327 Pages) ATMEL Corporation – 131 powerful instructions - most single clock cycle execution
AT90PWM81/161
8. Interrupts
This section describes the specifics of the interrupt handling as performed in the Atmel
AT90PWM81/161. For a general explanation of the AVR interrupt handling, refer to “Reset and
Interrupt Handling” on page 13.
8.1 Interrupt Vectors in AT90PWM81/161
Table 8-1. Reset and interrupt vectors.
Vector
no.
AT90PWM81
program
address
AT90PWM161
program
address
Source
1
0x0000
0x0000
RESET
2
0x0001
3
0x0002
4
0x0003
5
0x0004
6
0x0005
7
0x0006
8
0x0007
9
0x0008
10
0x0009
11
0x000A
12
0x000B
13
0x000C
14
0x000D
15
0x000E
16
0x000F
17
0x0010
18
0x0011
19
0x0012
20
0x0013
0x0002
0x0004
0x0006
0x0008
0x000A
0x000C
0x000E
0x0010
0x0012
0x0014
0x0016
0x0018
0x001A
0x001C
0x001E
0x0020
0x0022
0x0024
0x0026
PSC2 CAPT
PSC2 EC
PSC2 EEC
PSCr CAPT
PSCr EC
PSCr EEC
ANACOMP 0
ANACOMP 1
ANACOMP 2
INT0
TIMER1
CAPT
TIMER1 OVF
ADC
INT1
SPI, STC
INT2
WDT
EE READY
SPM READY
Interrupt definition
External pin, power-on reset, brown-out
reset, watchdog reset, and emulation
AVR reset
PSC2 capture event
PSC2 end cycle
PSC2 end of enhanced cycle
PSC reduced capture event
PSC reduced end cycle
PSC reduced end of enhanced cycle
Analog comparator 0
Analog comparator 1
Analog comparator 2
External interrupt request 0
Timer/Counter1 capture event
Timer/Counter1 overflow
ADC conversion complete
External interrupt request 1
SPI serial transfer complete
External interrupt request 2
Watchdog time-out interrupt
EEPROM ready
Store program memory ready
Notes: 1. When the BOOTRST fuse is programmed, the device will jump to the boot loader address at
reset, see “Boot Loader Support – Read-While-Write Self-Programming” on page 233.
2. When the IVSEL bit in MCUCR is set, interrupt vectors will be moved to the start of the boot
flash section. The address of each interrupt vector will then be the address in this table added
to the start address of the boot flash section.
Table 8-2 on page 63 shows reset and Interrupt Vectors placement for the various combinations
of BOOTRST and IVSEL settings. If the program never enables an interrupt source, the Interrupt
Vectors are not used, and regular program code can be placed at these locations. This is also
62
7734Q–AVR–02/12