ST STM32G0 1 Series Reference Manual page 452

Table of Contents

Advertisement

Comparator (COMP)
System reset value: 0x0000 0000
31
30
29
LOCK
VALUE
Res.
rw
r
15
14
13
POLARITY WINOUT
Res.
rw
rw
Bit 31 LOCK: COMP1_CSR register lock
Bit 30 VALUE: Comparator 1 output status
Bits 29:25 Reserved, must be kept at reset value
Bit 24:20 BLANKSEL[4:0]: Comparator 1 blanking source selector
Bit 19:18 PWRMODE[1:0]: Comparator 1 power mode selector
Bit 17:16 HYST[1:0]: Comparator 1 hysteresis selector
Bit 15 POLARITY: Comparator 1 polarity selector
Bit 14 WINOUT: Comparator 1 output selector
Bits 13:12 Reserved, must be kept at reset value
452/1390
28
27
26
Res.
Res.
Res.
12
11
10
Res.
WINMODE
Res.
rw
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
This bit is read-only. It reflects the level of the comparator 1 output after the polarity selector
and blanking, as indicated in
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
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
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
This bit is controlled by software (if not locked). It selects the comparator 1 output polarity:
0: Non-inverted
1: Inverted
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
25
24
23
22
Res.
BLANKSEL
rw
rw
rw
9
8
7
6
INPSEL
INMSEL
rw
rw
rw
rw
Figure
68.
RM0444 Rev 5
21
20
19
18
PWRMODE
rw
rw
rw
rw
5
4
3
2
Res.
Res.
rw
rw
Figure
RM0444
17
16
HYST
rw
rw
1
0
Res.
EN
rw
69)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G0 1 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF