Comparator (Comp) | Cypress Semiconductor
The Comparator (Comp) component provides a hardware solution to compare two analog input voltages. The output can be sampled in software or digitally routed to another component. Three speed levels are provided to allow you to optimize for speed or power consumption. A reference or external voltage can be connected to either input.
You can also invert the output of the comparator using the Polarity parameter.