EEPROM question
Posted: Fri Feb 15, 2013 1:59 pm
Hello again.
I am trying to finish må rebuilt refrigiuator to a climate box that can keep my Beer brews at the perfect fermentation temperature. the program is working and my hardware is complete but i just have 1 final detail to make, In case there is a power loss where my Climate box is it will not go back to the previus temperature setting when power is restored. and this is baad for my beer
I have tryed testing the eeprom function but with no luck and i am pretty sure what the problem is, i just don't know how to fix it.
Here is the details.
In the program i have a Floating point variable called setpoint this i can adjust up and down between +3 and +25 degrees C. It gets converted to string[4] to display on LCD also,
i just havent been able to convert it to Uint witch seems to be the dataformat that the eeprom uses.??
I also have to make a function in the Initialiaze function that retreaves the data from the eeprom and puts it in the setpoint again.
so to ad up my problem i need to convert my (floating point variable ---> (Uint variable) and the back again
Hope this is solvable
regards from Michael
I am trying to finish må rebuilt refrigiuator to a climate box that can keep my Beer brews at the perfect fermentation temperature. the program is working and my hardware is complete but i just have 1 final detail to make, In case there is a power loss where my Climate box is it will not go back to the previus temperature setting when power is restored. and this is baad for my beer

I have tryed testing the eeprom function but with no luck and i am pretty sure what the problem is, i just don't know how to fix it.
Here is the details.
In the program i have a Floating point variable called setpoint this i can adjust up and down between +3 and +25 degrees C. It gets converted to string[4] to display on LCD also,
i just havent been able to convert it to Uint witch seems to be the dataformat that the eeprom uses.??
I also have to make a function in the Initialiaze function that retreaves the data from the eeprom and puts it in the setpoint again.
so to ad up my problem i need to convert my (floating point variable ---> (Uint variable) and the back again
Hope this is solvable
regards from Michael