Instruction manual

Table Of Contents
PC215E Page 70
6.6.4.2 Free-up Timer/Counter - TCfreeResource
Frees a timer/counter channel previously reserved for use by one of the following functions:
TCsetMonoShot
TCgenerateFreq
TCmultiplyFreq
TCdivideFreq
N.B.: TCmultiplyFreq and TCdivideFreq use 2 timer/counters, so TCfreeResource should be
called twice when you’ve finished this these two functions.
i = TCfreeResource(h, chip, chan)
where h
Integer. Board handle as issued by the
registerBoard function.
chip Integer. 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 Integer. Timer/counter channel number within
the chip (0, 1 or 2).
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
See Also