Can the Propeller chip keep time
shanker
Posts: 12
Hello All
Just a quick question can the Propeller chip keep time. I am sure it can but I don't know where to start? any one got any ideas ?
Just a quick question can the Propeller chip keep time. I am sure it can but I don't know where to start? any one got any ideas ?
Comments
You can however keep time for short intervals but after days and weeks the clock will really start to drift off out of sync. Unless you have some compensation.
Use a real time clock, they are specially designed for keeping time.
If you want to try however check out the object exchange for a real time clock object that uses the propeller, some one has already created it a program that does what you want.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
'initialization
waittim := cnt + 80_000_000 'at 80MHz operation
... 'other initialization code
'main loop
repeat
... 'code to execute every second
waitcnt(waittim) 'wait for next second
waittim += 80_000_000 'increment variable
Thisbrings us to the second option. There are numerous time LF reference radio transceivers worldwide. There is at least one in the US, one in the UK, one in Germany, one in Switzerland, and one in Japan. They send at an accuracies of better than 1 PPB. Frequency as well as time. If you use this time you even get two more benefits. You get the official time and you get automatic adaptation to DST and leap seconds. For a few dollars you can buy small radio modules giving digital output that can be decoded by the prop.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Airspace V - international hangar flying!
www.airspace-v.com/ggadgets for tools & toys
-Stephanie Lindsay
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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.
General timekeeping:
http://forums.parallax.com/showthread.php?p=776732
Propeller timekeeping:
http://forums.parallax.com/showthread.php?p=777425
Basically, you'll need to find out the error of the crystal and keep it at a constant temperature to be able to use a propeller for time keeping. It isn't perfect, but it shouldn't loose more than a second or so a day (guestimation).
Have you seen this thread?· It is in aggreance with your second or so a day time difference.
http://forums.parallax.com/showthread.php?p=791201
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.