EasyManuals Logo

ST STM32G491 User Manual

ST STM32G491
2126 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 #783 background imageLoading...
Page #783 background image
RM0440 Rev 4 783/2126
RM0440 Comparator (COMP)
785
Bit 31 LOCK: COMP_CxCSR register lock
This bit is set by software and cleared by a hardware system reset. It locks the whole content
of the comparator x control register COMP_CxCSR[31:0]. When locked, all control bits and
flags can be read only but not written. When unlocked, the control bits can also be written by
software.
0: Unlock
1: Lock
Bit 30 VALUE: Comparator x output status
This read-only flag reflects the level of the comparator x output before the polarity
selector and blanking, as indicated in Figure 168.
Bits 29:24 Reserved, must be kept at reset value
Bit 23 SCALEN: V
REFINT
scaler enable
This bit controlled by software enables the operation of V
REFINT
scaler at the inverting input
of all comparator. To disable the V
REFINT
scaler, SCALEN bits of all COMP_CxCSR registers
must be set to Disable state. When the V
REFINT
scaler is disabled, the 1/4 V
REFINT
, 1/2
V
REFINT
, 3/4 V
REFINT
and V
REFINT
inputs of the multiplexer should not be selected.
0: Disable
1: Enable
Bit 22 BRGEN: V
REFINT
scaler resistor bridge enable
This bit controlled by software enables the operation of resistor bridge in the V
REFINT
scaler.
To disable the resistor bridge, BRGEN bits of all COMP_CxCSR registers must be set to
Disable state. When the resistor bridge is disabled, the 1/4 V
REFINT
, 1/2 V
REFINT
, and 3/4
V
REFINT
inputs of the input selector receive V
REFINT
voltage.
0: Disable
1: Enable
Bits 21:19 BLANKSEL[2:0]: Comparator x blanking signal select
This bitfield controlled by software selects the blanking signal for comparator channel x, as
shown in Table 197: Blanking sources.
Bits 18:16 HYST[2:0]: Comparator x hysteresis
This bitfield controlled by software selects the hysteresis of the comparator x:
000: No hysteresis
001: 10mV hysteresis
010: 20mv hysteresis
011: 30mV hysteresis
100: 40mV hysteresis
101: 50mV hysteresis
110: 60mV hysteresis
111: 70mV hysteresis
Bit 15 POL: Comparator x polarity
This bit controlled by software selects the comparator x output polarity:
0: Non-inverted
1: Inverted
Bits 14:9 Reserved, must be kept at reset value
Bit 8 INPSEL: Comparator x signal select for non-inverting input
This bitfield controlled by software selects the signal for the non-inverting input COMPx_INP
of the comparator x, as shown in Table 195: COMPx non-inverting input assignment.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32G491 Specifications

General IconGeneral
BrandST
ModelSTM32G491
CategoryMicrocontrollers
LanguageEnglish

Related product manuals