beautypg.com

Spi serial programming characteristics – Rainbow Electronics ATmega3290P_V User Manual

Page 300

background image

300

ATmega329/3290/649/6490

2552H–AVR–11/06

Notes:

1. Not all instructions are applicable for all parts
2. a = address
3. Bits are programmed ‘0’, unprogrammed ‘1’.
4. To ensure future compatibility, unused Fuses and Lock bits should be unprogrammed

(‘1’) .

5. Refer to the correspondig section for Fuse and Lock bits, Calibration and Signature

bytes and Page size.

6. See htt://www.atmel.com/avr for Application Notes regarding programming and

programmers.

If the LSB in RDY/BSY data byte out is ‘1’, a programming operation is still pending.
Wait until this bit returns ‘0’ before the next instruction is carried out.

Within the same page, the low data byte must be loaded prior to the high data byte.

After data is loaded to the page buffer, program the EEPROM page, see Figure 131.

Figure 131. Serial Programming Instruction example

SPI Serial Programming
Characteristics

For characteristics of the SPI module see “SPI Timing Characteristics” on page 316.

Byte 1

Byte 2

Byte 3

Byte 4

Adr LSB

Bit 15 B

0

Serial Programming Instruction

Program Memory/
EEPROM Memory

Page 0

Page 1

Page 2

Page N-1

Page Buffer

Write Program Memory Page/
Write EEPROM Memory Page

Load Program Memory Page (High/Low Byte)/
Load EEPROM Memory Page (page access)

Byte 1

Byte 2

Byte 3

Byte 4

Bit 15 B

0

Adr MSB

Page Offset

Page Number

Adr M

MS

SB

A

A

Adrr L

LSB

B