English
Language : 

PIC16LF1507 Datasheet, PDF (95/266 Pages) Microchip Technology – 20-Pin Flash, 8-Bit Microcontrollers
PIC16(L)F1507
10.5 Write Verify
It is considered good programming practice to verify that
program memory writes agree with the intended value.
Since program memory is stored as a full page then the
stored program memory contents are compared with the
intended data stored in RAM after the last write is
complete.
FIGURE 10-8:
FLASH PROGRAM
MEMORY VERIFY
FLOWCHART
Start
Verify Operation
This routine assumes that the last row
of data written was from an image
saved in RAM. This image will be used
to verify the data currently stored in
Flash Program Memory.
Read Operation
Fig(Fuirgeur1e0x-2.x)
PMDAT =
RAM image
No
?
Yes
Fail
Verify Operation
No
Last
Word ?
Yes
End
Verify Operation
DS41586A-page 95
Preliminary
 2011 Microchip Technology Inc.