ATMEGA162L-8PC Atmel, ATMEGA162L-8PC Datasheet - Page 220

IC MCU AVR 16K 3V 8MHZ 40-DIP

ATMEGA162L-8PC

Manufacturer Part Number
ATMEGA162L-8PC
Description
IC MCU AVR 16K 3V 8MHZ 40-DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA162L-8PC

Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
Connectivity
EBI/EMI, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
35
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
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
Addressing the Flash
During Self-
programming
220
ATmega162(V/U/L)
The Z-pointer is used to address the SPM commands.
Since the Flash is organized in pages (see Table 106 on page 233), the Program
Counter can 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 Figure 95. Note that the Page Erase and
Page Write operations are 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 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 95. Addressing the Flash during SPM
Note:
Bit
ZH (R31)
ZL (R30)
Z - REGISTER
PROGRAM MEMORY
BIT
1. The different variables used in Figure 95 are listed in Table 96 on page 227.
PROGRAM
COUNTER
15
PAGE
Z15
15
Z7
PAGE ADDRESS
WITHIN THE FLASH
7
ZPCMSB
PCMSB
Z14
Z6
14
6
PCPAGE
Z13
13
Z5
5
ZPAGEMSB
PAGEMSB
PCWORD
Z12
12
Z4
4
WORD ADDRESS
WITHIN A PAGE
(1)
1
Z11
0
0
Z3
11
3
INSTRUCTION WORD
PAGE
Z10
10
Z2
2
Z9
Z1
9
1
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
2513C–AVR–09/02
Z8
Z0
8
0

Related parts for ATMEGA162L-8PC