Binary to Decimal converter for 10 Bit A2D

This Code Generator converts a value read from a 10 bit A2D to a human readable string of characters ready for display.

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.


Bits: Enter the number of bits of data returned from the A2D converter.
Ref: Enter the desired decimal value for a full scale reading from the A2D

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.