This application is a digital voltmeter reading the ADC and displaying the
result on the MDM-1, on a HD44780 (8 bit mode) 2 line x 16 character LCD
display (Lascar Electronics DMX916) and sending the result in RS232
(9600,8,n,1). The HD44780 shows binary on the top line plus bcd and hex on
the bottom.

To make this application work connect RB6 to 0V. If a HD44780 is not
connected then this link is not required.  Link J6 should be set to the
right hand position so that the input is from the Adjust potentiometer.

If you are programming via the MDM auxillary port then disconnect the link
to RB6 during the programming process. The checksum of the code is C3EF.

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.

The multiplication/division code is generated from the following site:
http://www.piclist.com/cgi-bin/constdivmul.exe.

Jal is provided free of charge and is regularly updated.  If you wish to
support the continued development of the code a donation, in dollars, can
be made to Wouter via http://www.piclist.com/support.

