using a comparator for comparing the voltages obtained from two frequency to voltage converters