DS1302 Real Time Clock Help - P1 Spin
AwesomeCronk
Posts: 1,055
in Propeller 1
I am working towards the construction of an alarm clock, and I am first familiarizing myself with the components. I am working on telling time right now.
With the ds1302_full example code on the OBEX, there is a section of code involving the onboard trickle-charge circuit. The manual is extremely adamant about NOT activating this circuit due to the presence of the backup battery. Bottom line: is the demo program safe to run?
With the ds1302_full example code on the OBEX, there is a section of code involving the onboard trickle-charge circuit. The manual is extremely adamant about NOT activating this circuit due to the presence of the backup battery. Bottom line: is the demo program safe to run?
Comments
More likely is the possibility of a bug in your program that might cause it to store data over the code that interacts with the DS1302 such that it sends the "forbidden" byte value to the DS1302's control register. Best thing to do is to not connect a backup battery until your program is working properly. There are other ways you can protect the backup battery even if the trickle charger is turned on somehow, but we're talking about extremely unlikely events.
Edit: The 1302 is really pretty obsolete. A much better choice is the DS3234. Why? Because it has an on-board crystal and you don't have to worry about choosing the right crystal with the right capacitors and the right physical layout.
Thank you. I will get going on the demo code.
@tomcrawford
I purchased the module sold by Parallax. Do I really need a support circuit for it?
Thanks for the clarification, Mike.