Digital Clock for PIC16F628A

Status
Not open for further replies.

Vasil97

Newbie level 1
Joined
Apr 22, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bulgaria
Activity points
1,291
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?
 

But think, If you want to just set the Alarm.
How do you perform it ?

.

---------- Post added at 23:43 ---------- Previous post was at 23:22 ----------

The ultimate thing is --how user friendly it will be.

You can add a button to enter mode of operation, another two for increase time and decrease time(both clock time and alarm time) another for save and exit mode.

---------- Post added at 23:47 ---------- Previous post was at 23:43 ----------

Also you can add snooz and mute alarm upon these buttons
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…