当前位置:网站首页>Stm32l4 Series MCU ADC accurately calculates input voltage through internal reference voltage
Stm32l4 Series MCU ADC accurately calculates input voltage through internal reference voltage
2022-06-29 02:50:00 【MCU_ wb】
With STM32L476 For example ,VREFINT And inside ADC1_INP0 Connected to a
When VDDA And VREF+ When the pins are connected together , The voltage may fluctuate , This will lead to ADC The conversion error is very large , Therefore, the actual reference voltage at this time can be calculated by using the internal reference voltage of the single chip microcomputer VREF+.
VREFINT_CAL: From the address in the figure below 0x1FFF 75AA-0x1FFF75AB read out ;
VREF+_Charac:3.0V(±10mV);
VREFINT_DATA:ADC1_INP0 The result of the current conversion ADC The number .
For a ADC In terms of channels , The voltage value collected by this channel is consistent with the reference voltage VREF+ There is a proportional relationship between , As follows :
When VDDA When unknown (VDDA And VREF+ Connected to a ), There may be fluctuations , In order to make the expression of the collected actual voltage value of the channel and VDDA irrelevant , in other words VDDA( or VREF+) use (1) Formula substitution , So you can get (3) type :
FULL_SCALE:4095;
VREF+_Charac:3.0V(±10mV);
VREFINT_CAL: From the address in the figure below 0x1FFF 75AA-0x1FFF75AB read out ;
VREFINT_DATA:ADC1_INP0 The result of the current conversion ADC The number .
ADC_DATA: V_CHANNELx The corresponding ADC The converted digital value ;
VREFINT_CAL Value reading method :wVREFINT_CAL = *(__IO uint16_t *)(0x1FFF75AA);
边栏推荐
- Prepare for the Blue Bridge Cup - double pointer, BFS
- ArrayList basic operation and add element source code
- Application of fsockopen function
- If you dare to write MQ message queue middleware on your resume, you must win these questions!
- [sans titre]
- allegro设置网络飞线以及网络颜色的方法
- Have you learned the common SQL interview questions on the short video platform?
- 矩阵特征值和特征向量求解——特征值分解(EVD)
- 层次分析法(AHP)
- Install mysql5.7 and change the password
猜你喜欢
![[issue 259] uncover how count is executed in MySQL?](/img/bc/ee26eba95f408ea887d6aa06301a0b.jpg)
[issue 259] uncover how count is executed in MySQL?

allegro对走好的线取消走线的方法

Relations EMC, EMI, EMS

18. ` BS object. Nom du noeud. Suivant Sibling ` get Brother Node

Download and installation of MySQL

Deploy redis high availability cluster

蓝桥杯2022初赛——扫雷

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

Regular expression (?: pattern)

There's a mystery behind the little login
随机推荐
[Algèbre linéaire] 1.1 déterminant du deuxième et du troisième ordre
測試入門——集成測試
LeetCode 每日一题——324. 摆动排序 II
Sysbench Pressure Test Oracle (installation and use examples)
99 multiplication table
ArrayList basic operation and add element source code
leetcode 统计无向图中无法互相到达点对数
Bluetooth solution | Lenz technology Amazon direct connected magic lantern solution
Pytoch Learning Series: Introduction
数据离散化
Ctfhub web SQL injection - integer injection
Application of fsockopen function
How to add the live video function to the website built by your own live video software (build a live video website)
Double click events and click events
信息学奥赛一本通 1361:产生数(Produce) | 洛谷 P1037 [NOIP2002 普及组] 产生数
1110: 最近共同祖先(函数专题)
Install kibana
2022年启牛学堂证券开户安全的嘛?
Today's sleep quality record 82 points
Ctfhub web password default password