Maybe you can use a timer and make a soft pwm (depending of course of the FQ of the pic and if it is busy doing other stuff). Darrel has a SOFTPWM code that might work.