beautypg.com

Interrupts, Interrupt vectors in attiny2313, Attiny2313 – Rainbow Electronics ATtiny2313 User Manual

Page 45

background image

45

ATtiny2313

2543A–AVR–08/03

Interrupts

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

Interrupt Vectors in
ATtiny2313

Table 22. Reset and Interrupt Vectors

Vector

No.

Program

Address

Source

Interrupt Definition

1

0x0000

RESET

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

2

0x0001

INT0

External Interrupt Request 0

3

0x0002

INT1

External Interrupt Request 1

4

0x0003

TIMER1 CAPT

Timer/Counter1 Capture Event

5

0x0004

TIMER1 COMPA

Timer/Counter1 Compare Match A

6

0x0005

TIMER1 OVF

Timer/Counter1 Overflow

7

0x0006

TIMER0 OVF

Timer/Counter0 Overflow

8

0x0007

USART0, RX

USART0, Rx Complete

9

0x0008

USART0, UDRE

USART0 Data Register Empty

10

0x0009

USART0, TX

USART0, Tx Complete

11

0x000A

ANALOG COMP

Analog Comparator

12

0x000B

PCINT

Pin Change Interrupt

13

0x000C

TIMER1 COMPB

Timer/Counter1 Compare Match B

14

0x000D

TIMER0 COMPA

Timer/Counter0 Compare Match A

15

0x000E

TIMER0 COMPB

Timer/Counter0 Compare Match B

16

0x000F

USI START

USI Start Condition

17

0x0010

USI OVERFLOW

USI Overflow

18

0x0011

EE READY

EEPROM Ready

19

0x0012

WDT OVERFLOW

Watchdog Timer Overflow