
51
ATmega8515(L)
2512A–AVR–04/02
Interrupts Thissection describes the specifics of theinterrupt handling asperformed in
ATmega8515. For ageneral explanation of the AVR interrupt handling,refer to “Reset
andInterrupt Handling” on page 11.
Interrupt Vectors in
ATmega8515
Notes: 1. When the BOOTRST Fuseisprogrammed, the device will jump to the Boot Loader
address at reset,see “Boot LoaderSupport–Read-While-Write Self-Programming”
on page 162.
2. When the IVSEL bit in GICRisset,InterruptVectors will bemoved to the startof the
Boot Flash section. Theaddress of each InterruptVectorwill then betheaddress in
this tableadded to the startaddress of the Boot Flash section.
Table23shows Reset andInterruptVectors placement for thevariouscombinations of
BOOTRSTandIVSEL settings. If the program never enables an interrupt source, the
InterruptVectors are not used, andregularprogram code can be placed at these loca-
tions.This is alsothe caseif theReset Vector is in theApplication section whilethe
InterruptVectors areinthe Boot section or viceversa.
Table 22. Reset andInterruptVectors
Vector No.
Program
Address
(2)
Source Interrupt Definition
1 $000
(1)
RESET External Pin, Power-on Reset,Brown-out
Reset andWatchdog Reset
2 $001 INT0 ExternalInterruptRequest0
3$002 INT1 ExternalInterruptRequest1
4 $003 TIMER1 CAPT Timer/Counter1 Capture Event
5 $004 TIMER1 COMPA Ti m e r/Counter1 Compare Match A
6$005 TIMER1 COMPB Timer/Counter1 Compare Match B
7$006 TIMER1 OVF Timer/Counter1 Overflow
8 $007 TIMER0 OVF Timer/Counter0 Overflow
9$008 SPI, STCSerial TransferComplete
10 $009USART, RXC USART, RxComplete
11 $00A USART,UDREUSART Data RegisterEmpty
12 $00BUSART, TXC USART, TxComplete
13$00C ANA_COMPAnalog Comparator
14 $00DINT2 ExternalInterruptRequest2
15 $00E TIMER0 COMPTimer/Counter0 Compare Match
16$00F EE_RDY E EPROM Ready
17$010 SPM_RDY S toreProgram Memory Ready
Komentarze do niniejszej Instrukcji