full function pwm pulse frequency duty ratio adjustable module square wave rectangular wave signal generator xy apwm