Possibly  functional 12-bit ADC

Changes ADC implementation to 12-bit from 8-bit. Has not been tested,
some of the counters in the ADC and DAC loops might not be set to the
correct value.