Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

ADLINK cPCI/PCI-8554/R: A Complete Guide from Architecture to Application

F: | Au:FANS | DA:2026-08-12 | 481 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:



ADLINK cPCI/PCI-8554/R: A Complete Guide from Architecture to Application

In the fields of industrial automation, data acquisition, and testing measurement, multifunctional counters/timer cards play a crucial role. They are not only the cornerstone of event counting, frequency measurement, and pulse width capture, but also the key components for building complex measurement and control systems. The cPCI/PCI-8554/R series multifunctional counter/timer card launched by ADLINK Technology occupies a place in many industrial applications with its flexible architecture, powerful feature set, and reliable PCI/CompactPCI interface. This article aims to deeply analyze the hardware architecture, core configuration, key application modes, and software development points of this series of boards, providing engineers with a detailed guide from theory to practice.


Hardware Architecture Overview: The Powerful Combination of Four Core 8254

The core competitiveness of cPCI/PCI-8554/R comes from its onboard four 8254 programmable interval timer/counter chips. 8254 is an industry standard counter chip, which contains three independent 16 bit subtraction counters inside each chip. Four chips work together to provide users with a total of 12 counters (numbered 1 to 12).

These 12 counters are not simply connected in parallel, but have achieved highly flexible interconnection through careful hardware design and software configuration. The flexibility of its architecture is mainly reflected in the following aspects:

Counter type classification: Counter 1 to 10 are designed as "independent counters". This means that their clock sources and gate signals can be independently configured through software, with diverse sources. Counter 11 and 12 are defaulted to be "cascaded counters", where the output of counter 11 (COUP11) serves as the clock input of counter 12, forming a 32-bit cascaded structure, mainly used in situations where large frequency division coefficients or long timing are required. Of course, users can also change counters 11 and 12 to independent mode through onboard jumpers (JP12, JP13), allowing their clock sources to choose between internal 8MHz or external inputs (ECLK11, ECLK12).

Flexible clock system: The clock source (CLKn) of each independent counter (1-10) can be freely switched among four sources through software:

External clock source (ECLKn): An external TTL signal from a connector, suitable for synchronizing with external events.

Front stage counter output (COUPn-1): Implement cascading between counters to build 32-bit, 48 bit, or even higher resolution counter chains.

Internal clock CK1: A programmable internal clock signal that can be divided by an 8MHz fundamental frequency or the output of counter 11 (COUP11), providing additional flexibility.

Counter 10 output (COUP10): Provides a clock option for feedback from a specific counter.

Intelligent gate control and debounce: The gate control signal (GATEn) of each independent counter (1-10) can be selected as internal default enable (high level) or external signal from the connector (ExtG n). External gating is the foundation for applications such as pulse width measurement and frequency measurement. Of particular importance, the board provides optional debounce circuits for external input clocks (ECLK 1-10) and external interrupt signals (E_INT). By using onboard jumpers (JP1~JP11) and software configuration (selecting the debounce clock DB_CK), common signal jitter and spike pulses in industrial sites can be effectively filtered out, ensuring measurement accuracy and system stability. The debounce principle requires the signal to maintain a stable state for at least four DB_CK cycles in order to be recognized as an effective level change.

Dual Interrupt System: This board supports dual interrupt sources, namely the output of counter 12 (COUP12) and external interrupt input (E_INT). These two interrupt sources share an interrupt number (INT A) on the PCI bus, but can be distinguished by software querying the status register (reading _8554_Get_iRQ_Status). This design is highly suitable for complex applications that require handling both periodic timed tasks (such as watchdog) and external emergency events simultaneously.

Digital I/O and power output: In addition to powerful timing/counting functions, the board also provides 8 TTL compatible digital inputs and 8 digital outputs for basic status monitoring and control. In addition, through the 100 pin SCSI-II connector, the board also provides+12V and+5V power outputs (with a current limit of 500mA per circuit), which can directly supply power to external sensors or low-power circuits, simplifying system design.


Detailed explanation of core configuration and jumper settings

The correct configuration is a prerequisite for the stable operation of the board. The configuration method of cPCI/PCI-8554/R combines hardware jumpers and software programming.

Hardware jumpers (JP1~JP15):

JP1~JP11: Enable the debounce function corresponding to external clocks ECLK1~ECLK10 and external interrupt E_INT, respectively. When the jumper is set to 1-2 (Enable), enable debounce; When set to 2-3 (Bypass), the bypass debounce circuit is used and the signal passes directly through. The default factory setting is bypass (without debounce function).

