This is given to an input comparator which will compare two signals and generates the output. One input to the input comparator is from the input and another input is from the ramp. This input voltage and ramp signal are compared and output is given. If the ramp signal is more than input voltage there will be no output but if the input voltage is greater than the ramp signal then a is generated which will open the gate. Now when the gate gets opened, clock will send clock pulses which are counted by the counter and displayed on the screen. The comparator will compare the ramp signal and ground and output is given.
This output will stop the flow of purchase from clock