ATTIny13-12PI ATMEL Corporation, ATTIny13-12PI Datasheet - Page 110

no-image

ATTIny13-12PI

Manufacturer Part Number
ATTIny13-12PI
Description
8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
Programming the Flash
Figure 58. High-voltage Serial Programming Waveforms
110
SDO
PB0
PB1
PB2
PB3
SDI
SCI
SII
ATtiny13
0
MSB
MSB
MSB
1
2
The Flash is organized in pages, see Table 50 on page 106. When programming the
Flash, the program data is latched into a page buffer. This allows one page of program
data to be programmed simultaneously. The following procedure describes how to pro-
gram the entire Flash memory:
1. Load Command “Write Flash” (see Table 55).
2. Load Flash Page Buffer.
3. Load Flash High Address and Program Page. Wait after Instr. 3 until SDO goes
4. Repeat 2 through 3 until the entire Flash is programmed or until all data has
5. End Page Programming by Loading Command “No Operation”.
When writing or reading serial data to the ATtiny13, data is clocked on the rising edge of
the serial clock, see Figure 58, Figure 59 and Table 56 for details.
Figure 57. Addressing the Flash which is Organized in Pages
high for the “Page Programming” cycle to finish.
been programmed.
PROGRAM MEMORY
3
PROGRAM
COUNTER
PAGE
4
PAGE ADDRESS
WITHIN THE FLASH
PCMSB
5
PCPAGE
6
PAGEMSB
PCWORD
7
WORD ADDRESS
WITHIN A PAGE
LSB
LSB
LSB
8
INSTRUCTION WORD
PAGE
9
10
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
2535B–AVR–01/04

Related parts for ATTIny13-12PI