Hi guys, I am new to this forum ,so I am going to ask a question

I want my pic16f628 to sleep for the nigh(at least 6 hours). And resume in the morning without restarting. I have already used TMR1 for real time clock.


My second question is ...there is one switch state that I want my pic to remember even if the power fails. any idea?

I am glad to be a member ofthis forum and I hope there will be something that I can contribute.