Real Time Clock options for the propeller?
Hi all,
I am looking at migrating some of my designs to the propeller, but I am wondering what options there are for a real time clock on the properller? Most others microcontroller have an on-board oscillator and counter that can be used to monitor real time with only the addition of a 32.768khz watch crystal. Also, normally this type of funcion usualy has to continue while the device is in a low power mode, and then the time can then be referenced when the microcontroller resumes full power operation. On other microcontrollers this is done by setting an interrupt to wake the device on clock rollover once every 2-16 seconds to update the ime registers, then return to sleep mode. But the propeller has neither a sleep mode, or a low power clock oscillator. Does anyone have any Ideas?
Thanks in advance.
I am looking at migrating some of my designs to the propeller, but I am wondering what options there are for a real time clock on the properller? Most others microcontroller have an on-board oscillator and counter that can be used to monitor real time with only the addition of a 32.768khz watch crystal. Also, normally this type of funcion usualy has to continue while the device is in a low power mode, and then the time can then be referenced when the microcontroller resumes full power operation. On other microcontrollers this is done by setting an interrupt to wake the device on clock rollover once every 2-16 seconds to update the ime registers, then return to sleep mode. But the propeller has neither a sleep mode, or a low power clock oscillator. Does anyone have any Ideas?
Thanks in advance.
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Comments
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
Of course you can adapt seconds to hrs, min, seconds
Note, due to the time to do waitcnt calculations, the timing will be slightly off, but you can analyze and subtract an amount accordingly, such as:
waitcnt(clkfreq - 2500 + cnt)
If you wish to count milliseconds, to help determine the fudge-factor you need:
waitcnt(clkfreq / 1000 - adjustment + cnt) ' 1 millisecond wait with an adjustment value
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
Regards,
Mark.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Don't have VGA?
Newzed@aol.com
·