But if you write to that pin, the analog voltage present from what you're reading would interfere with the output, wouldn't it? Joe M. Wouter van Ooijen wrote: >>> Put a third way, the digital I/O assignments for outputs override the >>> analog input settings. > > That is misleading. When ANx is enabled and TRISxn low (digital output), > you can write to the pin *and then read the actual (analog) level using > the ADC*. > > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 271.1.1/2692 - Release Date: 02/16/10 14:35:00 > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist