打印

不是很理解ad的校准,什么时候需要用?

[复制链接]
5992|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xzm0662|  楼主 | 2008-11-4 12:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
要经常用吗?长时间不校准有问题吗?
沙发
香水城| | 2008-11-4 12:05 | 只看该作者

关于ADC的校准问题,STM32技术参考手册中有明确的说明

10.4 Calibration
The ADC has an built-in self calibration mode. Calibration significantly reduces accuracy errors due to internal capacitor bank variations. During calibration, an error-correction code (digital word) is calculated for each capacitor, and during all subsequent conversions, the error contribution of each capacitor is removed using this code.

Calibration is started by setting the CAL bit in the ADC_CR2 register. Once calibration is over, the CAL bit is reset by hardware and normal conversion can be performed. It is recommended to calibrate the ADC once at power-on. The calibration codes are stored in the ADC_DR as soon as the calibration phase ends.

Note:
1 It is recommended to perform a calibration after each power-up.

2 Before starting a calibration the ADC must have been in power-off state (ADON bit = ‘0’) for at least two ADC clock cycles.

使用特权

评论回复
板凳
xzm0662|  楼主 | 2008-11-4 12:16 | 只看该作者

是不是说只要校一次?以后连续运行几年的话也不用校?

我感觉每次校了后结果都有点差别:(

使用特权

评论回复
地板
香水城| | 2008-11-4 12:28 | 只看该作者

校准的目的是为了对内部电容的误差进行补偿

补偿肯定是参考了各种环境参数计算得到,所以每次校准之后结果有点差别并不奇怪,只要转换结果不超出手册中给出的误差范围就是正常的。

校准是对内部电容的误差进行补偿,连续运行几年后,因为环境温度的变化或老化因素,我不敢保证内部电容的参数不发生变化,任何器件都是这样。因此对于要求精确度较高的仪器设备都需要定期进行校准。

使用特权

评论回复
5
Swd21ic| | 2008-11-6 00:06 | 只看该作者

片上AD凑合着用吧

除非是ADI的还可以期待1下

使用特权

评论回复
6
gx_huang| | 2008-11-8 09:10 | 只看该作者

ADC本身也需要单独校准?第一次听说!

一般说来,校准是校准硬件电路的所有误差。
比如,在没有MCU的电路,需要用好几个电位器分别校准零点、满度和线性。
在有MCU的电路,信号放大处理电路没有电位器等微调电路,
一般通过软件校准的办法。
先输入零点信号,保存ADC值,再输入满度信号,保存ADC值。
这样做的优点是减少电路的复杂性,电路更可靠稳定。
毕竟电位器是一个昂贵而不可靠的器件。

使用特权

评论回复
7
haibao| | 2009-3-1 23:06 | 只看该作者

感觉stm32的AD如果不自校准测量结果误差很大

还是自校准吧。

使用特权

评论回复
8
香水城| | 2009-3-2 07:55 | 只看该作者

ST有一个应用笔记,里面有一个段专门讲这个问题

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

35

主题

163

帖子

0

粉丝