The PBP HPWM command is very limiting, so I have never used it, although I use th HPWM features extensively.
You can use all the channels your chip has by directly writing to the CCPx registers. *ANY* version of PBP will work.
The part where most people get messed up is that you have to write bit 0 of the PWM value to CCPxCON.4 and bit 1 to CCPxCON5. The
rest of the value (shift the value right two places) goes to CCPRxL.
Bookmarks