DocID025202 Rev 7
420/1080
RM0365
Comparator (COMP)
422
17.5.4
COMP6 control and status register (COMP6_CSR)
Address offset: 0x30
Reset value: 0x0000 0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
COMP
6LOCK
COMP
6OUT
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res
Res.
COMP6_BLANKING[2:0]
COMP6HYST[1:0
]
(1)
rw
r
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
COMP
6POL
Res.
COMP6OUTSEL[3:0]
Res.
Res.
COMP6
INPSEL
COMP6INMSEL[2:0]
COMP6MODE
[1:0]
Res.
COMP6
EN
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
1. Only in STM32F302xB/C devices.
Bit 31
COMP6LOCK
: Comparator 6 lock
This bit is write-once. It is set by software. It can only be cleared by a system reset.
It allows to have COMP6_CSR register as read-only.
0: COMP6_CSR is read-write.
1: COMP6_CSR is read-only.
Bit 30
COMP6OUT
: Comparator 6 output
This read-only bit is a copy of comparator 6 output state.
0: Output is low (non-inverting input below inverting input).
1: Output is high (non-inverting input above inverting input).
Bits 29: Reserved, must be kept at reset value.
Bits 20:18
COMP6_BLANKING
: Comparator 6 blanking source
These bits select which Timer output controls the comparator 6 output blanking.
000: No blanking
001: Reserved
010: Reserved
011: TIM2 OC4 selected as blanking source
100: TIM15 OC2 selected as blanking source
Other configurations: reserved
The blanking signal is active high (masking comparator output signal). It is up to the user to program
the comparator and blanking signal polarity correctly.
Bits 17:16
COMP6HYST[1:0]
: Comparator 6 Hysteresis
On the STM32F302xBC, these bits control the hysteresis level.
00: No hysteresis
01: Low hysteresis
10: Medium hysteresis
11: High hysteresis
Please refer to the electrical characteristics for the hysteresis values.
On the STM32F302x6/8, these bits are reserved and must be kept at reset value.
Bit 15
COMP6POL
: Comparator 6 output polarity
This bit is used to invert the comparator 6 output.
0: Output is not inverted
1: Output is inverted
Bit 14 Reserved, must be kept at reset value.