Put a 0.01uF tant across each analog input, I read somewhere in microchips = app notes about an issue with more than one analog input. Something like sampling one causes a current drop on the port, then when = you do the other one the reference point is still changing _while_ you = sample so it gets messed up, I can't remember exactly but it definitely = said use a cap to cure the problem I'll try to find the app note for you.. Hope this helps. Jonathan Starr >>> Micro Eng 11/06/2002 17:14:35 >>> Using the F877, I have PortA configured for analog inputs, and had 10K = pots. Seemed to work ok, I had a watch window set up, and a breakpoint right = after the read sequences (for 4 pots). I've changed the pots to 50K now, and upped the aquisition time, but the values seem to be way off now, and are affected by each other. ie... if I read just one, it is close...but not exact. If I put the second pot = in the loop to read, the first one goes way off scale. I've read the actual voltages on the pins, and they are not changing. Anyone ever seen where just reading a second port affects the value of the first one? _________________________________________________________________ Join the world s largest e-mail service with MSN Hotmail. http://www.hotmail.com=20 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics