CNT24-4(PCI)
I/O Ports and Registers
53
Input Command
Read count value
(Command CH0:00h, CH1:05h, CH2:0Ah, CH3:0Fh)
By reading the read-out register of the corresponding channel the
count can be read.
To read the count, output the command to output port +0 and read
input port +1 three times (lower, middle, and upper bits).
The default of the read-out register is not determined.
The following sample program shows how to read the CH2 counter
value :
OUT
0, 0Ah (Select CH2 count data)
IN
1, (Lower bits)
IN
1, (Middle bits)
IN
1, (Upper bits)
Note!
First set the CH2 data latch to "1."