Comparator (COMP)
RM0365
409/1080
DocID025202 Rev 7
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.
Table 102. STM32F302xB/C/D/E comparator input/outputs summary
Comparator input/outputs
COMP1
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)
+: PA1
-: PA0
-: PA4
-: PA5
+: PA3
(1)
+: PA7
-: PA2
-: PA4
-: PA5
1. Only on STM32F302xB/C devices.
+: PB0
+: PE7
-: PB2
-: PE8
-: PA4
-: PA5
+: PB11
+: PD11
-: PB15
-: PD10
-: PA4
-: PA5
Comparator outputs
(motor control
protection)
T1BKIN
T1BKIN2
T1BKIN2
Outputs on I/Os
PA0
PF4
PA6
PA11
PB8
PA2
PA7
PA12
PB9
PB1
PA10
PC6
Outputs to internal
signals
TIM1_OCrefClear
TIM1_IC1
TIM2_IC4
TIM2_OCrefClear
TIM3_IC1
TIM3_OCrefClear
TIM3_IC3
TIM3_OCrefClear
TIM4_IC2
TIM15_OCrefClear
TIM15_IC2
TIM2_IC2
TIM2_OCrefClear
TIM16_OCrefClear
TIM16_IC1
TIM4_IC4