General analog exercises
Successive approximtion A/D conveter
Write a function that implements a successive approximation A/D converter using one of the DACs and one of the comparators. The input signal and DAC output signal are connected to the inputs of the comparator. The timing should be controlled by a timer interrupt.