Quote Originally Posted by aratti View Post
Surely you ment digital, the answer is none.

Suggest to use portA.3 as an output and portA.4 as an input since A4 is an open-drain type

Alberto
Thank you for writing what I was thinking! Yes you are correct. I guess I am confused about the configuration of ADCON1 register, particularly bits 0-3. It appears this configures the port as whole and this determines which pins can/will be analog inputs or digital IO pins. In particular I read this post which concerns me:

http://www.picbasic.co.uk/forum/show...ghlight=ANALOG

Since the PCB is already developed it concerns me that the I/O pins can only be configured per the chart in the datasheet. So, if this is configured so that all pins are analog then specific pins are converted after that to digital I/Os what impact does this have. If these pins can be individually configured why is the ADCON1 register even needed?

Thanks,

Joe