$ 0 0 Why are you changing TB0CCTLx in the interrupt handler? You do not need to do this to output a PWM signal.