Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Temperature Sensor, Vrefint (Voltage Reference internal)
[ADC_Private_Functions]
and VBAT (Voltage BATtery) management functions More...
Functions | |
| void | ADC_TempSensorVrefintCmd_mort (FunctionalState NewState) |
| Enables or disables the temperature sensor and Vrefint channels. | |
| void | ADC_VBATCmd_mort (FunctionalState NewState) |
| Enables or disables the VBAT (Voltage Battery) channel. | |
Detailed Description
and VBAT (Voltage BATtery) management functions
Temperature Sensor, Vrefint and VBAT management functions
===============================================================================
##### Temperature Sensor, Vrefint and VBAT management functions #####
===============================================================================
[..] This section provides functions 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.
(#) Select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint using
ADC_RegularChannelConfig() or ADC_InjectedChannelConfig() functions
(#) Get the voltage values, using ADC_GetConversionValue() or
ADC_GetInjectedConversionValue().
[..] A typical configuration to get the VBAT channel voltage is done following
these steps :
(#) Enable the internal connection of VBAT source with the ADC channel using
ADC_VBATCmd() function.
(#) Select the ADC_Channel_Vbat using ADC_RegularChannelConfig() or
ADC_InjectedChannelConfig() functions
(#) Get the voltage value, using ADC_GetConversionValue() or
ADC_GetInjectedConversionValue().
Function Documentation
| void ADC_TempSensorVrefintCmd_mort | ( | FunctionalState | NewState ) |
Enables or disables the temperature sensor and Vrefint channels.
- Parameters:
-
NewState,: new state of the temperature sensor and Vrefint channels. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 589 of file stm32f4xx_adc_mort.c.
| void ADC_VBATCmd_mort | ( | FunctionalState | NewState ) |
Enables or disables the VBAT (Voltage Battery) channel.
- Note:
- the Battery voltage measured is equal to VBAT/2 on STM32F40xx and STM32F41xx devices and equal to VBAT/4 on STM32F42xx and STM32F43xx devices
- Parameters:
-
NewState,: new state of the VBAT channel. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 615 of file stm32f4xx_adc_mort.c.
Generated on Sat Oct 21 2023 04:38:55 by
1.7.2