Datasheet

Vector No Program Address Source Interrupts definition
23 0x0016 EE READY EEPROM Ready
24 0x0017 ANALOG COMP Analog Comparator
25 0x0018 TWI 2-wire Serial Interface (I
2
C)
26 0x0019 SPM READY Store Program Memory Ready
The most typical and general program setup for the Reset and Interrupt Vector Addresses is:
Address Labels Code Comments
0x0000 jmp RESET ; Reset
0x0001 jmp INT0 ; IRQ0
0x0002 jmp INT1 ; IRQ1
0x0003 jmp PCINT0 ; PCINT0
0x0004 jmp PCINT1 ; PCINT1
0x0005 jmp PCINT2 ; PCINT2
0x0006 jmp WDT ; Watchdog Timeout
0x0007 jmp TIM2_COMPA ; Timer2 CompareA
0x0008 jmp TIM2_COMPB ; Timer2 CompareB
0x0009 jmp TIM2_OVF ; Timer2 Overflow
0x000A jmp TIM1_CAPT ; Timer1 Capture
0x000B jmp TIM1_COMPA ; Timer1 CompareA
0x000C jmp TIM1_COMPB ; Timer1 CompareB
0x000C jmp TIM1_OVF ; Timer1 Overflow
0x000E jmp TIM0_COMPA ; Timer0 CompareA
0x000F jmp TIM0_COMPB ; Timer0 CompareB
0x0010 jmp TIM0_OVF ; Timer0 Overflow
0x0011 jmp SPI_STC ; SPI Transfer Complete
0x0012 jmp USART_RXC ; USART RX Complete
0x0013 jmp USART_UDRE ; USART UDR Empty
0x0014 jmp USART_TXC ; USART TX Complete
0x0015 jmp ADC ; ADC Conversion Complete
0x0016 jmp EE_RDY ; EEPROM Ready
0x0017 jmp ANA_COMP ; Analog Comparator
0x0018 jmp TWI ; 2-wire Serial
0x0019 jmp SPM_RDY ; SPM Ready
;
0x001A RESET: ldi r16,high(RAMEND) ; Main program start
0x001B out SPH,r16 ; Set Stack Pointer to top of RAM
0x001C ldi r16,low(RAMEND)
0x001D out SPL,r16
0x001E sei ; Enable interrupts
0x001F <instr> xxx
... ... ... ...
16.2 Interrupt Vectors in ATmega88PA
Table 16-2. Reset and Interrupt Vectors in ATmega88PA
Vector No
Program Address
(2)
Source Interrupts definition
1 0x0000
(1)
RESET External Pin, Power-on Reset, Brown-out Reset and Watchdog System
Reset
2 0x0001 INT0 External Interrupt Request 0
3 0x0002 INT1 External Interrupt Request 0
4 0x0003 PCINT0 Pin Change Interrupt Request 0
5 0x0004 PCINT1 Pin Change Interrupt Request 1
6 0x0005 PCINT2 Pin Change Interrupt Request 2
7 0x0006 WDT Watchdog Time-out Interrupt
ATmega48PA/88PA/168PA
Interrupts
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002011A-page 89