cdb wrote 2012-08-05 12:50: > There is conflicting information in the datasheet concerning where and ho= w > to switch off the analogue pins for the above chip downloaded from E-14's > website (dated 2009). > > The PDF on the Microchip website (39931d.pdf dated 2011) appears to be > correct. > > In the E-14 download, page 129 gives example code to switch off the > analogue pins with the standard ADCON1 =3D 0x07 and CMCON =3D 0x07. > > This is incorrect! The registers are ANCON0 =3D 0xFF, ANCON1 =3D 0x1F (fo= r all > digital pins) and the comparators are off at reset. > > > Colin > Is "E-14" a distributor ? If so, they have an older datasheet online. Not that uncommon. But, why not simply use the one from Microchip ? There is usualy a reason a datasheet is updated. Complaining about an error in an *old* datasheet doesn't seems to be worth the bandwidth, if you ask me. :-) Best Regards! Jan-Erik. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .