Comparator (COMP) RM0444
452/1390 RM0444 Rev 5
System reset value: 0x0000 0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
LOCK VALUE Res. Res. Res. Res. Res. BLANKSEL PWRMODE HYST
rw r rwrwrwrwrwrwrwrwrw
15 141312 11 109876543210
POLARITY WINOUT Res. Res. WINMODE Res. INPSEL INMSEL Res. Res. Res. EN
rw rw rw rw rw rw rw rw rw rw
Bit 31 LOCK: COMP1_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: Not locked
1: Locked
Bit 30 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 Figure 68.
Bits 29:25 Reserved, must be kept at reset value
Bit 24:20 BLANKSEL[4:0]: Comparator 1 blanking source selector
This bitfield is controlled by software (if not locked). It selects the blanking source:
00000: None (no blanking)
xxxx1: TIM1 OC4
xxx1x: TIM1 OC5
xx1xx: TIM2 OC3
x1xxx: TIM3 OC3
1xxxx: TIM15 OC2
Bit 19:18 PWRMODE[1:0]: 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:
00: High speed
01: Medium speed
others: Reserved
Bit 17:16 HYST[1:0]: Comparator 1 hysteresis selector
This bitfield is controlled by software (if not locked). It selects the hysteresis of the
comparator 1:
00: None
01: Low
10: Medium
11: High
Bit 15 POLARITY: Comparator 1 polarity selector
This bit is controlled by software (if not locked). It selects the comparator 1 output polarity:
0: Non-inverted
1: Inverted
Bit 14 WINOUT: Comparator 1 output selector
This bit is controlled by software (if not locked). It selects the comparator 1 output:
0: COMP1_VALUE
1: COMP1_VALUE XOR COMP2_VALUE (required for window mode, see Figure 69)
Bits 13:12 Reserved, must be kept at reset value