12.3 Read Program EEPROM
To read the program EEPROM cell, the user must write the address to the EEADR register, clear the
EEPGD control bit of the EECON1 register, and then set the control bit RD to 1. Once the read control bit is
set, the program EEPROM controller will use the second instruction period to read data. This will cause the
second instruction following the “SETB EECON1, RD” instruction to be ignored (1). In the next clock period,
the corresponding address value of the program EEPROM will be latched into the EEDAT register in the user
can read these two registers in subsequent instructions. EEDAT will save this value until the next time the
user reads or writes data to the unit.
Note: The two instructions after the program memory read operation must be NOP. This prevents the
user from executing dual period instructions on the next instruction after the RD position is 1.