> I had RA3 controlling the SCL line, and analog enabled with RA0, RA1 and > RA3 set as analog. (ADCON1 set as 04h) RA3 was set as an output, not as > an input. > > This did not work. I turned off the A2D and it did work. > > I've now swapped the SCL pin to RC0 and all works OK with A2D enabled. > > Anyone know why? The A/D setting overrides the digital useage of a port on the 16 series. You have limited selection of A/D inputs and voltage reference inputs in ADCON1. The real gotcha is that the A/D wakes up enabled on the earlier 16 series parts. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST