Vasil97
Newbie level 1
I am trying to do a 7segment, digital clock at the moment. I'm using Pic16F628A and the segments are TIL311. I use external clock OSC 32768Hz, 3 buttons, external reset, a speaker for alarm and a red LED for a decimal point. The core of the program has already been made and I have tested it. The timer interupt works and so does the visualise sub-program, soo at the moment i have a working clock that can't be synchronized and has no alarm. But from a few days I am stuck at the part with the synchronization and the alarm.
My idea is i press the first button once and synchronize the clock. I press it for a second time and synchronize the alarm time. When i press the button for a third time i save everything. The problem is that i can't think of a way to realize that idea. Can you help me or give me a better idea?
My idea is i press the first button once and synchronize the clock. I press it for a second time and synchronize the alarm time. When i press the button for a third time i save everything. The problem is that i can't think of a way to realize that idea. Can you help me or give me a better idea?