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

📄 manual_dscqmmcountercontrol.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>DscQMMCounterControl - 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'>DscQMMCounterControl</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'><a name="top"></a>Initiates a Load, Arm, Load & Arm, Disarm, Save, or Disarm & Save command on a group of counters on <a href="manual_Quartz-MM.html" class='printable' title ="Quartz-MM">Quartz-MM</a>.
<p>
An Arm command causes the counter to start counting, and a Disarm command causes it to stop. The counter will not count until it receives an Arm command.
<p>
The Save command or Disarm and Save command are used to latch the current contents of the counter into the Hold register for reading. If just the Save command is executed, the counter will continue to count; this is equivalent to the Lap button on a stopwatch. After executing one of these commands, use the <a href="manual_DscQMMReadHoldRegister.html" class='printable' title ="DscQMMReadHoldRegister">dscQMMReadHoldRegister</a>() function to read the latched data.
<p>
The Load command or Load and Arm command are used to load the contents of the Load register into the counter before or while arming it. Before executing one of these commands, use the dscSetLoadRegister() function to load the Load register with the desired data.
<p>
If you are using a QMM-5 board with only one 9513 chip, or if you are acting on only one counter chip, set the other counter's action to QMM_ACTION_NONE.
<p>
The function returns the current counter status bytes in the two-byte array status, which primarily indicates the current state of the outputs of all 5 counters in each group. To just read the status bytes, set the action flags to QMM_ACTION_NONE. On a QMM-5, the second byte of the array will have meaningless data.
<p>
<p><table border="0" id="toc"><tr><td align="center"><b>Table of contents</b> <script type='text/javascript'>showTocToggle("show","hide")</script></td></tr><tr id='tocinside'><td align="left"><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Function_Definition">1 Function Definition</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Function_Parameters">2 Function Parameters</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Return_Value">3 Return Value</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Status_Bit_Table">4 Status Bit Table</A><BR></div></td></tr></table><P><h2><a name="Function_Definition">Function Definition</a></h2>
<p>
BYTE dscQMMCounterControl(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, <a href="manual_DSCQMMMCC.html" class='printable' title ="DSCQMMMCC">DSCQMMMCC</a>* dscqmm_mcc, BYTE* status)
<p>
<h2><a name="Function_Parameters">Function Parameters</a></h2>
<p>
<table border=1><tr ><TH>Name</TH><TH>Description</TH></tr><tr ><TD>board</TD><TD>The handle of the board to operate on</TD></tr><tr ><TD>dscqmm_mcc</TD><TD>Data structure for the function</TD></tr><tr ><TD>status</TD><TD>The counter chip status byte:</TD></tr></table><p>
<h2><a name="Return_Value">Return Value</a></h2>
<p>
Error code or 0.
<p>
<h2><a name="Status_Bit_Table">Status Bit Table</a></h2>
<p>
<table border=1><tr ><TH>Bit</TH><TH>7</TH><TH>6</TH><TH>5</TH><TH>4</TH><TH>3</TH><TH>2</TH><TH>1</TH><TH>0</TH></tr><tr ><TD>Name</TD><TD>CMP2</TD><TD>CMP1</TD><TD>OUT5</TD><TD>OUT4</TD><TD>OUT3</TD><TD>OUT2</TD><TD>OUT1</TD><TD>BPTR</TD></tr></table><p>
CMPn -- Status of the comparators for counters 2 and 1
<p>
OUTn -- Logic state of the indicated counter output signal
<p>
BPTR -- Byte pointer internal to the 9513 chip; used by Universal Driver; not relevant to the user application
<p></div><p><em> <br> This page was last modified 12:08, 12 Feb 2004.<br>Copyright (c) 2004 Diamond Systems.  All Rights Reserved.</em><!-- Time since request: 0.16 secs. --></body></html>

⌨️ 快捷键说明

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