The PBP 18F452.INC header file doesn't include the CONFIG3H CCP2MX: CCP2 Mux bit so CCP2 defaults to RC1. Add this to your PBP 18F452.INC file or turn off CCP2 MUX with you programmers software before programming the part. __CONFIG _CONFIG3H, _CCP2MX_OFF_3H With CCP2MX off, RB3 will be the CCP2 input/output. Then this should work for RB3. DEFINE HPWM2_TIMER 2 DEFINE CCP2_REG PORTB DEFINE CCP2_BIT 3 HPWM 2,127,2000 ' Output 2kHz on RB3 @ 50% duty -Bruce http://www.rentron.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist