Expand description
Comparator 2 control and status register
Structs
Comparator 2 control and status register
Register COMP2_CSR
reader
Register COMP2_CSR
writer
Type Definitions
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
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
Field EN
reader - Comparator 2 enable bit This bit is controlled by software (if not locked). It enables the comparator 2:
Field EN
writer - Comparator 2 enable bit This bit is controlled by software (if not locked). It enables the comparator 2:
Field HYST
reader - Comparator 2 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 2:
Field HYST
writer - Comparator 2 hysteresis selector This bitfield is controlled by software (if not locked). It selects the hysteresis of the comparator 2:
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
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
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):
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):
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]:
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]:
Field POLARITY
reader - Comparator 2 polarity selector This bit is controlled by software (if not locked). It selects the comparator 2 output polarity:
Field POLARITY
writer - Comparator 2 polarity selector This bit is controlled by software (if not locked). It selects the comparator 2 output polarity:
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
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
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 .
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:
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:
Field WINOUT
reader - Comparator 2 output selector This bit is controlled by software (if not locked). It selects the comparator 2 output:
Field WINOUT
writer - Comparator 2 output selector This bit is controlled by software (if not locked). It selects the comparator 2 output: