I have recently changed my code after more online advise from other users. They have told me to refer to this pdf (In Section 3.3) , attached to this post.
But the problem I'm facing is within:
ORL EECON, #EEMEN
ORL EECON, #EEMWE
MOV A, EECON
ANL A, #WRTINH
JZ...
This simple code is test the write and read of EEPROM.
Firstly the LED at P1 will have all LED on, after a sec, have the P1 will have LED on.
Next, code is to write 01010101B into the EEPROM.
CJNE will check to see if it is written.
But, after comparing, the data isn't similar...