Chapter 8
Counters
8-26
ni.com
Counter
n
Source Signal
The selected edge of the Co
u
nter
n
So
u
rce signal increments and
decrements the co
u
nter val
u
e depending on the application the co
u
nter
is performing. Table 8-3 lists how this terminal is
u
sed in vario
u
s
applications.
Routing a Signal to Counter
n
Source
Each co
u
nter has independent inp
u
t selectors for the Co
u
nter
n
So
u
rce
signal. Any of the following signals can be ro
u
ted to the Co
u
nter
n
So
u
rce
inp
u
t:
•
80 MHz Timebase
•
20 MHz Timebase
•
100 kHz Timebase
•
(USB-6210/6211/6215 Devices)
PFI <0..3>
•
(USB-6212/6216 Devices)
PFI <0..15>
•
(USB-6218 Devices)
PFI <0..3>, PFI <8..11>
In addition, Co
u
nter 1 TC or Co
u
nter 1 Gate can be ro
u
ted to
Co
u
nter 0 So
u
rce. Co
u
nter 0 TC or Co
u
nter 0 Gate can be ro
u
ted to
Co
u
nter 1 So
u
rce.
Some of these options may not be available in some driver software.
Routing Counter
n
Source to an Output Terminal
Yo
u
can ro
u
te Co
u
nter
n
So
u
rce o
u
t to any o
u
tp
u
t PFI terminal.
Table 8-3.
Counter Applications and Counter
n
Source
Application
Purpose of Source Terminal
P
u
lse Generation
Co
u
nter Timebase
One Co
u
nter Time Meas
u
rements
Co
u
nter Timebase
Two Co
u
nter Time Meas
u
rements
Inp
u
t Terminal
Non-B
u
ffered Edge Co
u
nting
Inp
u
t Terminal
B
u
ffered Edge Co
u
nting
Inp
u
t Terminal
Two-Edge Separation
Co
u
nter Timebase