4X Decoder
(Count Up & Count Down)
CHA
CHB
STATE
1
1
0
0
0
1
1
0
1
2
3
4
Pulse
Pulse
Pulse
Pulse
Figure 13. 4x Decoder Mode
2x
Count Up
2x
1x
Count Up
1x
CHA CHB STATE
Count Down
Count Down
1
1
0
0
0
1
1
0
1
2
3
4
Pulse
-
Pulse
-
-
Pulse
-
-
-
-
Pulse
Pulse
-
-
-
Pulse
Figure 14. 2x and 1x Decoder Modes
Design Considerations
The quadrature decoder
B. The system is cyclic with 32
bits of count per cycle. RST/ is
used to reset the counter every
cycle and the system uses the
data to interpolate within the
cycle.
circuitry imposes a second
timing constraint between the
external clock and the input
signals. There must be at least
one clock period between
consecutive quadrature states.
As shown in Figure 13, a
quadrature state is defined by
consecutive edges on both
The designer should be aware
that the operation of the digital
filter places a timing constraint
on the relationship between
incoming quadrature signals and
the external clock. Figure 12
shows the timing waveform with
an incremental encoder input.
Since an input has to be stable
for three rising clock edges, the
encoder pulse width (t - low
or high) has to be greater than
three clock periods (3t
guarantees that the
asynchronous input will be
stable during three consecutive
rising clock edges. A realistic
design also has to take into
account finite rise time of the
waveforms, asymmetry of the
waveforms, and noise. In the
presence of large amounts of
C. System count is >8, 16, 24, or
32 bits, so the count data is
used as a relative or
incremental position input for a
system software computation of
absolute position. In this case
counter rollover occurs. In order
to prevent loss of position
information, the processor must
read the outputs of the IC
before the count increments
one-half of the maximum count
capability. Two's-complement
arithmetic is normally used to
compute position from these
periodic position updates.
channels. Therefore, t
ES
(encoder state period) > t
.
CLK
E
The designer must account for
deviations from the nominal 90
degree phasing of input signals
). This
CLK
to guarantee that t > t
.
ES
CLK
Position Counter
This section consists of a 32-bit
(HCTL-20XX-XX) binary up/
down counter which counts on
rising clock edges as explained
in the Quadrature Decoder
noise, t should be much
Section. All 32 bits of data are
passed to the position data
latch. The system can use this
count data in several ways:
E
D. The system count is >32 bits
so the HCTL-2032 / 2032-SC
can be cascaded with other
standard counter ICs to give
absolute position.
greater than 3t
to allow for
CLK
the interruption of the
consecutive level sampling by
the three-bit delay filter. It
should be noted that a change
on the inputs that is qualified
by the filter will internally
propagate in a maximum of
seven clock periods.
A. System total range is 32 bits,
so the count represents
"absolute" position.
14