I have a battery operated project that controls a tiny stepper motor that can be stepped directly from the chip ports.
I am using idle mode sleep and timer0 prescaled at 1024 to wake up from sleep. It then reads the ADC updates the stepper and goes back to sleep. The question is do I just write the tcnt0 to $00 while the interrupts are cleared (cli) or do I have to clear the timer interrupt bit as well?
Second question, Is the power reduced when prescaling the chip using the CLKPR at 4.8MHZ internal oscillator or should I think about the 128khz oscillator I have never set it to run at that speed.
I want to end up checking about 5 second intervals, from sleep, the stepper from 20 degrees to 120 degrees is only 600 steps.
It will use 2 1.5V batteries rated at 110MA and I want to get 90 days before battery is out. using the Tiny13V