I have a device that supplies 5 V signal each time a object passes through it, I want to detect this 5V signal through USB port of a PC and an application increments a variable each time it receives this signal. As a result this behaves as a counter. This is needed because later LPT port was available on systems on which pin 17 directly receives 5V signal and an application receives it. This is not possible with USB port. Thats why I need an ADC to convert this 5V to binary and this binary could be readed by USB port.