Cascading Counters; Counter Filters - National Instruments NI USB-621x User Manual

Bus-powered m series usb devices
Hide thumbs Also See for NI USB-621x:
Table of Contents

Advertisement

t
At t
, the counter is armed. No measurements are taken until the counter is armed.
0
0
t
The rising edge of Gate indicates the beginning of the first period to measure. The
1
counter begins counting rising edges of Source.
t
The rising edge of the Sample Clock indicates that the USB M Series device should
2
store the result of the measurement of the current period when the period ends.
t
The rising edge of Gate indicates the end of the first period. The USB M Series device
3
stores the counter value in the buffer.
t
The rising edge of Gate indicates the end of the second period. Sample Clock did not
4
assert during this period, so the counter discards the measurement of the second period.
t
The rising edge of Gate indicates the end of the third period. Sample Clock asserts
5
during this period, so the USB M Series device stores the measurement in the buffer.

Cascading Counters

Counter Filters

Note NI-DAQmx only supports filters on counter inputs.
© National Instruments Corporation
Table 9-7. Time N Descriptions
You can internally route the Counter n Internal Output and Counter n TC
signals of each counter to Gate inputs of the other counter. By cascading
two counters together, you can effectively create a 64-bit counter. By
cascading counters, you also can enable other applications. For example, to
improve the accuracy of frequency measurements, use reciprocal frequency
measurement, as described in the
Frequencies Using Two Counters
You can enable a programmable debouncing filter on each PFI signal.
When the filters are enabled, your device samples the input on each rising
edge of a filter clock. M Series devices use an onboard oscillator to
generate the filter clock with a 40 MHz frequency.
The following is an example of low to high transitions of the input signal.
High to low transitions work similarly.
Assume that an input terminal has been low for a long time. The input
terminal then changes from low to high, but glitches several times. When
the filter clock has sampled the signal high on N consecutive edges, the low
to high transition is propagated to the rest of the circuit. The value of N
depends on the filter setting; refer to Table 9-8.
Method 3—Measure Large Range of
section.
9-33
Chapter 9
Counters
NI USB-621x User Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ni usb-621 series

Table of Contents