PDA

View Full Version : PIC16F628A Time Switch



Dazzy
- 22nd October 2005, 22:04
A am building a time switch with a PIC16F828A and I need a code that will enable it to keep time as well as scan a list of alarm times. is it possible and if so do you have a code?

Thanks, Dazzy

mister_e
- 22nd October 2005, 22:12
mmm perfect application to use an external RTC like DS1307.

Melanie did an excellent code example http://www.melabs.com/resources/samples/submitted/MN1307.txt

this should be enough to start. The only things you'll have to add is the alarm... BUT as i know, there's some RTC with built-in alarm. Maybe somebody here can suggest you one.

NavMicroSystems
- 22nd October 2005, 22:50
Steve has already mentioned the DS1307

As your request for a code example was your very first post, you should start HERE (http://www.picbasic.co.uk/forum/showpost.php?p=8765&postcount=2)

if you don't want to use an RTC, and had searched the Forum you would have ended up THERE (http://www.picbasic.co.uk/forum/showthread.php?t=2129)

There are many other RTC examples, do some searching...