If I am using this statement, PWM portb.7, 127,100.

Is there a way to stop it before it finishes?

Thanks, Don