The value from the A2D should be stored in a set of registers called adhigh and adlow. There should also be a set called CVD1 through CDV5 ready to store the result.
The code behind this page was directly converted from code posted by "Bill &
Pookie" on the PICList
http://www.piclist.com/techref/postbot.asp?id=piclist\2005\12\05\075217a
Any bugs found in the output of this page were introduced by me and were not in the original program. --- James.