HPWM is an unfortunate wrapper for about 4 pic registers. It would pay to move on from that.

http://www.micro-examples.com/public...alculator.html