EasyManuals Logo

Atmel ATtiny13A User Manual

Atmel ATtiny13A
176 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #114 background imageLoading...
Page #114 background image
114
8126F–AVR–05/12
ATtiny13A
17.8.2 Programming the Flash
The Flash is organized in pages, see Table 17-9 on page 108. When programming the Flash,
the program data is latched into a page buffer. This allows one page of program data to be pro-
grammed simultaneously. The following procedure describes how to program the entire Flash
memory:
1. Load Command “Write Flash” (see Table 17-13 on page 111).
2. Load Flash Page Buffer.
3. Load Flash High Address and Program Page. Wait after Instr. 3 until SDO goes high for
the “Page Programming” cycle to finish.
4. Repeat 2 through 3 until the entire Flash is programmed or until all data has been
programmed.
5. End Page Programming by Loading Command “No Operation”.
When writing or reading serial data to the ATtiny13A, data is clocked on the rising edge of the
serial clock, see Figure 17-4 on page 115, Figure 18-5 on page 123 and Table 18-10 on page
123 for details.
Figure 17-3. Addressing the Flash which is Organized in Pages
PROGRAM MEMORY
WORD ADDRESS
WITHIN A PAGE
PAGE ADDRESS
WITHIN THE FLASH
INSTRUCTION WORD
PAG E
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
PAG E
PCWORDPCPAGE
PCMSB
PAGEMSB
PROGRAM
COUNTER

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel ATtiny13A and is the answer not in the manual?

Atmel ATtiny13A Specifications

General IconGeneral
BrandAtmel
ModelATtiny13A
CategoryMicrocontrollers
LanguageEnglish

Related product manuals