880
High-speed Counter/Pulse Output Instructions
Section 3-21
C: Control Data
The function of CTBL(882) is determined by the control data, C, as shown in
the following table.
TB: First Table Comparison Word
TB is the first word of the comparison table. The structure of the comparison
table depends on the type of comparison being performed.
For target value comparison, the length of the comparison table is determined
by the number of target values specified in TB. The table can be between 4
and 145 words long, as shown below.
For range comparison, the comparison table always contains eight ranges.
The table is 40 words long, as shown below. If it is not necessary to set eight
ranges, set the interrupt task number to FFFF hex for all unused ranges.
Note
Always set the upper limit greater than or equal to the lower limit for any one
range.
C
CTBL(882) function
0000 hex Registers a target value comparison table and starts comparison.
0001 hex Registers a range comparison table and performs one comparison.
0002 hex Registers a target value comparison table. Comparison is started with
INI(880).
0003 hex Registers a range comparison table. Comparison is started with INI(880).
TB+1
TB+2
TB+3
TB
0
15
0
3
4
7
8
0 0 0
0 0 0 0
11
12
14
15
TB+142
TB+143
TB+144
Lower word of target value 1
Upper word of target value 1
Interrupt task number for target value 1
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
Number of target values
0001 to 0030 hex (1 to 48 target values)
Interrupt Task Number
Interrupt task number
00 to FF hex (0 to 255)
Direction
OFF: Incrementing,
ON: Decrementing
Lower word of target value 48
Upper word of target value 48
Interrupt task number for target value 48
TB
TB+1
TB+2
TB+3
0
15
TB+35
TB+36
TB+37
TB+38
TB+39
Lower word of range 1 lower limit
Upper word of range 1 lower limit
Lower word of range 1 upper limit
Upper word of range 1 upper limit
Range 1 interrupt task number
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
Interrupt task number
0000 to 00FF hex: Interrupt task number 0 to 255
AAAA hex: Do not execute interrupt task.
FFFF hex: Ignore the settings for this range.
Lower word of range 8 lower limit
Upper word of range 8 lower limit
Lower word of range 8 upper limit
Upper word of range 8 upper limit
Range 8 interrupt task number
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...