Comparator (COMP)
RM0365
421/1080
DocID025202 Rev 7
Bits 13:10
COMP6OUTSEL[3:0]
: Comparator 6 output selection
These bits select which Timer input must be connected with the comparator 6 output.
0000: No timer input
0001: (BRK_ACTH) Timer 1 break input
0010: (BRK2) Timer 1 break input 2
0101: Timer 1 break input 2
0110: Timer 2 input capture 2
1000: Timer 2 OCREF_CLR input
1001: Timer 16 OCREF_CLR input
1010: Timer 16 input capture 1
1011: Timer 4 input capture 4
Remaining combinations: reserved.
Note: Depending on the product, when a timer is not available, the corresponding combination is
reserved.
Bits 9:8 Reserved, must be kept at reset value.
Bit 7
COMP6INPSEL
: Comparator 6 non inverting input selection
0: PD11
1: PB11
Note: On STM32F302x6/8 and STM32F302xD/E, this bit is reserved. COMP6_VINP is available on
PB11 whatever value is written on bit 7.
Bits 6:4
COMP6INMSEL[2:0]
: Comparator 6 inverting input selection
These bits allows to select the source connected to the inverting input of the comparator 6.
0000: 1/4 of Vrefint
0001: 1/2 of Vrefint
0010: 3/4 of Vrefint
0011: Vrefint
0100: PA4 or DAC1_CH1 output if enabled
0101: PA5 (only on STM32F302xB/C/D/E)
0110: PD10
0111: PB15
Remaining combinations: reserved.
Bits 3:2
COMP6MODE[1:0]
: Comparator 6 mode (only in STM32F302xB/C devices)
These bits control the operating mode of the comparator 6 and allows to adjust the
speed/consumption.
00: Ultra-low-power
01: Low-power
10: Medium speed
11: High speed
Bit 1 Reserved, must be kept at reset value.
Bit 0
COMP6EN
: Comparator 6 enable
This bit switches COMP6 ON/OFF.
0: Comparator 6 disabled
1: Comparator 6 enabled