Hi All
I have included a simple file of the code that manages the loading of the EEPROM in the above microcontroller.
In a nutshell it works using MPLAB... that is, if you step through it, it loads the EEPROM correctly in the software with the EEPROM window showing the results. However when I load this code into the actual microcontroller and run it nothing is saved to the EEPROM.
There are two tests. Both are called one after the other. The first is very easy... it loads three numbers into the EEPROM.
The second test copies 7 numbers from one location to the other and also, using the FSR register, copies this to EEPROM.
The fact that it works via the debugger is one thing but I have no idea why it does not populate the EEPROM in the chip in real life???.
Incidentally I am using a PicKit2 interface. The microcontroller works well with the other interfaces including the LCD and KEYPAD.
Hoping you might throw me some ideas or maybe I have missed something...
Simon
View attachment EEPROM.asm
I have included a simple file of the code that manages the loading of the EEPROM in the above microcontroller.
In a nutshell it works using MPLAB... that is, if you step through it, it loads the EEPROM correctly in the software with the EEPROM window showing the results. However when I load this code into the actual microcontroller and run it nothing is saved to the EEPROM.
There are two tests. Both are called one after the other. The first is very easy... it loads three numbers into the EEPROM.
The second test copies 7 numbers from one location to the other and also, using the FSR register, copies this to EEPROM.
The fact that it works via the debugger is one thing but I have no idea why it does not populate the EEPROM in the chip in real life???.
Incidentally I am using a PicKit2 interface. The microcontroller works well with the other interfaces including the LCD and KEYPAD.
Hoping you might throw me some ideas or maybe I have missed something...
Simon
View attachment EEPROM.asm