The idea to have PBP setup the registers is good if you need 8 bit PWM. But is a start anyway...

Ioannis