ATMEGA165-16AI Atmel, ATMEGA165-16AI Datasheet - Page 47

IC AVR MCU 16K 16MHZ 64TQFP

ATMEGA165-16AI

Manufacturer Part Number
ATMEGA165-16AI
Description
IC AVR MCU 16K 16MHZ 64TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA165-16AI

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
SPI, UART/USART, USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP, 64-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA165-16AI
Manufacturer:
Atmel
Quantity:
10 000
2573G–AVR–07/09
Table 23 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 23. Reset and Interrupt Vectors Placement
Note:
The most typical and general program setup for the Reset and Interrupt Vector
Addresses in ATmega165 is:
BOOTRST
Address
0x0000
0x0002
0x0004
0x0006
0x0008
0x000A
0x000C
0x000E
0x0010
0x0012
0x0014
0x0016
0x0018
0x001A
0x001C
0x001E
0x0020
0x0022
0x0024
0x0026
0x0028
0x002A
;
0x002C
0x002E
0x002F
0x0030
0x0031
0x0032
...
1
1
0
0
1. The Boot Reset Address is shown in Table 96 on page 244. For the BOOTRST Fuse
“1” means unprogrammed while “0” means programmed.
Labels Code
RESET: ldi
...
IVSEL
0
1
0
1
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
out
ldi
out
sei
<instr>
...
Reset Address
0x0000
0x0000
Boot Reset Address
Boot Reset Address
...
RESET
EXT_INT0
PCINT0
PCINT1
TIM2_COMP
TIM2_OVF
TIM1_CAPT
TIM1_COMPA
TIM1_COMPB
TIM1_OVF
TIM0_COMP
TIM0_OVF
SPI_STC
USART_RXC
USART_DRE
USART_TXC
USI_STRT
USI_OVFL
ANA_COMP
ADC
EE_RDY
SPM_RDY
r16, high(RAMEND); Main program start
SPH,r16
r16, low(RAMEND)
SPL,r16
xxx
Comments
; Reset Handler
; IRQ0 Handler
; PCINT0 Handler
; PCINT0 Handler
; Timer2 Compare Handler
; Timer2 Overflow Handler
; Timer1 Capture Handler
; Timer1 CompareA Handler
; Timer1 CompareB Handler
; Timer1 Overflow Handler
; Timer0 Compare Handler
; Timer0 Overflow Handler
; SPI Transfer Complete Handler
; USART RX Complete Handler
; USART,UDR Empty Handler
; USART TX Complete Handler
; USI Start Condition Handler
; USI Overflow Handler
; Analog Comparator Handler
; ADC Conversion Complete Handler
; EEPROM Ready Handler
; SPM Ready Handler
; Enable interrupts
(1)
Interrupt Vectors Start Address
0x0002
Boot Reset Address + 0x0002
0x0002
Boot Reset Address + 0x0002
Set Stack Pointer to top of RAM
ATmega165/V
47

Related parts for ATMEGA165-16AI