;Values to use in CCP1CON for Capture mode. ccp1_d equ b'00000000' ;disable and reset CCP1 ccp1_f equ b'00000100' ;capture every falling edge ccp1_r equ b'00000101' ;capture every rising edge ccp1_r4 equ b'00000110' ;capture every 4th rising edge ccp1_r16 equ b'00000111' ;capture every 16th rising edge