Figure 97. Comparator Output Blanking - ST STM32WL55JC Reference Manual

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

Advertisement

RM0453
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
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 2
Comparator (COMP)
Exit from Stop
Exit from
modes
Standby mode
Yes
Not applicable
Yes
Not applicable
627/1454
632

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32wl5 seriesStm32wl54 series

Table of Contents

Save PDF