EasyManuals Logo

STMicroelectronics STM32F05 series User Manual

STMicroelectronics STM32F05 series
742 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 #219 background imageLoading...
Page #219 background image
RM0091 Comparator (COMP)
Doc ID 018940 Rev 1 219/742
14.4 COMP registers
14.4.1 COMP control and status register (COMP_CSR)
Address offset : 0x1C
Reset value: 0x0000 0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
COMP
2LOCK
COMP
2OUT
COMP2HYST
[1:0]
COMP
2POL
COMP2OUTSEL[2:0]
WNDW
EN
COMP2INSEL[2:0]
COMP2MODE
[1:0]
Res.
COMP2
EN
rwo r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
COMP
1LOCK
COMP
1OUT
COMP1HYST
[1:0]
COMP
1POL
COMP1OUTSEL[2:0] Res. COMP1INSEL[2:0]
COMP1MODE
[1:0]
COMP1
SW1
COMP1
EN
rwo r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r rw/r
Bit 31 COMP2LOCK: Comparator 2 lock
This bit is write-once. It is set by software. It can only be cleared by a system reset.
It allows to have all control bits of comparator 2 as read-only.
0 : COMP_CSR[31:16] bits are read-write.
1 : COMP_CSR[31:16] bits are read-only.
Bit 30 COMP2OUT: Comparator 2 output
This read-only bit is a copy of comparator 2 output state.
0 : Output is low (non-inverting input below inverting input).
1 : Output is high (non-inverting input above inverting input).
Bits 29:28 COMP2HYST[1:0] Comparator 2 hysteresis
These bits control the hysteresis level.
00 : No hysteresis
01 : Low hysteresis
10 : Medium hysteresis
11 : High hysteresis
Please refer to the electrical characteristics for the hysteresis values.
Bit 27 COMP2POL: Comparator 2 output polarity
This bit is used to invert the comparator 2 output.
0 : Output is not inverted
1 : Output is inverted
Bits 26:24 COMP2OUTSEL[2:0]: Comparator 2 output selection
These bits select the destination of the comparator output.
000: No selection
001: Timer 1 break input
010: Timer 1 Input capture 1
011: Timer 1 OCrefclear input
100: Timer 2 input capture 4
101: Timer 2 OCrefclear input
110: Timer 3 input capture 1
111: Timer 3 OCrefclear input

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STMicroelectronics STM32F05 series and is the answer not in the manual?

STMicroelectronics STM32F05 series Specifications

General IconGeneral
BrandSTMicroelectronics
ModelSTM32F05 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals