Using HiTech C. I have a program that has a 6 case menu. Each case displays system settings that are currently running. There's 4 buttons controlling
menu up, menu down, value up and value down which controls the 5 system variables.
I've added a case whereby I can save the current settings to eeprom. I'm also able to read back the settings. What I'd like to do is insert into system variables my settings. I have an if statement. Interrupt is setup. Something like,
Code:
If button down{
change(system_variables) with (eeprom_settings) ;
}
I've tried searching but don't exactly know what I'm looking for. If someone could point me in the right direction.
Thanks Mike. It's late here and I probably didn't make myself clear. I have those routines and successfully write to and retrieve data to/from eeprom. No problem.
Where I'm stuck is how to convert the eeprom data back into a system variable. It seems like it would be simple as
if(!button_down){
(system_variable) = eeprom_read(0x01) ;
}