Isaac Marino Bavaresco wrote: > That's not quite correct. A pin configured for analog input but with > TRISx == 0 will be a digital output. When reading the pin digitally it > will always read zero, but the pin will source or sink current > accordingly with PORTx bit. Hmm. I do remember seeing it stated this way in some newer data sheets, but I also thought I've run into the problem a long time ago where a output didn't work because the A/D was still configured to use it. I just checked with my old 16F876 data sheet, and the schematic for a port A pin with analog input confirms what you said. I don't think I've had a occasion to deliberately mix analog and digital on the same pin, and my development environment pretty much prevents me accidentally leaving a analog peripheral enabled unintentionally, so I haven't actually run into this for many years. Am I just misremembering this, or is there really some interaction with digital outputs and analog peripherals? ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist