Measurement Computing PCI-CTR05 User Manual

PCI-CTR05
9513-Based Counter/Timer
User's Guide
Document Revision 4, December, 2005
Your new Measurement Computing product comes with a fantastic extra —
Management committed to your satisfaction!
Refer to www.mccdaq.com/execteam.html for the names, titles, and contact information of each key executive at Measurement Computing.
Thank you for choosing a Measurement Computing product—and congratulations! You own the finest, and you can now enjoy the protection of the most comprehensive warranties and unmatched phone tech support. It’s the embodiment of our two missions:
To offer the highest-quality, computer-based data acquisition, control, and GPIB hardware and software available—
at the best possible price.
To offer our customers superior post-sale support—FREE. Whether providing unrivaled telephone technical and
sales support on our latest product offerings, or continuing that same first-rate support on older products and operating systems, we’re committed to you!
Lifetime warranty: Every hardware product manufactured by Measurement Computing Corporation is warranted against defects in materials or workmanship for the life of the product. Products found defective are repaired or replaced promptly.
Lifetime Harsh Environment Warranty®: We will replace any product manufactured by Measurement Computing Corporation that is damaged (even due to misuse) for only 50% of the current list price. I/O boards face some tough operating conditionssome more severe than the boards are designed to withstand. When a board becomes damaged, just return the unit with an order for its replacement at only 50% of the current list price. We don’t need to profit from your misfortune. By the way, we honor this warranty for any manufacturer’s board that we have a replacement for.
30 Day Money Back Guarantee: You may return any Measurement Computing Corporation product within 30 days of purchase for a full refund of the price paid for the product being returned. If you are not satisfied, or chose the wrong product by mistake, you do not have to keep it. Please call for an RMA number first. No credits or returns accepted without a copy of the original invoice. Some software products are subject to a repackaging fee.
These warranties are in lieu of all other warranties, expressed or implied, including any implied warranty of merchantability or fitness for a particular application. The remedies provided herein are the buyer’s sole and exclusive remedies. Neither Measurement Computing Corporation, nor its employees shall be liable for any direct or indirect, special, incidental or consequential damage arising from the use of its products, even if Measurement Computing Corporation has been notified in advance of the possibility of such damages.
HM PCI-CTR05.doc
ii
Trademark and Copyright Information
Measurement Advantage brand, TracerDAQ, Universal Library, InstaCal, Harsh Environment Warranty, Measurement Computing Corporation, and the Measurement Computing logo are either trademarks or registered trademarks of Measurement Computing Corporation.
SoftWIRE is a registered trademark of SoftWIRE Technology, Inc.
Windows, Microsoft, and Visual Studio are either trademarks or registered trademarks of Microsoft Corporation
LabVIEW is a trademark of National Instruments.
All other trademarks are the property of their respective owners.
Information furnished by Measurement Computing Corporation is believed to be accurate and reliable. However, no responsibility is assumed by Measurement Computing Corporation neither for its use; nor for any infringements of patents or other rights of third parties, which may result from its use. No license is granted by implication or otherwise under any patent or copyrights of Measurement Computing Corporation.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form by any means, electronic, mechanical, by photocopying, recording, or otherwise without the prior written permission of Measurement Computing Corporation.
Notice
Measurement Computing Corporation does not authorize any Measurement Computing Corporation product for use in life support systems and/or devices without the written approval of the CEO of Measurement Computing Corporation. Life support devices/systems are devices or systems which, a) are intended for surgical implantation into the body, or b) support or sustain life and whose failure to perform can be reasonably expected to result in injury. Measurement Computing Corporation products are not designed with the components required, and are not subject to the testing required to ensure a level of reliability suitable for the treatment and diagnosis of people.
iii
Table of Contents
About this User's Guide .......................................................................................................................v
What you will learn from this user's guide .........................................................................................................v
Conventions in this user's guide........................................................................................................................................ v
Where to find more information........................................................................................................................vi
Chapter 1
Introducing the PCI-CTR05 .............................................................................................................. 1-1
Software features............................................................................................................................................ 1-1
Block diagram ................................................................................................................................................ 1-2
Chapter 2
Installing the PCI-CTR05 .................................................................................................................. 2-1
What comes with your PCI-CTR05 shipment? .............................................................................................. 2-1
Hardware ....................................................................................................................................................................... 2-1
Software......................................................................................................................................................................... 2-1
Documentation............................................................................................................................................................... 2-1
Optional components ..................................................................................................................................................... 2-2
Unpacking the board....................................................................................................................................... 2-2
Installing the software .................................................................................................................................... 2-2
Installing the hardware ................................................................................................................................... 2-3
Connecting the board for I/O operations ........................................................................................................ 2-3
Connectors, cables – main I/O connector....................................................................................................................... 2-3
Field wiring, signal termination and conditioning ......................................................................................................... 2-5
Chapter 3
Programming and software applications ....................................................................................... 3-1
Programming languages ................................................................................................................................. 3-1
Packaged application programs ...................................................................................................................... 3-1
Register-level programming ........................................................................................................................... 3-1
Chapter 4
Specifications.................................................................................................................................... 4-1
Digital input / output....................................................................................................................................... 4-1
Interrupt .......................................................................................................................................................... 4-1
Counter ........................................................................................................................................................... 4-2
Power consumption ........................................................................................................................................ 4-3
Environmental ................................................................................................................................................ 4-3
Mechanical ..................................................................................................................................................... 4-3
Main connector and pin out............................................................................................................................ 4-3
J1.................................................................................................................................................................................... 4-4
iv
Preface
About this User's Guide
What you will learn from this user's guide
This user's guide explains how to install, configure, and use the PCI-CTR05 so that you get the most out of it’s counter features.
This user's guide also refers you to related documents available on our web site, and to technical support resources.
Conventions in this user's guide
For more information on …
Text presented in a box signifies additional information and helpful hints related to the subject matter you are reading.
Caution! Shaded caution statements present information to help you avoid injuring yourself and
others, damaging your hardware, or losing your data.
<#:#>
bold text Bold text is used for the names of objects on the screen, such as buttons, text boxes, and check
italic text
Angle brackets that enclose numbers separated by a colon signify a range of numbers, such those assigned to registers, bit settings, etc.
boxes. For example:
1. Insert the disk or CD and click the OK button.
Italic text is used for the names of manuals and help topic titles, and to emphasize a word or phrase. For example:
The InstaCal installation procedure is explained in the Quick Start Guide. Never touch the exposed pins or circuit connections on the board.
v
PCI-CTR05 User's Guide About this User's Guide
Where to find more information
The following electronic documents provide helpful information relevant to the operation of the PCI­CTR05.
MCC's Specifications: PCI-CTR05 (the PDF version of Chapter 4 in this guide) is available on our
web site at www.mccdaq.com/pdfs/pci-ctr05r3.pdf.
Rev 2 hardware specifications
The specifications for hardware up to revision 2 are available on our web site at
www.mccdaq.com/pdfs/pci-ctr05.pdf.
MCC's Register Map for the PCI-CTR05 is available on our web site at
www.mccdaq.com/registermaps/RegMapPCI-CTR05.pdf
Software-Quick-Start.pdf.
MCC's Guide to Signal Connections is available on our web site at
www.mccdaq.com/signals/signals.pdf
.
MCC's Universal Library User's Guide is available on our web site at
MCC's Universal Library Function Reference is available on our web site at
MCC's Universal Library for LabVIEW
User’s Guide is available on our web site at
.
.
.
.
.
vi
Chapter 1
Introducing the PCI-CTR05
The PCI-CTR05 is a high-performance, low-cost counter/timer board for PCI bus-compatible computers.
The PCI-CTR05 is based on the 9513 counter/timer device. The PCI-CTR05 has one 9513 counter/timer device. The 9513 device has five independent 16-bit counters (65,536 counts). Each counter has an input source, count register, load register, hold register, alarm register, output, and gate associated with each counter.
The 9513 is software-programmable for event counting, pulse and frequency measurement, alarm comparisons, and other input functions. The 9513 can generate frequencies with either complex duty cycles, or with one-shot and continuous-output modes. You can chain up to five 9513 counters together using software to enable a 32-, 48-, 64-, or 80-bit counter that does not require hardware connections. The gate source and gating functions are software-programmable.
An eight-bit, high-current digital output port provides logic-level control, and can be used to switch solid state relays. An eight-bit digital input port can be used to sense contact closures and other TTL level signals. The PCI-CTR05 also provides access to the PCI bus interrupt assigned to the board.
The PCI-CTR05 board (rev. 3 and later) is compatible with either 3.3 V or 5 V PCI signaling environments.
Compatibility with 3.3 V signaling only applies to boards at hardware revision 3 and later
Hardware revisions up to rev 2 support 5 V PCI signaling environments only.
.
Software features
The following software ships with the PCI-CTR05 free of charge.
InstaCal installation, calibration, test, and data logger utility TracerDAQ SoftWIRE
For information on the features of InstaCal, TracerDAQ, and SoftWIRE, refer to the Quick Start Guide that shipped with the PCI-CTR05.
suite of virtual instruments
®
for Visual Studio® .NET graphical programming (evaluation version)
1-1
PCI-CTR05 User's Guide Introducing the PCI-CTR05
Block diagram
The block diagram shown here illustrates the functionality of the PCI-CTR05.
AMD9513 (equivalent)
Input Clock0
Gate0
Output Clock0
Input Clock1
Gate1
Output Clock1
Input Clock2
Gate2
Output Clock2
Input Clock3
Gate3
Output Clock3
Input Clock4
Gate4
Output Clock4
Input (7:0)
16-bit counters
Counter 0
Counter 1
Counter 2
Counter 3
Counter 4
Digital I/O
Output
Port
Input
Port
Control
1.0/1.67/3.3/5.0 MHz
Control
Control
Bus
Controller FPGA and Logic
Control
Registers
Decode/Statu s
Clock
Divider
Int Ctl
Clock Select
1.0/1.67/3.3/5.0 MHz
EXT_INT_EN
EXT_INT
10
MHz
Oscillator
Bus
Timing
Local Bus
Boot
EEPROM
PCI
Controller
BADR1
BADR2
Interr upt
Clock Select
PCI Bus (5V/3.3V, Universal 32-Bit, 33 MHz)
Figure 1-1. PCI-CTR05 functional block diagram
1-2
Installing the PCI-CTR05
What comes with your PCI-CTR05 shipment?
As you unpack your board, make sure that the following components are included.
Hardware
PCI-CTR05
Chapter 2
Software
The Measurement Computing Data Acquisition Software CD contains the following software:
InstaCal installation, calibration, and test utility TracerDAQ suite of virtual instruments SoftWIRE for VS .NET (evaluation version)
Documentation
2-1
PCI-CTR05 User's Guide Installing the PCI-CTR05
Optional components
If you ordered any of the following products with your board, they should be included with your shipment.
Cables
C37FF-x
Signal termination and conditioning accessories
MCC provides signal termination and signal conditioning products for use with the PCI-CTR05. Refer to
Field wiring, signal termination and conditioning
C37FFS-x
for a complete list of compatible accessory products.
Unpacking the board
The PCI-CTR05 board is shipped in an antistatic container to prevent damage by an electrostatic discharge. To avoid such damage, perform the following procedure when unpacking and handling your board:
1.
Before opening the antistatic container, ground yourself with a wrist-grounding strap or by holding onto a grounded object (such as the computer chassis).
2.
Touch the antistatic container to the computer chassis before removing the board from the container.
3.
Remove the board from the container. Never touch the exposed pins or circuit connections on the board.
If your board is damaged, notify Measurement Computing Corporation immediately by phone, fax, or e-mail. For international customers, contact your local distributor where you purchased the PCI-CTR05.
Phone: 508-946-5100 and follow the instructions for reaching Tech Support. Fax: 508-946-9500 to the attention of Tech Support Email: techsupport@measurementcomputing.com
Installing the software
Install the software included with your board before you install the hardware. Installing the software first ensures that the information required for proper board detection is installed and available at boot up.
Refer to the Quick Start Guide for instructions on installing the software on the Measurement Computing Data Acquisition Software CD. This booklet is available in PDF at
2-2
PCI-CTR05 User's Guide Installing the PCI-CTR05
Installing the hardware
The PCI-CTR05 board is completely plug-and-play, with no switches or jumpers to set. Configuration is controlled by your system's BIOS. To install your board, follow the steps below.
Install the MCC DAQ software before you install your board
The driver needed to run your board is installed with the MCC DAQ software. Therefore, you need to install the MCC DAQ software before you install your board. Refer to the Quick Start Guide for instructions on installing the software.
1.
Turn your computer off, open it up, and insert your board into an available PCI slot.
2.
Close your computer and turn it on.
If you are using an operating system with support for plug-and-play (such as Windows 2000 or Windows XP), a dialog box pops up as the system loads indicating that new hardware has been detected. If the information file for this board is not already loaded onto your PC, you will be prompted for the disk containing this file. The MCC DAQ software contains this file. If required, insert the Measurement Computing Data Acquisition Software CD and click
3.
To test your installation and configure your board, run the InstaCal utility installed in the previous section. Refer to the Quick Start Guide that came with your board for information on how to initially set up and load InstaCal.
OK.
Connecting the board for I/O operations
Connectors, cables – main I/O connector
Table 2-1
Connector type 37-pin shielded D-type, right angle (J1 – see )
Compatible cables C37FF-x, unshielded ribbon cable (Figure 2-2)
Compatible accessory products
The board connector is a male, 37-pin D-type connector (J1). Digital input, digital output, interrupt, and signals from the 9513 are all accessible on this connector.
lists the board connectors, applicable cables and compatible accessory boards.
Table 2-1. Board connectors, cables, accessory equipment
Figure 2-1
C37FFS-x, shielded round cable (Figure 2-3)
CIO-MINI37 CIO-MINI37-VERT CIO-TERMINAL SCB-37
2-3
PCI-CTR05 User's Guide Installing the PCI-CTR05
E
E
1
PC +5V
DIN STROB
DIN7 DIN6 DIN5 DIN4 DIN3 DIN2
DIN1
DIN0
OSC OUT CTR5OUT CTR4OUT CTR3OUT CTR2OUT CTR1OUT
CTR1CLK
CTR1GATE
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
IRQ INPUT IRQ ENABL
2
DOUT7
3
DOUT6
4
DOUT5
5 6
D4 OUT
7
D3 OUT
8
D2 OUT
9
D1 OUT
10
D0 OUT
11
GND
12
CTR5GATE
13
CTR5CLK
14
CTR4GATE
15
CTR4CLK
16
CTR3GATE
17
CTR3CLK
18
CTR2GATE
19
CTR2CLK
J1
Figure 2-1. Board connector J1
Information on signal connections
For general information regarding digital I/O techniques, including signal conditioning and low pass filters, refer to the Guide to Signal Connections. This document is available on our web site at
www.mccdaq.com/signals/signals.pdf).
19
The red stripe
1
20
37
identifies pin # 1
19
1
20
37
Figure 2-2. C37FF-x cable
2-4
PCI-CTR05 User's Guide Installing the PCI-CTR05
19
1
20
37
Figure 2-3. C37FFS-x cable
19
1
20
37
Field wiring, signal termination and conditioning
You can use the following MCC screw terminal boards with the PCI-CTR05 board using the C37FF-x or C37FFS-x cable.
SCB3737-conductor, shielded signal connection/screw terminal box that provides two
independent 37-pin connections. Details on this product are available at
www.mccdaq.com/cbicatalog/cbiproduct.asp?dept_id=196&pf_id=1166
CIO-MINI37 — 4 x 4, 37-pin screw terminal board. Details on this product are available at
www.mccdaq.com/cbicatalog/cbiproduct.asp?dept_id=102&pf_id=255.
CIO-MINI37-VERT — 37-pin screw terminal accessory with vertical 37-pin male D connector.
Details on this product are available on our web site at
www.mccdaq.com/cbicatalog/cbiproduct.asp?dept_id=102&pf_id=256.
CIO-TERMINAL16 X 4 universal screw terminal board with on-board prototype area and
circuitry. Details on this product are available on our web site at
www.mccdaq.com/cbicatalog/cbiproduct.asp?dept_id=102&pf_id=282.
.
2-5
Chapter 3
Programming and software applications
Programming languages
Packaged application programs
Many packaged application programs, such as SoftWIRE, Labtech Notebook™, and HP-VEE™, now have drivers for your board. If the package you own does not have drivers for your board, please fax or e­mail the package name and the revision number from the install disks. We will research the package for you and advise how to obtain drivers.
Some application drivers are included with the Universal Library package, but not with the application package. If you have purchased an application package directly from the software vendor, you may need to purchase our Universal Library and drivers. Please contact us by phone, fax or e-mail:
or any other language, please refer to the Universal Library User's
).
Phone: 508-946-5100 and follow the instructions for reaching Tech Support. Fax: 508-946-9500 to the attention of Tech Support Email: techsupport@measurementcomputing.com
Register-level programming
We recommend that you use the Universal Library or one of the packaged application programs mentioned above for controlling your board. Only experienced programmers should attempt register level-programming.
If you must use register-level programming in your application, refer to the Register Map for the PCI- CTR05. This document is available on our web site at www.mccdaq.com/registermaps/RegMapPCI-
CTR05.pdf.
3-1
Chapter 4
Specifications
Typical for 25 °C unless otherwise specified.
Specifications in italic text are guaranteed by design.
The counter frequency sources and 3.3 V compatibility apply to hardware manufactured at revision 3 and later
The clock input frequency sources and compatibility with a 3.3 V signaling environment that are listed in this specification apply to hardware built at revision 3 and later.
Digital input / output
Table 4-1. Digital I/O specifications
Digital type
Number of I/O 8 input, 8 output
Configuration 1 bank of 8 as output, 1 bank of 8 as strobed input
Input high voltage 2.0 V min, 7.0 V absolute max
Input low voltage 0.8 V max, –0.5 V absolute min
Output high voltage 3.94 volts min @ -24 mA (Vcc = 4.5 V)
Output low voltage 0.36 volts max @ 24 mA (Vcc = 4.5 V)
Data transfer Programmed I/O
Power-up / reset state Digital outputs reset to TTL low
Din strobe Active low latch enable input, internally pulled high through 10 KOhm resistor
Din strobe pulse width high/low 15 nS min
Data setup to Din strobe 5 nS min
Data hold from Din strobe 20 nS min
Discrete, 5V/TTL compatible
Output: 74ACT273
Input: 74LS373
Interrupt
Table 4-2. Interrupt specifications
Number of user interrupts One
PCI Interrupt PCI INTA# - mapped to IRQn via PCI BIOS at boot-time
Interrupt enables
Interrupt sources
External: IRQ ENABLE, active low, disabled by default through internal
resistor to TTL high) and programmable through PCI9030-AA60PI; 0 =
disabled, 1 = enabled (default)
External: IRQ IN, polarity programmable through PCI9030-AA60PI;
1 = active high, 0 = active low (default).
IRQ IN maps to PLX 9030 LINT1.
4-1
PCI-CTR05 User's Guide Specifications
Counter
Refer to the CTS9513-2 data sheet for complete 9513 specifications and operating modes. The SAVE command for the CTS9513 device does not behave predictably when using clocks which are not synchronous with the logic timing. The CTS9513-2 data sheet is available on our web site at
Table 4-3. Counter specifications
Parameter Conditions
Counter type 9513
Configuration One 9513 device. Five up/down counters, 16 bits each.
Compatibility 5V/TTL
The 9513 device is programmable for:
Clock source Software selectable:
Gate: Software selectable source:
Output: Software selectable:
Osc Out Software selectable source:
Clock input frequency 6.8 MHz max (145 nS min period)
X2 clock input sources Software selectable:
X2 clock frequency scaler
High pulse width (clock input) 70 ns min
Low pulse width (clock input) 70 ns min
Gate width high 145 ns min
Gate width low 145 ns min
.
External:
Counter 1-5 clock inputs Counter 1-5 gate inputs
Internal:
Terminal count of previous counter X2 clock frequency scaler
External (default logic high):
Active high or low level or edge, counter 1 – 5 gate input Active high level previous gate or next gate All external gate signals (CTRxGATE) individually pulled up
through 10K resistors to +5V.
Internal:
Active high previous counter terminal count No gating.
Always low High pulse on terminal count Low pulse on terminal count Toggle on terminal count Inactive, high impedance at user connector counter # output.
Counter # input Gate # input Prescaled clock source (X2 clock frequency scaler)
Software selectable divider: Division by 1-16 Software selectable enable:
On or low impedance to ground.
1.0 MHz (10 MHz Xtal divided by 10) 5.0 MHz (10 MHz Xtal divided by 2) 3.3 MHz (33 MHz PCI clock divided by 10) 1.67 MHz (33 MHz PCI clock divided by 20)
BCD scaling (X2 divided by 10, 100, 1000 or 10000) or Binary scaling (X2 divided by 16, 256, 4096 or 65536)
4-2
PCI-CTR05 User's Guide Specifications
Parameter Conditions
Input low voltage -0.5 V min, 0.8V max
Input high voltage 2.2 V min, Vcc max
Output low voltage @ IIl=3.2 mA 0.4 V max
Output high voltage @ IIH= -200 uA 2.4 V min
Crystal oscillator frequency 10 MHz
Frequency accuracy 50 ppm
Power consumption
Table 4-4. Power consumption specifications
+5 V
+5 V available at connector 1 A max
307 mA typical, 549 mA max. Does not include power consumed through the I/O connector.
Environmental
Table 5. Environmental specifications
Operating temperature range Storage temperature range -20 to 70 °C Humidity 0 to 90% non-condensing
0 to 55 °C
Mechanical
Table 4-6. Mechanical specifications
Card dimensions 132.3 mm (L) x 106.7 mm (W) x 11.65 mm (H)
Form factor
Universal PCI keying. Compatible with either 3.3 V or 5 V PCI signaling environments.
Main connector and pin out
The J1 connector is compatible with the CIO-CTR05 and the CIO-CTR10.
Table 4-7. Main connector specifications
Connector type 37 pin shielded D-type, right angle
Compatible accessory products CIO-MINI37
C37FF-x, unshielded ribbon cable Compatible cables
C37FFS-x, shielded round cable
CIO-MINI37-VERT CIO-TERMINAL SCB-37
4-3
PCI-CTR05 User's Guide Specifications
J1
Table 4-8. Main connector J1 pin out
Pin Signal Name
1 IRQ INPUT 2 IRQ ENABLE 3 DOUT7 4 DOUT6 5 DOUT5 6 DOUT4 7 DOUT3 8 DOUT2 9 DOUT1 10 DOUT0 11 GND 12 CTR5GATE 13 CTR5CLK 14 CTR4GATE 15 CTR4CLK 16 CTR3GATE 17 CTR3CLK 18 CTR2GATE 19 CTR2CLK 20 PC +5V 21 DIN STROBE 22 DIN7 23 DIN6 24 DIN5 25 DIN4 26 DIN3 27 DIN2 28 DIN1 29 DIN0 30 OSC OUT 31 CTR5OUT 32 CTR4OUT 33 CTR3OUT 34 CTR2OUT 35 CTR1OUT 36 CTR1CLK 37 CTR1GATE
4-4
EC Declaration of Conformity
We, Measurement Computing Corporation, declare under sole responsibility that the product
PCI-CTR05 5-counter board for the PCI bus
Part Number Description
to which this declaration relates, meets the essential requirements, is in conformity with, and CE marking has been applied according to the relevant EC Directives listed below using the relevant section of the following EC standards and other informative documents:
EU EMC Directive 89/336/EEC: Essential requirements relating to electromagnetic compatibility. EN 55022 Class B (1995): Radiated and conducted emission requirements for information
technology equipment.
ENV 50204 (1995): Radio-frequency electromagnetic field immunity EN 55024 (1998): EC generic immunity requirements. EN 50082-1 (1997): EC generic immunity requirements. EN 61000-4-2 (1995): Electrostatic discharge immunity. EN 61000-4-3 (1997) ENV 50204 (1996): RF immunity. EN 61000-4-4 (1995): Electric fast transient burst immunity. EN 61000-4-5 (1995): Surge immunity. EN 61000-4-6 (1996): Radio frequency common mode immunity. EN 61000-4-8 (1994): Power frequency magnetic field immunity. EN 61000-4-11 (1994): Voltage dip and interrupt immunity
Carl Haapaoja, Vice-President of Design Verification
Measurement Computing Corporation
16 Commerce Boulevard,
Middleboro, Massachusetts 02346
(508) 946-5100
Fax: (508) 946-9500
E-mail: info@mccdaq.com
www.mcc.com
Loading...