I/O Ports and Registers
CNT24-4(PCI)
52
One-shot pulse (Command 19h)
D7
D6
D5
D4
D3
D2
D1
D0
19h
One-shot pulse width data
When the counter values on the channels and the value in the
comparison register match, a one-shot pulse is output to each
channel. The pulse width is common to all channels and
determined by the data that is set. The range is 0msec -
104.45msec.
To set the pulse width, output the command (19h) to output port +0
and set the pulse width on output port +1. The one-shot width is
obtained from the following equation:
Pulse width data x 409.6 = Pulse width (used)
8 bits (converted to decimal)
Table 4.8. Relationship Between One-shot Pulse Width
Data and Pulse Width
One-shot pulse width data
D7
D0
[h]
Pulse width
0
0
0
0
0
0
0
0
00h
0
0
0
0
0
0
0
0
1
01h About 409.6
µ
sec
0
0
0
0
0
0
1
0
02h About 819.2
µ
sec
0
0
0
0
0
0
1
1
03h About 1.23msec
0
0
0
0
1
1
0
0
0Ch About 4.92msec
0
0
0
1
1
0
0
1
19h About 10.24msec
0
0
1
1
0
0
0
1
31h About 20.07msec
0
1
0
0
1
0
0
1
49h About 29.9msec
0
1
1
0
0
0
1
0
62h About 40.14msec
0
1
1
1
1
0
1
0
7Ah About 49.97msec
1
0
0
1
0
0
1
1
93h About 60.2msec
1
0
1
0
1
0
1
1
ABh About 70.04msec
1
1
0
0
0
1
0
0
C4h About 80.28msec
1
1
0
1
1
1
0
0
DCh About 90.11msec
1
1
1
1
0
1
0
1
F5h About 100.35msec
1
1
1
1
1
1
1
1
FFh About 104.45msec
Notes!
- The default is "Pulse width = 0 (00h)" (not output).
- The pulse width may fluctuate depending on the connection load
specification.