JP12: Select the clock source for counter 11. When set to 1-2, select the external clock ECLK11; When set to 2-3 (default), select the internal 8MHz clock.

JP13: Select the clock source for counter 12. When set to 1-2, select the external clock ECLK12; When set to 2-3 (default), select the output COUP11 of counter 11.

JP14, JP15 (only cPCI-8554/R): Used to select the voltage source for the gate control signals (GATE11, GATE12) of counter 11 and counter 12, connected by default to VCC (high-level enable).

Software configuration (key API functions):

_8554Initialize: The card initialization function must be called first. It is responsible for obtaining the base address and interrupt number allocated by the PCI BIOS, and returning the number of cards present in the system.

_8554_SET_cntCLK: Select clock sources (ECLKn, COUPn-1, CK1, COUP10) for counters 1-10.

_8554_SET-CK1: Configure the source of the internal clock CK1 (8MHz baseband or COUP11).

_8554_SET-DBCLK: Configure the sampling clock DB_CK (COUP11 or 2MHz) for the debounce circuit. Note that the DB_CK frequency cannot exceed 2MHz.

_8554-Write_Counter: Write the count value to the specified counter and set its working mode (modes 0-5, corresponding to the six working modes of 8254, such as mode 2 as a frequency divider and mode 3 as a square wave generator).

_8554_Set-INT_Control: Independently enable or disable two interrupt sources (INT1 from COUP12, INT2 from E_INT).

Typical application scenarios and case analysis

This chapter will combine examples from the manual to deeply analyze several typical engineering applications, helping engineers quickly get started.

1. High precision frequency generator

Requirement: Generate an accurate, low-frequency square wave signal, such as a pulse with a period of 1 hour.

Challenge: A single 16 bit counter has a minimum output frequency of 8MHz/65536 ≈ 122Hz at an 8MHz clock, which is much higher than 0.000278Hz (1/3600).

Solution: Adopt counter cascading. In the manual example DEMO2, cascade counters 1, 2, and 3 together. Set the clock of counter 1 to internal 8MHz and the count value to 4000; The clock of counter 2 comes from COUP1, and the count value is set to 2000; The clock of counter 3 comes from COUP2, and the count value is set to 3600.

Total frequency calculation: 8000000/4000/2000/3600=1/3600 Hz. That is, COUP3 generates a pulse every 3600 seconds (1 hour).

Implementation points: In the software, it is necessary to first set the clock source of counter 2 to COUP1 and the clock source of counter 3 to COUP2 through _8554_SET-cntCLK. Then call _8554_Srite_Counter separately to set the mode and initial value of each counter (usually using mode 2 or mode 3). Gate control signal suspended (internal pull-up enabled).

2. Pulse width measurement

Requirement: Accurately measure the duration of high or low levels of an external TTL signal.

Principle: Use the gate control signal GATE to enable the counter. During the validity period of GATE, the counter counts the internal clock of a known frequency, and the pulse width is obtained by multiplying the count value by the clock period.

Solution: Taking manual DEMO3 as an example, connect the test signal to GATE1. Select an internal 2MHz clock as the clock source for counter 1. This clock can be obtained by dividing the internal 8MHz frequency by counter 2 (for example, counter 2 is set to divide by 4). At this time, the counting range of the counter is 1/2MHz=500ns, and the maximum measurable pulse width is 500ns * 65535 ≈ 32.8ms.

Implementation points: Configure counter 2 to be in frequency divider mode, generate a 2MHz clock, and use it as the clock source for counter 1 (via _8554_SET_cntCLK). Configure counter 1 as mode 0 (end of count interrupt) or mode 2 (frequency divider), with its gate source being external GATE1. When GATE1 is high, the counter starts counting; When GATE1 goes low, the counter stops. The software reads the current count value of counter 1 (_8554_ Read_Sunter), and then subtracts the current value from the initial value to obtain the count during the high-level period.

3. Frequency measurement

Requirement: Measure the frequency of an external TTL signal ranging from 1KHz to 100KHz.

Principle: The "frequency measurement method" is used, which measures the number of rising edges of the signal to be measured within a known precise time interval (gate time). Frequency=count value/gate time.

