> I'm not sure I quite understand how ADCON1 works on the 16F877, Im > looking to have two or three analogue inputs and still maintain the > rest of the pins as digital I/O's, it would seem most convenient to use > the three pins on PortE as the A/D's but I think to use them I will use > the conventional digital I/O on PortA? It's not clear what exactly your question is. However, if you want just three analog inputs and don't need external Vref, these inputs will be AN0, AN1, and AN3. The table on page 112 (DS30292C) shows all available combinations of analog and digital inputs. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads