5.2.6 Write mode control functions
5.2.6.1 COMP_WindowCmd
void COMP_WindowCmd ( uint32_t COMP_Selection,
FunctionalState NewState)
Enables or disables the window mode.
ï‚· 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.
ï‚· 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
void COMP_LockConfig ( uint32_t COMP_Selection)
Lock the selected comparator (COMP1/COMP2) configuration.
ï‚· COMP_Selection : the selected comparator. This parameter
can be COMP_Selection_COMPx where x can be 1 to 7 to
select the COMP peripheral.
ï‚· Locking the configuration means that all control bits are read-
only. To unlock the comparator configuration, perform a
system reset.