cPCI/PCI-8554/R® Multi-functions Counter / Timer Card User’s Guide Recycle Paper
Introduction •1 1 Introduction cPCI/PCI-8554/R is a general-purpose counter / timer and digital I/O card. The card is designed with four 8254, a pro
2 • Introduction Figure 1: Functional Block diagram 1.1 Features The cPCI/PCI-8554/R Counter / Timer and digital I/O Card provides the following a
Introduction •3 1.2 Applications • Event counter • Frequency generator • Frequency synthesizer • Pulse width measurement • Low level pulse generator
4 • Introduction Digital Filter Circuits • Device: MC14490 • De-bounce clock: (Programmable) 3 8MHz internal base clock 3 Programmable counter 11
Introduction •5 1.4 Software Supporting ADLINK provides versatile software drivers and packages for users’ different approach to building a system. A
6 • Introduction 1.4.2 PCIS-LVIEW: LabVIEW® Driver PCIS-LVIEW contains the VIs, which is used to interface with the NI LabVIEW® software package. The
Getting Started •7 2 Getting Started This chapter discusses how to setup the cPCI/PCI-8554R and configure the card to meet the requirements of your a
8 • Getting Started Inspect the card module carton for obvious damages. Shipping and handling may cause damage to your module. Be sure there are no s
Getting Started •9 Figure 3: PCB Layout of cPCI-8554/R 2.4 Default Jumper Setting To operate the cPCI/PCI-8554/R correctly, users need to underst
10 • Getting Started ECLK10 No Debounce function JP10 E_INT No Debounce function JP11 ECLK11 Internal 8MHz Clock JP12 ECLK12 Output of CLK11 J
Getting Started •11 2.5 cPCI/PCI-8554/R Installation 2.5.1 Hardware configuration The PCI cards (or CompactPCI cards) is equipped with the plug and
12 • Getting Started 2.6 Device Installation for Windows Systems Once Windows 95/98/2000 has started, the Plug and Play function of the Windows OS wi
Getting Started •13 2.7 Pin Assignment of Connector (1) +12V (26) GND (51) GND (76) ECLK9 (2) +12V (27) GND (52) GOUT2 (77) COUT8 (3) +12V (2
14 • Getting Started (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)
Getting Started •15 2.8 Clock System The clock system of the cPCI/PCI-8554/R provides the internal clock source for the 8254 chips. The clock for
16 • Getting Started There are three signals (2 input and 1 output) for each counter, a clock input signal, a gate control signal, and an output signa
Getting Started •17 2.9.1 Independent Counters (Counter 1~10) Counters 1 to 10 are independent counters because the clock source and gate control of
18 • Getting Started Figure 10: Cascaded Counter Configuration 2.9.3 User Configurable Cascaded Counters Although by default there is only one
Getting Started •19 2.10 Clock Source Configurations For each independent counter, one of four different clock sources maybe selected using the soft
©Copyright 1998~2002 ADLINK Technology Inc, All Rights Reserved. Manual Rev. 1.02: July 31, 2002 Part No: 50-11130-100 The information in th
20 • Getting Started The internal clock sources of CK1 can be either C8M or COUT11, and is selected by using the “_8554_SET_CK1” function. If the coun
Getting Started •21 2.13 Debounce System The debounce system is used to eliminate the affects of bounce phenomenons. If an external clock is used, u
22 • Getting Started DB_CLKinputsignaloutputsignal glitch iseliminated Figure 17: Basic Timing of the debounce system 2.14 Interrupt System The cP
Getting Started •23 Even though it is a dual interrupt system, only one interrupt level is ever used. The card uses the INT #A interrupt request sig
24 • Getting Started 2.16 12V and 5V Power Supply The 100-pin SCSI-II connector provides +12 and +5 volt power sources. To avoid shorts or overload
Registers •25 3 Registers Detailed descriptions of the registers are specified in this chapter. This information is useful for programmers who wish
26 • Registers 3.2 I/O Address Map All cPCI/PCI-8554/R registers are 8 bits long. Users can access these registers using 8-bit I/O instructions. Th
Registers •27 3.3 Timer/Counter Registers The 8254-chips occupies 4 I/O address locations on the cPCI/PCI-8554/R as shown below. Users can refer to
28 • Registers There are a total of twenty-two bits on the cPCI/PCI-8554/R used for selecting clock sources for Timer/Counter 1 ~ 10, CK1 and the debo
Registers •29 3.6 Digital Output Register This register is a general-purpose 8 bits digital output port. These signals can be used to control exte
Getting service from ADLINK • Customer Satisfaction is the most important priority for ADLINK Tech Inc. If you need any help or service, please conta
30 • Signal Connection and Applications 4 Signal Connections & Applications This chapter describes the connectors and applications of the cPCI/PCI
Signal Connection and Applications • 31 4.3 Timer/Counter Connection The cPCI/PCI-8554/R has four 8254 chips on board. It can offer 10 independent 16
32 • Signal Connection and Applications 4.4 Frequency Generator 4.4.1 To generate a 250 KHz Square Wave. Step 1: Use a fixed clock source because
Signal Connection and Applications • 33 4.4.2 To generate a 1 pulse/1 hour signal Step 1: Use a fixed clock source because the output is a fixed
34 • Signal Connection and Applications 4.5 Pulse Width Measurement Step 1: Use a fixed clock source as base time interval (or base frequency). Step
Signal Connection and Applications • 35 4.6 Frequency Measurement To measure a frequency around 1~100 KHz the following steps can be followed. Step 1
36 • Signal Connection and Applications Figure 23: Example of frequency measurement (1)
Signal Connection and Applications • 37 4.7 Event Counter This example counts how many external events in 1 second Step 1: This application require
38 • Signal Connection and Applications 4.8 Dual Interrupt System The cPCI/PCI-8554/R provides a dual interrupt source (one internal plus one externa
C/C++ Libraries • 39 5 C/C++ Library This chapter describes the software libraries for operating this card. Only the functions in the DOS library and
Table of Contents • i Table of Contents Tables... iii Figures ...
40 • C/C++ Libraries 5.2 Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI or NuIPC CompactPCI card software drivers uses full-
C/C++ Libraries • 41 5.3 _8554_Initial @ Description The cPCI/PCI-8554/R cards are initialized by this function. The software library could be used
42 • C/C++ Libraries 5.4 _8554_Write_Counter @ Description User can directly write commands to counters 1~12 using this function. Using this function,
C/C++ Libraries • 43 5.5 _8554_Read_Counter @ Description User can directly read counter information with this function. @ Syntax C/C++ (DOS) U16 _8
44 • C/C++ Libraries 5.6 _8554_Stop_Counter @ Description User can directly stop the counter with this function. This function will stop the counter b
C/C++ Libraries • 45 5.7 _8554_Read_Status @ Description User can directly read current counter status with this function. @ Syntax C/C++ (DOS) U16
46 • C/C++ Libraries 5.8 _8554_DO @ Description Write an 8-bit data to the digital output port. @ Syntax C/C++ (DOS) U16 _8554_DO (U16 cardNo, U16 doD
C/C++ Libraries • 47 5.9 _8554_DI @ Description Read an 8-bit data from the digital input port. @ Syntax C/C++ (DOS) U16 _8554_DI (U16 cardNo, U16 *
48 • C/C++ Libraries 5.10 _8554_SET_cntCLK @ Description This function is used to select the clock source for counters 1~10 (Clock source for counter
C/C++ Libraries • 49 5.11 _8554_SET_CK1 @ Description Select source for CK1. @ Syntax C/C++ (DOS) U16 _8554_SET_CK1 (U16 cardNo, U16 selCK1) C/C++ (
ii • Table of Contents Chapter 4 Signal Connections & Applications... 30 4.1 Connectors Pin Assignment ...
50 • C/C++ Libraries 5.12 _8554_SET_DBCLK @ Description Select debounce clock. @ Syntax C/C++ (DOS) U16 _8554_SET_DBCLK (U16 cardNo, U16 DBCLK) C/C++
C/C++ Libraries • 51 5.13 _8554_Set_INT_Control @ Description The cPCI/PCI-8554/R has a dual interrupts system. Two interrupt sources can be generate
52 • C/C++ Libraries 5.14 _8554_Get_IRQ_Status @ Description The cPCI/PCI-8554/R has dual interrupts system. Two interrupt sources can be generated an
C/C++ Libraries • 53 5.15 _8554_INT_Enable @ Description This function is only available to the Windows 95 driver. It is used to activate the interru
54 • C/C++ Libraries 5.16 _8554_INT_Disable @ Description This function is only available to the Windows 95 driver. It is used to disable the generati
C/C++ Libraries • 55 5.18 _8554_CLR_IRQ2 @ Description This function is only available to the DOS driver. It is used to clear the interrupt request,
56 • Warranty Policy Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, pleas
Warranty Policy • 57 • Damage caused by inappropriate storage environments such as with high temperatures, high humidity, or volatile chemicals. •
Tables • iii Tables Table 1. Default Jumper Settings on PCI-8554 ... 10 Table 2. Extra Default Jumper Setting on cPCI-
iv • Figures Figures Figure 1: Functional Block diagram..... 2 Figure 2: PCB Layout of PCI-8554...
Figures • v How to Use This Guide This manual is designed to help you use the cPCI/PCI-8554/R. The manual describes how to modify various settings
Kommentare zu diesen Handbüchern