Globlal Variable Problem: Pic18f4550 and Pickit3 Debugging
I'm not quite familiar with the ADC-library but have you tried using an unsigned integer? I'm currently also working on a project which uses the A/D converter and I'have no troubles at all (pic16f1788).