PIC12F1516 MICROCHIP [Microchip Technology], PIC12F1516 Datasheet - Page 107

no-image

PIC12F1516

Manufacturer Part Number
PIC12F1516
Description
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
11.3
When modifying existing data in a program memory
row, and data within that row must be preserved, it must
first be read and saved in a RAM image. Program
memory is modified using the following steps:
1.
2.
3.
4.
5.
6.
7.
 2011 Microchip Technology Inc.
Load the starting address of the row to be
modified.
Read the existing data from the row into a RAM
image.
Modify the RAM image to contain the new data
to be written into program memory.
Load the starting address of the row to be
rewritten.
Erase the program memory row.
Load the write latches with data from the RAM
image.
Initiate a programming operation.
Modifying Flash Program Memory
Preliminary
FIGURE 11-7:
PIC16(L)F1516/7/8/9
An image of the entire row read
The words to be modified are
changed in the RAM image
must be stored in RAM
MODIFY Operation
MODIFY Operation
ERASE Operation
WRITE Operation
READ Operation
use RAM image
Modify Image
Figure 11-2
Figure 11-4
Figure 11-5
(Figure x.x)
(Figure x.x)
(Figure x.x)
FLASH PROGRAM
MEMORY MODIFY
FLOWCHART
Start
End
DS41452B-page 107

Related parts for PIC12F1516