COMP (Analog Comparator)¶
-
group
group_hal_impl_comp
On CAT1 (PSoC 6), the COMP driver can use either of two underlying hardware blocks:
Opamp (configured as analog comparator)
LPComp (Low Power Comparator)
Generally, a set of pins can only connect to either an Opamp or an LPComp but not both. In the event that both connections are possible, the LPComp will be preferred.
Power Level Mapping
The following table shows how the HAL-defined power levels map to the hardware-specific power levels
HAL Power Level
Opamp Power Level
LPComp Power Level
CY_CTB_POWER_HIGH
CY_LPCOMP_MODE_NORMAL
CY_CTB_POWER_MEDIUM
CY_LPCOMP_MODE_LP
CY_CTB_POWER_LOW
CY_LPCOMP_MODE_ULP
CY_CTB_POWER_MEDIUM
CY_LPCOMP_MODE_LP