PaulStoffregen / Time

Time library for Arduino
http://playground.arduino.cc/code/time
1.25k stars 666 forks source link

Timekeeping in powerdown mode #34

Closed shirish47 closed 8 years ago

shirish47 commented 8 years ago

I am using this library with time library (https://github.com/rocketscream/Low-Power) I make my code to sleep in powerdown for say 8 seconds and then check the time and its not exact. timer0 is shutdown. Is it possible to keep timer0 on so the timekeeping is possible for TimeLib ?

PaulStoffregen commented 8 years ago

No. AVR timer0 always stops when the chip is in powerdown mode.

PaulStoffregen commented 8 years ago

You need a RTC chip, network communication to a NTP server, GPS data, or other sync provider to set the time accurately.

shirish47 commented 8 years ago

ok,

Thanks That mean would have to make RTC external to AVR ..anyways thanks..