Justin Richards wrote 2013-01-03 13:10: >> Are we speaking of the same chip? The PIC16F877 doesn't have an ANSEL >> SFR, it has the ADCON1 register to control analog pins with only four >> bits to control the mode of all analog inputs. >> >> The inputs are indeed grouped and you cannot have some ANx configured as >> digital if ANz is analog with x < z, except for AN2 and AN3. >> >> Isaac > > Hmmm, from section 9.2.6 16f887 Data Sheet You'll better decide !!! Is the subject wrong?? What device *are* you using? 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 .