ATMEGA329V-8MUR Atmel, ATMEGA329V-8MUR Datasheet - Page 283

no-image

ATMEGA329V-8MUR

Manufacturer Part Number
ATMEGA329V-8MUR
Description
MCU AVR 32K FLASH 8MHZ 64QFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA329V-8MUR

Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
Connectivity
SPI, UART/USART, USI
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
26.6
26.7
2552K–AVR–04/11
Addressing the Flash During Self-Programming
Self-Programming the Flash
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
addressed 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 program-
ming 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 26-3. Addressing the Flash During SPM
Note:
The program memory is updated in a page by page fashion. Before programming a page with
the data stored in the temporary page buffer, the page must be erased. The temporary page buf-
Bit
ZH (R31)
ZL (R30)
Z - REGISTER
1. The different variables used in
2. PCPAGE and PCWORD are listed in
PROGRAM MEMORY
BIT
Z15
PAGE
15
Z7
PROGRAM
COUNTER
7
15
Figure
PAGE ADDRESS
WITHIN THE FLASH
Z14
ZPCMSB
Z6
PCMSB
14
6
26-3. Note that the Page Erase and Page Write operations are
PCPAGE
Z13
13
Z5
5
Figure 26-3
Z12
12
Z4
4
ZPAGEMSB
PAGEMSB
Table 27-10 on page
PCWORD
ATmega329/3290/649/6490
Table 27-10 on page
WORD ADDRESS
WITHIN A PAGE
Z11
(1)
11
Z3
3
are listed in
1
0
0
INSTRUCTION WORD
Z10
10
Z2
2
PAGE
Table 26-8 on page
298.
298), the Program Counter can
Z9
Z1
9
1
Z8
Z0
8
0
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
290.
283

Related parts for ATMEGA329V-8MUR