RM0091
14
Comparator (COMP)
14.1
COMP introduction
The STM32F05xxx embeds two general purpose comparators COMP1 and COMP2 that
can be used either as standalone devices (all terminal are available on I/Os) or combined
with the timers. They can be used for a variety of functions including:
●
Wake-up from low-power mode triggered by an analog signal,
●
Analog signal conditioning,
●
Cycle-by-cycle current control loop when combined with the DAC and a PWM output
from a timer.
14.2
COMP main features
●
Rail-to-rail comparators
●
Each comparator have selectable threshold
–
–
–
●
Programmable hysteresis
●
Programmable speed and consumption
●
The outputs can be redirected to an I/O or to multiple timer inputs for triggering:
–
–
–
●
Every two comparators can be combined in a window comparator (COMP1/COMP2,).
●
The two comparators can be combined in a window comparator
●
Each comparator has interrupt generation capability with wake-up from Sleep and Stop
modes (through the EXTI controller)
3 I/O pins
DAC1
The internal reference voltage and three sub-multiple values (1/4, 1/2, 3/4)
Capture events
OCref_clr events (for cycle-by-cycle current control)
Break events for fast PWM shutdowns
Doc ID 018940 Rev 1
Comparator (COMP)
215/742
Need help?
Do you have a question about the STM32F05 series and is the answer not in the manual?
Questions and answers