Solution: Two counters are required. A counter (such as counter 3) is used to generate accurate gate time, and its output serves as the gate signal for another counter (such as counter 1). As shown in manual DEMO4, use a cascaded or independent counter to generate a gate signal with a low pulse width of less than 0.65 seconds (ensuring that counter 1 does not overflow at a maximum frequency of 100KHz). Connect the test signal to the external clock ECLK1 of counter 1 and suggest enabling the debounce function. Counter 1 counts the rising edge of ECLK1 during the validity period of the gate signal.

Key points of implementation: Counter 3 operates in monostable or square wave mode, generating a negative pulse with precise width as GATE1. The clock source of counter 1 is set to ECLK1, and the gate source is set to external GATE1. After the gate signal ends, the software reads the count value of counter 1 and calculates the frequency to be measured based on the gate time.

4. Event counting and watchdog timer

Requirement: Count the number of internal and external events that occur within one second.

Solution: This application combines a frequency generator and an event counter. Use counters 11 and 12 (cascaded by default) as 32-bit timers, and generate a 1-second timing signal using their precise 8MHz clock. Meanwhile, using counter 1 as the event counter, the clock source is the external event signal ECLK1, and the gate signal is controlled by COUP12 (enabled within 1 second). When COUP12 outputs a high level with a width of 1 second, counter 1 starts counting external events. After 1 second, the gate control signal goes low and counter 1 stops counting. At this time, the value of counter 1 is read, which is the total number of events in that second. This mechanism can be extended to a watchdog timer: if the system does not "feed the dog" within the set time (such as resetting counter 12 through software), counter 12 will generate an interrupt (INT1), triggering a system reset or alarm. This fully utilizes the dual interrupt system of the board, providing a highly reliable system monitoring method.


Key points of software development and debugging

Initialization process: Any application must first call _8554-INitial (or W_8554-INitial under Windows). This function will fill a PCI-INFO structure, which contains the key base address (for all subsequent register operations) and the assigned IRQ number.

Cascade configuration sequence: When configuring cascade counters in software, they should be set in the order from back to front. For example, when configuring the cascading of counters 1->2->3, the mode and initial value of counter 3 should be configured first, followed by counter 2, and finally counter 1. This can avoid unexpected output jumps during the configuration process.

Interrupt Service Program: In the DOS environment, the Interrupt Service Program (ISR) needs to be written by the user and hooked through _8554-INT_Enable. In ISR, you must call _8554_Get_IRQ_Status to determine which interrupt source triggered the interrupt, and call _8554_CLR_IRQ1 or _8554_CLR_IRQ2 to clear the interrupt status after processing, otherwise the interrupt source cannot be triggered again.

