![]() |
STM32F37 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
|
Temperature Sensor- Vrefint (Internal Reference Voltage) and VBAT management function. More...
Functions | |
| void | ADC_TempSensorVrefintCmd (FunctionalState NewState) |
| Enables or disables the temperature sensor and Vrefint channel. More... | |
Temperature Sensor- Vrefint (Internal Reference Voltage) and VBAT management function.
===============================================================================
##### Temperature Sensor, Vrefint and VBAT management function #####
===============================================================================
[..] This section provides a function allowing to enable/ disable the internal
connections between the ADC and the Temperature Sensor, the Vrefint
and the VBAT sources.
[..] A typical configuration to get the Temperature sensor and Vrefint channels
voltages is done following these steps :
(#) Enable the internal connection of Temperature sensor and Vrefint sources
with the ADC channels using ADC_TempSensorVrefintCmd() function.
Enable the internal connection of VBAT using SYSCFG_VBATMonitoringCmd(ENABLE);
(#) Select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint and/or
ADC_Channel_Vbat using ADC_RegularChannelConfig()
or ADC_InjectedChannelConfig() functions
(#) Get the voltage values, using ADC_GetConversionValue() or
ADC_GetInjectedConversionValue(). | void ADC_TempSensorVrefintCmd | ( | FunctionalState | NewState | ) |
Enables or disables the temperature sensor and Vrefint channel.
| NewState,: | new state of the temperature sensor. This parameter can be: ENABLE or DISABLE. |
| None |