Instruction manual
AMPDIO DRIVERS
Page 148
Prior Calls registerBoardEx
TCsetRestrictedPulseTrain
See Also TCchangeRestrictedPulseTrainGate
TCchangeRestrictedPulseTrainFreq
TCchangeRestrictedPulseTrainCount
TCcontrolRestrictedPulseTrain
6.4.8.20 Set up a Hardware-Triggered One-Shot Pulse Train Generator — TCsetOneShotPulseTrain
Sets up a pulse train within a hardware-retriggerable one-shot period. The pulses are
generated on the specified 'pulse' chip and channel. The hardware-retriggerable one-shot
period is generated by the 'one-shot' channel. The 'one-shot' channel has a trigger input (on
the timer channel's gate input). A low-to-high transition on the trigger input will trigger (or
retrigger) the one-shot period.
SUPPORTED IN VERSION 4.32 ONWARDS.
The 'one-shot' channel is offset by -2 from the specified 'pulse' channel. If the 'pulse' channel
is timer channel 0 or 1 on a timer chip, the 'one-shot' channel will be channel 1 or 2 on the
next lower timer chip or on the highest timer chip.
If the board lacks clock connection and gate connection registers, the clock sources must be
wired up manually and the output of the 'one-shot' channel must be inverted and wired up
manually to the gate input of the 'pulse' channel. Also, the one-shot trigger input must be
wired up manually.
If a software trigger is desired for the one-shot, this may be accomplished by controlling the
trigger input directly if the board has gate connection registers, or by connecting the trigger
input to a digital output that is settable by software.
For PC214E: Timer Z1 channel 0 provides an inverted output on connector SK1 so this is best
used as the 'one-shot' channel, using Z1 channel 2 as the 'pulse' channel. Wire Ctr Z1 /OUT0
O/P (pin 54) to Ctr Z1 GAT2 I/P (pin 75), set J2 to the 'one-shot' clock source and set J4 to
the 'pulse' clock source. The pulse train output is on Ctr Z1 OUT2 O/P (pin 17) and the trigger
input is on Ctr Z1 GAT0 I/P (pin 73).
i = TCsetOneShotPulseTrain (h, pulseChip, pulseChan, pulseClock,
pulseCount, pulseShape, oneshotClock, oneshotTrigger, oneshotTime)
where h short: board handle as issued by the
registerBoardEx function.
pulseChip short: address offset of timer/counter chip for
the pulse generator. One of the following pre-
defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
pulseChan short: timer/counter channel number within the
chip for the pulse generator (0, 1 or 2). Another
timer/counter channel (pulseChan-2) will also