⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manual_ad_calibration_verification.html

📁 Diamond公司Dscud通用驱动使用说明手册
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"        "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>AD Calibration Verification - Universal Driver Documentation</title><meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><meta name="robots" content="index,follow"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/dscud/style/wikiprintable.css"><script type="text/javascript" src="/dscud/style/wikibits.js"></script><style type='text/css'><!--a.new, #quickbar a.new { color: #CC2200; }#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }#article { margin-left: 152px; margin-right: 4px; }//--></style></head><body bgcolor='#FFFFFF'><div class='titlebox'><h1 class='pagetitle'>AD Calibration Verification</h1><span class='subtitle'>Universal Driver Documentation</span></div><div class='navbox'><a href="manual_Main_Page.html" class='printable' title ="Main Page">Main Page</a> || <a href="manual_Table_of_Contents.html" class='printable' title ="Table of Contents">Table_of_Contents</a> || <a href="http://www.diamondsystems.com/">Diamond Systems Website</a></div></div><div class='bodytext'><h3><a name="Description"> Description </a></h3>
<p>
On supported boards (-AT boards), after performing an A/D autocalibration, you can verify the accuracy of the calibration. This function will return the offset and gain error of each range in LSBs.
<p>
The default A/D calibration tolerance for all boards is +/-2LSBs. In general autocalibration will result in errors of +/-1LSB or less.
<p>
<h3><a name="Step-By-Step_Instructions"> Step-By-Step Instructions </a></h3>
<p>
Create and initialize an A/D auto-calibration settings structure (<a href="manual_DSCADCALPARAMS.html" class='printable' title ="DSCADCALPARAMS">DSCADCALPARAMS</a>).
<p>
Select the A/D range to verify. For an individual range, select the range number 0-15. For all ranges, select 255.
<p>
Call <tt><a href="manual_DscADCalVerify.html" class='printable' title ="DscADCalVerify">dscADCalVerify</a>()</tt> and pass it a pointer to this structure in order to verify the A/D calibration of the board. The elements <tt>ad_offset</tt> and <tt>ad_gain</tt> will contain the error in LSB counts for A/D operations. Values of less than 2 are within tolerance.
<p>
<h3><a name="Example_of_Usage"> Example of Usage </a></h3>
<p>
<pre>...
DSCB dscb;
DSCDACALPARAMS dscdacalparams;
BYTE result;

...

/* Step 1 */
dscadcalparams.adrange = 8;	// select the range to verify; 255 = all ranges

/* Step 2 */
if ((result = dscADCalVerify(dscb, &dscadcalparams)) != DE_NONE)
		return result;
...</pre>
<p></div><p><em> <br> This page was last modified 20:05, 30 Jan 2004.<br>Copyright (c) 2004 Diamond Systems.  All Rights Reserved.</em><!-- Time since request: 0.15 secs. --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -