Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
399
/
631
Comparator (COMP)
The COMP module is used to compare the analog voltages of two inputs and output high/low levels based on the
comparison results. When "INP" input voltage is higher than "INM" input voltage, the comparator output is high
level, when "INP" input voltage is lower than "INM" input voltage, the comparator output is low level.
COMP system connection block diagram
The COMP module supports a maximum of two independent comparators, which are connected to the APB1 bus..
Figure 19-1 Comparator Controller Functional Diagram
DAC1/PA4
PA6
PA0
VREF_VC1
PA5
COMP Interrupt
PA0/PA11/PB6/PB8
COMP Interrupt
PA2/PA6/PA7/PA12/PA14/PB9
PB4
PA7
PA5
TIM1_BKIN
TIM1_OCrefClear
TIM1_IC1
TIM2_IC1
TIM2_OCrefClear
TIM3_IC1
TIM3_OCrefClear
TIM8_BKIN
TIM4_OCrefClear
TIMTIM8_BKIN
Polarity
Selection
Polarity
Selection
PA11
PA2
PA3
PA3
(3)
PB3
PA12
PB5
PD4
PA15
PB3
PB7
PD6
COMP2
+
-
COMP1
+
-
PA2
(4)
PA0
TIM5_IC1
Digital
Analog
PA6
LPTIM_ETR
VREF_VC2
VREF_VC2
PB10
PD5
PA1
COMP1_IN
P_DAC
Window
mode
DAC1/PA4
PD7
TIM8_OCrefClear
TIM9_OCrefClear
TIM1_BKIN
TIM1_OCrefClear
TIM1_IC1
TIM2_OCrefClear
TIM3_OCrefClear
TIM4_IC1
TIM4_OCrefClear
TIM8_BKIN
TIM5_IC1
TIMTIM8_BKIN
TIM8_IC1
LPTIM_ETR
TIM8_OCrefClear
TIM9_IC1
TIM9_OCrefClear
Notice:
1. VREF_VC1 is the output of the internal low-power 6bit DAC, and VREF_VC2 is the output of the internal non-low-power 6bit DAC;
2. COMP1 supports dual mode (supports both low power mode and normal mode), COMP2 only supports single mode (supports
normal mode);
3. The second character in the 8-bit code of the last line of the chip printed in the factory setting is not "B"
4. The second character in the 8-bit code of the last line of the chip printed in the factory setting is "B"