© National Instruments
|
3-1
3
Counters
The NI 6612 has eight general-purpose 32-bit counter/timers and a frequency generator. The
general-purpose counter/timers can be used for many measurement and pulse generation
applications. Figure 3-1 shows Counter 0 and the frequency generator. All eight counters are
identical.
Figure 3-1.
Counter 0 and Frequency Generator
Counters have eight input signals, although in most applications only a few inputs are used.
Each counter has a FIFO that can be used for buffered acquisition and generation. Each counter
also contains an embedded counter (Embedded Ctr
n
) for use in what are traditionally
two-counter measurements and generations. The embedded counters cannot be programmed
independent of the main counter, and signals from the embedded counters are not routable.
Counter measurements support several options for determining when each measurement is
taken. For example, you can configure the counter to take a measurement on each edge of a
sample clock.
For measurements using a sample clock, you must configure the NI 6612 to route a signal to the
sample clock input of the counter. The NI 6612 does not have a dedicated circuit to generate a
Co
u
nter 0
Co
u
nter 0
S
o
u
rce (Co
u
nter 0 Time
bas
e)
Co
u
nter 0 A
u
x
Co
u
nter 0 HW Arm
Co
u
nter 0 A
Co
u
nter 0 B (Co
u
nter 0 Up_Down)
Co
u
nter 0 Z
Co
u
nter 0 G
a
te
Co
u
nter 0 Intern
a
l O
u
tp
u
t
Co
u
nter 0 TC
Inp
u
t
S
election M
u
xe
s
Fre
qu
ency Gener
a
tor
Fre
qu
ency O
u
tp
u
t Time
bas
e
Fre
q
O
u
t
Inp
u
t
S
election M
u
xe
s
Em
b
edded Ctr0
FIFO
Co
u
nter 0
Sa
mple Clock