Pulse Width Modulator (PWM)¶
The pulse width modulator generates a rectangular output signal of desired frequency, phase and amplitude. The ratio between Ton / Toff is controlled by the input signal between 0 and 100%. The rising edge always matches the beginning of a new period of the underlying fundamental wave. The falling edge is controlled by the input signal. The control values for 0% (LL) and 100% (UL) can be set to any value (LL may be greater than UL or even negative).
