Instruction manual

AMPDIO DRIVERS
Page 154
Z1 = 16
Z2 = 20
chan short: timer/counter channel number within the
chip for the pulse generator (0, 1 or 2).
clock short: clock source for the pulse generator.
One of the following pre-defined constants may
be used, or use -1 to choose a value
automatically for boards with clock connection
registers:
-1 (choose automatically)
CLK_10MHZ = 1 (fixed 10 MHz clock)
CLK_1MHZ = 2 (fixed 1 MHz clock)
CLK_100KHZ = 3 (fixed 100 kHz clock)
CLK_10KHZ = 4 (fixed 10 kHz clock)
CLK_1KHZ = 5 (fixed 1 kHz clock)
For PC214E, a clock source of 1 is treated as
CLK_1MHZ irrespective of the actual jumper
settings.
duty double:.proportion of the specified period to
spend with the output low, range 0 to 1.
period double: assumed period between hardware
triggers, used to calculate the output low time.
This is used to choose the internal clock
source when the clock source is chosen
automatically. This is just an assumed period.
The function has no control over the actual
period between triggers.
The maximum period is 65536s divided by the
frequency of the clock source, e.g. for
CLK_1KHZ the maximum period is 65.356s. If
the clock source is chosen automatically and
the card has clock connection registers, the
maximum period is as for CLK_1KHZ, i.e.
65.536s.
Returns short: Handle to the programmable width pulse generator (>= 0). Use this
handle to call the TCfreePWPulse function when finished, in order
to free up the counter/timer for re-use.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCfreePWPulse
TCchangePWPulseDutyCycle
TCchangePWPulsePeriod
TCcontrolPWPulse
TCsetMonoShot
TCsetPWMTrain