PWRMODE=B_0x0, HYST=B_0x0, POLARITY=B_0x0, EN=B_0x0, LOCK=B_0x0, BLANKSEL=B_0x0, WINOUT=B_0x0, WINMODE=B_0x0
Comparator 1 control and status register
EN | Comparator 1 enable bit This bit is controlled by software (if not locked). It enables the comparator 1: 0 (B_0x0): Disable 1 (B_0x1): Enable |
INMSEL | Comparator 1 signal selector for inverting input INM This bitfield is controlled by software (if not locked). It selects the signal for the inverting input COMP_INM of the comparator 1: Refer to Table176: COMP1 inverting input assignment. |
INPSEL | Comparator 1 signal selector for noninverting input This bitfield is controlled by software (if not locked). It selects the signal for the noninverting input COMP_INP of the comparator 1 (also see the WINMODE bit): Refer to Table175: COMP1 noninverting input assignment. |
WINMODE | Comparator 1 noninverting input selector for window mode This bit is controlled by software (if not locked). It selects the signal for COMP_INP input of the comparator 1: 0 (B_0x0): Signal selected with INPSEL[2:0] bitfield of this register 1 (B_0x1): COMP_INP signal of the comparator 2 (required for window mode, see Figure164) |
WINOUT | Comparator 1 output selector This bit is controlled by software (if not locked). It selects the comparator 1 output: 0 (B_0x0): COMP_VALUE 1 (B_0x1): COMP_VALUE XOR COMP_VALUE (required for window mode, see Figure164) |
POLARITY | Comparator 1 polarity selector This bit is controlled by software (if not locked). It selects the comparator 1 output polarity: 0 (B_0x0): Non-inverted 1 (B_0x1): Inverted |
HYST | Comparator 1 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 1: 0 (B_0x0): No hysteresis 1 (B_0x1): Low hysteresis 2 (B_0x2): Medium hysteresis 3 (B_0x3): High hysteresis |
PWRMODE | Comparator 1 power mode selector This bitfield is controlled by software (if not locked). It selects the power consumption and as a consequence the speed of the comparator 1: 0 (B_0x0): High speed/high power 1 (B_0x1): Medium speed/medium power 2 (B_0x2): Medium speed/medium power 3 (B_0x3): Low speed/low power |
BLANKSEL | Comparator 1 blanking source selector This bitfield is controlled by software (if not locked). It selects the blanking source: Others: Reserved, must not be used 0 (B_0x0): No blanking 1 (B_0x1): TIM1 OC4 enabled as blanking source 2 (B_0x2): TIM1 OC5 enabled as blanking source 4 (B_0x4): TIM2 OC3 enabled as blanking source 8 (B_0x8): TIM3 OC3 enabled as blanking source 16 (B_0x10): TIM15 OC2 enabled as blanking source |
VALUE | Comparator 1 output status This bit is read-only. It reflects the level of the comparator 1 output after the polarity selector and blanking, as indicated in Figure163. |
LOCK | COMP_CSR register lock This bit is set by software and cleared by a system reset. It locks the comparator 3 control bits. When locked, all register bits are read-only. 0 (B_0x0): Not locked 1 (B_0x1): Locked |