Propeller RTC (Real Time Clock) Emulator - DEMO
Beau Schwabe
Posts: 6,566
Inspired by a thread·posted in February·... "System clock as 7 day to 24Hour real time clock?"
This object emulates an RTC (Real Time Clock) using the timebase of the Propeller. Accuracy is only as good as the crystal. In my testing, there was about 2 seconds lost over the course of 1 day ( ~ 12 minutes a year)
An object has been posted in the Object Exchange
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
This object emulates an RTC (Real Time Clock) using the timebase of the Propeller. Accuracy is only as good as the crystal. In my testing, there was about 2 seconds lost over the course of 1 day ( ~ 12 minutes a year)
An object has been posted in the Object Exchange
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
Just a note on the accuracy. I did this and have been running one of these since late 2007 and have logged and compared the time every 10 seconds over that period (with a stratum 3 NTP time server), and in my particular case (which is a plain proto-board) 2 seconds was the absolute maximum. I was averaging more like 1.2-1.5 Seconds a day over the year. It's not that ugly.
The DS1307 is a lot better, but it's not perfect either.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.
In the end I am making a program that I essentially want to just print out the current time, so I am just wondering how I would go about doing that.
Thanks!