I might still have some code, but I made a quick and dirty PWM on the HC11 using the output compare functions and an interrupt or two. It was used for a closed loop motor speed controller. I wrote the pwm probably in a few hours. The whole project took less than 2 weeks.