Voltage comparators, such as those in the LM139/239/339 series, consist of devices that can be advantageously used as circuit interface elements with a PC parallel port or a microprocessor output. In the figure we show the simplest way to do it, fixed resistors in the input bias.