Fehlt da evtl noch die "Enable Interrupts"-Anweisung?
Kann gut sein, dass man die bei PWM auch braucht.