Hi, I can't get the ccp1 capture interrupt working at all. Heres my code in = Jal, if anyone can see any problems, tell me .It's a shortened version = of the code, but should include enough. I DO have the PWM on CCP2 = working just fyi. [code] trisa =3D 1 trisb =3D 0 trisc =3D 4 -- pwm ADCON1 =3D 0b11001110 ADCON0 =3D 1 -- Setup PWM var volatile byte CCPR2L at 0xFBB var volatile byte CCP2CON at 0xFBA PR2 =3D 255 CCPR2L =3D 4 T2CON =3D 6 CCP2CON =3D 12 -- Setup Capture var bit CCP1IE at PIE1 : 2 var bit CCP1IF at PIR1 : 2 CCP1CON =3D 5 T1CON =3D 177 T3CON =3D 0 intcon_gie =3D off intcon_peie =3D off CCP1IE =3D off procedure interrupt is pragma interrupt pin_c3 =3D high delay_100mS (5) pin_c3 =3D low CCP1IF =3D low end procedure [/code] Thanks -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body