资源简介
当使用电池直接供电 或 外部供电低于LDO的输入电压时,会造成STM32 VDD电压不稳定,忽高忽低。
此时通过使用STM32的内部参考电压功能(Embedded internal reference voltage),可以准确的测量ADC管脚对应的电压值,精度 0.01v左右,可以满足大部分应用场景。
详情参考Blog: https://blog.csdn.net/ioterr/article/details/109170847
代码片段和文件信息
/**
******************************************************************************
* @file system_stm32l1xx.c
* @author MCD Application Team
* @brief CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
*
* This file provides two functions and one global variable to be called from
* user application:
* - SystemInit(): This function is called at startup just after reset and
* before branch to main program. This call is made inside
* the “startup_stm32l1xx.s“ file.
*
* - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
* by the user application to setup the SysTick
* timer or configure other parameters.
*
* - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
* be called whenever the core clock is changed
* during program execution.
*
******************************************************************************
* @attention
*
* © COPYRIGHT(c) 2017 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/** @addtogroup CMSIS
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-10-18 17:56 ADC_TEST_STM32L151CBT6A201018\
目录 0 2020-10-18 17:54 ADC_TEST_STM32L151CBT6A201018\Drivers\
目录 0 2020-10-18 17:54 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\
目录 0 2020-10-18 17:54 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\
目录 0 2020-10-18 17:54 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\
目录 0 2020-10-18 17:54 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\
文件 5114 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_f32.c
文件 5458 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q15.c
文件 4431 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q31.c
文件 5090 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q7.c
文件 4891 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_f32.c
文件 4423 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q15.c
文件 4553 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q31.c
文件 4226 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q7.c
文件 4613 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_f32.c
文件 4912 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q15.c
文件 5000 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q31.c
文件 5408 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q7.c
文件 5582 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_f32.c
文件 5306 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q15.c
文件 5201 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q31.c
文件 4530 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q7.c
文件 4574 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_f32.c
文件 4621 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q15.c
文件 4178 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q31.c
文件 4104 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q7.c
文件 5095 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_f32.c
文件 4534 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q15.c
文件 4425 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q31.c
文件 4462 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q7.c
文件 5648 2018-02-12 19:24 ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_scale_f32.c
............此处省略654个文件信息
- 上一篇:Serv-U_64_jb51.rar
- 下一篇:随机过程刘次华第五版
相关资源
- ADC0808工作时序图
- bcm5482 datasheet
- broadcom 802.11g 网络适配器驱动程序 v
- STM32F103VCT6TR - High-density performance lin
- AT89C51+ADC0808 PROTEUS仿真
- ADC0832ADC0809DAC0832三种芯片程序,c程序
- 数据采集系统——ADC0808的应用
- 超声处理原位反应合成Al2O3/ADC12复合材
- 电子-GravityI2C3.7V锂电池电量计stm32L1
- STM32AD采集DA还原
- 以单片机AT89S52、光电脉宽调制器芯片
- ADC0808 数字电压表仿真+C程序
- AppleBluetoothBroadcomInstaller 滚轮
- BMS检测代码-12路-串联
- cs1237手册
- MSP430教程:MSP430单片机ADC12模块
- 过采样技术提高ADC分辨率
- 12位逐次逼近寄存器型ADC转换器设计
- 12bit流水线ADC电路整体电路原理图-c
- 10位ADC转换器AD5612(stm32_IO口模拟I2C)
- STM32F103 ADC测电压 代码
- ADC采集数据存储SD卡和读取程序
- STM32 ADC与DMA多通道采集加均值滤波.
- STM32 5路ad采集 串口输出
- ReloadClipse插件的使用安装文档
- STM32之ADC+DMA传输定时器触发
- 基于SM32F103C8T6的环境传感器
- STM32F103C8T6+DHT11+SGP30+CH340+ADC
- STM32实现LCD中显示当前ADC转换值
- BroadcastReceiver广播接收器演示demo
评论
共有 条评论