Instruction manual

Table Of Contents
PC215E Page 74
6.6.4.6 Read Timer/Counter Status - TCgetStatus
Returns the mode and status of a timer/counter by performing a read-back operation on the
channel.
i = TCgetStatus (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:
Timer counter status byte. See 82C54 data sheet in the appendix
for details.
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
TCsetMode
TCsetCount
See Also TCgetCount