Tweet
Replying to @josecastillo
this is called PWM, or pulse-width modulation, and it’s a useful use of the TC! But we can also just use it to count things. The thing is: it can’t count forever. It can only count to 255*. When it counts too high, it needs to let us know. It does this by generating an interrupt!
(original)