Instruction manual
AMPDIO DRIVERS
Page 109
Z1 = 16
Z2 = 20
chan short: timer/counter channel number within the
chip (0, 1 or 2).
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
See Also
6.4.5.3 Connect Timer/Counter Clock Source — TCsetClock
Configures a timer/counter clock input source.
i = TCsetClock (h, chip, chan, clk)
where h short: board handle as issued by the
registerBoardEx function.
chip short: address offset of the timer/counter chip.
One of the following pre-defined constants may
be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan short: timer/counter channel number within the
chip (0, 1 or 2).
clk short: clock source. One of the following pre-
defined constants representing the valid clock
sources may be used:
CLK_CLK = 0: external CLK(chan) i/p
CLK_10MHZ = 1: internal 10 MHz
CLK_1MHZ = 2: internal 1 MHz
CLK_100KHZ = 3: internal 100 kHz
CLK_10KHZ = 4: internal 10 kHz
CLK_1KHZ = 5: internal 1 kHz
CLK_OUTN_1 = 6: OUT(chan–1)
CLK_EXT = 7: external EXTCLK(chip) i/p
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx