9.4
Interrupt Vectors in ATmega328P
Table 9-6.
Reset and Interrupt Vectors in ATmega328P
Program
VectorNo.
Address
1
0x0000
2
0x0002
3
0x0004
4
0x0006
5
0x0008
6
0x000A
7
0x000C
8
0x000E
9
0x0010
10
0x0012
11
0x0014
12
0x0016
13
0x0018
14
0x001A
15
0x001C
16
0x001E
17
0x0020
18
0x0022
19
0x0024
20
0x0026
21
0x0028
8025I–AVR–02/09
Address Labels Code
;
.org 0x1C00
0x1C00
jmp
0x1C02
jmp
0x1C04
jmp
...
...
0x1C32
jmp
;
0x1C33
RESET: ldi
0x1C34
out
0x1C35
ldi
0x1C36
out
0x1C37
sei
0x1C38
<instr>
(2)
Source
(1)
RESET
INT0
INT1
PCINT0
PCINT1
PCINT2
WDT
TIMER2 COMPA
TIMER2 COMPB
TIMER2 OVF
TIMER1 CAPT
TIMER1 COMPA
TIMER1 COMPB
TIMER1 OVF
TIMER0 COMPA
TIMER0 COMPB
TIMER0 OVF
SPI, STC
USART, RX
USART, UDRE
USART, TX
ATmega48P/88P/168P/328P
Comments
RESET
; Reset handler
EXT_INT0
; IRQ0 Handler
EXT_INT1
; IRQ1 Handler
...
;
SPM_RDY
; Store Program Memory Ready Handler
r16,high(RAMEND); Main program start
SPH,r16
; Set Stack Pointer to top of RAM
r16,low(RAMEND)
SPL,r16
; Enable interrupts
xxx
Interrupt Definition
External Pin, Power-on Reset, Brown-out Reset and Watchdog System Reset
External Interrupt Request 0
External Interrupt Request 1
Pin Change Interrupt Request 0
Pin Change Interrupt Request 1
Pin Change Interrupt Request 2
Watchdog Time-out Interrupt
Timer/Counter2 Compare Match A
Timer/Counter2 Compare Match B
Timer/Counter2 Overflow
Timer/Counter1 Capture Event
Timer/Counter1 Compare Match A
Timer/Coutner1 Compare Match B
Timer/Counter1 Overflow
Timer/Counter0 Compare Match A
Timer/Counter0 Compare Match B
Timer/Counter0 Overflow
SPI Serial Transfer Complete
USART Rx Complete
USART, Data Register Empty
USART, Tx Complete
65
Need help?
Do you have a question about the ATmega48PV and is the answer not in the manual?
Questions and answers