8 Channel 12bit A-D convertor

This device has a resolution of 1mV and reads inputs up to 4.096 Volts. It reads it's inputs continuously, sampling each channel in turn and than transmitting 4 ASCII characters at 9600 Baud as follows:

 Channel-number  MSB LSB <CR>

The channel number is a digit from 0 - 7 and the 12 bits of data are sent in hex. The final carriage-return (ASCII 10, 0x0a) is sent for line-orientated readers.


and here's the source in PIC assembler.