Objects for real time clocks, RTC DS1307, etc. Anybody know?
ElectricAye
Posts: 4,561
Hi all,
Lately I've become obsessed with putting a RTC onto my Propeller. I've decided that I can't live without it. But I can't find any objects that work with chips like the DS1307, etc. Anyone have any suggestions? Know of any postings that my search has failed to find? I don't have any cogs to spare and I'd like about 10 seconds accuracy per month.
thanks,
Mark
Lately I've become obsessed with putting a RTC onto my Propeller. I've decided that I can't live without it. But I can't find any objects that work with chips like the DS1307, etc. Anyone have any suggestions? Know of any postings that my search has failed to find? I don't have any cogs to spare and I'd like about 10 seconds accuracy per month.
thanks,
Mark
Comments
Both the DS1307 or the ds3231 use the existing cog while accessing the device.
cheers,
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.
I noticed that the DS3231 is a soic. Did you solder this yourself or does somebody out there have some kind of a doo-hickey makes it easy to hook up without an electron microscope?
thanks,
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.
I'm very impressed. I didn't know soldering soics was even humanly possible. Now I want one, too. And you say you have an object tweaked to utilize this DS3231? Now, would you be willing to stand up and share it with the rest of the class?
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.
Edit: I just got round to looking at the ds1307 datasheet, and it looks like James had the read/write of day/date in his original object wrong, so the ds1307 and ds3231 objects can be the same but the ds1307 has a bug in setDate/getDate.
The trick with the soldering isn't mine, if you look on sparkfun.com tutorials they have some good videos showing the trick.
Post Edited (Timmoore) : 8/27/2008 1:33:11 AM GMT
You The Man!
Thanks so much!
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.
I looked at the code for the DS1307 and for your DS3231.· Except for the name of the chip, they look identical.· So are you saying that the error in the DS1307 object is also an error in your DS3231 object?· You suggested that there was an error with the DS1307 setdate/getdate methods.· Can you be more specific?
thanks,
Mark
cheers,
Mark