Hi All,
I have been working on a function generator project and over the last day or so have been working specifically on reading and writing to the EEPROM.
My first question is, (see the picture) the EEPROM view shows the EEPROM with "FF" in every location. However when I run my code (stripped out of my larger project) it reads the EEPROM and places "00" in W... Either I am reading the EEPROM incorrectly or it actually has "00" in every register...
I have included my code as well. My intention is to read the first eight positions and load them into POS_1 to POS_10M (8 positions) and then check them to see if they actually have a value in one or more. I assumed they had "FF" and was simply subtracting "FF" and checking the STATUS register to see if it equaled zero... if they all equaled zero then nothing was loaded in the EEPROM..
Thing is I assumed by the EEPROM view that each unused register had "FF" was this incorrect? If not them why does it not load in "FF" from the EEPROM?
When I run the debugger and it goes to READ_EEPROM I end up with "0" IN W.....
Kind Regards
Simon
View attachment EEPROM.asm
I have been working on a function generator project and over the last day or so have been working specifically on reading and writing to the EEPROM.
My first question is, (see the picture) the EEPROM view shows the EEPROM with "FF" in every location. However when I run my code (stripped out of my larger project) it reads the EEPROM and places "00" in W... Either I am reading the EEPROM incorrectly or it actually has "00" in every register...
I have included my code as well. My intention is to read the first eight positions and load them into POS_1 to POS_10M (8 positions) and then check them to see if they actually have a value in one or more. I assumed they had "FF" and was simply subtracting "FF" and checking the STATUS register to see if it equaled zero... if they all equaled zero then nothing was loaded in the EEPROM..
Thing is I assumed by the EEPROM view that each unused register had "FF" was this incorrect? If not them why does it not load in "FF" from the EEPROM?
When I run the debugger and it goes to READ_EEPROM I end up with "0" IN W.....
Kind Regards
Simon
View attachment EEPROM.asm
