>=20 > I just checked, and my standard init code does not address CMCON0. I don'= t > have a manual for a PIC with comparator where I am right now, but I don't > remember CMCON0. What PIC has that, and what does it do? Well, I just ported the evil code discussed in another thread to 16F688=20 (probably one of the more interesting devices in the 16F series), and that= =20 PIC turns out to be using CMCON0... Just like CMCON on other PICmicros it= =20 needs to be initialised to 0x07 in order to allow proper digital I/O,=20 together with clearing of ANSEL. It also has CMCON1, which is related to=20 Timer1, but which doesn't impact the ports. Also note that the 16F688 uses= =20 PORTC instead of PORTB. Thank you for the reference to the document, I'll= =20 read it now. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist