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 #143 background imageLoading...
Page #143 background image
UM1581
Comparators (COMP)
DocID023800 Rev 1
143/584
performed. To unlock the configuration, perform a system
reset.
5.2.5.5 COMP_SwitchCmd
Function Name
void COMP_SwitchCmd ( uint32_t COMP_Selection,
FunctionalState NewState)
Function Description
Close or Open the SW1 switch.
Parameters
ï‚· NewState : New state of the analog switch. This parameter
can be ENABLE so the SW1 is closed; PA1 is connected to
PA4 or DISABLE so the SW1 switch is open; PA1 is
disconnected from PA4
Return values
ï‚· None.
Notes
ï‚· If the COMP1 is locked, Close/Open the SW1 switch can't be
performed. To unlock the configuration, perform a system
reset.
ï‚· This switch is solely intended to redirect signals onto high
impedance input, such as COMP1 non-inverting input (highly
resistive switch)
5.2.5.6 COMP_GetOutputLevel
Function Name
uint32_t COMP_GetOutputLevel ( uint32_t COMP_Selection)
Function Description
Return the output level (high or low) of the selected comparator.
Notes
ï‚· None.

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