The input analog sine waves are converted to TTL square waves by
amplitude comparators connected as zero crossing detectors with hysterisis for noise
rejection. The TTL square wave outputs from the comparators are further conditioned
by one-shot multivibrators such as 74LS123s