It must be something with the PWM, either config or syntax.

What if you use variables like this?

http://www.picbasic.co.uk/forum/show...ht=16f628a+pwm

Robert