A few things to look for;
Never save your basic code file with the exact same name as a PBP
command, or the same name as the PIC target.
Try saving it with a name like PWM_F767.bas or something. It compiles
fine for me with PM or MPASM assemblers with PBP v2.46.
Be sure you're selecting the 16F767 before compiling, you have a version
of PBP that supports this device (at least v2.45), and if you're using MPASM
make sure you have a version of MPASM that supports this PIC.
Some of the older 17C7xx PIC's had channel 3 which could use timer1. The
PBP define in the manual shows how to assign timer1 to this channel instead
of timer2. There are also defines to assign different pins to CCP outputs, but
I don't see anything in the PBPPIC14.LIB file for the HPWM command that will
support more than CCP1 & CCP2.
I don't have one of the 16F767's to mess with, but that code example should
work assuming you have a version that supports this PIC, you're saving your
basic file with a name that doesn't clash with a PBP command, and you have
all the device header files required for this target.
Bookmarks