> 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 BANKSEL ANSEL ; BSF ANSEL,0 ;Set RA0 to analog BANKSEL ADCON0 >From the SFR function table ANSEL 188h ANSELH 189h It seems the ADCON SFR determine which channel you wish to do conversion on, ie a MUX type setup. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .