On 2010-07-29 18:05, Bob Blick wrote: > > On Thu, 29 Jul 2010 17:54:14 +0200, "Jan-Erik Soderholm" > < >> 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. > > Perhaps the PIC is not being powered properly. > What is the power supply to the PIC at that moment? > > Cheers, > > Bob > Just the usual laptop -> USB-cable -> PICkit2/demo-board. That is, the demo-board directly connected to the PICkit2. The demo-board has the usual couple of 100 nF caps. No other power supply. The 5V is stable at aprox 4.92 V the whole time. And the application "works" (the ADC reading is displayed on the 4 LEDs, well, at least some of the reading). --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .