Shows typical construction of a PWM generator. A sine (or triangle) wave varying between 0 and 20 volts is applied to one input of the comparator. An analog voltage is applied to the other. Changing the analog input voltage, we control pulse width independently of frequency.