Comparator (COMP)
14.3.2
COMP pins and internal signals
The I/Os used as comparators inputs must be configured in analog mode in the GPIOs
registers.
The comparator output can be connected to the I/Os using the alternate function channel
given in "Alternate function mapping" table in the datasheet.
The table below summarizes the I/Os that can be used as comparators inputs and outputs.
The output can also be internally redirected to a variety of timer input for the following
purposes:
•
Emergency shut-down of PWM signals, using BKIN and BKIN2 inputs
•
Cycle-by-cycle current control, using OCREF_CLR inputs
•
Input capture for timing measures
It is possible to have the comparator output simultaneously redirected internally and
externally.
Comparator inverting
Input: connection to
internal signals
Comparator Inputs
connected to I/Os
(+: non inverting input;
-: inverting input)
Comparator outputs
(motor control
protection)
Outputs on I/Os
Outputs to internal
signals
14.3.3
COMP reset and clocks
The COMP clock provided by the clock controller is synchronous with the PCLK2 (APB2
clock).
294/874
Table 48. STM32F3xx comparator input/outputs summary
-
COMP2
+: PA7
-: PA2
PA2
PA12
PB9
TIM1_OCREF_CLR
TIM1_IC1
TIM2_IC4
TIM2_OCREF_CLR
Comparator input/outputs
COMP4
DAC1_CH1
VREFINT
Vrefint
¾ Vrefint
½ Vrefint
¼ Vrefint
+: PB0
-: PB2
T1BKIN
T1BKIN2
TIM15_OCREF_CLR
TIM15_IC2
RM0366 Rev 5
PB1
TIM2_IC2
TIM2_OCREF_CLR
TIM16_OCREF_CLR
TIM16_IC1
RM0366
COMP6
+: PB11
-: PB15
PA10
PC6
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?