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.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Temperature Sensor - Vrefint (Internal Reference Voltage) and VBAT management functions
[ADC_Private_Functions]
Vbat, Temperature Sensor & Vrefint (Internal Reference Voltage) management function. More...
Functions | |
| void | ADC_TempSensorCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the temperature sensor channel. | |
| void | ADC_VrefintCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the Vrefint channel. | |
| void | ADC_VbatCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the Vbat channel. | |
Detailed Description
Vbat, Temperature Sensor & Vrefint (Internal Reference Voltage) management function.
====================================================================================================
##### Temperature Sensor - Vrefint (Internal Reference Voltage) and VBAT management functions #####
====================================================================================================
[..] This section provides a function allowing to enable/ disable the internal
connections between the ADC and the Vbat/2, Temperature Sensor and the Vrefint source.
[..] A typical configuration to get the Temperature sensor and Vrefint channels
voltages is done following these steps :
(#) Enable the internal connection of Vbat/2, Temperature sensor and Vrefint sources
with the ADC channels using:
(++) ADC_TempSensorCmd()
(++) ADC_VrefintCmd()
(++) ADC_VbatCmd()
(#) select the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint and/or ADC_Channel_Vbat using
(++) ADC_RegularChannelConfig() or
(++) ADC_InjectedInit() functions
(#) Get the voltage values, using:
(++) ADC_GetConversionValue() or
(++) ADC_GetInjectedConversionValue().
Function Documentation
| void ADC_TempSensorCmd | ( | ADC_TypeDef * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the temperature sensor channel.
- Parameters:
-
ADCx,: where x can be 1 to select the ADC peripheral. NewState,: new state of the temperature sensor. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 948 of file stm32f30x_adc.c.
| void ADC_VbatCmd | ( | ADC_TypeDef * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the Vbat channel.
- Parameters:
-
ADCx,: where x can be 1 to select the ADC peripheral. NewState,: new state of the Vbat. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1013 of file stm32f30x_adc.c.
| void ADC_VrefintCmd | ( | ADC_TypeDef * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the Vrefint channel.
- Parameters:
-
ADCx,: where x can be 1 or 4 to select the ADC peripheral. NewState,: new state of the Vrefint. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 972 of file stm32f30x_adc.c.
Generated on Tue Jul 12 2022 17:34:45 by
1.7.2