Instruction manual

Table Of Contents
PC215E Page 84
6.6.6.3 Free-up Astable Multi-vibrator Counter/Timers - TCfreeAstable
Frees the two timer counters used for an astable multi-vibrator, as setup by the TCsetAstable
function.
i = TCfreeAstable (h, hA)
where
h Integer. Board handle as issued by the
registerBoard function.
hA Integer. Astable multi-vibrator handle as issued
by function TCsetAstable.
Returns Integer:
OK
or ERRHANDLE
ERRDATA
Prior Calls registerBoard
TCsetAstable
See Also
6.6.7 Millisecond Stopwatch Functions
6.6.7.1 Prepare a Millisecond Stopwatch - TCsetStopwatch
Sets up a stopwatch, which uses two timer/counters to count in milliseconds for just under 50
days. See section 4.2.4 for more details on the Stopwatch application.
i = TCsetStopwatch (h, chip, chan)
where
h Integer. Handle to previously registered board
chip Integer. Address offset of 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). This channel and the next
channel (chan + 1) are used. The second
channel may be on the next timer/counter chip.
Returns Integer:
Positive handle to the stopwatch. Use this in calls to the other
stopwatch functions to refer to this stopwatch.
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
See Also TCsetEventRecorder
TCstartStopwatch
TcfreeStopwatch