Quadrature Decoding - Texas Instruments MSP430x4xx Family User Manual

Hide thumbs Also See for MSP430x4xx Family:
Table of Contents

Advertisement

30.2.8 Quadrature Decoding

Figure 30−19. Sensor Position and Quadrature Signals
Sensor B
(Signal S2)
01
Sensor A
(Signal S1)
Sensor B
(Signal S2)
A
B
The Scan IF can be used to decode quadrature-encoded signals. Signals that
are 90° out of phase with each other are said to be in quadrature. To Create
the signals, two sensors are positioned depending on the slotting, or coating
of the encoder disk. Figure 30−19 shows two examples for the sensor
positions and a quadrature-encoded signal waveform.
Sensor A
Damping or "dark" area.
(Signal S1)
90
11
10
A
B
B
Quadrature decoding requires knowing the previous quadrature pair S1 and
S2, as well as the current pair. Comparing these two pairs will tell the direction
of the rotation. For example, if the current pair is 00 it can change to 01 or 10,
depending on direction. Any other change in the signal pair would represent
an error as shown in Figure 30−20.
Sensor B
(Signal S2)
00
01
A
A
B
B
Scan IF Operation
Sensor A
(Signal S1)
45
11
10
A
A
B
Scan IF
30-33

Advertisement

Table of Contents
loading

Table of Contents