As far as i know the CCP is the same on most pics.... You need to change the polirity of bit zero to sent the next edge Teh below is from a 16f1827 but i am pretty sure it works with a 690. banksel CCP4CON ; bank 6 btfsc CCP4CON,CCP4M0 ; check for channel or space goto DO_SPACE ; mark / space switch DO_MARK bsf CCP4CON,CCP4M0 ; set for falling edge compare ...... DO_SPACE bcf CCP4CON,CCP4M0 ; set for rising edge compare Steve On 3 August 2012 11:46, Jan-Erik Soderholm wr= ote: > Hi. > > Checked datasheet for 12F683 and 16F690. > > In the CCP section, "Compare mode", it says : > > When a match occurs, the CCP1 module may: > - Toggle the CCP1 output. <<<=3D=3D=3D Note! > - Set the CCP1 output. > - Clear the CCP1 output. > ... > The action on the pin is based on the value of the > CCP1M<3:0> control bits of the CCP1CON register. > > > Now, the table for the CCP1CON register says : > > 1000 =3D Compare mode, set output on match (CCP1IF bit is set) > 1001 =3D Compare mode, clear output on match (CCP1IF bit is set) > > There is no "toggle output on match" option there > > Is this a (known) datasheet error? > There is nothing in the errata documents. > > Jan-Erik. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .