Expand description
Comparator 2 control and status register
Structs§
- COMP2_
CSRrs - Comparator 2 control and status register
Type Aliases§
- BLANKSEL_
R - Field
BLANKSEL
reader - Comparator 2 blanking source selector This bitfield is controlled by software (if not locked). It selects the blanking source: xxxx1: TIM1 OC4 xxx1x: TIM1 OC5 xx1xx: TIM2 OC3 x1xxx: TIM3 OC3 1xxxx: TIM15 OC2 - BLANKSEL_
W - Field
BLANKSEL
writer - Comparator 2 blanking source selector This bitfield is controlled by software (if not locked). It selects the blanking source: xxxx1: TIM1 OC4 xxx1x: TIM1 OC5 xx1xx: TIM2 OC3 x1xxx: TIM3 OC3 1xxxx: TIM15 OC2 - EN_R
- Field
EN
reader - Comparator 2 enable bit This bit is controlled by software (if not locked). It enables the comparator 2: - EN_W
- Field
EN
writer - Comparator 2 enable bit This bit is controlled by software (if not locked). It enables the comparator 2: - HYST_R
- Field
HYST
reader - Comparator 2 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 2: - HYST_W
- Field
HYST
writer - Comparator 2 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 2: - INMSEL_
R - Field
INMSEL
reader - Comparator 2 signal selector for inverting input INM This bitfield is controlled by software (if not locked). It selects the signal for the inverting input COMP2_INM of the comparator 2: > 1000: 1/4 VREFINT - INMSEL_
W - Field
INMSEL
writer - Comparator 2 signal selector for inverting input INM This bitfield is controlled by software (if not locked). It selects the signal for the inverting input COMP2_INM of the comparator 2: > 1000: 1/4 VREFINT - INPSEL_
R - Field
INPSEL
reader - Comparator 2 signal selector for non-inverting input This bitfield is controlled by software (if not locked). It selects the signal for the non-inverting input COMP2_INP of the comparator 2 (also see the WINMODE bit): - INPSEL_
W - Field
INPSEL
writer - Comparator 2 signal selector for non-inverting input This bitfield is controlled by software (if not locked). It selects the signal for the non-inverting input COMP2_INP of the comparator 2 (also see the WINMODE bit): - LOCK_R
- Field
LOCK
reader - COMP2_CSR register lock This bit is set by software and cleared by a system reset. It locks the whole content of the comparator 2 control register COMP2_CSR[31:0]: - LOCK_W
- Field
LOCK
writer - COMP2_CSR register lock This bit is set by software and cleared by a system reset. It locks the whole content of the comparator 2 control register COMP2_CSR[31:0]: - POLARITY_
R - Field
POLARITY
reader - Comparator 2 polarity selector This bit is controlled by software (if not locked). It selects the comparator 2 output polarity: - POLARITY_
W - Field
POLARITY
writer - Comparator 2 polarity selector This bit is controlled by software (if not locked). It selects the comparator 2 output polarity: - PWRMODE_
R - Field
PWRMODE
reader - Comparator 2 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 2: others: Reserved - PWRMODE_
W - Field
PWRMODE
writer - Comparator 2 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 2: others: Reserved - R
- Register
COMP2_CSR
reader - VALUE_R
- Field
VALUE
reader - Comparator 2 output status This bit is read-only. It reflects the level of the comparator 2 output after the polarity selector and blanking, as indicated in . - W
- Register
COMP2_CSR
writer - WINMODE_
R - Field
WINMODE
reader - Comparator 2 non-inverting input selector for window mode This bit is controlled by software (if not locked). It selects the signal for COMP2_INP input of the comparator 2: - WINMODE_
W - Field
WINMODE
writer - Comparator 2 non-inverting input selector for window mode This bit is controlled by software (if not locked). It selects the signal for COMP2_INP input of the comparator 2: - WINOUT_
R - Field
WINOUT
reader - Comparator 2 output selector This bit is controlled by software (if not locked). It selects the comparator 2 output: - WINOUT_
W - Field
WINOUT
writer - Comparator 2 output selector This bit is controlled by software (if not locked). It selects the comparator 2 output: