Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
4 answers
3k views

How to keep accurate millis() while using ADC_sleep mode?

millis() uses timer0 (linked to CPU clock) to count time, but ADC_sleep mode stops the CPU clock, therefore millis() will drift (lag behind) after each ADC conversion performed in ADC_sleep mode. ...
FarO's user avatar
  • 339