4. Using the I/O Address Map
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
27
Status Reset (command 12h)
Command D7 D6 D5 D4 D3 D2 D1 D0 Function Data
length
12h CH7
CH6
CH5
CH4
CH3
CH2
CH1
CH0
Status
Reset
8-bit
The interrupt sense sets an applicable bit to "1" when carry-up condition is detected on a given channel.
When the applicable bit is "1", an interrupt signal is not generated when another carry-up condition
arises. Issuing the value "+12h" to the output port +16 and the value "1" to the applicable bit on the
output port +17 clears the sense bit, and enables the generation of another interrupt signal.
Counter initialization (command 13h)
Command D7 D6 D5 D4 D3 D2 D1 D0 Function Data
length
13h CH7
CH6
CH5
CH4
CH3
CH2
CH1
CH0
Counter
initialization
8-bit
This command resets the counter data of each channel to 0000h.
The command issues the value "13h" to the output port +16, and resets on the output port +17 and sets
the applicable bit to "1".
Counter control (command 14h)
Command D7 D6 D5 D4 D3 D2 D1 D0 Function Data
length
14h CH7
CH6
CH5
CH4
CH3
CH2
CH1
CH0
Counter
control
8-bit
This command controls the corresponding count operation of channel. The command issues the value
"14h" to the output port +16, and sets a count control on the output port +17. The command controls the
count operation by setting the applicable bit to "1".
These bits are associated with the respective channels. Setting the value "1" to any of these bits starts counting.
Setting the value "0" to any of these bits stops counting.
CAUTION
-
The initial state is all channels stopped(00h).
-
The count data remains unchanged while the count is stopped.