Instruction manual

Table Of Contents
Page
73
PC215E
6.6.4.5 Configure Timer/Counter Mode - TCsetMode
Sets a timer counter to one of its five available modes of operation. Reading and loading of
count values by LSB followed by MSB is selected, as is a 16-bit binary count.
i = TCsetMode (h, chip, chan, mde)
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).
mde Integer. Counter mode (0 to 5). See the
appendix for the 82C54 data sheet.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoard
TCsetClock
TCsetGate
See Also TCsetCount