MCH wrote: > So, you can only assign analog inputs in ascending order, but the only > thing that will 'affect' is when the 'lower' pins are inputs. Almost, but not quite. > IOW, if the lower pins are all outputs, you can assign ANx as an > analog input and only that pin will be treated as such and the only > one you will have to worry about. > > Put a third way, the digital I/O assignments for outputs override the > analog input settings. The input of the digital input latch that is associated with the output (and that is functional even when a pin is set as an output) is also affected. Check out the port block diagrams in the data sheet. They are quite helpful for understanding how this works together. There is no way to disable the input circuitry; there is only a way to disable the output drivers (the TRIS bits). Configuring a pin as analog makes the digital input latch always read 0, and that's it, basically. If you don't read it while it is set to analog, there shouldn't be any other consequences. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist