cdb wrote 2012-08-06 11:45: > On Mon, 06 Aug 2012 10:02:44 +0200, Jan-Erik Soderholm wrote: > :: > :: But e.g. the 12F683 (with the CCP module) has the same > :: writing in the "Compare mode" section even if it the > :: 0010 option does *not* work i those PICs (that is, all > :: PICs with the older CCP module)... > > From what i can see it has a 'manual' toggle in that it can set or clea= r > the output on match by using 1000 and 1001 respectively. > > I suppose the only way to make it toggle would be to have a flag variable > that changed the CCP settings every alternate CCP1IF. > > I'm looking at the 2004 edition of the datasheet and I don't see any > mention of the CCP having the toggle option. > > Colin You did not say what version you are reading (why not?), but... I just now downloaded the current datasheet for PIC12F683 from Microchip, 41211D_.PDF (don't ask me what the underscore does there) The datasheet is dated 2007, b.t.w. On page 77, section "11.2 Compare Mode" it says: "When a match occurs, the CCP1 module may: - Toggle the CCP1 output. - Set the CCP1 output. - Clear the CCP1 output. - Generate a Special Event Trigger. - Generate a Software Interrupt." I have an older version ("B", from 2004) it it says : "When a match occurs, the GP2/AN2/T0CKI/INT/COUT/CCP1 pin is: - Driven high - Driven low - Remains unchanged" Weird... Jan-Erik. > > -- > cdb, colin@btech-online.co.uk on 6/08/2012 > > Web presence: www.btech-online.co.uk > > Hosted by: www.justhost.com.au > > > This email is to be considered private if addressed to a named individua= l > or Personnel Department, and public if addressed to a blog, forum or new= s > article. > > > > > > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .