EasyManuals Logo

ST STM32G0 1 Series User Manual

ST STM32G0 1 Series
1390 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #451 background imageLoading...
Page #451 background image
RM0444 Rev 5 451/1390
RM0444 Comparator (COMP)
458
18.4 COMP low-power modes
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.
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
Mode Description
Sleep
No effect on the comparators.
Comparator interrupts cause the device to exit the Sleep mode.
Low-power run No effect.
Low-power sleep No effect. COMP interrupts cause the device to exit the Low-power sleep mode.
Stop 0
No effect on the comparators.
Comparator interrupts cause the device to exit the Stop mode.
Stop 1
Standby
The COMP registers are powered down and must be reinitialized after exiting
Standby or Shutdown mode.
Shutdown
Table 97. Interrupt control bits
Interrupt event
Enable
control bit
Exit from
Sleep mode
Exit from
Stop modes
Exit from
Standby mode
COMP1 output Through EXTI Yes Yes N/A
COMP2 output Through EXTI Yes Yes N/A
COMP3 output Through EXTI Yes Yes N/A

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32G0 1 Series Specifications

General IconGeneral
BrandST
ModelSTM32G0 1 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals