PCI-17808-ch Counter/Timer Card User Manual
1.4 Software Overview Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully utilize the fu
1.5 Device Drivers Programming Roadmap This section will provide you a roadmap to demonstrate how to build an application from scratch using Ad
For information about using other function groups or other development tools, please refer to the Creating Windows 95/NT/2000 Application with Devic
1.6 Accessories Advantech offers a complete set of accessory products to support the PCI-1780 card. These accessories include: Wiring Cable ❏ PCL
2. Installation This chapter gives users a package item checklist, proper instructions about unpacking and step-by-step procedures for both driver a
Also, pay extra caution to the following aspects to ensure proper installation: a Avoid physical contact with materials that could hold static el
2.2 Driver Installation We recommend you to install the driver before you install the PCI-1780 card into your system, since this will guarantee a
Step 3: Select the Individual Drivers option. Step 4: Select the specific device then just follow the installation instructions step by step to comp
Step 1: Turn off your computer and unplug the power cord and cables. TURN OFF your computer before installing or removing any components on the com
Fig. 2-3 The device name listed in the Device Manager Note: ✎ If your card is proper
Copyright The documentation and the software included with this product are copyrighted 2002 by Advantech Co., Ltd. All rights are reserved. Advante
2.4 Device Setup & Configuration The PCI-1780 Utility program is a utility that allows you to setup, configure and test your device, and la
Step 3: Scroll down the Supported Devices box to find the device that you wish to install, then click the Add… button to evoke the Existing unconfig
Step 4: After you have finished configuring the device, click OK and the device name will appear in the Installed Devices box as seen below: Fig.
3. Signal Connections 3.1 Overview Maintaining signal connections is one of the most important factors in ensuring that your application system is
Board ID setting (SW1) ID3 ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1
3.3 Signal Connections Pin Assignment Figure 3-2 shows the pin assignments for the 68-pin I/O connector on the PCI-1780. GND 68 34 FOUT3 G
I/O Connector Signal Description Table 3-2 I/O connector signal descriptions Signal Name Reference Direction Description GND - - DC ground +5V
Period measurement This approach is a particular fit for a low frequency signal. CLK OUT GATE Counter 0 CLK OUT GATE Counter 1 Unknown Sig
Frequency measurement This approach is a particular fit for a high frequency signal. Standard Clock Unknown Signal CLK OUT GATE Counter
ii
Appendix A. Specifications Programmable Counter Channels 8 (independent) Resolution 16-bit Programmable Clock Source 8 independent Programmable C
Appendix B. Block Diagram PCIInterfaceClockDividerPCIBUSAddressDecoderOutputBufferInputBufferDI 0~7DO 0~7InterruptControlLogic16-bitCounter0~7GateCo
28
Appendix C. Register Structure and Format C.1 Overview The PCI-1780 is delivered with an easy-to-use 32-bit DLL driver for user programming under
Table C-1 PCI-1780 register format (Part 1) PCI-1780 Register Format Base Address + HEX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Counter 0 Mode W CM1
Table C-1 PCI-1780 register format (Part 2) PCI-1780 Register Format Base Address + HEX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Counter 2 Mode W CM1
Table C-1 PCI-1780 register format (Part 3) PCI-1780 Register Format Base Address + HEX 15 13 12 11 7 6 5 4 3 2 1 0 Counter 4 Mode W CM15 20H 14
Table C-1 PCI-1780 register format (Part 4) PCI-1780 Register Format Base Address + HEX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Counter 6 Mode W CM1
Table C-1 PCI-1780 register format (Part 5) PCI-1780 Register Format Base Address + HEX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Command Enable W
Contents 1. INTRODUCTION... 1 1.1 FE
Table C-1 PCI-1780 register format (Part 6) PCI-1780 Register Format Base Address + HEX 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 FOUT 0 Control W
C.3 Counter 0/1/2/3/4/5/6/7 mode — BASE+00/08/10/18/20/28/30/38H Table C-2 PCI-1780 Register for counter 0/1/2/3/4/5/6/7 mode Base Addr. 15 14 13
CM5 Count control (reload) 0 Reload from LOAD register 1 Reload from LOAD or HOLD register CM6 Count control (special gate) 0 Disable speci
CM14 Gating polarity selection 0 High level for level active, rising edge for edge active 1 Low level for level active, falling edge for edge a
C.4 Counter 0/1/2/3/4/5/6/7 load — BASE+02/0A/12/1A/22/2A/32/3AH Table C-3 PCI-1780 Register for counter 0/1/2/3/4/5/6/7 load Base Addr. 15 14 1
C.5 Counter 0/1/2/3/4/5/6/7 hold — BASE+04/0C/14/1C/24/2C/34/3CH Table C-4 PCI-1780 Register for counter 0/1/2/3/4/5/6/7 hold Base Addr. 15 14 13
C.6 Counter 0/1/2/3/4/5/6/7 command — BASE+06/0E/16/1E/26/2E/36/3EH Table C-5 PCI-1780 Register for counter 0/1/2/3/4/5/6/7 command Base Addr. 1
C.7 Command enable — BASE+40H Table C-6 PCI-1780 Register for command enable Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Command enable 40H
C.8 Interrupt control — BASE+42H Table C-7 PCI-1780 Register for interrupt control Base Addr. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Interrupt c
C.10 Clear interrupt — BASE+44H Write any data to these two bytes to clear the interrupt. Table C-9 PCI-1780 Register for clear interrupt Base
C.10 CLEAR INTERRUPT — BASE+44H ... 44 C.11 DIGITAL OUTPUT — BASE+48H...
C.13 Board ID — BASE+4EH The PCI-1780 offers Board ID register BASE+4EH. With correct Board ID settings, users can easily identify and access each
C.14 FOUT 0/1/2/3/4/5/6/7 control — BASE + 50~5FH Table C-13 PCI-1780 Register for FOUT 0/1/2/3/4/5/6/7 Control Base Addr. 15 14 13 12 11 10 9 8
FS2 ~ FS0 FOUT source 000 External clock 001 CLK N 010 FOUT N-1 011 10 MHz clock 100 1 MHz clock 101 100 KHz clock 110
48
Appendix D. Waveform of each mode The PCI-1780 offers 16 powerful counter functions to fulfill your industrial or laboratory applications. This chap
As is fully explained in the TC section of the document, for these modes the counter is actually stopped or disarmed following the active-going sour
D.1 Mode A waveform Software-Triggered Strobe with No Hardware Gating Mode A is one of the simplest operating modes. The counter will be available
D.2 Mode B waveform Software-Triggered Strobe with Level Gating Mode B is identical to Mode A except that source edges are counted only when the a
D.3 Mode C waveform Hardware-Triggered Strobe Mode C is identical to Mode A, except that counting will not begin until a Gate edge is applied to t
D.4 Mode D waveform Rate Generator with No Hardware Gating Mode D is typically used in frequency generation applications. In this mode, the Gate i
1. Introduction Thank you for buying the Advantech PCI-1780. The PCI-1780 is a general purpose multiple channel counter/timer card for the PCI bus.
D.5 Mode E waveform Rate Generator with Level Gating Mode E is identical to Mode D, except the counter will only count those source edges that occ
D.6 Mode F waveform Non-Retriggerable One-Shot Mode F provides a non-retriggerable one-shot timing function. The counter must be armed before it w
D.7 Mode G waveform Software-Triggered Delayed Pulse One-Shot In Mode G, the Gate does not affect the counter's operation. Once armed, the co
D.8 Mode H waveform Software-Triggered Delayed Pulse One-Shot with Hardware Gating Mode H is identical to Mode G except that the Gate input is use
D.9 Mode I waveform Hardware-Triggered Delayed Pulse Strobe Mode I is identical to Mode G, except the counting will not begin until a Gate edge is
D.10 Mode J waveform Variable Duty Cycle Rate Generator with No Hardware Gating Mode J will find the greatest usage in frequency generation applic
D.11 Mode K waveform Variable Duty Cycle Rate Generator with Level Gating Mode K is identical to Mode J except that source edges are only counted
D.12 Mode L waveform Hardware-Triggered Delayed Pulse One-Shot Mode L is similar to Mode J except that counting will not begin until a Gate edge i
D.13 Mode O waveform Hardware-Triggered Strobe with Edge Disarm Mode O, shown in Figure O, is identical to Mode C except that the counter will be
D.14 Mode R waveform Non-Retriggerbale One-Shot with Edge Disarm Mode R is identical to Mode F except that the counter will be disarmed while an i
Special Shielded Cable for Noise Reduction The PCL-10168 shielded cable is specially designed for the PCI-1780 for reducing noise. Its wires are all
D.15 Mode U waveform Hardware-Triggered Delayed Pulse Strobe with Edge Disarm Mode U is identical to Mode I except that the counter will be disarm
66D.16 Mode X waveform Hardware-Triggered Delayed Pulse One-Shot with Edge Disarm Mode X is identical to Mode L except that the counter will be d
1.2 Applications ❏ Event counting ❏ One shot output ❏ Programmable frequency output ❏ Frequency measurement ❏ Pulse width measurement ❏ PWM output
Start to write your own application Read examples & driver manual Use test utility to test hardware Use driver utility to configure hardware I
Comments to this Manuals