It seems obvious that your post's subject is wrong (look at the message's subject), there you say 16f877. See? 877, not 887. You mislead us telling you are using a chip different than you are really using. Isaac Em 03/01/2013 09:49, Justin Richards escreveu: >> You'll better decide !!! >> >> Is the subject wrong?? >> >> What device *are* you using? >> >> Jan-Erik. > I am now doubting myself and expect I am missing something that is > glaringly obvious but > > >From the Pickit2 Output Window > > "Programming Target (3/01/2013 4:40:25 PM)PIC16F887 found (Rev 0x2)" > > I am reading this manual "PIC16F882/883/884/886/887Data Sheet" > > The manual clearly refers to ANSEL > > FIGURE 2-6: PIC16F886/PIC16F887 SPECIAL FUNCTION REGISTERS > > Mentions "ANSEL 188h" and "ANSELH 189h" and "ADCON0 1Fh" and "ADCON1 9Fh" > > So I understand in summary that ANSEL and ANSELH determine if the > corresponding pin is analog and ADCON0 CHS3-0 determine which pin is > *connected* for conversion purposes. > > What have I missed. > > Cheers justin --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .