DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ATMEGA64-16MI View Datasheet(PDF) - Atmel Corporation

Part Name
Description
Manufacturer
ATMEGA64-16MI Datasheet PDF : 363 Pages
First Prev 51 52 53 54 55 56 57 58 59 60 Next Last
Table 23. Reset and Interrupt Vectors (Continued)
Vector
No.
32
33
34
35
Program
Address(2)
0x003E(3)
0x0040(3)
0x0042(3)
0x0044(3)
Source
USART1, UDRE
USART1, TX
TWI
SPM READY
Interrupt Definition
USART1 Data Register Empty
USART1, Tx Complete
Two-wire Serial Interface
Store Program Memory Ready
Notes:
1. When the BOOTRST Fuse is programmed, the device will jump to the Boot Loader
address at reset, see “Boot Loader Support – Read-While-Write Self-programming”
on page 277.
2. When the IVSEL bit in MCUCR is set, Interrupt Vectors will be moved to the start of
the Boot Flash section. The address of each Interrupt Vector will then be address in
this table added to the start address of the Boot Flash section.
3. The Interrupts on address 0x0030 - 0x0044 do not exist in ATmega103 compatibility
mode.
Table 24 shows Reset and Interrupt Vectors placement for the various combinations of
BOOTRST and IVSEL settings. If the program never enables an interrupt source, the
Interrupt Vectors are not used, and regular program code can be placed at these loca-
tions. This is also the case if the Reset Vector is in the Application section while the
Interrupt Vectors are in the Boot section or vice versa.
Table 24. Reset and Interrupt Vectors Placement(1)
BOOTRST IVSEL Reset Address
Interrupt Vectors Start Address
1
0
0x0000
0x0002
1
1
0x0000
Boot Reset Address + 0x0002
0
0
Boot Reset Address
0x0002
0
1
Boot Reset Address
Boot Reset Address + 0x0002
Note: 1. The Boot Reset Address is shown in Table 113 on page 289. 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 ATmega64 is:
Address Labels Code
Comments
0x0000
jmp
RESET
; Reset Handler
0x0002
jmp
EXT_INT0
; IRQ0 Handler
0x0004
jmp
EXT_INT1
; IRQ1 Handler
0x0006
jmp
EXT_INT2
; IRQ2 Handler
0x0008
jmp
EXT_INT3
; IRQ3 Handler
0x000A
jmp
EXT_INT4
; IRQ4 Handler
0x000C
jmp
EXT_INT5
; IRQ5 Handler
0x000E
jmp
EXT_INT6
; IRQ6 Handler
0x0010
jmp
EXT_INT7
; IRQ7 Handler
0x0012
jmp
TIM2_COMP ; Timer2 Compare Handler
0x0014
jmp
TIM2_OVF
; Timer2 Overflow Handler
0x0016
jmp
TIM1_CAPT ; Timer1 Capture Handler
0x0018
jmp
TIM1_COMPA ; Timer1 CompareA Handler
0x001A
jmp
TIM1_COMPB ; Timer1 CompareB Handler
0x001C
jmp
TIM1_OVF
; Timer1 Overflow Handler
60 ATmega64(L)
2490G–AVR–03/04

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]