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 #144 background imageLoading...
Page #144 background image
Comparators (COMP)
UM1581
144/584
DocID023800 Rev 1
5.2.6 Write mode control functions
5.2.6.1 COMP_WindowCmd
Function Name
void COMP_WindowCmd ( uint32_t COMP_Selection,
FunctionalState NewState)
Function Description
Enables or disables the window mode.
Parameters
ï‚· COMP_Selection : the selected comparator. This parameter
can be COMP_Selection_COMPx where x can be 2, 4 or 6 to
select the COMP peripheral. param NewState: new state of
the window mode. This parameter can be ENABLE or
DISABLE. When enbaled, COMPx and COMPx-1 non
inverting inputs are connected together. When disabled,
COMPx and COMPx-1 non inverting inputs are disconnected.
Return values
ï‚· None.
Notes
ï‚· If the COMPx is locked, ENABLE/DISABLE the window mode
can't be performed. To unlock the configuration, perform a
system reset.
5.2.7 COMP configuration locking function
5.2.7.1 COMP_LockConfig
Function Name
void COMP_LockConfig ( uint32_t COMP_Selection)
Function Description
Lock the selected comparator (COMP1/COMP2) configuration.
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.
Return values
ï‚· None.
Notes
ï‚· Locking the configuration means that all control bits are read-
only. To unlock the comparator configuration, perform a
system reset.

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