Quote Originally Posted by gringo332 View Post
pwm portb.1,150,200
The PWM command in PBP is a 'software' command... Program execution basically stops and that point and the only thing going on is the PWM command. If you need 'real' PWM, you have to use the hardware PWM module, or maybe software/interrupt driven PWM.