7-46
|
ni.com
Chapter 7
Counters
Prescaling
Prescaling allows the counter to count a signal that is faster than the maximum timebase of the
counter, as shown in Figure 7-39. X Series devices offer 8X and 2X prescaling on each counter
(prescaling can be disabled). Each prescaler consists of a small, simple counter that counts to
eight (or two) and rolls over. This counter can run faster than the larger counters, which simply
count the rollovers of this smaller counter. Thus, the prescaler acts as a frequency divider on the
Source and puts out a frequency that is one-eighth (or one-half) of what it is accepting.
Figure 7-39.
Prescaling
Prescaling is intended to be used for frequency measurement where the measurement is made on
a continuous, repetitive signal. The prescaling counter cannot be read; therefore, you cannot
determine how many edges have occurred since the previous rollover. Prescaling can be used for
event counting provided it is acceptable to have an error of up to seven (or one) ticks. Prescaling
can be used when the counter Source is an external signal. Prescaling is not available if the
counter Source is one of the internal timebases (100MHzTimebase, 20MHzTimebase, or
100kHzTimebase).
Synchronization Modes
The 32-bit counter counts up or down synchronously with the Source signal. The Gate signal and
other counter inputs are asynchronous to the Source signal, so X Series devices synchronize
these signals before presenting them to the internal counter.
Depending on how you configure your device, X Series devices use one of three synchronization
methods:
•
•
External Source Greater than 25 MHz
•
External or Internal Source Less than 25 MHz
Extern
a
l
S
ign
a
l
Co
u
nter V
a
l
u
e
Pre
s
c
a
ler Rollover
(U
s
ed
as
S
o
u
rce
b
y Co
u
nter)
0
1
Содержание 6368
Страница 1: ...PXIe 6368...