Comp Low-Power Modes; Comp Interrupts; Comp Registers; Comparator 1 Control And Status Register (Comp1_Csr) - ST STM32G0 1 Series Reference Manual

Table of Contents

Advertisement

RM0444
18.4

COMP low-power modes

Mode
Sleep
Low-power run
Low-power sleep No effect. COMP interrupts cause the device to exit the Low-power sleep mode.
Stop 0
Stop 1
Standby
Shutdown
18.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.
Interrupt event
COMP1 output
COMP2 output
COMP3 output
18.6

COMP registers

18.6.1

Comparator 1 control and status register (COMP1_CSR)

Address offset: 0x00

Table 96. 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 Stop mode.
The COMP registers are powered down and must be reinitialized after exiting
Standby or Shutdown mode.

Table 97. Interrupt control bits

Enable
control bit
Through EXTI
Through EXTI
Through EXTI
RM0444 Rev 5
Description
Exit from
Exit from
Sleep mode
Stop modes
Yes
Yes
Yes
Comparator (COMP)
Exit from
Standby mode
Yes
N/A
Yes
N/A
Yes
N/A
451/1390
458

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF