Secrets of the PWM registers and timers

I've written a detailed blog post on the different PWM modes provided by the ATmega328, how to set the registers, and how to compute the output frequencies. I found the datasheet hard to interpret, so this describes what I learned while using pulse-width modulation for IR transmission.

The article is at Secrets of Arduino PWM; please take a look and let me know what you think.


That's great stuff, Ken, and it does make things much clearer than the datasheet.