value and left that way until a change is needed. This can significantly increase the
processing demand on the microprocessor.
.
The PWM frequency has to be selected so that the load does not respond to the
individual PWM pulses, but only to the average. If the PWM output is modulated on a
cycle-by-cycle basis, the PWM frequency must be selected so that the load does not
respond to the modulation frequency. Otherwise, a ripple will be seen in the load
response.
In some microcontrollers, the PWM frequency and duty cycle can be varied. The period
is typically varied by adjusting the rollover point of the period timer. This also affects
resolution. If you are using the same 8-bit PWM timer just discussed, using the full 256
counts provides a 3906 Hz PWM ...