English
Language : 

PIC16LF1904 Datasheet, PDF (97/288 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt XLP Technology
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-1.x)
PMDAT =
RAM image
No
?
Yes
Fail
Verify Operation
No
Last
Word ?
Yes
End
Verify Operation
PIC16LF1904/6/7
 2011 Microchip Technology Inc.
Preliminary
DS41569A-page 97