Try CircuitLens

Calculators

PWM / timer resolution calculator

A hardware timer counts clock ticks through a prescaler up to TOP, then wraps: f=clockprescaler×(TOP+1). Those TOP + 1 counts are also the duty steps: bits=log2(TOP+1). Bigger TOP = finer duty steps but lower frequency — this shows the trade.

More calculators