DS1302 question
Guido
Posts: 195
Hi,
Is there an easy way to be able to flash a led at 1 second interval, and still maintain clock integrety....Any help would be appreciated...
Thanks in advance
Guido
Is there an easy way to be able to flash a led at 1 second interval, and still maintain clock integrety....Any help would be appreciated...
Thanks in advance
Guido
Comments
http://forums.parallax.com/showthread.php?p=552892
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
http://forums.parallax.com/showthread.php?p=553075
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· There is no pause...Did you look at the program I refered you to?· It sits in a loop checking the time until the seconds change, then it updates the displays when the seconds change.· There are no PAUSE commands in the routine.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thank You, I did look at it and found what you were talking about. I am Sorry I did not get back to you sooner, but like I have said several times I am a dangerous beginner and have been real busy at work...
One more question reagrding the DS1302, If I supply external battery to pin 8 and ground will this keep the timing chip up and running during power outage?
Thanks
Guido
·· Yes, it will keep the clock running and the RAM backed-up.· The battery should be around 3V or so.· That way it will only be on when the main power is lost.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Also, to flash an LED with the seconds, and still do aother routines, I would simply put the following in a the routine after getting the seconds from the ds1302 ...
if seconds.bit0 = 0 then low led
if seconds.bit0 = 1 then high led
Hope this helps...