Word
WY21
WY22
Table 5-4 Channel 1, 24-Bit Counter: WY21 Programming Bit Values
Bit Position
01
02
03
04
05
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
01
02
03
04
05
0
0
0
0
0
1
0
1
01
02
03
04
05
1
0
1
0
1
1
1
1
*In this mode, the output is configured as borrow toggle and carry toggle. These outputs are the cycle completion indicator.
High Speed Counter Encoder Module User Manual
Table 5-3 Channel 1, 24-Bit Counter: Preset 1 Value
MSByte
1
2
3
4
5
1
2
3
4
5
Table 5-4 shows the counting options bit definitions. Shaded areas represent
the default modes (all bits are zero).
06
07
08
Mode
Direction counting (count: input A, direction: input B)
Direction counting (count: input A, direction: input B)
Up/Down counting (count up: input A, count down: input B)
Up/Down counting (count up: input A, count down: input B)
Quadrature 1X (input A pulses, input B pulses)
Quadrature 2X (input A pulses, input B pulses)
Quadrature 4X (input A pulses, input B pulses)
Quadrature 4X (input A pulses, input B pulses)
06
07
08
Counter Mode Setup
0
Binary counting, recycle mode
1
Binary counting, non-recycle mode*
0
Divide-by-N counting, recycle mode
1
Divide-by-N counting, non-recycle mode*
06
07
08
Internal Sample Interval
0
1 millisecond sample, (binary, recycle mode)
1
10 millisecond sample, (binary, recycle mode)
0
100 millisecond sample, (binary, recycle mode)
1
1 second sample, (binary, recycle mode)
0
Index or Period pulse latches counter value
1
Index or Period pulse loads counter with Preset 1 value
0
Output Compare, Latch, Compare Toggle, (select jumper to match)
1
Output Rollover, (select jumper to match)
6
7
8
9
10
6
7
8
9
10
Description
LSByte
11
12
13
14
15
11
12
13
14
15
Optional Configurations
16
16
5-13