DocID025202 Rev 7
414/1080
RM0365
Comparator (COMP)
422
Bit 14 Reserved, must be kept at reset value.
Bits 13:10
COMP1OUTSEL[3:0]
: Comparator 1 output selection
These bits select which Timer input must be connected with the comparator1 output.
0000: No selection
0001: (BRK_ACTH) Timer 1 break input
0010: (BRK2) Timer 1 break input 2
0101: Timer 1 break input 2
0110: Timer 1 OCrefclear input
0111: Timer 1 input capture 1
1000: Timer 2 input capture 4
1001; Timer 2 OCrefclear 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.
Bits 9:7 Reserved, must be kept at reset value.
Bits 6:4
COMP1INMSEL[2:0]
: Comparator 1 inverting input selection
These bits allows to select the source connected to the inverting input of the comparator 1.
000: 1/4 of Vrefint
001: 1/2 of Vrefint
010: 3/4 of Vrefint
011: Vrefint
100: PA4 or DAC1 output if enabled
101: PA5
110: PA0
111: Reserved
Bits 3:2
COMP1MODE[1:0]
: Comparator 1 mode
These bits control the operating mode of the comparator1 and allows to adjust the
speed/consumption.
00: High speed
01: Medium speed
10: Low-power
11: Ultra-low-power
Bit 1
COMP1_INP_DAC
: Comparator 1 non inverting input connection to DAC output.
This bit closes a switch between comparator 1 non-inverting input (PA0) and DAC out I/O (PA4).
0: Switch open
1: Switch closed
Note: This switch is solely intended to redirect signals onto high impedance input, such as COMP1
non-inverting input (highly resistive switch).
Bit 0
COMP1EN
: Comparator 1 enable
This bit switches COMP1 ON/OFF.
0: Comparator 1 disabled
1: Comparator 1 enabled