Comp Functional Description; Comp Block Diagram; Comp Pins And Internal Signals; Table 90. Comp1 Non-Inverting Input Assignment - ST STM32G0 1 Series Reference Manual

Table of Contents

Advertisement

Comparator (COMP)
18.3

COMP functional description

18.3.1

COMP block diagram

The block diagram of the comparators is shown in
COMPx_INP I/Os
COMPx_INM I/Os
18.3.2

COMP pins and internal signals

The I/Os used as comparators inputs must be configured in analog mode in the GPIOs
registers.
The comparator output can be connected to the I/Os using the alternate function channel
given in "Alternate function mapping" table in the datasheet.
The output can also be internally redirected to a variety of timer input for the following
purposes:
Emergency shut-down of PWM signals, using BKIN and BKIN2 inputs
Cycle-by-cycle current control, using OCREF_CLR inputs
Input capture for timing measures
It is possible to have the comparator output simultaneously redirected internally and
externally.
446/1390

Figure 68. Comparator block diagram

COMPx INPSEL
COMPx WINMODE
COMPy_INP
COMPx_INM
COMPx INMSEL
DAC_CH1
DAC_CH2
V
REFINT
3/4 V
REFINT
1/2 V
REFINT
1/4 V
REFINT

Table 90. COMP1 non-inverting input assignment

COMP1_INP
PC5
PB2
PA1
Open
Figure
COMPx_INP
COMPx
POLARITY
+
COMPx
-
COMPx_VALUE
Blank source
COMPy_VALUE
RM0444 Rev 5
68.
GPIO alternate
function
COMPx_OUT
Wakeup
COMPx OUT
EXTI line
interrupt
COMPx WINOUT
TIMERS
COMP1_INPSEL[1:0]
00
01
10
11
RM0444
MSv42190V1

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