English
Language : 

ATMEGA88PV-10PU Datasheet, PDF (61/420 Pages) ATMEL Corporation – 8-bit Atmel Microcontroller with 4/8/16K Bytes In-System Programmable Flash
8025M–AVR–6/11
ATmega48P/88P/168P
Table 12-3. Reset and Interrupt Vectors Placement in ATmega88P(1)
BOOTRST
IVSEL Reset Address
Interrupt Vectors Start Address
1
0
0x000
0x001
1
1
0x000
Boot Reset Address + 0x001
0
0
Boot Reset Address
0x001
0
1
Boot Reset Address
Boot Reset Address + 0x001
Note: 1. The Boot Reset Address is shown in Table 27-7 on page 287. For the BOOTRST Fuse “1”
means unprogrammed while “0” means programmed.
The most typical and general program setup for the Reset and Interrupt Vector Addresses in
ATmega88P is:
Address Labels Code
Comments
0x000
rjmp RESET
; Reset Handler
0x001
rjmp EXT_INT0
; IRQ0 Handler
0x002
rjmp EXT_INT1
; IRQ1 Handler
0x003
rjmp PCINT0
; PCINT0 Handler
0x004
rjmp PCINT1
; PCINT1 Handler
0x005
rjmp PCINT2
; PCINT2 Handler
0x006
rjmp WDT
; Watchdog Timer Handler
0x007
rjmp TIM2_COMPA
; Timer2 Compare A Handler
0X008
rjmp TIM2_COMPB
; Timer2 Compare B Handler
0x009
rjmp TIM2_OVF
; Timer2 Overflow Handler
0x00A
rjmp TIM1_CAPT
; Timer1 Capture Handler
0x00B
rjmp TIM1_COMPA
; Timer1 Compare A Handler
0x00C
rjmp TIM1_COMPB
; Timer1 Compare B Handler
0x00D
rjmp TIM1_OVF
; Timer1 Overflow Handler
0x00E
rjmp TIM0_COMPA
; Timer0 Compare A Handler
0x00F
rjmp TIM0_COMPB
; Timer0 Compare B Handler
0x010
rjmp TIM0_OVF
; Timer0 Overflow Handler
0x011
rjmp SPI_STC
; SPI Transfer Complete Handler
0x012
rjmp USART_RXC
; USART, RX Complete Handler
0x013
rjmp USART_UDRE
; USART, UDR Empty Handler
0x014
rjmp USART_TXC
; USART, TX Complete Handler
0x015
rjmp ADC
; ADC Conversion Complete Handler
0x016
rjmp EE_RDY
; EEPROM Ready Handler
0x017
rjmp ANA_COMP
; Analog Comparator Handler
0x018
rjmp TWI
; 2-wire Serial Interface Handler
0x019
rjmp SPM_RDY
; Store Program Memory Ready Handler
;
0x01ARESET: ldi r16, high(RAMEND); Main program start
0x01B
out SPH,r16
; Set Stack Pointer to top of RAM
0x01C
ldi r16, low(RAMEND)
0x01D
0x01E
out SPL,r16
sei
; Enable interrupts
0x01F
<instr> xxx
61