Healed, Healed_ AND TempVar are Bytes?
Healed, Healed_ AND TempVar are Bytes?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Is the above in the code you are running.Code:DATA @10,0,0 'first hit DATA @12,0,0 DATA @14,0,0 DATA @16,0,0 DATA @18,0,0 DATA @20,0,0
If so, every time the PIC starts those values are written. If this is not the case then...I display the values in the EEPROM and they are those I set at the time I flashed the PIC:
Dave
Always wear safety glasses while programming.
Nope.. DATA is performed at programming time only.![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thank you for your help but this time I could solve the problem:
I was using a routine that displays at the begining of the program the contents of the EEPROM at location 10 to 21 using an index var (hitnr).
Then later in the program I was writing to EEPROM using the index var BUT i forgot to reset the index var to its initial value after using it at the begining of my program so I was thinking I was writing to location 10 while the index var was already at 12. So when restarting the pic, I was displaying values of locations 10 and 11, that were still at 0 so I thought EEPROM write failed somehow. I was at the wrong memory offset...
Stupid error, I should get some sleep
Have a nice day.
ME TOO. I was close.Stupid error, I should get some sleep
Dave
Always wear safety glasses while programming.
Hello xnihilo,
what does your code which makes healed_ into an address location look like ?
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks