DocID025202 Rev 7
408/1080
RM0365
Comparator (COMP)
422
17.3 COMP
functional
description
17.3.1
COMP block diagram
The block diagram of the comparators is shown in
Figure 118: Comparator 1 and 2 block
Figure 118. Comparator 1 and 2 block diagrams
1. Available only on STM32F302xB/C.
2. Window mode is not supported on STM32F302x6/8/D/E.
3. COMP1 is not available on STM32F302x6/8.
4. Available only on STM32F302xB/C/D/E.
17.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 table below summarizes the I/Os that can be used as comparators inputs and outputs.
069
3$
3$
3$'$&B&+
95(),17
ô95(),17
ò95(),17
ó95(),17
3RODULW\
VHOHFWLRQ
&203
7,0B%.,1
7,0B2&5()B&/5
7,0B,&
7,0B,&
7,0B2&5()B&/5
7,0B,&
7,0B2&5()B&/5
&203B287
&203LQWHUUXSWUHTXHVW
WR(;7,
3RODULW\
VHOHFWLRQ
7,0B%.,1
7,0B2&5()B&/5
7,0B,&
7,0B,&
7,0B2&5()B&/5
7,0B,&
7,0B2&5()B&/5
&203LQWHUUXSWUHTXHVW
WR(;7,
3$
:LQGRZ
PRGH
3$
3$'$&B&+
3$3)3$3$3%
&203B287
&203
3$3$3$3%
&203B,13
&203B,10
&203B,13
&203B,10
7,0B%.,1
7,0B%.,1
7,0B%.,1
7,0B%.,1
95(),17
ô95(),17
ò95(),17
ó95(),17
:LQGRZ
PRGH
3$
3$'$&B&+
3$'$&B&+