EasyManua.ls Logo

ST STM32F31xx

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...
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

Related product manuals