Counter/Timer OverviewYou can use the versatile National Instruments counter/timer devicesto create a wide variety ofmeasurement solutions,includingmeasuring a number oftime-related quantities,counting events ortotalizing,and monitoring position with quadrature encoders.You can also use counter/timers to generate pulses and pulse trains.Counter/timers often fulfill critical timing functions as componentsofcomplex measurement systems.
The NI 660x counter/timers use the NI-TIO,a NationalInstruments ASIC chip specifically designed to meet the countingand timing requirements ofmeasurement applications that arebeyond the capabilities ofoff-the-shelfcomponents.The widerfunctionality and simple programming interface make the NI 660xyour best choice for counting and timing applications.
Example applications include frequency measurement,positionmeasurement,generation ofretriggerable pulses,frequency shift-keying,two-signal edge separation measurements,continuousbuffered event counting,and continuous buffered pulse trainmeasurements.The NI 660x counter/timer devices are readilyintegrated into measurement systems that require synchronizationacross multiple hardware devices because they are equipped with theNational Instruments PXI trigger bus or the RTSI bus.See thecounter/timer tutorial on page 789 for more information.
In addition to counter/timer functionality,the NI 660x productsinclude TTL/CMOS-compatible digital I/O ports that are bitconfigurable for input or output.
Counter/Timer Size or Number of Bits
The counter size or number ofbits indicates how high a counter cancount.For example,a 32-bit counter can count up to 232-1 or4,294,967,295 before it rolls over.A high number ofbits is beneficialin cases such as pulse width measurements where a wide dynamicrange is required.For example,ifyou measure pulse widths with a12.5 ns resolution (80 MHz timebase) using a counter/timer with 32 bits,you can measure pulse widths up to 53 s [(232-1) x 12.5 ns)]with 12.5 ns resolution.
Data Acquisition andSignal ConditioningCounter/Timer Considerations
Number of Counter/Timers
The counter/timer is a basic unit ofhardware functionality on ameasurement device.The more counter/timers there are on a device,the more counting/timing operations that device can simultaneouslyperform.The number ofDMA channels determines how manybuffered,high-speed operations can be simultaneously performed.See page 393 for more information.
Maximum Source Frequency
Maximum source frequency represents the speed ofthe fastest signalthe counter can count.Ifyou use a higher source frequency,you canachieve higher resolution.For example,an 80 MHz counter cancount pulses that are 12.5 ns (1⁄80 x 10) apart.You can use prescalers toincrease the maximum source frequency for event counting andfrequency measurement.
6
FamilyNI 6601NI 6602NI 6608BusPCIPCIPXIPXI
Counter/Timers488
Size32 bits32 bits32 bits
Max SourceFrequency20 MHz180 MHz180 MHz1
Compatibility5 V TTL/CMOS5 V TTL/CMOS5 V TTL/CMOS
Digital I/OUp to 32Up to 32Up to 32
PulseGeneration
✓✓
✓
BufferedOperations
✓✓
✓
Debouncing/GlitchOscillatorRemovalStability✓50 ppm✓50 ppm
✓
75 ppb
GPS
Synchr.––✓
Buffered Operations2DMAInterrupt13353
5
Page
388388388
1Max Source Frequency with prescalers is 60 MHz for the NI 6601 and 125 MHz for the NI 6602 and NI 6608. These frequencies are dependent on drive strength of input signal and cable length. Consider these speeds to be the maximum. 2DMA transfers have higher throughput than interrupt transfers. See page 393 for detailed specifications.
386
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
Counter/Timer Overview
Counter/Timer OverviewSignal Compatibility
Signal compatibility indicates the signal levels a counter/timer canmeasure or output,such as TTL/CMOS.
Units used for stability are typically parts per million (ppm) andparts per billion (ppb).For example,the frequency ofa 10 MHzoscillator with 10 ppm stability can be 10 MHz ±100 Hz;with 100 ppb stability it can be 10 MHz ±1 Hz.
The best technique for improving oscillator stability is to preciselycontrol its temperature as is done in an oven-controlled crystaloscillator (OCXO).The PXI-6608 features such an oscillator.
Buffered Operations and DMA
The National Instruments counter/timers can capture numerousdata points without dead times.These types ofmeasurements,calledbuffered operations,are valuable in applications that range fromstatistical analysis on production lines to experiments in molecularchemistry.For instance,when you configure a counter for bufferedperiod measurement,data is moved from the counter into a buffer.Each edge that initiates a measurement also causes a transfer ofthecount into the buffer,as shown in Figure 1.With buffered operations,data is transferred to the computer memory using DMA orinterrupts.DMA offers a considerable performance advantage;ifyour application requires this performance simultaneously onmultiple counter/timers,you must know how many DMA channelsare available on a particular counter/timer device.For example,ifadevice contains three DMA channels and eight counter/timers,you can simultaneously perform three high-speed and five lower-speed,interrupt-based,buffered operations.On NI 660x devices,National Instruments implements DMA with the NI MITE chip,which is optimized for measurement applications.
Debouncing and Glitch Removal
Noisy signals containing glitches and/or bouncing effects posespecial challenges for some counter/timer measurements.Noise maybe introduced in the source ofthe signal,such as withelectromechanical relays,or in the connection ifthere are strongsources ofinterference in the vicinity ofthe system.NI 660x devicescontain programmable digital filters that eliminate measurementerrors caused by spurious spikes and bouncing.Figure 2 shows anexample ofdigital filtering.
Calibration
Calibration is a key component ofany measurement solution.In thecase ofcounter/timers,timebase calibration ensures that thefrequency and time measurements are accurate.Calibrationcertificates enclosed with the National Instruments counter/timersand periodic calibration satisfy your ISO-9000 requirements,certifying that your instrument has been properly calibrated.Seepage 21 for more information.
Data Acquisition andSignal ConditioningTimebase Stability
Timebase stability can be important when you need to make high-quality measurements.Crystal oscillators typically form the basis ofelectrical circuits used to drive timing ofa measurement application.In an ideal case,the oscillation frequency would be constant,but inreality,many factors influence the the behavior ofan oscillator.A commonly used measure ofquality for an oscillator is stability.
Start of MeasurementT1T2T3T4InputFiltered OutputFigure 2. Debouncing and Glitch RemovalInput SignalT1T1T2Measurement Data BufferT1T2T3T1T2T3T4Figure 1. Buffered Period Measurement with Counter/TimersNational Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
387
32-Bit Counter/Timers
32-Bit Counter/TimersNI 660x
•Up to eight 32-bit counter/timers•80 MHz maximum source frequency(125 MHz with prescalers)
•Debouncing and glitch removal•High-stability timebase (PXI-6608 only)
•GPS-based synchronization (PXI-6608 only)
•NI DAQ driver simplifies
configuration and measurements
•Windows 2000/NT/XP•Real-time performance with LabVIEW (p.134)
•Others such as Linux and Mac OS X(page 187)
Operating Systems
Recommended Software
•LabVIEW
•LabWindows/CVI•Measurement Studio•Visual Basic
•Visual C/C++,C#•NI-DAQ 7
See page 21.
Models
•NI PCI-6601•NI PCI-6602•NI PXI-6602•NI PXI-6608
Other Compatible SoftwareDriver Software (included)Calibration Certificate Included
Overview and Applications
Data Acquisition andSignal ConditioningThe PCI-6601 board features one NI-TIO ASIC for a total offour
NI 660x devices are timing and digital I/O (DIO) modules for PCIcounter/timers.The counters are software-compatible with thoseand PXI.They offer up to eight 32-bit counter/timers and up to found on E Series multifunction DAQ devices,but NI 660x devices32 lines of5 V TTL/CMOS-compatible digital I/O.You can performoffer additional capabilities.a wide variety ofbuffered measurements or other counter/timerEach counter has a gate,up/down,and source signal,which can betasks with NI 660x devices,including position or quadrature encodercontrolled by external or internal signals.Each counter has onemeasurement,event counting,period measurement,pulse-widthoutput that can be routed externally or to other counters on themeasurement,frequency measurement,pulse generation,and pulse-device.20 MHz and 100 kHz timebases are available on each devicetrain generation.for use with each counter/timer.In addition,an 80 MHz timebase is
available on the NI 6602 and NI 6608 devices.A hardware trigger can
Featuresbe used to start multiple counters simultaneously.See Table 1 forCounter/Timersmore information.The NI 660x devices are equipped with the NI-TIO ASIC,a National Instruments counter and digital I/O ASIC for advancedtiming and counting applications.Each NI 6602 and NI 6608 devicefeatures two NI-TIO ASICs to provide a total ofeight counter/timers.
Counter/Timers488
Max SourceFrequency20 MHz1 80 MHz180 MHz1
PulseGeneration
✓✓
✓
BufferedOperations
✓✓
✓
Debouncing/GlitchOscillatorRemovalStability✓50 ppm✓50 ppm
✓
75 ppb
GPS
Synchr.––✓
Buffered Operations2DMAInterrupt13353
5
Family
NI 6601NI 6602NI 6608BusPCIPCIPXIPXI
Size32 bits32 bits32 bits
Compatibility5 V TTL/CMOS5 V TTL/CMOS5 V TTL/CMOS
Digital I/OUp to 32Up to 32Up to 32
1Max Source Frequency with prescalers is 60 MHz for the NI 6601 and 125 MHz for the NI 6602 and NI 6608. These frequencies are dependent on drive strength of input signal and cable length. Consider these speeds to be the maximum. 2DMA transfers
have higher throughput than interrupt transfers.
Table 1. NI 660x Products Specifications Summary (See page 393 for detailed specifications.)
388
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
32-Bit Counter/Timers
32-Bit Counter/TimersHigh-Stability, Oven-Controlled Oscillator
The NI PXI-6608 module includes a high-stability 10 MHz oven-controlled crystal oscillator (OCXO) for high-precisionapplications.When the PXI-6608 is installed in the star trigger slotofa PXI chassis (Slot 2),you can drive the OCXO signal to the PXIbackplane for high-stability timing ofyour entire measurementsystem.The PXI-6602 and PXI-6608 feature phase-lock loop (PLL)circuitry so that the devices can synchronize their reference clocksto the backplane.
Synchronizing Networked Measurements with GPS
You can correlate measurements performed in a wide area using theGlobal Positioning System (GPS).With the PXI-6608,you cancorrelate data from several PXI chassis,determine the time when ahardware event occurs,or generate a pulse at a user-specified time.
I/O Connector
The NI 660x devices each have a 68-pin shielded,latching connector,with a SOURCE,GATE,UP/DOWN,and OUT signal for each ofthecounter/timers.PFI<8..31> can be used as general-purpose DIOlines when not used as counter/timer I/O signals.The DIOn lines arethe eight dedicated DIO lines.The PCI-6601 devices have the sameI/O interface,except that only counters 0-3 are present.
Debouncing and Glitch Removal
Each input on the NI 660x devices can be passed through a digitaldebouncing filter to eliminate glitches on the input signal.You canuse defined filter settings to remove noise/glitches narrower than 2.5 µs,500 ns,250 ns,and 50 ns from your input signal,or you can use oneofthe counters to create custom filter settings.
Driver Software
With NI-DAQ driver software,you can configure your devicesinteractively,write custom programs,and perform counter/timerI/O easily.NI-DAQ provides the counter/timer functions natively,so you can programmatically select whether you want to measureposition with a quadrature encoder,measure a frequency,outputa pulse train,or perform one ofthe other provided counter/timerfunctions.NI-DAQ also includes numerous example programs for LabVIEW and other ADEs to quickly get you started with your application.
Buffered Measurements
NI 660x devices use the National Instruments MITE bus interfacecontroller to implement bus-master DMA transfers.As a result,you can perform high-speed,continuous operations such asbuffered position encoder measurement and buffered periodmeasurement.You can perform one high-speed DMA-basedtransfer on the NI 6601 devices and up to three simultaneousDMA transfers on the NI 6602 and NI 6608 devices.You can useinterrupts for additional simultaneous buffered transfers.
Data Acquisition andSignal ConditioningOrdering InformationNI PCI-6601..................................................................777918-01NI PCI-6602..................................................................777531-01NI PXI-6602..................................................................777557-01NI PXI-6608..................................................................777937-01Includes NI-DAQ driver software and calibration certificate.Digital I/O
The NI-TIO ASIC also providesup to 32 DIO lines on the NI 660x devices.Eight lines arededicated to DIO,while theothers can be used for DIO whennot used by the counter/timers.DIO lines are individuallysoftware configurable for inputor output.
PFI31/SOURCE2GNDPFI28/OUT2PFI27/SOURCE3GNDPFI24/OUT3PFI23/SOURCE4 GNDPFI20/OUT4PFI19/SOURCE5GNDPFI16/OUT5PFI15/SOURCE6PFI14/GATE6GNDReservedGNDPFI9/UP_DOWN7PFI8/OUT7PFI7/DIO7GNDPFI4/DIO4PFI3/DIO3GNDPFI0/DIO0PFI32/OUT1PFI34/GATE1PFI35/SOURCE1PFI33/UP_DOWN1PFI36/OUT0ReservedPFI38/GATE0PFI39/SOURCE0+5VRTSI Bus and PXI Trigger Bus
NI 660x devices are equippedwith the RTSI bus or PXI trigger bus for multidevicesynchronization.Timing signalson an NI 660x device can be routed to or from otherdevices in your system toperform advanced timing andsynchronization.
3433323130292827262524232221201918171615141312111098765432168676665646362616059585756555453525150494847464544434241403938373635GNDPFI30/GATE2PFI29/UP_DOWN2GNDPFI26/GATE3PFI25/UP_DOWN3GNDPFI22/GATE4PFI21/UP_DOWN4GNDPFI18/GATE5PFI17UP_DOWN5ReservedGNDPFI13/UP_DOWN6PFI12/OUT6PFI11/SOURCE7PFI10/GATE7GNDGNDPFI6/DIO6PFI5/DIO5GNDPFI2/DIO2PFI1/DIO1ReservedGNDGNDPFI37/UP_DOWN0GNDReservedReservedGNDReservedFor information on extended warranty and value-addedservices,see page 20.Recommended ConfigurationsFamilyNI 6601NI 6602NI 6608DAQ DevicePCI-6601PCI-6602PXI-6602PXI-6608AccessoryCB-68LP (777145-01)BNC-2121 (778289-01)TB-2715 (778242-01)TB-2715 (778242-01)CableSH68-68-D1 (183432-01)SH68-68-D1 (183432-01)None requiredNone requiredSee page 390 for accessory and cable information.BUYONLINE!Visit ni.com/infoand enter pci6601,pci6602,pxi6602,and/or pxi6608.Figure 1. NI 660x I/O Connector
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
389
Counter/Timer Accessories and Cables
Counter/Timer Accessories and CablesAccessory and Cable Selection Process
Step 1.Select your counter/timer device from Tables 1 and 2.
Step 2.Using Tables 1 and 2 as a guide,determine which accessories are appropriatefor that device.Select an accessory using Table 3 as reference.
Step 3.Using Tables 1 and 2,determine the appropriate cable solution for yourselected counter/timer device and accessory.
Accessories
Figure 1. BNC-2121 Connector Block
BNC-2121 (See Figure 1)
Connector block with BNC and spring terminal connections for easy connection ofI/O signals to counter/timer devices.The BNC-2121 offers spring terminals,as wellas eight dedicated and six user-defined BNC connectors,which provide access to allI/O signals.This connector block is also a full-featured test accessory that providespulse-train,trigger,and quadrature encoder signals.For the connections,refer to the BNC-2121 user guide at ni.com/manuals
BNC-2121......................................................................................................778289-01Dimensions – 26.7 by 11.2 by 5.5 cm (8.0 by 4.4 by 2.2 in.)
Figure 2. CA-1000 Configurable Signal Conditioning Solution
CA-1000 (See Figure 2)
Configurable signal connectivity solution for connecting counter/timers to differenttypes ofstandard I/O connectors.You can also incorporate switches and LEDindicators.You can place the CA-1000 under a laptop PC,on a benchtop,or in a 19 in.rack.
CA-1000......................................................................................................See page 351Dimensions – 30.7 by 25.4 by 4.3 cm (12.1 by 10 by 1.7 in.)
PCI-6601, PCI-6602Accessories
BNC-2121, CA-1000, SCB-68,TBX-68, CB-68LP, and CB-68LPRTB-2715
Data Acquisition andSignal ConditioningCables–
R6868 or SH68-68-D1
N/A
Table 1. Accessories and Cables for PXI-6601 and PCI-6602
PXI-6602, PXI-6608Accessories
BNC-2121, CA-1000, SCB-68,TBX-68, CB-68LP, and CB-68LPRTB-2715
Cables–
R6868 or SH68-68-D1Connects directly to the device
Table 2. Accessories and Cables for PXI-6602 and PXI-6608
AccessoryBNC-2121CA-1000SCB-68TB-2715TBX-68CB-68LPCB-68LPRDescription
BNC connector block with built-in test features
Configurable connector accessory Shielded screw connector blockFront-mount terminal block for PXI-660x
DIN-rail connector blockLow-cost screw connector blockLow-cost screw connector block Page390390391391391391391
Table 3. Overview of Accessories
390
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
Counter/Timer Accessories and Cables
Counter/Timer Accessories and CablesSCB-68 Shielded I/O Connector Block (See Figure 3)
Shielded I/O connector block for easy connection ofI/O signals to the counter/timerdevices.The screw terminals are housed in a metal enclosure for protection fromnoise corruption.Combined with a shielded cable,the SCB-68 provides rugged,verylow-noise signal termination.The SCB-68 also includes two general-purposebreadboard areas.
SCB-68..............................................................................................................776844-01Dimensions – 19.5 by 15.2 by 4.5 cm (7.7 by 6.0 by 1.8 in)
Figure 3. SCB-68 Shielded I/O Connector Block
TB-2715 Terminal Block (See Figure 4)
With the TB-2715 terminal block for PXI counter/timer devices,you can connectsignals directly without additional cables.Screw terminals provide easy connection ofI/O signals.The TB-2715 latches to the front ofyour PXI module with locking screwsand provides strain relief.
TB-2715............................................................................................................778242-01Dimensions – 8.43 by 10.41 by 2.03 cm (3.32 by 4.1 by 0.8 in.)
TBX-68 I/O Connector Block with DIN-Rail Mounting (See Figure 5)
Termination accessory with 68 screw terminals for easy connection offield I/O signalsto the counter/timer devices.The TBX-68 is mounted in a protective plastic base withhardware for mounting on a standard DIN rail.
TBX-68..............................................................................................................777141-01Dimensions – 12.50 by 10.74 cm (4.92 by 4.23 in.)
Figure 4. TB-2715 I/O Terminal Block
Data Acquisition andSignal ConditioningCB-68LP and CB-68LPR I/O Connector Blocks (See Figure 6)
Low-cost termination accessories with 68 screw terminals for easy connection offieldI/O signals to the counter/timer devices.The connector blocks include standoffs foruse on a desktop or mounting in a custom panel.The CB-68LP has a verticallymounted 68-pin connector.The CB-68LPR has a right-angle mounted connector foruse with with the CA-1000.
CB-68LP............................................................................................................777145-01Dimensions – 14.35 by 10.74 cm (5.65 by 4.23 in.)
CB-68LPR........................................................................................................777145-02Dimensions – 7.62 by 16.19 cm (3.00 by 6.36 in.)
Figure 5. TBX-68 I/O Connector Block
Figure 6. CB-68LP and CB-68LPR I/O Connector Blocks
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
391
Counter/Timer Accessories and Cables
Counter/Timer Accessories and CablesCables
RTSI Bus Cables (See Figures 7 and 8)
Use RTSI bus cables to connect timing and synchronization signals amongmeasurement,vision,motion,and CAN boards for PCI.For systems using long andshort boards,order the extended RTSI cable.
2 boards..........................................................................................................776249-023 boards..........................................................................................................776249-034 boards..........................................................................................................776249-045 boards..........................................................................................................776249-05Extended,5 boards........................................................................................777562-05
Figure 7. RTSI Bus Cable
SH68-68-D1 Shielded Cable (See Figure 9)
Shielded 68-conductor cable terminated with two 68-pin female 0.050 series D-typeconnectors.This cable connects counter/timer devices to accessories.
1 m..................................................................................................................183432-012 m..................................................................................................................183432-02
R6868 Ribbon I/O Cable(See Figure 10)
Figure 8. Extended RTSI Bus Cable
68-conductor flat ribbon cable terminated with two 68-pin connectors.Use thiscable to connect the NI PCI-6601 to an accessory.For signal integrity with high-frequency signals,use the SH68-68-D1 with the NI 6602 and NI 6608.
1 m..................................................................................................................182482-01
Data Acquisition andSignal ConditioningCustom Connectivity Components
68-Pin Custom Cable Connector/Backshell Kit (See Figure 11)
68-pin female mating custom cable kit for use in making custom 68-conductorcables.Solder-cup contacts are available for soldering ofcable wires to the connector.68-pin custom cable kit................................................................................776832-01
Figure 9. SH68-68-D1 Shielded Cable
PCB Mounting Connectors
Printed circuit board (PCB) connectors for use in building custom accessories thatconnect to 68-conductor shielded and ribbon cables.Two connectors are available,one for right-angle and one for vertical mounting onto a PCB.
68-pin,male,right-angle mounting..............................................................777600-0168-pin,male,vertical mounting....................................................................777601-01
Figure 10. R6868 Ribbon I/O Cable
Figure 11. 68-Pin Custom Cable Kit
392
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
Counter/Timer Specifications
Counter/Timer SpecificationsSpecifications
These specifications are typical for 25 °C unless otherwise noted.
Timing I/O
General-Purpose Up/Down Counter/Timers
Number of channels
NI 6601......................................................NI 6602/6608.............................................Counter size/number of bits.............................Prescalers (per counter)...................................
4 up/down counters8 up/down counters32 bits
3 bits (divided by 8) 1 bit (divided by 2)
DMA channels
NI 6601......................................................1NI 6602/6608.............................................3
Oven-Controlled Crystal Oscillator (OCXO)(NI 6608 Only)
Frequency.........................................................OCXO accuracy.................................................Warm-up time (to within 0.02 ppm
of operating frequency).............................Frequency stability versus
supply voltage change (±5%)....................Temperature stability (0 to 50 °C)....................Drift in frequency.............................................
10 MHz
±0.0000075% (75 ppb)5 minutes
Disabled (by default)
Power-on state.................................................Input (high-Z), pulled low
Pull down current: 10 µA (min) to 200 µA (max)
Hysteresis.........................................................300 mV Schmitt triggersCompatibility....................................................5 V TTL/CMOS
Digital logic levels
Level
Input low voltageInput high voltage
Output low voltage (Iout= 4 mA)Output high voltage (Iout= 4 mA)
Minimum-0.3 V2.0 V–2.4 V
Maximum0.8 V5.25 V0.4 V–
≤0.005 ppm≤0.005 ppm
≤0.00045 ppm/day≤0.045 ppm/year
Allowed frequency adjustment........................0.5 ppm, typical
Note: You can use the OCXO to replace the PXI 10 MHz backplane clock when the PXI-6608 is installed in the PXI star trigger slot (Slot 2). You can also use it as the counter source or gate in any slot.
Digital I/O
Number of channels.........................................Compatibility....................................................Power-on state.................................................Pulldown current..............................................Hysteresis.........................................................Data transfers..................................................
Up to 32 input/output5 V TTL/CMOS
Input (high-Z), pulled low 10 µA (min) to 200 µA (max)300 mV Schmitt triggersUnstrobed I/O
Base clocks available
NI 6601......................................................100 kHz and 20 MHz
NI 6602/6608.............................................100 kHz, 20 MHz, and 80 MHzBase clock accuracy (NI 6601 and NI 6602)....±0.005% (50 ppm)1Base clock (OCXO) accuracy (NI 6608).............±0.0000075% (75 ppb)Maximum source frequency
External source selections...............................I/O connector, RTSI/PXI Trigger lines, software selectableExternal gate selections...................................I/O connector, RTSI/PXI Trigger lines, software selectable1 If a PXI-6608 is installed in slot 2 of a PXI chassis, then the PXI-6608 and any PXI-6602installed in that chassis inherit a base clock accuracy of ±0.0000075% (75 ppb).FamilyNI 6601NI 6602NI 6608
Without Prescaling
20 MHz80 MHz80 MHz
With Prescaling
60 MHz125 MHz125 MHz
Digital logic levels
Level
Input low voltageInput high voltage
Output low voltage (Iout= 4 mA)Output high voltage (Iout= 4 mA)
Minimum-0.3 V2.0 V–2.4 V
Maximum0.8 V5.25 V0.4 V–
Data Acquisition andSignal ConditioningRTSI Bus (PCI Only)
Trigger lines......................................................7Minimum pulse width
for trigger and clock..................................25 ns
Minimum source pulse duration
With prescalers.........................................3.5 ns; edge-detect modeWithout prescalers....................................5 ns; edge-detect modeMinimum gate pulse duration..........................5 ns; edge-detect modeFrequency ranges to measure or generate
PXI Trigger Bus (PXI Only)
Trigger lines......................................................6Star trigger.......................................................1
Data Transfers
FamilyNI 6601NI 6602NI 6608
Frequency to Measure
20 MHz80 MHz80 MHz
Min/Max Frequency to Generate
10 MHz40 MHz40 MHz
Bus Interface
PCI, PXI.............................................................Master, slave
Power Requirements
DeviceNI 6601NI 6602NI 6608
+5 VDC (±5%)*0.4 to 0.75 A0.5 to 1.5 A1 to 2.5 A
Power Available at I/O Connector
+4.65 to +5.25 VDC, 1 A+4.65 to +5.25 VDC, 1 A+4.65 to +5.25 VDC, 1 A
For more information, please visit ni.com/infoand enter exatzz.
Transfer modes.................................................DMA, interrupts, programmed I/O
*Excludes power consumed through I/O connector
Transfer rates
DMA1,2
Finite OperationBuffer Size (S)Rate (MS/s)
1005.01,0004.210,0002.0100,0001.8
Interrupt1,3
Finite OperationBuffer Size (S)Rate (kS/s)
100551,0004910,00049100,00048
Physical
Dimensions (not including connectors)
PCI..............................................................17.5 by 9.9 cm (6.9 by 3.9 in.)PXI..............................................................16.0 by 10.0 cm (6.3 by 3.9 in.)I/O connector....................................................68-pin male SCSI-II type
1Values may vary depending on your computer hardware, operating system and system
Environment
Operating temperature.....................................0 to 50 °CStorage temperature........................................-20 to 70 °C
Relative humidity.............................................10 to 90%, noncondensing
activity. Benchmark data was determined on a Pentium II 400 MHz computer with 64 MBRAM running Windows 98 and LabVIEW using one counter of a PCI-6602. 2The number ofsimultaneous DMA transfers you can perform is equivalent to the DMA channels available onyour device. 3The rate is based on one counter using the interrupts. If multiple countersshare interrupts, the transfer rate per counter is lower.Certifications and Compliances
CE Mark Compliance
Continuous OperationBuffer Size (MS)Rate (kS/s)5028Continuous Operation
Buffer Size (kS)Rate (kS/s)
5015
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
393
Counter/Timer Overview
Counter/Timer OverviewYou can use the versatile National Instruments counter/timer devicesto create a wide variety ofmeasurement solutions,includingmeasuring a number oftime-related quantities,counting events ortotalizing,and monitoring position with quadrature encoders.You can also use counter/timers to generate pulses and pulse trains.Counter/timers often fulfill critical timing functions as componentsofcomplex measurement systems.
The NI 660x counter/timers use the NI-TIO,a NationalInstruments ASIC chip specifically designed to meet the countingand timing requirements ofmeasurement applications that arebeyond the capabilities ofoff-the-shelfcomponents.The widerfunctionality and simple programming interface make the NI 660xyour best choice for counting and timing applications.
Example applications include frequency measurement,positionmeasurement,generation ofretriggerable pulses,frequency shift-keying,two-signal edge separation measurements,continuousbuffered event counting,and continuous buffered pulse trainmeasurements.The NI 660x counter/timer devices are readilyintegrated into measurement systems that require synchronizationacross multiple hardware devices because they are equipped with theNational Instruments PXI trigger bus or the RTSI bus.See thecounter/timer tutorial on page 789 for more information.
In addition to counter/timer functionality,the NI 660x productsinclude TTL/CMOS-compatible digital I/O ports that are bitconfigurable for input or output.
Counter/Timer Size or Number of Bits
The counter size or number ofbits indicates how high a counter cancount.For example,a 32-bit counter can count up to 232-1 or4,294,967,295 before it rolls over.A high number ofbits is beneficialin cases such as pulse width measurements where a wide dynamicrange is required.For example,ifyou measure pulse widths with a12.5 ns resolution (80 MHz timebase) using a counter/timer with 32 bits,you can measure pulse widths up to 53 s [(232-1) x 12.5 ns)]with 12.5 ns resolution.
Data Acquisition andSignal ConditioningCounter/Timer Considerations
Number of Counter/Timers
The counter/timer is a basic unit ofhardware functionality on ameasurement device.The more counter/timers there are on a device,the more counting/timing operations that device can simultaneouslyperform.The number ofDMA channels determines how manybuffered,high-speed operations can be simultaneously performed.See page 393 for more information.
Maximum Source Frequency
Maximum source frequency represents the speed ofthe fastest signalthe counter can count.Ifyou use a higher source frequency,you canachieve higher resolution.For example,an 80 MHz counter cancount pulses that are 12.5 ns (1⁄80 x 10) apart.You can use prescalers toincrease the maximum source frequency for event counting andfrequency measurement.
6
FamilyNI 6601NI 6602NI 6608BusPCIPCIPXIPXI
Counter/Timers488
Size32 bits32 bits32 bits
Max SourceFrequency20 MHz180 MHz180 MHz1
Compatibility5 V TTL/CMOS5 V TTL/CMOS5 V TTL/CMOS
Digital I/OUp to 32Up to 32Up to 32
PulseGeneration
✓✓
✓
BufferedOperations
✓✓
✓
Debouncing/GlitchOscillatorRemovalStability✓50 ppm✓50 ppm
✓
75 ppb
GPS
Synchr.––✓
Buffered Operations2DMAInterrupt13353
5
Page
388388388
1Max Source Frequency with prescalers is 60 MHz for the NI 6601 and 125 MHz for the NI 6602 and NI 6608. These frequencies are dependent on drive strength of input signal and cable length. Consider these speeds to be the maximum. 2DMA transfers have higher throughput than interrupt transfers. See page 393 for detailed specifications.
386
National Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
Counter/Timer Overview
Counter/Timer OverviewSignal Compatibility
Signal compatibility indicates the signal levels a counter/timer canmeasure or output,such as TTL/CMOS.
Units used for stability are typically parts per million (ppm) andparts per billion (ppb).For example,the frequency ofa 10 MHzoscillator with 10 ppm stability can be 10 MHz ±100 Hz;with 100 ppb stability it can be 10 MHz ±1 Hz.
The best technique for improving oscillator stability is to preciselycontrol its temperature as is done in an oven-controlled crystaloscillator (OCXO).The PXI-6608 features such an oscillator.
Buffered Operations and DMA
The National Instruments counter/timers can capture numerousdata points without dead times.These types ofmeasurements,calledbuffered operations,are valuable in applications that range fromstatistical analysis on production lines to experiments in molecularchemistry.For instance,when you configure a counter for bufferedperiod measurement,data is moved from the counter into a buffer.Each edge that initiates a measurement also causes a transfer ofthecount into the buffer,as shown in Figure 1.With buffered operations,data is transferred to the computer memory using DMA orinterrupts.DMA offers a considerable performance advantage;ifyour application requires this performance simultaneously onmultiple counter/timers,you must know how many DMA channelsare available on a particular counter/timer device.For example,ifadevice contains three DMA channels and eight counter/timers,you can simultaneously perform three high-speed and five lower-speed,interrupt-based,buffered operations.On NI 660x devices,National Instruments implements DMA with the NI MITE chip,which is optimized for measurement applications.
Debouncing and Glitch Removal
Noisy signals containing glitches and/or bouncing effects posespecial challenges for some counter/timer measurements.Noise maybe introduced in the source ofthe signal,such as withelectromechanical relays,or in the connection ifthere are strongsources ofinterference in the vicinity ofthe system.NI 660x devicescontain programmable digital filters that eliminate measurementerrors caused by spurious spikes and bouncing.Figure 2 shows anexample ofdigital filtering.
Calibration
Calibration is a key component ofany measurement solution.In thecase ofcounter/timers,timebase calibration ensures that thefrequency and time measurements are accurate.Calibrationcertificates enclosed with the National Instruments counter/timersand periodic calibration satisfy your ISO-9000 requirements,certifying that your instrument has been properly calibrated.Seepage 21 for more information.
Data Acquisition andSignal ConditioningTimebase Stability
Timebase stability can be important when you need to make high-quality measurements.Crystal oscillators typically form the basis ofelectrical circuits used to drive timing ofa measurement application.In an ideal case,the oscillation frequency would be constant,but inreality,many factors influence the the behavior ofan oscillator.A commonly used measure ofquality for an oscillator is stability.
Start of MeasurementT1T2T3T4InputFiltered OutputFigure 2. Debouncing and Glitch RemovalInput SignalT1T1T2Measurement Data BufferT1T2T3T1T2T3T4Figure 1. Buffered Period Measurement with Counter/TimersNational Instruments • Tel: (800) 433-3488•Fax: (512) 683-9300•info@ni.com•ni.com
387
因篇幅问题不能全部显示,请点此查看更多更全内容