Interrupts, Interrupt vectors in atmega128, Atmega128(l) – Rainbow Electronics ATmega128L User Manual

Page 54

Advertising
background image

54

ATmega128(L)

2467B–09/01

Interrupts

This chapter describes the specifics of the interrupt handling as performed in
ATmega128. For a general explanation of the AVR interrupt handling, refer to

“Reset

and Interrupt Handling” on page 13.

Interrupt Vectors in
ATmega128

Table 23. Reset and Interrupt Vectors

Vector

No.

Program

Address

(2)

Source

Interrupt Definition

1

$0000

(1)

RESET

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

2

$0002

INT0

External Interrupt Request 0

3

$0004

INT1

External Interrupt Request 1

4

$0006

INT2

External Interrupt Request 2

5

$0008

INT3

External Interrupt Request 3

6

$000A

INT4

External Interrupt Request 4

7

$000C

INT5

External Interrupt Request 5

8

$000E

INT6

External Interrupt Request 6

9

$0010

INT7

External Interrupt Request 7

10

$0012

TIMER2 COMP

Timer/Counter2 Compare Match

11

$0014

TIMER2 OVF

Timer/Counter2 Overflow

12

$0016

TIMER1 CAPT

Timer/Counter1 Capture Event

13

$0018

TIMER1 COMPA

Timer/Counter1 Compare Match A

14

$001A

TIMER1 COMPB

Timer/Counter1 Compare Match B

15

$001C

TIMER1 OVF

Timer/Counter1 Overflow

16

$001E

TIMER0 COMP

Timer/Counter0 Compare Match

17

$0020

TIMER0 OVF

Timer/Counter0 Overflow

18

$0022

SPI, STC

SPI Serial Transfer Complete

19

$0024

USART0, RX

USART0, Rx Complete

20

$0026

USART0, UDRE

USART0 Data Register Empty

21

$0028

USART0, TX

USART0, Tx Complete

22

$002A

ADC

ADC Conversion Complete

23

$002C

EE READY

EEPROM Ready

24

$002E

ANALOG COMP

Analog Comparator

25

$0030

(3)

TIMER1 COMPC

Timer/Countre1 Compare Match C

26

$0032

(3)

TIMER3 CAPT

Timer/Counter3 Capture Event

27

$0034

(3)

TIMER3 COMPA

Timer/Counter3 Compare Match A

28

$0036

(3)

TIMER3 COMPB

Timer/Counter3 Compare Match B

29

$0038

(3)

TIMER3 COMPC

Timer/Counter3 Compare Match C

30

$003A

(3)

TIMER3 OVF

Timer/Counter3 Overflow

Advertising