
4. Using the I/O Address Map
CNT16-8(FIT)GY, CNT16-8L(FIT)GY
25
Status (command 12h)
Command D7 D6 D5 D4 D3 D2 D1 D0 Function Data
length
12h
CH7 CH6
CH5
CH4
CH3
CH2 CH1
CH0
Status
8-bit
Indicates a carry-up occurred for the count on each channel.
By issuing 12H to the output port +16 and reading the input port +17, you can monitor the status. The
corresponding bit is set to "1" when a carry-up occurs on a channel (CH7 - CH0).
0 : No carry
1 : Carry
CAUTION
- Initial
state:
00h
-
If an interrupt is generated with the interrupt option set, and if one of the bits in CH7 - CH0 is set to
[1], before another interrupt can be generated, the affected sense bit must be reset. For a description
of how to reset a sense bit, see "Sense Reset" on output ports.
Count control (Command 14h)
Command D7 D6 D5 D4 D3 D2 D1 D0 Function Data
length
14h
CH7 CH6
CH5
CH4
CH3
CH2 CH1
CH0
Count
control
8-bit
Count operating status of each channel is displayed.
You can monitor the operaing status by issuing the value 14h to the output port +16 and by reading the
input port +17.
0 : Stopping
1 : Operating
CAUTION
Initial
state:
00h
Digital Filter (command 15h)
Command D7 D6 D5 D4 D3 D2 D1 D0 Function Data
length
15h 0 0 0
ST4
ST3
ST2
ST1
ST0
Digital
Filter 5-bit
This can be used to check the settings for the digital filter.
Output 15H to output port +16 and read input port +17.