DocID025202 Rev 7
416/1080
RM0365
Comparator (COMP)
422
Bits 13:10
COMP2OUTSEL[3:0]
: Comparator 2 output selection
These bits select which Timer input must be connected with the comparator2 output.
0000: No selection
0001: (BRK_ACTH) Timer 1 break input
0010: (BRK2) Timer 1 break input 2
0011: Reserved
0100: Reserved
0101: Timer 1 break input2
0110: Timer 1 OCREF_CLR input
0111: Timer 1 input capture 1
1000: Timer 2 input capture 4
1001: Timer 2 OCREF_CLR input
1010: Timer 3 input capture 1
1011: Timer 3 OCrefclear input
Remaining combinations: reserved.
Note: Depending on the product, when a timer is not available, the corresponding combination is
reserved.
Bit 9
COMP2WINMODE
: Comparator 2 window mode (only in STM32F302xB/C devices)
This bit selects the window mode: Both non inverting inputs of comparators share the non inverting
input of Comparator 1 (PA1).
0: Comparators 1 and 2 can not be used in window mode.
1: Comparators 1 and 2 can be used in window mode.
Bit 8 Reserved, must be kept at reset value.
Bit 7
COMP2INPSEL
: Comparator 2 non inverting input selection (Only in STM32F302xB/C devices)
0: PA7 is selected.
1: PA3 is selected.
Note: On STM32F302x6/x8 and STM32F302xD/E, this bit is reserved. COMP2_VINP is available on
PA3 whatever value is written in bit 7.
Bits 6:4
COMP2INMSEL[2:0]
: Comparator 2 inverting input selection
These bits allows to select the source connected to the inverting input of the comparator 2.
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: PA2
Remaining combinations: reserved.