Chapter 4
General-Purpose Counter/Timer
©
National Instruments Corporation
4-69
DAQ-STC Technical Reference Manual
4.8.7.4 UP/DOWN on G_CONTROL
When Gi_Up_Down is set to 3, the UP/DOWN control is controlled by G_CONTROL. When
G_CONTROLis ACTIVE, the counter counts up. When G_CONTROLis INACTIVE, the
counter counts down.
4.8.7.5 Generate Interrupt on G_GATE
When Gi_Gate_Interrupt_Enable is set to 1, interrupts are generated based on the following
table. Interrupts are generated only when a counter is armed.
4.8.7.6 Change Output Polarity on G_GATE
When Gi_Output_Mode is set to 3, the counter output (G_OUT) toggles on G_GATE
transition to ACTIVE and on every counter TC.
4.8.7.7 Select Load Register on G_CONTROL
When Gi_Gate_Select_Load_Source is set to 1, an ACTIVE G_CONTROL selects load
register A, and an INACTIVE G_CONTROL selects load register B.
1
Edge gating
0, 1, or 2
Counter reload occurs on G_CONTROL transition
to ACTIVE state.
1
Edge gating
3
Counter reload occurs on every G_CONTROL
transition.
Table 4-18.
Gate Interrupts
G_CONTROL
Conditioning
Gate on
Both Edges
Gate Interrupt
Level
0
Interrupt on G_GATE transition to INACTIVE state.
Edge gating
0
Interrupt on every G_GATE transition to active state.
Edge gating (double edge)
1
Interrupt on every G_GATE transition.
Table 4-17.
Reload on G_CONTROL Selections (Continued)
Loading
On Gate
GATE/
CONTROL
Conditioning
Trigger
Mode for
Edge Gate
Selected Reload Mode