Search the picbasic manual and the forum for "PWM" and "HPWM"