Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

ATA6612C View Datasheet(PDF) - Atmel Corporation

Part Name
Description
MFG CO.
'ATA6612C' PDF : 312 Pages View PDF
Table 5-29 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 locations. 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 5-29. Reset and Interrupt Vectors Placement in ATA6613C(1)
BOOTRST
IVSEL
Reset Address
Interrupt Vectors Start Address
1
0
0x000
0x001
1
1
0x000
Boot reset address + 0x0002
0
0
Boot reset address
0x001
Note:
0
1
Boot reset address
Boot reset address + 0x0002
1. The Boot Reset Address is shown in Table 5-108 on page 251. 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 ATA6613C is:
Address
Labels Code
Comments
0x0000
rjmp RESET
; Reset Handler
0x0002
rjmp EXT_INT0
; IRQ0 Handler
0x0004
rjmp EXT_INT1
; IRQ1 Handler
0x0006
rjmp PCINT0
; PCINT0 Handler
0x0008
rjmp PCINT1
; PCINT1 Handler
0x000A
rjmp PCINT2
; PCINT2 Handler
0x000C
rjmp WDT
; Watchdog Timer Handler
0x000E
rjmp TIM2_COMPA ; Timer2 Compare A Handler
0x0010
rjmp TIM2_COMPB ; Timer2 Compare B Handler
0x0012
rjmp TIM2_OVF
; Timer2 Overflow Handler
0x0014
rjmp TIM1_CAPT ; Timer1 Capture Handler
0x0016
rjmp TIM1_COMPA ; Timer1 Compare A Handler
0x0018
rjmp TIM1_COMPB ; Timer1 Compare B Handler
0x001A
rjmp TIM1_OVF
; Timer1 Overflow Handler
0x001C
rjmp TIM0_COMPA ; Timer0 Compare A Handler
0x001E
rjmp TIM0_COMPB ; Timer0 Compare B Handler
0x0020
rjmp TIM0_OVF
; Timer0 Overflow Handler
0x0022
rjmp SPI_STC
; SPI Transfer Complete Handler
0x0024
rjmp USART_RXC ; USART, RX Complete Handler
0x0026
rjmp USART_UDRE ; USART, UDR Empty Handler
0x0028
rjmp USART_TXC ; USART, TX Complete Handler
0x002A
rjmp ADC
; ADC Conversion Complete Handler
0x002C
rjmp EE_RDY
; EEPROM Ready Handler
0x002E
rjmp ANA_COMP
; Analog Comparator Handler
0x0030
rjmp TWI
; 2-wire Serial Interface Handler
0x0032
rjmp SPM_RDY
; Store Program Memory Ready Handler
;
0x0033
RESET: ldi r16, high(RAMEND); Main program start
0x0034
out SPH,r16
; Set Stack Pointer to top of RAM
0x0035
ldi r16, low(RAMEND)
0x0036
out SPL,r16
0x0037
sei
; Enable interrupts
0x0038
<instr> xxx
... ... ... ...
74 ATA6612C/ATA6613C [DATASHEET]
9111L–AUTO–11/14
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]