DS1302 time chip doesnt advance time
Migs
Posts: 95
Friends:
Please confirm: A DS1302 time chip which responds to programming and the reading of its internal data, but whose time does not advance means the crystal isn't working right? What would you check?
Thanks,
Migs
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Sometimes we forget that the world itself is paradise." Douglas Coupland, 'Microserfs'
"If the doors of perception were cleansed every thing would appear to man as it is, infinite" - William Blake
"We either make ourselves miserable, or we make ourselves strong. The amount of work is the same." Carlos Castaneda
"One single grateful thought raised to heaven is the most perfect prayer. " G. E. Lessing
“How much of human life is lost in waiting.” Ralph Waldo Emerson
"Men often mistake notoriety for fame, and would rather be remembered for their vices and follies than not be noticed at all.” Harry Truman
My website: www.intoku.net my e-mail:mreznicek@pretensa.com me:Miguel Reznicek
Please confirm: A DS1302 time chip which responds to programming and the reading of its internal data, but whose time does not advance means the crystal isn't working right? What would you check?
Thanks,
Migs
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Sometimes we forget that the world itself is paradise." Douglas Coupland, 'Microserfs'
"If the doors of perception were cleansed every thing would appear to man as it is, infinite" - William Blake
"We either make ourselves miserable, or we make ourselves strong. The amount of work is the same." Carlos Castaneda
"One single grateful thought raised to heaven is the most perfect prayer. " G. E. Lessing
“How much of human life is lost in waiting.” Ralph Waldo Emerson
"Men often mistake notoriety for fame, and would rather be remembered for their vices and follies than not be noticed at all.” Harry Truman
My website: www.intoku.net my e-mail:mreznicek@pretensa.com me:Miguel Reznicek
Comments
If you've soldered this up on a perfboard or something, you might find this recent contribution edifying -- http://forums.parallax.com/showthread.php?p=663427
I'm considering soldering it to the chip itself now and cleaning it with alcohol. This alone makes it worth opting for the DS3231 instead of the DS1302 (crystal on board the DS3231 and MUCH more accurate). -Migs
Migs
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Sometimes we forget that the world itself is paradise." Douglas Coupland, 'Microserfs'
"If the doors of perception were cleansed every thing would appear to man as it is, infinite" - William Blake
"We either make ourselves miserable, or we make ourselves strong. The amount of work is the same." Carlos Castaneda
"One single grateful thought raised to heaven is the most perfect prayer. " G. E. Lessing
“How much of human life is lost in waiting.” Ralph Waldo Emerson
"Men often mistake notoriety for fame, and would rather be remembered for their vices and follies than not be noticed at all.” Harry Truman
My website: www.intoku.net my e-mail:mreznicek@pretensa.com me:Miguel Reznicek
I have had projects using a DS1302 where I didn't care about the seconds value so I never put a value to it. Some times the clock would start and sometimes it wouldn't. After adding a debug statement that displayed seconds along with·hours, minutes, etc,·I found that it would sometimes display a value of 80 seconds and not advance. If it was between 0 and 60 it ran fine. By simply writing a zero or any other valid seconds time it would be okay. Even if you are not using seconds be sure to put a value into it when you set the clock.
Hope this helps.
Randy
I must admit I didn't wait too long to see if the time advances, but since I'm trying to make an LCD clock, it doesn't make sense for the seconds not to advance.
I used the standard circuit that comes with the pdf file of the chip. Do you have any cool code or an implementation of battery backup for the time you would like to share? If so, e-mail it to me OK?
Thanks Randy! -Migs
mreznicek@pretensa.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Sometimes we forget that the world itself is paradise." Douglas Coupland, 'Microserfs'
"If the doors of perception were cleansed every thing would appear to man as it is, infinite" - William Blake
"We either make ourselves miserable, or we make ourselves strong. The amount of work is the same." Carlos Castaneda
"One single grateful thought raised to heaven is the most perfect prayer. " G. E. Lessing
“How much of human life is lost in waiting.” Ralph Waldo Emerson
"Men often mistake notoriety for fame, and would rather be remembered for their vices and follies than not be noticed at all.” Harry Truman
My website: www.intoku.net my e-mail:mreznicek@pretensa.com me:Miguel Reznicek
Generally forum members don’t e-mail you the answers or suggestions but post them here for everyone to benefit. To that end there is some code and schematics for the DS1302 posted in the Completed Projects Forum which may help you. A link has been provided below. Take care.
http://forums.parallax.com/showthread.php?p=531080
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
If you go to the completed projects forum I have a project there that has battery back up and a clock setting routine called 'it's a logger'. It is not a simple project and I am guessing you are relatively new to Stamps so it might be a bit much for you. If you go to, I think it is he 2nd slot, you will see the routine I used for the clock. This is a stand alone unit that uses push buttons for setting the clock, not a keyboard. If you are new to Stamps do not try to figure the changes you would need to make to my code for your clock as it will cause you more confusion. You should probably follow the link that Chris has provided. When I first used the DS1302 I followed a couple of the examples from Parallax and found they all work well.
Randy
(I didn't even know we had a "completed projects area")
And also thanks to you too Randy! I will certainly look at it.-Migs
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Sometimes we forget that the world itself is paradise." Douglas Coupland, 'Microserfs'
"If the doors of perception were cleansed every thing would appear to man as it is, infinite" - William Blake
"We either make ourselves miserable, or we make ourselves strong. The amount of work is the same." Carlos Castaneda
"One single grateful thought raised to heaven is the most perfect prayer. " G. E. Lessing
“How much of human life is lost in waiting.” Ralph Waldo Emerson
"Men often mistake notoriety for fame, and would rather be remembered for their vices and follies than not be noticed at all.” Harry Truman
My website: www.intoku.net my e-mail:mreznicek@pretensa.com me:Miguel Reznicek