PicBasicPro version 2.4.6.0
Its a long program, but what i'm trying to do using READ and WRITE is as follows:
'at the start of the program read these values from EEPROM and place in the variables'
Read 0, trip_amount[0]
Read 1, trip_amount[1]
'so far so good, this works as per usual'
If S1 = 1 Then
Read 0, temperary[0]
Read 1, temperary[1]
If (trip_amount[0] <> temperary[0]) OR (trip_amount[1] <> temperary[1]) Then
Write 0, trip_amount[0]
Write 1, trip_amount[1]
LCDOut $FE, 1
LCDOut $FE, $C0 , " SAVING CHANGES"
Pause 1000
EndIf
Goto Menue_2_0
EndIf
'I get a SAVING CHANGES on the LCD but the eeprom values dont change'
well that should work fine, must be something in the rest of the program that isn't being shown, maybe a variable declaration, changing the variable itself in another part of the program, etc.etc.
No, that is not the case, I have checked over the code many times.
One thing I did notice is when I program the PIC the fuse settings for 'EEPROM table write protect' and 'CONFIG table write protect' are both DISABLED, But when I read the HEX, EEPROM, and fuse data back to the PIC programer both of those setting are ENABLED.
High likely it's down to your PIC programmer. Which one?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks