timerembeddedatmega32

Timer0 atmega32


Is TCNT0 set to zero automatically if I stopped the timer (No CLK)? My question is about that, if I select that NO CLK using the clock select pins, what will happen to the TCNT0 Register ?

I searched in the datasheet and on the internet but I couldn't find answer to my question


Solution

  • The data sheet is rather clear on this:

    enter image description here

    "stopped" means exactly what it says - its value will remain unchanged. If it were set to zero by hardware, it would say that. If it was never in fact started, then its value will be the POR value, which is zero:

    enter image description here