EasyManuals Logo

ST STM32F31xx User Manual

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
Page #141 background imageLoading...
Page #141 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals