> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Jan-Erik Soderholm > Sent: 29 July 2010 15:15 > To: Microcontroller discussion list - Public. > Subject: Current drawn by an ANx input ? 16F690 >=20 > Scenario: > PICkit2 with low-pin-count board (16F690). >=20 > That board has a 10k pot with a 1 k resistor > connected between the wiper and the AN0 input. >=20 > Now, when running the ADC-demo program (number 4 of the > lessons, called ADC.ASM), I can see a larger then I > expected voltage drop across the 1 k resistor. Up to > 0.85 V when the pot is at the 5V end. That is, there > must go aprox 0.85 mA into the RA0/AN0 pin. >=20 > Is that expected ? I've read the datasheet back and forth > but can not find any note sayig that the AN0 input should > draw that amount of current. A few uA's leakage maybe... Yes that is unexpected in normal operation, the average current into an analog pin is very small, certainly in the uA's. Is the top of your potentiometer definitely powered from the PIC's Vdd rail? If you exceed Vdd then you will be pumping current into the PICs protection diodes. Regards Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .