NuDAQ PCI-8554 User manual

NuDAQ
PCI-8554
Multi-functions
Counter / Timer Card
User′s Guide
Recycled Paper


©Copyright 1998~2001 ADLINK Technology Inc,
All Rights Reserved.
Manual Rev. 1.20: April 4, 2001
Part No : 50-11100-101
The information in this document is subject to change without prior
notice in order to improve reliability, design and function and does
not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect, special,
incidental, or consequential damages arising out of the use or
inability to use the product or documentation, even if advised of the
possibility of such damages.
This document contains proprietary information protected by
copyright. All rights are reserved. No part of this manual may be
reproduced by any mechanical, electronic, or other means in any
form without prior written permission of the manufacturer.
Trademarks
NuDAQ, DAQBench are registered trademarks of ADLINK Inc.,
Other product names mentioned herein are used for identification
purposes only and may be trademarks and/or registered trademarks
of their respective companies.

Getting service from ADLINK
♦Customer Satisfaction is always the most important thing for ADLINK
Tech Inc. If you need any help or service, please contact us and get it.
ADLINK Technology Inc.
Web Site http://www.adlink.com.tw
http://www.adlinktechnology.com
Sales & Service
NuDAQ [email protected]
NuDAM [email protected]
NuIPC [email protected]
NuPRO n[email protected]
Technical
Support
Software [email protected]
TEL +886-2-82265877 FAX +886-2-82265717
Address 9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan, R.O.C.
♦Please inform or FAX us of your detailed information for a prompt,
satisfactory and constant service.
Detailed Company Information
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL FAX
Web Site
Questions
Product Model
¨OS:
¨Computer Brand:
Environment to Use
¨M/B: ¨CPU:
¨Chipset: ¨BIOS:
¨Video Card:
¨Network Interface Card:
¨Other:
Challenge Description
Suggestions for ADLINK

Table of Contents •i
Table of Contents
How to Use This Guide..........................................................iii
Chapter 1 Introduction...........................................................1
1.1 Features...............................................................................2
1.2 Applications..........................................................................4
1.3 Specifications .......................................................................4
1.4 Software Supporting...............................................................6
1.4.1 Programming Library...........................................................................6
1.4.2 PCIS-LVIEW: LabVIEW® Driver........................................................7
1.4.3 PCIS-VEE: HP-VEE Driver..................................................................7
1.4.4 DAQBenchTM: ActiveX Controls........................................................7
Chapter 2 Installation.............................................................8
2.1 What You Have .....................................................................8
2.2 Unpacking ............................................................................8
2.3 PCB Layout of PCI-8554 ........................................................9
2.4 Default Jumper Setting.........................................................10
2.5 PCI-8554 Installation Outline.................................................10
2.6 Device Installation for Windows Systems...............................11
2.7 Pin Assignment of Connector ...............................................12
2.8 Clock System.....................................................................13
2.9 Counters Architecture..........................................................14
2.10 Clock Source Configurations.................................................18
2.11 Gate Control Configurations..................................................20
2.12 Counter Outputs..................................................................20
2.13 Debounce System...............................................................21
2.14 Interrupt System..................................................................23
2.15 Digital Input and Output........................................................25
2.16 12V and 5V Power Supply....................................................25
Chapter 3 Registers Format...............................................26
3.1 PCI PnP Registers ..............................................................26
3.2 I/O Address Map.................................................................27
3.3 Timer/Counter Registers.......................................................28

ii •Table of Contents
3.4 Timer / Counter Clock Mode Control......................................29
3.5 Digital Input Registers..........................................................29
3.6 Digital Output Register.........................................................29
Chapter 4 Signal Connections & Applications..............30
4.1 Connectors Pin Assignment .................................................30
4.2 Digital I/O Connection..........................................................31
4.3 Timer / Counter Connection..................................................32
4.4 Frequency Generator...........................................................33
4.5 Pulse Width Measurement ...................................................35
4.6 Frequency Measurement......................................................36
4.7 Event Counter .....................................................................38
4.8 Dual Interrupt System..........................................................39
Chapter 5 C/C++ Library......................................................40
5.1 Libraries Installation.............................................................40
5.2 Programming Guide.............................................................41
5.2.1 Naming Convention...........................................................................41
5.2.2 Data Types...........................................................................................41
5.3 _8554_Initial........................................................................42
5.4 _8554_Write_Counter ..........................................................43
5.5 _8554_Read_Counter...........................................................44
5.6 _8554_Stop_Counter ...........................................................45
5.7 _8554_Read_Status ............................................................46
5.8 _8554_DO ..........................................................................47
5.9 _8554_DI............................................................................47
5.10 _8554_SET_cntCLK ............................................................48
5.11 _8554_SET_CK1.................................................................49
5.12 _8554_SET_DBCLK ............................................................49
5.13 _8554_Set_INT_Control........................................................50
5.14 _8554_Get_IRQ_Status .......................................................51
5.15 _8554_INT_Enable...............................................................52
5.16 _8554_INT_Disable..............................................................52
5.17 _8554_CLR_IRQ1................................................................53
5.18 _8554_CLR_IRQ2................................................................53
Product Warranty/Service....................................................54

How to Use This Guide •iii
How to Use This Guide
This manual is designed to help you use the PCI-8554. The manual
describes how to modify various settings on the PCI-8554 card to
meet your requirements. It is divided into 5 chapters:
•Chapter 1, "Introduction," gives an overview of the product features,
applications, and specifications.
•Chapter 2, "Installation & Configurations" describes the operation
method and multi-functions of the PCI-8554. Users should read
through this chapter to understand the configurations of the PCI-
8554. The chapter will also teach user how to install the PCI-8554.
•Chapter 3, "Register Format," describes the details of register
format of the PCI-8554, this information is very useful for the
programmers who want to control the hardware by low level
programming.
•Chapter 4, "Signal Connection & Applications,” describes the
connectors' pin assignment and how to connect the outside signal
and devices to / from the PCI-8554. Some applications also are
introduced.
•Chapter 5, "High-level Programming," introduces the C-language
library for operating the PCI-8554. Some examples are shown too.


Introduction •1
1
Introduction
PCI-8554 is a general-purpose counter / timer and digital I/O card.
This card have four 8254 chips on board, so it provides twelve 16
bits down counter or frequency dividers.
This card has multi-configurations. The counters can be set as
independent counter or cascaded counter. The gate control of
counter come from either external source or internal default enable
signal. The clock source of the counters can be set as internal or
external clock source, when external clock is used, user can set the
jumper to decide whether the debounce function is used or not used.
An 8 MHz crystal is used as internal clock source. It is possible to
use this card on variety of powerful counter / timer functions to match
your industry and laboratory applications. Users can set the
configuration to fit the variety of applications.
The card also provides digital output and input port. There are 8 bits
digital output and 8 bits digital input channels which can be used to
control or monitor the external devices.
PCI-8554 provides one interrupt signalwhich comes from internal or
external interrupt sources, the internal interrupt sources come from
the counter output. The interrupt can be used for watchdog timer or
others applications. The maximum interrupt time interval can be 536
sec.
The I/O signals are via a 100 pin SCSI-II connector that project
through the computer case at the rear of the board. The figure 1.1
shows the block diagram of the PCI-8554.

2•Introduction
PCI-8554 uses ASIC PCI controller to interface the board to the PCI
bus. The ASIC fully implementthe PCI local bus specification Rev 2.0.
All bus relative configurations, such as base memory and interrupt
assignment, are automatically controlled by BIOS software. It does
not need any user interaction and pre-study for the configurations.
This removes the burden of searching for a conflict-free configuration,
which can be very time consuming and difficult with some other bus
standards.
Figure 1.1. Block diagram of the PCI-8554
1.1 Features
The PCI-8554 Counter / Timer and digital I/O Card provides the
following advanced features:
•Four 8254 chips provide twelve 16 bits down counters
•Multi-configurations of counters / timers:
•Flexible setting for each independent counter, the clock source
could be external, internal or cascaded. The gate signal is
external controlled or internal enabled.
•Provide debounce function with flexible setting to prevent from
bounce phenomenon when using external clock.
•8 digital output channels
•8 digital input channels
•Dual interrupt sources
The first interrupt source comes from output of counter#12
PCIBus
PCI
Controller
data
bus
Address
bus
Interrupt
Interrupt
system
clock
system
100 pin SCSI-II
8bits digital
input/output
8254
chip #1
8254
chip #2
8254
chip #3
8254
chip #4
8
8
COUT1 ~ COUT3
GATE1 ~ GATE3
COUT4 ~ COUT6
GATE4 ~ GATE6
COUT7 ~ COUT9
GATE7 ~ GATE9
COUT10 only
GATE10 only
Debounce
system ECLK1 ~ ECLK10
E_INT
COUT12

Introduction •3
The second interrupt source comes from external source.
•100-pin SCSI-II female connector.
•PCI-Bus

4•Introduction
1.2 Applications
uEvent counter
uFrequency generator
uFrequency synthesizer
uPulse width measurement
uLow level pulse generator
uTimedelay
uIndustry automation
uWatchdog timer
1.3 Specifications
♦Programmable Counter / Timer
•Device : 82C54x4
•Number of Counters /timers:
10 independent timers / counters
Cascaded 32-bit counters with fixed 8MHz internal clock
•Counter mode: 16-bit down counter
•Maximum input frequency: 10MHz
•Clock sources of independent counters:
External clock
Prior counter output
CK1 (Programmable)
Clock #10 output
•CK1 clock sources: (Programmable)
8MHzinternal base clock
Programmable counter 11 output
•Gate control: default enable or external control
♦Digital Filter Circuits
•Device: MC14490
•De-bounce clock: (Programmable)
8MHz internal base clock
Programmable counter 11 output
♦Digital I/O ( DIO)
•# of input channels : 8 channels
•# of output channels : 8 channels (dedicated output)
•Electronics characteristics: TTL compatible signal
♦General Specifications
•Connector: 100-pin SCSI-II female connector
•Operating Temperature: 0°C ~ 60°C
•Storage Temperature: -20°C ~ 80°C

Introduction •5
•Humidity: 5 ~ 95%, non-condensing
•Power Consumption: +5 V @ 350 mA typical
•Dimension: 134mm(L) X 107mm(W)

6•Introduction
1.4 Software Supporting
ADLINK provides versatile software drivers and packages for users’
different approach to built-up a system. We not only provide
programming library such as DLL for many Windows systems, but
also provide drivers for many software package such as LabVIEW®,
HP VEETM, DASYLabTM,InTouchTM, InControlTM, ISaGRAFTM, and so
on.
All the software options are included in the ADLINK CD. The non-
free software drivers are protected with serial licensed code. Without
the software serial number, you can still install them and run the
demo version for two hours for demonstration purpose. Please
contact with your dealer to purchase the formal license serial code.
1.4.1 Programming Library
For customers who are writing their own programs, we provide
function libraries for many different operating systems, including:
uDOS Library: Borland C/C++ and Microsoft C++, the functions
descriptions are included in this user’s guide.
uWindows 95 DLL: For VB, VC++, Delphi, BC5, the functions
descriptions are included in this user’s guide.
uPCIS-DASK: Include device drivers and DLL for Windows 98,
Windows NT and Windows 2000. DLL is binary compatible
across Windows 98, Windows NT and Windows 2000. That
means all applications developed with PCIS-DASK are
compatible across Windows 98, Windows NT and Windows
2000. The developing environment can be VB, VC++, Delphi,
BC5, or any Windows programming language that allows calls
to a DLL. The user’s guide and function reference manual of
PCIS-DASK are in the CD. Please refer the PDF manual files
under \\Manual_PDF\Software\PCIS-DASK
uPCIS-DASK/X: Include device drivers and shared library for
Linux. The developing environment can be Gnu C/C++ or any
programming language that allows linking to a shared library.
The user's guide and function reference manual of PCIS-
DASK/X are in the CD. (\Manual_PDF\Software\PCIS-DASK-X.)
The above software drivers are shipped with the board. Please refer
to the “Software Installation Guide” to install these drivers.

Introduction •7
1.4.2 PCIS-LVIEW: LabVIEW®Driver
PCIS-LVIEW contains the VIs, which are used to interface with NI’s
LabVIEW®software package. The PCIS-LVIEW supports Windows
95/98/NT/2000. The LabVIEW®drivers are free shipped with the
board. You can install and use them without license. For detail
information about PCIS-LVIEW, please refer to the user’s guide in
the CD.(\\Manual_PDF\Software\PCIS-LVIEW)
1.4.3 PCIS-VEE: HP-VEE Driver
The PCIS-VEE includes the user objects, which are used to interface
with HP VEE software package. PCIS-VEE supports Windows
95/98/NT. The HP-VEE drivers are free shipped with the board. You
can install and use them without license. For detail information
about PCIS-VEE, please refer to the user’s guide in the CD.
(\\Manual_PDF\Software\PCIS-VEE)
1.4.4 DAQBenchTM: ActiveX Controls
We suggest the customers who are familiar with ActiveX controls and
VB/VC++ programming use the DAQBenchTM ActiveX Control
components library for developing applications. The DAQBenchTM is
designed under Windows NT/98. For more detailed information
about DAQBench, please refer to the user’s guide in the CD.
(\\Manual_PDF\Software\DAQBench\DAQBench Manual.PDF)

8•Installation
2
Installation
This chapter describes the configurations and multi-functions of the
PCI-8554 and teach user to install PCI-8554. At first, the contents in
the package and unpacking information that you should care about
are described, then versatile configurations of PCI-8554 are
introduced so that you can configure it according to your applications.
The default jumper setting of PCI-8554 is shown in this chapter also.
2.1 What You Have
In addition to this User's Manual, the package includes the following
items:
•PCI-8554 Enhanced Multi-function Counter / Timer Card
•ADLINK CD
•Software Installation Guide
If any of these items is missing or damaged, contact the dealer from
whom you purchased the product. Save the shipping materials and
carton in case you want to ship or store the product in the future.
2.2 Unpacking
Your PCI-8554 card contains sensitive electronic components that
can be easily damaged by static electricity. The card should be
unpacked on a grounded anti-static mat. The operator should be
wearing an anti-static wristband, grounded at the same point as the
anti-static mat.

Installation •9
Inspect the card module carton for obvious damage. Shipping and
handling may cause damage to your module. Be sure there are no
shipping and handing damages on the module before processing.
After opening the card module carton, extract the system module and
place it only on a grounded anti-static surface component side up.
Again inspect the module for damage. Press down on all the
socketed IC's to make sure that they are properly seated. Do this
only with the module place on a firm flat surface.
Note: DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN
DAMAGED.
You are now ready to install your PCI-8554.
2.3 PCB Layout of PCI-8554
PCI-8554
CN1
PCI Connector Chip
This layout will be modified after jumper layout finished.
8MHz
Timer/
Counter
8254 #3
Timer/
Counter
8254#2
Timer/
Counter
8254#1
Timer/
Counter
8254#4
U3 U4 U5U6
U14 U15 U16 U12
U1
U17
U18
U10
U11
U13
U8
U2
U7
U9
U20
U21
U19
Figure 2.1 PCB Layout of PCI-8554

10 •Installation
2.4 Default Jumper Setting
To operate the PCI-8554 correctly, users should understand the
structure of PCI-8554 and details of the possible configurations. The
block diagram of the PCI-8554 is shown in chapter 1. It contains the
clock system, counters confederation, interrupt system and PCI
controller. The following sections teach you the jumper setting and the
default setting listed in Table 2.1.
Items Default Configuration Setting by:
ECLK1 Debounce function JP1
ECLK2 Debounce function JP2
ECLK3 Debounce function JP3
ECLK4 Debounce function JP4
ECLK5 Debounce function JP5
ECLK6 Debounce function JP6
ECLK7 Debounce function JP7
ECLK8 Debounce function JP8
ECLK9 Debounce function JP9
ECLK10 Debounce function JP10
E_INT Debounce function JP11
Table 2.1 Default Configuration of PCI-8554
There are eleven jumpers on PCI-8554, these jumpers are used to
select debounce function. You can change PCI-8554's default
configuration by setting jumpers on the card for your own
applications. The card's jumpers are preset at the factory.
Before changing the default configuration, users must fully
understand the operation of the debounce function. The setting and
the basic operation theorem are not discussed in this chapter. It is
recommended to refer chapter 2.12 for details of the operation
theorem and to refer chapter 4 for application notes.
2.5 PCI-8554 Installation Outline
Hardware configuration
The PCI cards (or CompactPCI cards) are equipped with plug and play
PCI controller, it can requests base addresses and interrupt
according to PCI standard. The system BIOS will install the system

Installation •11
resource based on the PCI cards’ configuration registers and system
parameters (which are set by system BIOS). Interrupt assignment and
memory usage (I/O port locations) of the PCI cards can be assigned by
system BIOS only. These system resource assignment is done on a
board-by-board basis. It is not suggested to assign the system
resource by any other methods.
1. PCI slot selection
The PCI card can be inserted to any PCI slot without any configuration
for system resource.
2. Installation Procedures
1. Turn off your computer
2. Turn off all accessories (printer, modem, monitor, etc.)
connected to your computer.
3. Remove the cover from your computer.
4. Setup jumpers on the PCI or CompactPCI card.
5. Select a 32-bit PCI slot. PCI slot are short than ISA or EISA slots,
and are usually white or ivory.
6. Before handling the PCI cards, discharge any static buildup on
your body by touching the metal case of the computer. Hold the
edge and do not touch the components.
7. Position the board into the PCI slot you selected.
8. Secure the card in place at the rear panel of the system.
2.6 Device Installation for Windows Systems
Once Windows 95/98/2000 has started, the Plug and Play function of
Windows system will find the new NuDAQ/NuIPC cards. If this is the
first time to install NuDAQ/NuIPC cards in your Windows system, you
will be informed to input the device information source. Please refer to
the “Software Installation Guide” for the steps of installing the device.

12 •Installation
2.7 Pin Assignment of Connector
(1)
(2)
(3) (52)
(53)
(51)
(48)
(49)
(50)
(98)
(99)
(100)
Legend:
ECLK n : External clock source for counter #n
ExtG n : External gate signal for counter #n
COUT n : Counter / Timer output of counter #n
DO_m : Digital output port channel #m
DI_ m : Digital input port channel #m
E_int : External interrupt signal input
GOUT1 : Inverse TTL signal of GIN1
GOUT2 : Inverse TTL signal of GIN2
Figure 2.2 Pin Assignment of Connector CN1
(1) +12V (26) GND (51) GND (76) ECLK9
(2) +12V (27) GND (52) GOUT2 (77) COUT8
(3) +12V (28) GND (53) GIN2 (78) GATE8
(4) Vcc (29) GND (54) GND (79) ECLK8
(5) Vcc (30) GND (55) GOUT1 (80) COUT7
(6) Vcc (31) GND (56) GIN1 (81) GATE7
(7) NC (32) GND (57) E_INT (82) ECLK7
(8) DI_6 (33) GND (58) DI7 (83) COUT6
(9) DI_4 (34) GND (59) DI5 (84) GATE6
(10) DI_2 (35) GND (60) DI3 (85) ECLK6
(11) DI_0 (36) GND (61) DI1 (86) COUT5
(12) DO_6 (37) GND (62) DO7 (87) GATE5
(13) DO_4 (38) GND (63) DO5 (88) ECLK5
(14) DO_2 (39) GND (64) DO3 (89) COUT4
(15) DO_0 (40) GND (65) DO1 (90) GATE4
(16) NC (41) GND (66) NC (91) ECLK4
(17) GND (42) GND (67) COUT12 (92) COUT3
(18) GND (43) GND (68) GND (93) GATE3
(19) GND (44) GND (69) COUT11 (94) ECLK3
(20) GND (45) GND (70) GND (95) COUT2
(21) GND (46) GND (71) COUT10 (96) GATE2
(22) GND (47) GND (72) GATE10 (97) ECLK2
(23) GND (48) GND (73) ECLK10 (98) COUT1
(24) GND (49) GND (74) COUT9 (99) GATE1
(25) GND (50) GND (75) GATE9 (100) ECLK1
Table of contents
Other NuDAQ PCI Card manuals
Popular PCI Card manuals by other brands

ICP DAS USA
ICP DAS USA PISO-1730U user manual

ZyXEL Communications
ZyXEL Communications AG-320 quick start guide

SeaLevel
SeaLevel ACB-ULTRA.LPC user manual

Digitus
Digitus DS-33101-1 user manual

Abocom
Abocom 802.11b/g MIMO Wireless LAN PCI Card WCP5102 Quick installation guide

ATCOM
ATCOM AX-1600P Product guide