Download PC214E - Amplicon

Transcript
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).
appendix for the 82C54 data sheet.
Returns Integer:
OK
or
ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls
registerBoard
TCsetClock
TCsetGate
See Also
TCsetCount
PC214E
See the
Page 65