working adc and dac