You would think that "ON" means a 1 in that bit position.
But not in this case.
If you look in the M16f88.inc file in the INC folder under PBP, you'll see these two lines for the CCPMX config bit.
Code:
CCPMX_ON equ 2FFF0000h ; X0 XXXX XXXX XXXX
CCPMX_OFF equ 2FFF1000h ; X1 XXXX XXXX XXXX
There you can see that 1 is OFF, and 0 is ON.
Therefore CCPMX_OFF = RB0, and CCPMX_ON = RB3.
Added: The default is 1, so you shouldn't need to do anything to have the CCP on RB0.
But you will need to set the CCP DEFINES, since PBP's default is PORTB.3 for the HPWM command on a 18F88.
Code:
DEFINE CCP1_REG PORTB
DEFINE CCP1_BIT 0
HTH,
Bookmarks