EasyManuals Logo

Atmel AVR1612 User Manual

Atmel AVR1612
15 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 #12 background imageLoading...
Page #12 background image
12
AVR1612
8282A-AVR-11/10
Erase and program the flash memory
1. Erase the flash page buffer.
i. Use the “ST ptr” command to set the address 0x00000000.
ii. Write “Erase Flash Page Buffer” (0x26) command to the NVM
controller.
iii. Dummy write the flash page buffer with “ST *(ptr++)” command.
iv. Polling the NVM busy bit until it has been cleared.
2. Load the flash page buffer.
i. Write the “Load Flash Page Buffer” (0x23) command to the NVM
controller.
ii. Use the “ST ptr” command to set the start address.
iii. Set the data length into the repeat counter with “REPEAT”
command.
iv. Send the “ST *(ptr++)” command to the PDI controller.
v. Send the writing data through the PDIBUS.
3. Write “Erase & Write Application Section Page” (0x25) command to the NVM
controller.
4. Use the “ST ptr” command to set the start address.
5. Dummy write the flash page with “ST *(ptr++)” command.
6. Polling the NVM busy bit until it has been cleared.
Erase and program the EEPROM memory
1. Erase the flash page buffer.
i. Use the “ST ptr” command to set the address 0x00000000.
ii. Write “Erase EEPROM Page Buffer” (0x36) command to the NVM
controller.
iii. Dummy write the flash page buffer with “ST *(ptr++)” command.
iv. Polling the NVM busy bit until it has been cleared.
2. Load the flash page buffer.
i. Write the “Load EEPROM Page Buffer” (0x33) command to the
NVM controller.
ii. Use the “ST ptr” command to set the start address.
iii. Set the data length into the repeat counter with “REPEAT”
command.
iv. Send the “ST *(ptr++)” command to the PDI controller.
v. Send the writing data through the PDIBUS.
3. Write “Erase & Write EEPROM Page” (0x35) command to the NVM
controller.
4. Use the “ST ptr” command to set the start address.
5. Dummy write the flash page with “ST *(ptr++)” command.
6. Polling the NVM busy bit until it has been cleared.
Write the fuse bits
1. Write the “Write Fuse” (0x4C) command to the NVM controller.
2. Use the “STS ptr” command to set the fuse bits’ value.
3. Polling the NVM busy bit until it has been cleared.

Questions and Answers:

Question and Answer IconNeed help?

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

Atmel AVR1612 Specifications

General IconGeneral
BrandAtmel
ModelAVR1612
CategoryMicrocontrollers
LanguageEnglish

Related product manuals