Download Print this page

ST STM32L4+ Series Reference Manual page 810

Hide thumbs Also See for STM32L4+ Series:

Advertisement

Comparator (COMP)
26.3.8
COMP power and speed modes
COMP1 and COMP2 power consumption versus propagation delay can be adjusted to have
the optimum trade-off for a given application.
The bits PWRMODE[1:0] in COMPx_CSR registers can be programmed as follows:
00: High speed / full power
01 or 10: Medium speed / medium power
11: Low speed / ultra-low-power
26.4
COMP low-power modes
Mode
Sleep
Low-power run
Low-power sleep
Stop 0
Stop 1
Stop 2
Standby
Shutdown
26.5
COMP interrupts
The comparator outputs are internally connected to the Extended interrupts and events
controller. Each comparator has its own EXTI line and can generate either interrupts or
events. The same mechanism is used to exit from low-power modes.
Refer to Interrupt and events section for more details.
To enable COMPx interrupt, it is required to follow this sequence:
1.
Configure and enable the EXTI line corresponding to the COMPx output event in
interrupt mode and select the rising, falling or both edges sensitivity
2.
Configure and enable the NVIC IRQ channel mapped to the corresponding EXTI lines
3.
Enable COMPx.
810/2301
Table 175. Comparator behavior in the low power modes
No effect on the comparators.
Comparator interrupts cause the device to exit the Sleep mode.
No effect.
No effect. COMP interrupts cause the device to exit the Low-power sleep mode.
No effect on the comparators.
Comparator interrupts cause the device to exit the Stop mode.
The COMP registers are powered down and must be reinitialized after exiting
Standby or Shutdown mode.
RM0432 Rev 6
Description
RM0432

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32L4+ Series and is the answer not in the manual?