Perhaps your minimum sampling time is too low, and this shows up only on th= at analog input conversion. Try to increase sampling time, and see if it fixes it. Cheers, Mario At 19.14 2012.02.20, you wrote: >Hello. > >I have used a PIC18F2458 to make a joystick controller that features 6 >12-bit analog axins and 36 buttons. > >Everything is cool but there is something strange with the 6th analog axis >(which is AN8 because AN6 and AN7 are not implemented). >Basically I never read an analog value less than ~85, which corrspond to >around 100mV. > >The analog input usually is connected to a potentiometer but I also tried >to connect it to a ground trace, as near as possible to the USB connector. >but I got the same result. > >I was wondering what you guys think. Could it be a configuration error? Th= e >other 5 channels work fine. > >I can post the source code if necessary. > >Thank you >Cristiano >--=20 >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .