Chapter 3
Analog Output Timing/Control
DAQ-STC Technical Reference Manual
3-120
©
National Instruments Corporation
3.8.3.5 BC Counter
The BC counter is a 24-bit down counter with dual-load registers and output save latch. The
BC counter typically counts the number of buffers to be output. The bitfield
AO_BC_Source_Select controls the BC_SRC. The choices for BC source are UPDATE
pulses or UC_TC pulses. Normally, the BC source is configured to count UC_TC pulses. The
counter load registers are directly accessible from the register map. If the counter is disarmed,
AO_BC_Load loads the counter with the value from the selected load register.
During normal operation, the BC counter will synchronously reload from the selected load
register following BC_TC. Two options—AO_BC_Reload_Mode and
AO_BC_Switch_Load_On_TC—change the selected load register under various conditions.
The options are to switch load registers on every BC_TC and to switch load registers on the
next BC_TC. The BC control circuit generates the count enable signals.
The BC save register latch signal asserts after a rising and then a falling edge of BC_SRC
following a 1 being written to AO_BC_Save_Trace. The BC save register latch signal
deasserts after a rising, then a falling edge of BC_SRC following a zero being written to
AO_BC_Save_Trace.
3.8.3.6 BC Control
The BC counter is controlled by a circuit whose state transitions are shown in Figure 3-39.
The BC counter control circuit has two states—WAIT and CNT. On power up, the control
circuit begins and remains in the WAIT state until the counter is armed and a START1 pulse
is received. The control circuit then transitions to the CNT state and remains there until the
count termination condition is reached.
The BC counter normally remains armed and retriggerable at the end of a waveform
generation sequence. The BC counter has the option AO_Trigger_Once to disarm itself after
the first BC_TC. At the end of a nonretriggerable waveform-generation sequence, the BC_TC
masks off the last UPDATE pulse to prevent an undesired output.