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