[MERGED] How to generate a PWM of a desired frequency?

This topic has been merged into Are these Timer/Counter settings right for PWM generation?.