EasyManua.ls Logo

ST STM32F31xx - Initialization and Configuration Functions

ST STM32F31xx
584 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
Loading...
UM1581
Comparators (COMP)
DocID023800 Rev 1
141/584
5.2.5 Initialization and Configuration functions
5.2.5.1 COMP_DeInit
Function Name
void COMP_DeInit ( uint32_t COMP_Selection)
Function Description
Deinitializes COMP peripheral registers to their default reset
values.
Parameters
COMP_Selection.
Return values
None.
Notes
Deinitialization can't be performed if the COMP configuration
is locked. To unlock the configuration, perform a system
reset.
5.2.5.2 COMP_Init
Function Name
void COMP_Init ( uint32_t COMP_Selection,
COMP_InitTypeDef * COMP_InitStruct)
Function Description
Initializes the COMP peripheral according to the specified
parameters in COMP_InitStruct.
Parameters
COMP_Selection : the selected comparator. This parameter
can be COMP_Selection_COMPx where x can be 1 to 7 to
select the COMP peripheral.
COMP_InitStruct : pointer to an COMP_InitTypeDef
structure that contains the configuration information for the
specified COMP peripheral. COMP_InvertingInput specifies
the inverting input of COMPCOMP_NonInvertingInput
specifies the non inverting input of COMPCOMP_Output
connect COMP output to selected timer input (Input capture /
Output Compare Reference Clear / Break
Input)COMP_BlankingSrce specifies the blanking source of
COMPCOMP_OutputPol select output
polarityCOMP_Hysteresis configures COMP hysteresis
valueCOMP_Mode configures COMP power mode
COMP_InvertingInput :
COMP_NonInvertingInput :
COMP_Output :
COMP_BlankingSrce :
COMP_OutputPol :
COMP_Hysteresis :

Table of Contents

Related product manuals