![Eagle Technology PC104PLUS-26 User Manual Download Page 24](http://html1.mh-extra.com/html/eagle-technology/pc104plus-26/pc104plus-26_user-manual_520297024.webp)
PCI 730 & PC104P-30 User Manual
Eagle Technology - Data Acquisition
ACTIVEX CALL
Long EDRECTX.Read(long Port)
The counter number must be passed by the calling function. If the return code is negative it
means an error occurred, otherwise it will be the value read from the counter.
Counter
Discription
Resolution
CT0 Counter
0
16-bits
CT1 Counter
1
16-bits
CT2 Counter
2
16-bits
CT3
Frequency Scaler
Not supported
Table 4-2 Counter Resolution
Configuring a counter
A single call is necessary to configure a counter.
API-CALL
Long EDRE_CTConfig(ulng Sn, ulng Ct, ulng Mode, ulng Type, ulng ClkSrc, ulng
GateSrc)
The serial number, counter-number, mode, type, clock source and gate source is needed to
specify a counter’s configuration. A return code will indicate if any errors occurred.
ACTIVEX CALL
Long EDRECTX.Configure(long ct, long mode, long type, ulng source, ulng gate)
The counter-number, mode, type, clock source and gate source is needed to specify a
counter’s configuration. A return code will indicate if any errors occurred.
Only the counter mode, clock source and type parameters are used by the PCI703. The table
below shows the options for each parameter.
Parameter
Description
Sn Serial
Number
Ct Counter
Number:
0 : Counter 1
1 : Counter 2
2 : Counter 3
3 : Frequency Scaler
Mode
Counter Mode
0 82c54
Mode
See 82c54 datasheet
1 82c54
Mode
See 82c54 datasheet
2 82c54
Mode
See 82c54 datasheet
3
0 : Pulse Mode – Pulse on each terminal count
1 : Toggle Mode – Change state on each terminal
count
Type
Counter Type
0-2
0 : Binary Counting (16-bits)
1 : Binary Coded Decimal (BCD)
4 decades
3 Not
supported
Source
NOT USED (set by external jumper)
Gate
NOT USED (set by external jumper)
Table 4-3 Counter Configuration
Controlling the counter gate
A single call is necessary to setup/control a counter’s gate. This function call is invalid for the
frequency generator (counter 3). Counter 3 does not have a gate.
API-CALL
Long EDRE_CTSoftGate(ulng Sn, ulng Ct, ulng Gate)
Eagle Technology © Copyright 2003 – www.eagledaq.com
18