DocID025202 Rev 7
410/1080
RM0365
Comparator (COMP)
422
17.3.3
COMP reset and clocks
The COMP clock provided by the clock controller is synchronous with the PCLK2 (APB2
clock).
There is no clock enable control bit provided in the RCC controller. To use a clock source for
the comparator, the SYSCFG clock enable control bit must be set in the RCC controller.
Note:
Important:
The polarity selection logic and the output redirection to the port works
independently from the PCLK2 clock. This allows the comparator to work even in Stop
mode.
17.3.4 Comparator
LOCK
mechanism
The comparators can be used for safety purposes, such as over-current or thermal
protection. For applications having specific functional safety requirements, it is necessary to
insure that the comparator programming cannot be altered in case of spurious register
access or program counter corruption.
Table 103. STM32F302x6/8 comparator input/outputs summary
Comparator input/outputs
COMP2
COMP4
COMP6
Comparator inverting
Input: connection to
internal signals
DAC1_CH1
Vrefint
¾ Vrefint
½ Vrefint
¼ Vrefint
Comparator Inputs
connected to I/Os
(+: non inverting input;
-: inverting input)
+: PA7
-: PA2
-: PA4
+: PB0
-: PB2
-: PA4
+: PB11
-: PB15
-: PA4
Comparator outputs
(motor control
protection)
T1BKIN
T1BKIN2
Outputs on I/Os
PA2
PA12
PB12
PB1
PA10
PC6
Outputs to internal
signals
TIM1_OCREF_CLR
TIM1_IC1
TIM2_IC4
TIM2_OCREF_CLR
TIM15_OCREF_CLR
TIM15_IC2
TIM2_IC2
TIM2_OCREF_CLR
TIM16_OCREF_CLR
TIM16_IC1