Single Point (On-Demand) Edge Counting; Buffered (Sample Clock) Edge Counting - National Instruments PCIe-6323 User Manual

Hide thumbs Also See for PCIe-6323:
Table of Contents

Advertisement

Chapter 7
Counters

Single Point (On-Demand) Edge Counting

With single point (on-demand) edge counting, the counter counts the number of edges on the
Source input after the counter is armed. On-demand refers to the fact that software can read the
counter contents at any time without disturbing the counting process. Figure 7-2 shows an
example of single point edge counting.
Figure 7-2. Single Point (On-Demand) Edge Counting
Counter Armed
SOURCE
Counter Value
0
1
2
3
4
5
You can also use a pause trigger to pause (or gate) the counter. When the pause trigger is active,
the counter ignores edges on its Source input. When the pause trigger is inactive, the counter
counts edges normally.
You can route the pause trigger to the Gate input of the counter. You can configure the counter
to pause counting when the pause trigger is high or when it is low. Figure 7-3 shows an example
of on-demand edge counting with a pause trigger.
Figure 7-3. Single Point (On-Demand) Edge Counting with Pause Trigger
Counter Armed
Pause Trigger
(Pause When Low)
SOURCE
0
0
1
2
3
4
5
Counter Value

Buffered (Sample Clock) Edge Counting

With buffered edge counting (edge counting using a sample clock), the counter counts the
number of edges on the Source input after the counter is armed. The value of the counter is
sampled on each active edge of a sample clock and stored in the FIFO. A DMA controller
transfers the sampled values to host memory.
The count values returned are the cumulative counts since the counter armed event. That is, the
sample clock does not reset the counter.
You can configure the counter to sample on the rising or falling edge of the sample clock.
7-4 | ni.com

Advertisement

Table of Contents
loading

Table of Contents