当前位置:网站首页>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);
边栏推荐
- Centos7 installation php7.2
- What is Mipi
- LabVIEW generate application (exe) and installer
- PWN攻防世界Level2
- Table implements alternative adaptation through pseudo classes
- Concise words tell about technical people who must master basic IT knowledge and skills. Part 1
- Leetcode counts the number of ways to place houses
- Nvisual helps integrators transform
- Three methods of time series prediction: statistical model, machine learning and recurrent neural network
- PMP商业分析概述
猜你喜欢

Have you learned the common SQL interview questions on the short video platform?

短视频平台常见SQL面试题,你学会了吗?

Ctfhub web password weak password

Mipi d-phy -- contents of HS and LP agreements

Understanding and design of high concurrency

Leetcode counts the logarithm of points that cannot reach each other in an undirected graph

Download and installation of MySQL

Bluebridge cup 2022 preliminaries - minesweeping

PWN attack and defense world guess_ num

微信小程序安全登录,必须先校验微信返回openid,确保信息唯一性。
随机推荐
Concise words tell about technical people who must master basic IT knowledge and skills. Part 1
Bluebridge cup 2022 preliminaries - minesweeping
What is Mipi
STM32L4系列单片机ADC通过内部参考电压精确计算输入电压
What is a thread pool?
双击事件与单击事件的那些事
對補wasm環境的一些測試
String method exercise
PWN新手入门Level0
Pat class a a1057 stack
Tortoise 没有显示绿色图标
PHP的system函数
Install kibana
Overview of PMP project management
Oracle Recovery Tools实战批量坏块修复
线程池是什么老鸡?
There's a mystery behind the little login
音响是如何把微弱声音放大呢
18. ` BS object. Nom du noeud. Suivant Sibling ` get Brother Node
Quelques tests pour compléter l'environnement wasm