STM8L15x Standard Peripherals Drivers
|
internal) management functions More...
Functions | |
void | ADC_TempSensorCmd (FunctionalState NewState) |
Enables or disables the Temperature sensor internal reference. | |
void | ADC_VrefintCmd (FunctionalState NewState) |
Enables or disables the Internal Voltage reference. |
Detailed Description
internal) management functions
Temperature Sensor & Vrefint (Voltage Reference internal) management functions
=============================================================================== Temperature Sensor & Vrefint (Voltage Reference internal) management functions =============================================================================== This section provides functions allowing to enable/ disable the internal connections between the ADC and the Temperature Sensor and the Vrefint source. A typical configuration to get the Temperature sensor or/and Vrefint channels voltages is done following these steps : 1. Enable the internal connection of Temperature sensor or/and Vrefint sources with the ADC channels: - for the Temperature sensor using ADC_TempSensorCmd() function. - for the Internal Voltage reference using ADC_VrefintCmd() function. 2. Enable the ADC_Channel_TempSensor and/or ADC_Channel_Vrefint channels using ADC_ChannelCmd()function. 3. Get the voltage values, using ADC_GetConversionValue().
Function Documentation
void ADC_TempSensorCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Temperature sensor internal reference.
Definition at line 468 of file stm8l15x_adc.c.
References ADC1, ADC_TRIGR1_TSON, DISABLE, and IS_FUNCTIONAL_STATE.
void ADC_VrefintCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Internal Voltage reference.
Definition at line 491 of file stm8l15x_adc.c.
References ADC1, ADC_TRIGR1_VREFINTON, DISABLE, and IS_FUNCTIONAL_STATE.