Hi again. I wrote > It now seems as this a difference between the CCP and > the ECCP modules. and I should have added : ....and an error in at least the datasheet for the 12F683 where the option "Toggle the CCP1 output" simply is wrong. Someone else (on a swedish electronics forum) just made a test using the 12F683 and the option "0010" which is the toggle option when using the *E*CCP. This *did* toggle the output pin on the 12F683, but at a fixed rate equal to the full 16 bit count of Timer1. It could not be adjusted using the usual register CCPR1 and/or TMR1. So it is for practical use unusable and the docs should probably be adjusted. Jan-Erik. CCP1M<3:0>: CCP Mode Select bits 0000 =3D Capture/Compare/PWM off (resets CCP module) 0001 =3D Unused (reserved) 0010 =3D Unused (reserved) <<=3D=3D this is the "toggle" setting on ECCP. 0011 =3D Unused (reserved) 0100 =3D Capture mode, every falling edge 0101 =3D Capture mode, every rising edge 0110 =3D Capture mode, every 4th rising edge 0111 =3D Capture mode, every 16th rising edge 1000 =3D Compare mode, set output on match (CCP1IF bit is set) 1001 =3D Compare mode, clear output on match (CCP1IF bit is set) 1010 =3D Compare mode, generate software interrupt on match..... 1011 =3D Compare mode, trigger special event..... 110x =3D PWM mode active-high 111x =3D PWM mode active-low Jan-Erik Soderholm wrote 2012-08-03 13:49: > OK. > > It now seems as this a difference between the CCP and > the ECCP modules. > > Thanks all. > > Jan-Erik. > > > > Matt Callow wrote 2012-08-03 13:35: >> What about: >> 0010 =3D Compare mode, toggle output on match (CCP1IF bit is set) >>> From page 127 of 41262E.pdf >> >> Matt >> >> On 3 August 2012 20:46, Jan-Erik Soderholm >> wrote: >>> 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 .