Comparators have an op-amp front end and a digital back end that operates like a gate. The comparator output stage may be an open collector transistor, so it often connects to the logic supply through ...