Just one little point movlw d_lo ;put duty cycle bits 1-0 swapf wreg iorwf ccp1con ;into bits 5-4 of CCP1CON will not put the bits into 'fresh' locations movlw b'11001111' andwf ccp1con clears ccp1con <5:4> before including the duty cycle bits as above wbr -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist