Iam working with 16F876A.i want to store and read two different word in eeprom at different locations.
For first word i used
Write 0,numb.highbyte
Write 1,numb.lowbyte
What be for second word?
Second word is Tempp
Iam working with 16F876A.i want to store and read two different word in eeprom at different locations.
For first word i used
Write 0,numb.highbyte
Write 1,numb.lowbyte
What be for second word?
Second word is Tempp
Hi,
Next free location would be 2 soOr you can use the WORD modifier and let PBP handle the high/low byte stuff (I don't know in what order it writes it so either you look into that or you use the WORD modifier when you READ the data as well)Code:WRITE 2, TempB.Highyte WRITE 3, TempB.LowByteOr....Code:WRITE 0, WORD Numb WRITE 2, WORD TempB/Henrik.Code:WRITE 0, WORD Numb, WORD TempB
Tkanks Henrik.I got my work done.
I had one more problem.iam making Thermistor based thermostat. My problem is my temperature does not go below 0 degree. Please help me out.
Then you need to travel to a location where it's colder than where you're currently situated....
Seriously though, don't you have another thread where you're discussing that topic?
As I said in that thread, BYTES and WORDS in PBP aren't signed so comparisons like If myValue < 0 won't work because myValue (if it's a BYTE or WORD) will always be considered to be either zero or larger than 0.
Apart from that I'm not up to speed with what you're doing, how you're measuring the thermistor, what values you're getting for different temperature etc.
/Henrik.
Bookmarks