当前位置:网站首页>STM32L4系列单片机ADC通过内部参考电压精确计算输入电压
STM32L4系列单片机ADC通过内部参考电压精确计算输入电压
2022-06-29 02:39:00 【MCU_wb】
以STM32L476为例,VREFINT与内部ADC1_INP0相连
当VDDA与VREF+引脚连在一起时,该电压可能波动,这将导致ADC转换误差很大,因此可通过利用单片机内部的参照电压来算出该时刻的实际参考电压VREF+。
VREFINT_CAL:从下图中的地址0x1FFF 75AA-0x1FFF75AB读出;
VREF+_Charac:3.0V(±10mV);
VREFINT_DATA:ADC1_INP0当前转换得到的ADC数值。
对于某个ADC通道而言,该通道采集到的电压值与参考电压VREF+之间有一个比例关系,如下式:
当VDDA未知时(VDDA与VREF+相连),或有波动时,为了使得采集到的该通道的实际电压值的表达式中与VDDA无关,也就是说VDDA(或VREF+)用(1)式代替,这样就可以得到(3)式:
FULL_SCALE:4095;
VREF+_Charac:3.0V(±10mV);
VREFINT_CAL:从下图中的地址0x1FFF 75AA-0x1FFF75AB读出;
VREFINT_DATA:ADC1_INP0当前转换得到的ADC数值。
ADC_DATA: V_CHANNELx所对应的ADC转换后的数字值;
VREFINT_CAL值读取方法:wVREFINT_CAL = *(__IO uint16_t *)(0x1FFF75AA);
边栏推荐
猜你喜欢

Ctfhub web password weak password

音响是如何把微弱声音放大呢

LinkedList学习

Wechat applet custom component

sql训练01

The thinkphp5.1 runtime file has been changed to 777 permission, but cannot be written

Programmers whose monthly salary is less than 30K must recite the interview stereotype. I'll eat it first

18. `bs object Node name next_ Sibling` get sibling nodes

Understanding and design of high concurrency

18. `bs對象.節點名.next_sibling` 獲取兄弟節點
随机推荐
目标检测——ADAS实战
EMC、EMI、EMS的关系
【一起上水硕系列】Day 6-强肝学术论文!最细解释!
Informatics Olympiad 1361: Produce
Overview of PMP project management
Talk about SQL optimization
table通过伪类实现 另类自适应
arraylist基操和添加元素源码
"The first share of endoscope" broke into IPO two times. Last year, it lost 500million yuan. The commercialization of core products is still in doubt | IPO Express
Which securities company is the largest and safest? Which securities company has good service
计算矩形面积
LinkedList learning
leetcode 统计无向图中无法互相到达点对数
Learning Tai Chi Maker - mqtt Chapter II (IX) test of this chapter
String attribute exercise
安装mysql5.7 并修改密码
String segment combination
PMP Business Analysis Overview
Ctfhub web SQL injection - integer injection
Leetcode counts the number of ways to place houses