This application is a basic digital voltmeter reading the ADC and displaying
the result on the MDM-1.  I have used my own ADC routine which returns a
filtered value by averaging over 64 readings.  The XCSB library interface has
been commented out but can be used.  It returns a single ADC reading

Link J6 should be set to the right hand position so that the input is from the
Adjust potentiometer.

The checksum of the code is 87DC.

In this application the Vref+ is the supply voltage (+4.95V on my sample) and
Vref- is 0V. Scaling is 5mV per division but there will be some error
depending on the exact value of the supply.  In real life it is better to use
a reference of 1.024V, 2.048V or 4.096V as it makes the maths simple although
more complicated maths can be handled with the correct subroutines.

XCSB Lite is available free of charge for non commercial use and between 100
and 150 GBP for a full licence.  Visit www.xcprod.com/titan/XCSB for more
information.

