> Question: how do I set RA0 to analog input and RA1 to digital output? With the proper ADCON1 setting. I don't know what PIC you are using, but on the 16F876 for example, the ADCON1 setting of xxxx1110 configures RA0 as an analog input and the other potential analog pins as digital I/O. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body