please see the attached doc on generating PWM signal.Example_on_simulating_pulse_width_modulation(PWM).docx (77.5 KB)