Comparators (COMP)
Hysteresis level low
#define: COMP_Hysteresis_Medium COMP_CSR_COMPxHYST_1
Hysteresis level medium
#define: COMP_Hysteresis_High COMP_CSR_COMPxHYST
Hysteresis level high
COMP_InvertingInput
#define: COMP_InvertingInput_1_4VREFINT ((uint32_t)0x00000000)
1/4 VREFINT connected to comparator inverting input
#define: COMP_InvertingInput_1_2VREFINT COMP_CSR_COMPxINSEL_0
1/2 VREFINT connected to comparator inverting input
#define: COMP_InvertingInput_3_4VREFINT COMP_CSR_COMPxINSEL_1
3/4 VREFINT connected to comparator inverting input
#define: COMP_InvertingInput_VREFINT ((uint32_t)0x00000030)
VREFINT connected to comparator inverting input
#define: COMP_InvertingInput_DAC1 COMP_CSR_COMPxINSEL_2
DAC1_OUT (PA4) connected to comparator inverting input
#define: COMP_InvertingInput_DAC2 ((uint32_t)0x00000050)
DAC2_OUT (PA5) connected to comparator inverting input
#define: COMP_InvertingInput_IO1 ((uint32_t)0x00000060)
I/O1 (PA0 for COMP1, PA2 for COMP2, PD15 for COMP3, PE8 for COMP4, PD13 for
COMP5, PD10 for COMP6, PC0 for COMP7) connected to comparator inverting input
#define: COMP_InvertingInput_IO2 COMP_CSR_COMPxINSEL
I/O2 (PB12 for COMP3, PB2 for COMP4, PB10 for COMP5, PB15 for COMP6) connected
to comparator inverting input
COMP_Mode
#define: COMP_Mode_HighSpeed 0x00000000
146/584
DocID023800 Rev 1
UM1581
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?