当前位置:网站首页>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);
边栏推荐
- mark
- 今日直播|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
- China's flexible employment has reached 200million
- Deploy redis high availability cluster
- Application of fsockopen function
- 微信小程序安全登录,必须先校验微信返回openid,确保信息唯一性。
- The thinkphp5.1 runtime file has been changed to 777 permission, but cannot be written
- Relations EMC, EMI, EMS
- Some tests on complementary wasm environment
- [线性代数] 1.1 二阶与三阶行列式
猜你喜欢

1110: 最近共同祖先(函数专题)

China's flexible employment has reached 200million

Leetcode counts the number of ways to place houses

LabVIEW generate application (exe) and installer

Double click events and click events

正则表达式(?:pattern)

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

Relationship between EMC, EMI and EMS

allegro设置网络飞线以及网络颜色的方法

LabVIEW jump to web page
随机推荐
allegro设置网络飞线以及网络颜色的方法
SQL training 01
Analytic hierarchy process (AHP)
Application of fsockopen function
How does sound amplify weak sounds
【無標題】
Bluebridge cup 2022 preliminaries - minesweeping
如何在关闭socket连接的时候跳过TIME_WAIT的等待状态
PMP商业分析概述
短视频平台常见SQL面试题,你学会了吗?
Matrix eigenvalue and eigenvector solution - eigenvalue decomposition (EVD)
Data discretization
Leetcode counts the logarithm of points that cannot reach each other in an undirected graph
[線性代數] 1.1 二階與三階行列式
LabVIEW jump to web page
Nvisual helps integrators transform
Kubernetes: container resource requirements and constraints (constraints)
微信小程序安全登录,必须先校验微信返回openid,确保信息唯一性。
层次分析法(AHP)
There is a time delay for the click event on the mobile terminal. What is the delay time? How to solve it?