STMicroelectronics STM32WLEx Reference Manual page 525

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

Advertisement

RM0461
19.6.2
COMP2 control and status register (COMP2_CSR)
Address offset: 0x04
Reset value: 0x0000 0000
31
30
29
LOCK
VALUE
Res.
Res.
rs
r
15
14
13
POLA
Res.
Res.
Res.
RITY
rw
Bit 31 LOCK: locks the whole content of the register, COMP2_CSR[31:0]
Bit 30 VALUE: COMP2 output status bit
Bits 29:27 Reserved, must be kept at reset value.
Bits 26:25 INMESEL[1:0]: COMP2 input minus extended selection
Bit 24 Reserved, must be kept at reset value.
Bit 23 SCALEN: voltage scaler enable
Bit 22 BRGEN: scaler bridge enable
Bit 21 Reserved, must be kept at reset value.
28
27
26
25
Res.
INMESEL[1:0]
rw
rw
12
11
10
9
WIN
Res.
Res.
MODE
rw
This bit is set by software and cleared by a hardware system reset.
0: COMP2_CSR[31:0] are read/write.
1: COMP2_CSR[31:0] are read-only.
This bit is read-only. It reflects the current COMP2 output taking into account the effect of the
POLARITY bit.
These bits are set and cleared by software. They select which extended GPIO input is
connected to the input minus of COMP2, if INMSEL[2:0] = 111.
00: PB2
01: PA10
10: PA11
11: reserved
This bit is set and cleared by software. It enables outputs of the V
the minus input of COMP2.
0: Bandgap scaler disabled (if SCALEN bit of COMP1_CSR register is also reset)
1: Bandgap scaler enabled
This bit is set and cleared by software. It enables the bridge of the scaler.
If SCALEN is set and BRGEN is reset, the BG voltage reference is available but not 1/4
BGAP, 1/2 BGAP or 3/4 BGAP. The BGAP value is sent instead of 1/4 BGAP, 1/2 BGAP, 3/4
BGAP. If SCALEN and BRGEN are both set, 1/4 BGAP 1/2 BGAP 3/4 BGAP and BGAP
voltage references are available.
0: Scaler resistor bridge disabled (if BRGEN bit of COMP1_CSR register is also reset)
1: Scaler resistor bridge enabled
24
23
22
SCAL
Res.
BRGEN
EN
rw
rw
8
7
6
INPSEL[1:0]
INMSEL[2:0]
rw
rw
rw
RM0461 Rev 5
Comparator (COMP)
21
20
19
18
Res.
BLANKING[2:0]
rw
rw
rw
5
4
3
2
PWRMODE[1:0]
rw
rw
rw
rw
divider available on
REFINT
17
16
HYST[1:0]
rw
rw
1
0
Res.
EN
rw
525/1306
527

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents