beautypg.com

Interrupts, Interrupt vectors in atmega8515, Atmega8515(l) – Rainbow Electronics ATmega8515L User Manual

Page 51

background image

51

ATmega8515(L)

2512A–AVR–04/02

Interrupts

This section describes the specifics of the interrupt handling as performed in
ATmega8515. For a general explanation of the AVR interrupt handling, refer to “Reset
and Interrupt Handling” on page 11
.

Interrupt Vectors in
ATmega8515

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 162.

2. When the IVSEL bit in GICR 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 23 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 loca-
tions. This is also the case if the Reset Vector is in the Application section while the
Interrupt Vectors are in the Boot section or vice versa.

Table 22. Reset and Interrupt Vectors

Vector No.

Program

Address

(2)

Source

Interrupt Definition

1

$000

(1)

RESET

External Pin, Power-on Reset, Brown-out
Reset and Watchdog Reset

2

$001

INT0

External Interrupt Request 0

3

$002

INT1

External Interrupt Request 1

4

$003

TIMER1 CAPT

Timer/Counter1 Capture Event

5

$004

TIMER1 COMPA

Timer/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, STC

Serial Transfer Complete

10

$009

USART, RXC

USART, Rx Complete

11

$00A

USART, UDRE

USART Data Register Empty

12

$00B

USART, TXC

USART, Tx Complete

13

$00C

ANA_COMP

Analog Comparator

14

$00D

INT2

External Interrupt Request 2

15

$00E

TIMER0 COMP

Timer/Counter0 Compare Match

16

$00F

EE_RDY

EEPROM Ready

17

$010

SPM_RDY

Store Program Memory Ready