| Posted: 05:03pm 25 Dec 2011 |
|
|
|
@Ken
sleep minute // Sleep for 1 minute from current time date
sleep Hour // Sleep for 1 hour from current time date
sleep day // Sleep for 1 day from current time date
sleep week // Sleep for 1 week from current time date
sleep month// Sleep for 1 month from current time date
sleep year // Sleep for 1 year from current time date
If you are using the sleep command for greater than 1 day and you are also using the "32768 watch crystal" for sleep timing then you might want to re-think your code. My testing reveals, using the DS3231 precision real time clock, 10's of seconds drift everyday! Unless you can keep the ambient temperature on the board within a few degress of the crystal's calibration then the time error is reduced.
Note: In my testing, I have a setback thermostat which reduces the temperature at night time greater than 10-15 degress F.
|