Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

PIC12F1840 View Datasheet(PDF) - Microchip Technology

Part Name
Description
MFG CO.
PIC12F1840
Microchip
Microchip Technology Microchip
'PIC12F1840' PDF : 410 Pages View PDF
PIC12(L)F1840
11.6 Write Verify
Depending on the application, good programming
practice may dictate that the value written to the data
EEPROM or program memory should be verified (see
Example 11-6) to the desired value to be written.
Example 11-6 shows how to verify a write to EEPROM.
EXAMPLE 11-6: EEPROM WRITE VERIFY
BANKSEL EEDATL
;
MOVF EEDATL, W ;EEDATL not changed
;from previous write
BSF
EECON1, RD ;YES, Read the
;value written
XORWF EEDATL, W ;
BTFSS STATUS, Z ;Is data the same
GOTO WRITE_ERR ;No, handle error
:
;Yes, continue
DS41441C-page 96
2011-2012 Microchip Technology Inc.
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]