>> 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*. > But if you write to that pin, the analog voltage present from what > you're reading would interfere with the output, wouldn't it? You can't successfully present analog voltage to a pin that is an output. What you are reading with the ADC is how well the digital output drivers are doing their work against the load. -- Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist