Dump Microcontroller PIC16LF685 Flash Program can help the engineer restore the embedded firmware of the PIC16LF685 Microchip secure microprocessor, break the protective fuse bit of the PIC16LF685 MCU, and extract binary code or heximal data from the flash program memory and file memory eeprom.
Control bits, RD and WR, initiate read and write, respectively. These bits cannot be cleared, only set in software. They are cleared in hardware at completion of the read or write operation to Dump Microcontroller PIC16LF685 Flash Program. The inability to clear the WR bit in software prevents the accidental, premature termination of a write operation.
The WREN bit, when set, will allow a write or erase operation. On power-up, the WREN bit is clear. The WRERR bit is set when a write (or erase) operation is interrupted by a MCLR or a WDT Time-out Reset during normal operation.
In these situations, following Reset, the user can check the WRERR bit and rewrite the location. The data and address will be unchanged in the EEDATA and EEADR registers. Interrupt flag bit, EEIF in the PIR2 register, is set when the write is complete. It must be cleared in software.
EECON2 is not a physical register. Reading EECON2 will read all ‘0’s. The EECON2 register is used exclusively in the EEPROM write sequence.
To read a data memory location, the user must write the address to the EEADR register, clear the EEPGD control bit (EECON1<7>) and then set control bit, RD (EECON1<0>). The data is available in the very next cycle in the EEDATA register; therefore, it can be read in the next instruction to facilitate the process of Dump Microcontroller PIC16LF685 Flash Program. EEDATA will hold this value until another read or until it is written to by the user (during a write operation).
The steps to reading the EEPROM data memory are: