Hi all,
So I have the program reading the EEPROM but unfortunately the routine I am using to write to the EEPROM is not working.
I got the routine from the PIC16F877A datasheet on page 45 - EXAMPLE 4-2. However I found that I had to swap back to BANK0 to load my variables ADDR and VALUE. I did this and it works loading these up and also loads then into EEADR and EEDATA. Thats where my good luck stops. it fails to load these into the EEPROM... that is, after the routine completes I still have all locations with "FF" in them....
I have added to this post the .asm file with just the write routine in it and have been using this to test the write to EEPROM routine...
Hope you can help.
Simon
So I have the program reading the EEPROM but unfortunately the routine I am using to write to the EEPROM is not working.
I got the routine from the PIC16F877A datasheet on page 45 - EXAMPLE 4-2. However I found that I had to swap back to BANK0 to load my variables ADDR and VALUE. I did this and it works loading these up and also loads then into EEADR and EEDATA. Thats where my good luck stops. it fails to load these into the EEPROM... that is, after the routine completes I still have all locations with "FF" in them....
I have added to this post the .asm file with just the write routine in it and have been using this to test the write to EEPROM routine...
Hope you can help.
Simon