ATTIny13-12PI ATMEL Corporation, ATTIny13-12PI Datasheet - Page 96
ATTIny13-12PI
Manufacturer Part Number
ATTIny13-12PI
Description
8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
1.ATTINY13-12PI.pdf
(169 pages)
- Current page: 96 of 169
- Download datasheet (3Mb)
Addressing the Flash
During Self-
Programming
96
ATtiny13
The Z-pointer is used to address the SPM commands.
Since the Flash is organized in pages (see Table 46 on page 102), the Program Counter
can be treated as having two different sections. One section, consisting of the least sig-
nificant bits, is addressing the words within a page, while the most significant bits are
addressing the pages. This is shown in Figure 52. Note that the Page Erase and Page
Write operations are addressed independently. Therefore it is of major importance that
the software addresses the same page in both the Page Erase and Page Write
operation.
The LPM instruction uses 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 52. Addressing the Flash During SPM
Note:
Bit
ZH (R31)
ZL (R30)
Z - REGISTER
PROGRAM MEMORY
1. The different variables used in Figure 52 are listed in Table 46 on page 102.
BIT
PAGE
PROGRAM
COUNTER
15
Z15
Z7
15
7
PAGE ADDRESS
WITHIN THE FLASH
ZPCMSB
PCMSB
Z14
Z6
14
6
PCPAGE
Z13
Z5
13
5
ZPAGEMSB
PAGEMSB
PCWORD
Z12
12
Z4
4
WORD ADDRESS
WITHIN A PAGE
(1)
1
Z11
11
Z3
0
0
3
INSTRUCTION WORD
PAGE
Z10
10
Z2
2
Z9
Z1
9
1
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
2535B–AVR–01/04
Z8
Z0
8
0
Related parts for ATTIny13-12PI
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
Part Number:
Description:
8-bit Microcontroller With 1k Bytes In-system Programmable Flash - Atmel Corporation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet: