Table 126. Comparator Behavior In The Low-Power Modes; Table 127. Interrupt Control Bits - STMicroelectronics STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

Comparator (COMP)
21.4
COMP low-power modes
Mode
Sleep
LPRun
LPSleep
Stop 0
Stop 1
Stop 2
Standby
Shutdown
21.5
COMP interrupts
The comparator outputs are internally connected to the extended interrupts and events
controller (EXTI). 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 the "Interrupt and events" section for more details.
The following sequence enables the COMPx interrupt through EXTI block:
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 the COMPx.
Interrupt event
Event flag
COMP1 output
COMP1_CSR
COMP2 output
COMP2_CSR
626/1450

Table 126. 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 on the comparators
Comparator interrupts cause the device to exit the LPSleep mode.
No effect on the comparators
Comparator interrupts cause the device to exit the Stop mode.
COMP registers are powered down and must be reinitialized after exiting
Standby or Shutdown mode.

Table 127. Interrupt control bits

Enable control
bit
VALUE in
Through EXTI
VALUE in
Through EXTI
Description
Exit from Sleep
mode
Yes
Yes
RM0453 Rev 5
Exit from Stop
Exit from
modes
Standby mode
Yes
Not applicable
Yes
Not applicable
RM0453

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents