ATMEGA64-16MJ Atmel, ATMEGA64-16MJ Datasheet - Page 283

no-image

ATMEGA64-16MJ

Manufacturer Part Number
ATMEGA64-16MJ
Description
IC MCU AVR 64K 5V 16MHZ 64-QFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA64-16MJ

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
64KB (32K x 16)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-MLF®, 64-QFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Addressing the
Flash During Self-
programming
2490Q–AVR–06/10
The Z-pointer is used to address the SPM commands.
Since the Flash is organized in pages (see
be treated as having two different sections. One section, consisting of the least significant bits, is
addressing the words within a page, while the most significant bits are addressing the pages.
This is shown in
independently. Therefore, it is of major importance that the Boot Loader software addresses the
same page in both the Page Erase and Page Write operation. Once a programming operation is
initiated, the address is latched and the Z-pointer can be used for other operations.
The only SPM operation that does not use the Z-pointer is Setting the Boot Loader Lock bits.
The content of the Z-pointer is ignored and will have no effect on the operation. The LPM
instruction does also use the Z-pointer to store the address. Since this instruction addresses the
Flash byte-by-byte, also the LSB (Bit Z0) of the Z-pointer is used.
Figure 137. Addressing the Flash during SPM
Notes:
Bit
ZH (R31)
ZL (R30)
Z - REGISTER
1. The different variables used in
2. PCPAGE and PCWORD are listed in
PROGRAM MEMORY
BIT
Z15
PROGRAM
COUNTER
15
Z7
15
PAGE
7
Figure
PAGE ADDRESS
WITHIN THE FLASH
ZPCMSB
137. Note that the Page Erase and Page Write operations are addressed
PCMSB
Z14
Z6
14
6
PCPAGE
Z13
13
Z5
5
Figure 137
Z12
12
Z4
4
ZPAGEMSB
PAGEMSB
PCWORD
Table 123 on page
Table 124 on page
(1)
WORD ADDRESS
WITHIN A PAGE
Z11
Table 2 on page 283
11
Z3
are listed in
3
1
0
0
INSTRUCTION WORD
Z10
10
Z2
2
Table 113 on page
PAGE
296.
296), the Program Counter can
Z9
Z1
9
1
ATmega64(L)
Z8
Z0
8
0
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
289.
283

Related parts for ATMEGA64-16MJ