I have a project coming up using a 16F886.
I can do all the necessary coding but one part.
The part consists of a variable that will be set up during a setup mode. Set up mode is done by the customer end and setting is input via an encoder. Once set up, I need to retain the value .
I believe I can do the setting routine but saving the value to the EEPROM is something I haven't done yet.
I believe I will be asked about the value. I cannot disclose what the program does cause it is not mine once I make it.
The variable is a preset time delay counter. It can be set up at 30 minute increment up to 12 Hrs. So 24 Increments. Once set up the timer uses that value to time an output. I know I can use that value indefinitely as long there is no power outage. An unexpected reset like a brown out is my concern as will reset the value to initial value (30 minutes).
I like some pointers on how to save the variable in to the memory. Continued writing to EEPROM won't be there, cause once set up it will remain like that for months.
I can do all the necessary coding but one part.
The part consists of a variable that will be set up during a setup mode. Set up mode is done by the customer end and setting is input via an encoder. Once set up, I need to retain the value .
I believe I can do the setting routine but saving the value to the EEPROM is something I haven't done yet.
I believe I will be asked about the value. I cannot disclose what the program does cause it is not mine once I make it.
The variable is a preset time delay counter. It can be set up at 30 minute increment up to 12 Hrs. So 24 Increments. Once set up the timer uses that value to time an output. I know I can use that value indefinitely as long there is no power outage. An unexpected reset like a brown out is my concern as will reset the value to initial value (30 minutes).
I like some pointers on how to save the variable in to the memory. Continued writing to EEPROM won't be there, cause once set up it will remain like that for months.