De jitter configuration: When using an external clock or external interrupt in a strong electromagnetic interference (EMI) environment, it is strongly recommended to enable the de jitter function through jumper wires and select the appropriate sampling clock through _8554_S_TDBCLK. Sacrificing small response delays in exchange for system stability and data accuracy is often worthwhile in industrial settings.

  • Bosch Rexroth CML10.1-NN-210-NB-NNNN-NW IndraControl L10 PLC
  • Bosch Rexroth R911173255 S20-PSDO-8/3 Safe Digital Output Module
  • Bosch Rexroth MSM040B-0300-NN-M0-CC1 Servo Motor
  • Bosch Rexroth MSK040B-0450-NN-M1-UG0-NNNN Servo Motor
  • Bosch Rexroth 3630630010 3/2 Way Directional Control Valve
  • Bosch Rexroth IndraControl S20 R911173359 S20-PN-BK+ Bus Coupler
  • Bosch Rexroth MKD041B-144-GP0-KN Synchronous Servo Motor
  • Bosch Rexroth Indramat BT 100 Industrial Panel PC
  • Bosch Rexroth MSM019B-0300-NN-M5-MH1 Servo Motor
  • Rexroth SE-B5.700.020-10.000 Synchronous Servo Motor
  • Rexroth 0608820115 Nutrunner Torque Transducer Size 4
  • Rexroth MAC090A-0-ZD-5-C/110-A-0/KI520LV Servo Motor
  • Rexroth 4WMM6J53/N Directional Control Valve
  • Rexroth HCS02.1E-W0028 IndraDrive Base Unit
  • Rexroth MDD090B-N-030-N2M-110GB0 Servo Motor
  • Mannesmann Rexroth VT11025-16 Amplifier Module 19666
  • Rexroth HCS01.1E-W0008-A-03-B-ET-EC-NN-L4-NN-FW Inverter
  • Rexroth MDD093C-N-030-N2M-110GB0 Servo Motor
  • Rexroth R162211322 Linear Guide Slider
  • Rexroth IndraControl L40 CML40.2-NP-330-NA-NNNN-NW Controller
  • Rexroth 3 842 532 421 Geared Motor 1380 rpm
  • Rexroth 4WEH 16 E67 Directional Valve Set
  • Rexroth HMS01.1N-W0110-A-07-NNNN Inverter
  • Rexroth P-057429-00000 Repair Kit
  • Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Mannesmann Rexroth VT 11013 Amplifier Module
  • Rexroth 4DMC160 Transducer 0608820115
  • Rexroth 990500A Industrial Component
  • Bosch Rexroth HCS01.1E-W0003 Compact Drive
  • Rexroth 4WMM10E31/V Directional Valve R900593552
  • Bosch Rexroth EMC-032-NN-2 R021U10021 Linear Actuator
  • Rexroth VT-MX-4-10/K-AX4U-V50 Servo Interface Module
  • Rexroth 0811405144 Amplifier Card
  • Rexroth VM310 0608760109-103 Power Module
  • Rexroth HMD01.1N-W0012 IndraDrive Power Section
  • Rexroth LT303 0 608 750 084 Servo Amplifier
  • Rexroth DKCXX.3-040-7 Servo Drive 40 A
  • Rexroth 3842999760 UM 1 Return Module
  • Rexroth R911172284 Safety Controller SLC-3-CPU000300
  • Rexroth IMS2A-KWD-025-SNS-C1 R051702883 Measuring System
  • Rexroth NK350S Network Coupler MRN 3608877368
  • Bosch Rexroth CSB01.1N-AN-ENS Control Section
  • Rexroth R911330523 Power Cable RKL0045
  • Rexroth HMS01.1N-W0036 Single Axis Inverter
  • Rexroth 0 608 740 103 Connection Cable 2 m
  • Rexroth RWD-025-SNS-C2-P-2 Linear Bearing Block
  • Rexroth MSK050B-0300 Servo Motor R911309705
  • Bosch Rexroth KE312 Communication Module
  • Rexroth VCP05.2 IndraControl VCP 05 Panel
  • Rexroth CML40.2 IndraControl L PLC R911170254
  • Rexroth R911170826-206 Sercos Interface Module 24V DC
  • Mannesmann Rexroth VT 11030-12A 00010992 Valve Amplifier
  • Rexroth VT 11011-12 Amplifier Module R900010958
  • Bosch Rexroth SF-A1.0012.060-14.050 Servo Motor
  • Bosch Rexroth HCS01.1E-W0008-A-03-B R911325246 Inverter
  • Rexroth MDD093C-N-030-N2M-110PB2 Servo Motor
  • Bosch Rexroth MSK030B-0900-NN-M1-UG1-NNNN Servo Motor
  • Rexroth R900588201 4WE10E33/CG24N9K4 Solenoid Valve
  • Bosch Rexroth SR-A2.0020.030-00.000 Servo Motor 1070076772
  • Rexroth CML40.1-NP-220-NA-NNNN-NW Controller 1070170261-104
  • Yaskawa / Omron SGDM-01ADA - Sigma II Servo Drive 100W
  • Omron / KEP NT3S-ST123B-E - Interactive Display Operator Panel HMI
  • Yaskawa XD-01-MN01 - XtraDrive Servo Drive Controller
  • Applicom PC2000ETH - Ethernet Communication Interface Card
  • Fanuc A02B-0200-B523 - 6-Slot PLC Rack Chassis Series 160-MB
  • Endress+Hauser COS61-A2F0 - Dissolved Oxygen Sensor Probe
  • Kieback & Peter DDC4200L - Building Automation DDC Controller Display
  • Siemens 6ES5955-3LF12 - Simatic S5 Power Supply Module
  • Siemens 6ES5928-3UA21 - Simatic S5 PLC Central Processing Unit
  • Fanuc A06B-6077-H106 - Power Supply Module
  • KEB 15.F5.G1G-360A - Frequency Inverter Drive
  • Bonfiglioli Vectron ACU 210 - Frequency Inverter AC Drive
  • Allen Bradley MPL-A320H-MJ22AA - AC Servo Motor
  • Schneider (Telemecanique) XBTG2220 - Magelis Graphic Touch Panel HMI
  • Schneider (Telemecanique) XBTF011110 - Magelis Membrane Keyboard Overlay
  • Record STM20 - Automatic Sliding Door Processor Controller
  • Jetter JX2-SV1 - Servo Drive Controller Module
  • Siemens 6SL3120-1TE13-0AA4 - Sinamics S120 Motor Module Inverter
  • Grundig Electronic NPP 04 - Control Unit Module
  • Grundig NPA 01 - Power Supply Unit
  • Panasonic MDDCT5325B14 - AC Servo Drive Driver
  • Jetter JX2-SV1 - Servo Drive Controller Module
  • Schneider (Telemecanique) ATV32HU15M2 - Altivar 32 AC Frequency Inverter Drive
  • Sick ICR845-2E0020 - Image Code Reader Barcode Scanner
  • Endress+Hauser COM253-WX0110 - Dissolved Oxygen Analyzer Meter
  • Schneider (Telemecanique) XBTGT4230 - Magelis Advanced Touch Panel HMI
  • Siemens 6AV6640-0CA11-0AX1 - Touch Panel Operator Panel HMI
  • Jetter JX2-CNT1 - Counter Module PLC I/O
  • Omron NT3S-ST123B-E - Interactive Display Touch Terminal HMI
  • Omron C200HE-CPU42 - Sysmac C200HE PLC Modular System
  • Schneider Electric PM820MG - Multifunction Power Meter
  • Jetter JC-243 - JetControl Motion Controller PLC
  • Axor MTS-200-14/28-RX-S-0186 - Servo Drive Controller
  • Allen Bradley Ultra 3000i - Digital Servo Drive
  • Pro-face AGP3301-S1-D24 - Touch Screen Operator Interface HMI
  • Image AB 372151-00 - Keyboard Terminal Stand Mount
  • Harmonic Drive HA-220-5 - Harmonic Gearbox Servo Actuator
  • Omron NQ5-SQ000-B - Programmable Touch Panel HMI
  • Noax S12S-N8B-C1000 - Industrial Panel PC
  • Grundig Electronic NSP 02 - Control Unit Module
  • Omron NX-TS3201 - Temperature Sensor Input Unit PLC Module
  • Exor (UniOP) eTOP 11-0050 - Operator Panel Touch HMI
  • Schneider (Telemecanique) XBT P021010 - Magelis Operator Panel HMI
  • Omron NS5-SQ00-V2 - Touch Screen Operator Terminal HMI
  • Jetter JM-204-480 - Motion Controller Drive Module
  • Schneider (Telemecanique) XBTF024510 - Magelis HMI Touch Panel
  • Allen Bradley 22B-D010H204 - PowerFlex AC Drive Inverter
  • Yaskawa SGDV-2R8A15A - Sigma V Servo Pack Drive
  • National Instruments NI 9485 - C Series Solid-State Relay Output Module
  • Schindler SMICE 61.Q - Elevator Control Board PCBA
  • Schneider Electric (Telemecanique) TSXSUP40 - Power Supply Unit
  • Jandel SE272131 - Cylindrical Two Point Probe Sensor
  • National Instruments NI 9516 - C Series Motion Analog Input Module
  • Schneider Electric TSX3722101 - TSX Micro PLC Base Unit
  • Applicom International PC2000 V3.7.1 - Communication Card Interface
  • National Instruments cRIO-9014 - CompactRIO Controller Module
  • Qualiflow AFC-260 - Mass Flow Controller
  • Schneider (Telemecanique) HMIGTO3510 - Magelis GTO Color Touch Panel HMI
  • ESR Pollmeier BN 6751.3817 - Servo Controller Drive
  • Omron NT30-ST131-E - Touch Screen Operator Terminal HMI
  • Vickers / Moog BRM-P1-CF2100 - Brushless Servo Motor Drive
  • Festo SPC-200 - Multi-Axis Controller Module
  • Sartorius YDI 150 HD - Data Input Terminal Control Panel
  • Square D / Schneider (Telemecanique) XBTPM027110 - Magelis Operator Terminal HMI
  • Schneider (Telemecanique) HMIGTO2300 - Magelis GTO Color Touch Panel HMI
  • Schneider Electric ASIABLB3004 - Switched Mode Power Supply
  • Schindler MCCE 4.Q A - Elevator Control Board PCBA
  • Yaskawa SGDB-05VD - Servopack Servo Drive Amplifier