Quadrature State Machine
The following state machine
shows the states of the quadra-
ture pins. The two things to note
are that while the PD pin is
asserted, the state machine is
halted. Once PD is de-asserted,
the state machine picks up from
where it left off. State 0 is
entered after a power up reset.
PD
STATE 0
PD
+1
STATE 2
-1
STATE 1
PD
-1
STATE 3
+1
PD
Figure 18. Quadrature state machine.
STATE
0
1
2
3
X and Y
OUTPUT
AB
00
01
10
11
Quadrature Output Waveform
The two channel quadrature
outputs are 3.3 volt CMOS
outputs. The ∆x count is used to
generate the XA and XB signals,
and ∆y count is used for the YA
and YB signals.
XA
XB
-1
-1
-1
-1
YA
LEFT MOTION
(– DIRECTION)
YB
MOTION COUNT
-1
-1
-1
-1
DOWN MOTION
(– DIRECT ION)
MOTION COUNT
XA
XB
+1
+1
+1
+1
Figure 19. Quadrature output waveform.
YA
RIGHT MOTION
(+ DIRECTION)
YB
MOTION COUNT
+1
+1
+1
+1
UP MOTION
(+ DIRECTION)
MOTION COUNT
14