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 | 14 Br: | 🔊 点击朗读正文 ❚❚ | Share:

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.

  • VALMET PMB 2R 16 Slot Backplane PCB Card
  • NELES VALMET A413135 AOU 4 Output Module
  • Metso Valmet A413345 FPU Power Unit
  • VALMET A413171 PIC Module
  • VALMET A413620 Repeater Module
  • Valmet M851521 Memory Card
  • Valmet DIFF-EL 140 M1 Transmitter
  • Valmet A413064 DMU Module
  • Valmet IOP371 I/O Bus Extender Module
  • Valmet Cooking Liquor Measurement 3400 Model 3417H
  • Metso Valmet A413043 CPU Module – Industrial Processor
  • Valmet BIU4 M851221 Binary Input Module
  • Valmet PMB 1S CPU SCU Rack Module
  • Valmet A413248 Controller Module
  • Valmet PDP601 Distributed Processing Unit
  • VALMET M851004 M2 CPU Printed Circuit Board Module
  • Metso Valmet A413045 Ver.05 CPU Module
  • Valmet A413181 Ver.05 PLU1 Board
  • Lyngso Valmet ATB16 Controller Board
  • VALMET AIU 16 Analog Input Unit 545100-3A/3B
  • VALMET PUD 10 B Power Supply PCB Rack Module
  • Valmet MS-50V/120V Bearing Unit
  • Valmet PDP603 Distributed Processing Unit – DPU Module
  • Valmet A413110 TIU Board – Terminal Interface Unit
  • Valmet S420154 I/O Backplane PCB – Printed Circuit Board
  • Valmet A413173 Industrial Control Module
  • Valmet A413044 CPU Module
  • Valmet A4IU1 Analog I/O Module
  • Valmet A413325 IPU Power Unit – PLC Module
  • Valmet M851002 CPU Module – Central Processing Unit
  • Valmet PUD10B Power Supply Board
  • Valmet K00990 Master CPU Electronic Assy
  • Valmet Metso IOP345 Input Module
  • Metso Automation T545215 Board
  • Valmet Metso IOP304 Input Module
  • Valmet 542844-6A SCU Module
  • Metso A413043 Ver.11 Valmet CPU Module
  • Valmet Automation BIU 8A Input Module
  • Metso A413044 Ver05 Valmet CPU Module
  • VALMET 542821-5A Control System Rack Module
  • Metso A413005 Ver.04 Valmet CPU Module
  • Valmet M851207 AIU16 Card
  • Valmet BIU8 Binary Input Unit
  • VALMET 547070-2B CPU Printed Circuit Board Module
  • Valmet Automation A413325 Power Module
  • VALMET AUTOMATION A413135 AOU4 Module
  • VALMET ACU A413165 Model 9 Analog Controller
  • VALMET AUTOMATION A413511-02 Slot Rack with I/O Backplane
  • Valmet A413148 BIE 4 Rev 08 Board
  • Valmet ATB16-4 Controller Board
  • Neles Automation BOR82 A413292 Processor Module
  • Valmet A413015 NCU Module – Network Control Unit
  • Valmet AIU 16 Analog Input Unit – M8512071
  • Metso Valmet A413091 GDU Board
  • Valmet M851565 Damatic Main Keyboard
  • Metso A413082 CPU Module
  • Valmet A403037 GDC – Graphics Display Controller
  • Valmet A413076 FBC Board
  • Valmet A413015 NCU Module – Network Control Unit
  • Valmet A413082 CPU Module
  • VALMET AUTOMATION A413620 Fieldbus Repeater
  • Valmet Metso IOP341R Positioner Module
  • Metso A413082 Ver.04 CPU Module
  • Valmet Metso MCA FT250/10 10 Inch Sensor
  • Valmet N0542 ABMB Printed Circuit Board
  • Valmet A413000 Ver.07 CPU Module
  • Valmet A413061 Ver.05 DMU Module
  • Valmet M851241 M1 BCU Binary Input Module
  • Valmet Automation NCU A413015 Circuit Board
  • Valmet A413046 Ver.06 CPU Module
  • Valmet A651B001 Panel Mount Keyboard
  • Valmet IQ Scanner A418080R Basis Weight Detector Head
  • Metso Valmet A413370 ESU Ethernet SCSI Unit
  • Valmet A413340 FPU Power Supply Unit
  • Valmet SKF GE 400/600 Spherical Plain Bearing
  • Valmet SCU PCB Card 542844-7B – System Control Unit
  • Valmet A413075 FBU Fieldbus Controller Module
  • Valmet A413171 PIC Card Binary Output
  • Valmet A413002 Ver.05 CPU
  • Valmet ABMB PCB Card – Industrial Control Board
  • Valmet PMB 2R 542821-4A PCB Card
  • Metso Valmet A413001 CPU Module
  • Metso Valmet A413050 RSU 6 Serial Controller Unit
  • Valmet ABMB MT241 Input Mother Board
  • Valmet DAMATIC M851565 Keyboard
  • Valmet A413075 Ver05 FBC Board
  • VALMET K14891 FLEXI-U Operating Terminal
  • VALMET AUTOMATION MKB2 DAMATIC Keyboard
  • Valmet Metso Consistency Transmitter Smart Pulp M1 RL Blade
  • VALMET AUTOMATION A413230 ECU Module
  • Beckhoff EP9224-0037 - 4-Channel Power Distribution Box EtherCAT
  • Beckhoff CX2900-0026 - Solid State Flash Memory Card 20GB CFast
  • Beckhoff BK7500 - SERCOS Interface Fieldbus Bus Coupler Terminal
  • Beckhoff Ep2328-0002 - 4-Channel Input 4-Channel Output EtherCAT Box IP67
  • Beckhoff CX1020-0111 - Controller Kit Combo Interface Modules
  • B&R X20AI2237 - X20 System Analog Input Interface Module
  • Beckhoff CP2221-0010 - Multi-Touch Built-In Panel PC Touchscreen
  • Beckhoff CX1500-M310 - Fieldbus Master Interface Module 24V
  • Beckhoff CX2100-0904 - Power Charging Module Smart UPS Extension
  • Beckhoff CP3918-0000 - Multi-Touch Control Panel 18.5-Inch Monitor
  • Beckhoff CP2915-0000 - 15-Inch Multi-Touch Built-In Control Panel
  • Beckhoff CP7037-1027 - HMI Industrial Control Panel Built-In PC
  • Beckhoff EL3152 - 2-Channel Analog Input Terminal 4-20mA EtherCAT
  • Beckhoff CP6607-0000-0020 - 5.7-Inch Built-In Panel PC HMI Touch
  • Beckhoff EJ1809-0000 - 16-Channel Digital Input Pluggable Signal Level Terminal
  • Beckhoff AM8563-0N10-0000 - Synchronous Servo Motor
  • Beckhoff AX2006-S60600-520 - Compact Servo Drive Inverter
  • Beckhoff AM8053-0K20-0000 - Servo Motor with Planetary Gearbox AG3210
  • Beckhoff AM8042-0FH1-0000 - Synchronous Servo Motor
  • Rexroth R911338600 - IndraControl V HMI Terminal Beckhoff PCI Card FC9002
  • Beckhoff AX5125-0000 - 3 Phase Industrial Servo Drive 1000Hz
  • Beckhoff EP2328-0002 - 4-Channel Digital Input 4-Channel Output EtherCAT Box
  • B&R 7CP476-02 - System 2005 RTD CPU Module 3IF681.86 Interface
  • Beckhoff AX8620-0000-0000 - Power Supply Module Axis Drive System
  • Beckhoff CX1010-0111 - PLC Module CPU Controller 24V
  • Beckhoff AM8043-0H10-0000 - Synchronous Servo Motor
  • Beckhoff C6240-1009 - Control Cabinet Industrial PC Mainframe
  • Beckhoff BX8000-0000 - Bus Terminal Controller HW 4.4 Standalone
  • Beckhoff CP7721-1089-0020 - 12.1-Inch Touch Screen HMI Panel PC
  • Beckhoff CP7132-0001 - Industrial Built-In Panel PC Screen
  • Beckhoff CP2912-0010 - Multi-Touch Built-In Control Panel Display
  • Beckhoff CP2915-0000 - 15-Inch Multi-Touch Built-In Control Panel
  • Beckhoff AM8532-1EN0-0000 - Synchronous Servo Motor
  • Beckhoff AX5203-0000 - 2-Channel Digital Compact Servo Drive
  • Beckhoff CX2020-0141 - Embedded PC Core CPU Module
  • Beckhoff CP6832-0002-0010 - Built-In Industrial Control Panel Display
  • Beckhoff CX5020-0112 - Embedded PC CPU Control Module
  • Beckhoff CX5140-0175 - 4GB Embedded PC CPU Unit 24V