Electronic – Is there difference between Timer vs Counter in ATmega328P

atmegacountertimer

Is there difference between Timer vs Counter in ATmega328P?
Or is it the same thing?

Best Answer

A Timer and a Counter on an ATmega328 is the same piece of electronics.

There are three independent timers on the ATmega328.
Each timer has one counter register, and two comparison registers.

Each of the three timers has slightly different capabilities.
One has a 16bit counter, the other two 8bits.
With one it is much easier to count an external clock.
One has more flexibility on dividing down the main clock, so it is easier to adjust to count at a specific rate.