Working ADC to CM conversion