Applications
A-8
High Speed Counter Encoder Module User Manual
Prescale Counting Applications (continued)
The
16-bit prescale 24-bit counting mode cascades the output of one 16-bit
counter
, in Divide-by-N mode, into the A input of the same channel’
s 24-bit
counter
. The B input jumper is set for Up Count Only
.
By using the repetitive nature of Divide-by-N mode, the output of the 16-bit
counter pulses the rollover signal, at every count of 1, into clock input A of
the 24-bit counter
. The output of the 16-bit counter is not controlled by the
Force Output On bit (WY19.09, .10, .13, or .14).
16-Bit Counter (2, 3, 5, or 6) Configuration:
•
Channel Count Format:
Down Counting.
•
Counter Preset V
alue:
Unsigned Integer
, 0 to 65535
prescale value to divide clock pulses
•
Counter Mode:
Divide-by-N.
•
Internal Gate:
Reset Flags, WY19.03, .04, .07, .08.
•
External Gate:
Use the RESET or INHIBIT signal.
24-Bit Counter (1 or 4) Configuration:
• Preset:
Per application.
•
Internal Inhibit:
Reset Flags, WY19.01, .05.
•
Internal Reset:
Reset Flags, WY19.02, .06.
•
Initial Output:
Off.
After programming, the 24-bit counter value is zero. On the first valid clock
pulse, the 16-bit counter is set to the preset value. The clock decrements the
count until the count value reaches 1. During the next clock pulse the
output turns On generating a carry into the 24-bit counter
. The 16-bit
preset is loaded, and counting continues with each clock. The carry is
generated every preset number of clocks. Setting the 16-bit Reset flag
pauses the counting. Clearing the flag reloads the preset value after the
first valid clock.
16-Bit Pr
escale
24-Bit Counting