—
Appendix
—
CONPROSYS Linux SDK User’s Manual (Self
-Build Edition)
—
55
—
Counter command port (Page 2h / Address 18h) W
D15 D14 D13 D12 D11 D10 D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
0
0
0
Cmd06 - 00
This port is an operation command port to execute the following command codes.
Command code list:
08h: Ch0 counter mode (Write)
09h: Ch1 counter mode (Write)
18h: Ch0 comparison register 0 (Write)
19h: Ch1 comparison register 0 (Write)
20h: Ch0 comparison register 1 (Write)
21h: Ch1 comparison register 1 (Write)
38h: Count match status check / clear (Read/Write)
3Ah: Carry status check / clear (Read/Write)
3Dh: Zero clear (Write)
When executing the command to write, the data are set into data address port (Page 2h / Address
1Ch
–
1Fh). When executing the command to read, the data are read from data address port (Page
2h / Address 1Ch
–
1Fh).
Control data address port after controlling the command port.
Refer to
Counter I/O unit port map (Page 2h (page 52)
” to “
”
regarding the format of the data address
port for each command code.
Ch0 / Ch1 counter mode (counter command code: 08h / 09h) W
Addr D15 D14 D13 D12 D11 D10 D9
D8 D7 D6 D5
D4 D3 D2 D1
D0
1Ch
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1Eh
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
This sets operation modes of the counter. Each mode can be set per input channel.
Ch0 / Ch1 comparison register 0 (counter command code: 18h / 19h) W
Addr D15 D14 D13 D12 D11 D10 D9
D8 D7 D6 D5
D4 D3 D2 D1
D0
1Ch
Data00
–
15
1Eh
0
0
0
0
0
0
0
0
Data16 - 25
This sets data into Ch0
–
Ch1 count value comparison register 0.
Summary of Contents for CONPROSYS Linux SDK
Page 4: ... 4 Introduction ...
Page 11: ... 11 Safety Precautions ...
Page 15: ... 15 SDK preparation ...
Page 19: ... 19 Starting CONPROSYS ...
Page 24: ... 24 Run environment setting ...
Page 44: ...Appendix ...