Complete monolithic R/D converter
Parallel and serial 12-bit data ports
System fault detection
Absolute position and velocity outputs
Differential inputs
±11 arc minutes of accuracy
1,000 rps maximum tracking rate, 12-bit resolution
Incremental encoder emulation (1,024 pulses/rev)
Programmable sinusoidal oscillator on-board
Compatible with DSP and SPI® interface standards
−40°C to +125°C temperature rating
44-lead LQFP package
4 kV ESD protection
FUNCTIONAL BLOCK DIAGRAM
with Reference Oscillator
GENERAL DESCRIPTION
The AD2S1200 is a complete 12-bit resolution tracking resolverto-digital converter, integrating an on-board programmable
sinusoidal oscillator that provides sine wave excitation for
resolvers. An external 8.192 MHz crystal is required to provide
a precision time reference. This clock is internally divided to
generate a 4.096 MHz clock to drive all the peripherals.
The converter accepts 3.6 V p-p ± 10% input signals, in the
range of 10 kHz to 20 kHz on the Sin and Cos inputs. A Type II
servo loop is employed to track the inputs and convert the input
Sin and Cos information into a digital representation of the
input angle and velocity. The bandwidth of the converter is set
internally to 1.7 kHz with an external 8.192 MHz crystal. The
maximum tracking rate is 1,000 rps.
REFBYP REFOUTFS1FS2XTALOUT
CLKIN
(8.192MHz)
AD2S1200
EXC
EXC
SinLO
Sin
CosLO
Cos
NM
SAMPLE
A
B
AD2S1200
ADC
ANGLE θ
ADC
ENCODER
EMULATION
VOLTAGE
REFERENCE
ERROR
CALCULATION/
SIGNAL
MONITOR
ANGLE φ
POSITION
INTEGRATOR
POSITION REGISTER
SOERDVELRESETDB10
MONITOR
ERROR
DATA BUS OUTPUT
DB11
SO
Figure 1.
REFERENCE
OSCILLATOR
(DAC)
SYNTHETIC
REFERENCE
DEMODULATOR
MULTIPLEXER
SCLK
(4.096MHz)
MONITOR
ERROR
DB9–DB0
INTERNAL
CLOCK
GENERATOR
(204.8kHz)
CLOCK
DIVIDER
FAULT
INDICATORS
DIGITAL
FILTER
VELOCITY
INTEGRATOR
VELOCITY REGISTER
CPO
DOS
LOT
DIR
CS
RD
04406-0-001
Rev. 0
Information furnished by Analog Devices is believed to be accurate and reliable.
However, no responsibility is assumed by Analog Devices for its use, nor for any
infringements of patents or other rights of third parties that may result from its use.
Specifications subject to change without notice. No license is granted by implication
or otherwise under any patent or patent rights of Analog Devices. Trademarks and
registered trademarks are the property of their respective owners.
Electric power steering
Electric vehicles
Integrated starter generator/alternator
Encoder emulation
Automotive motion sensing and control
PRODUCT HIGHLIGHTS
•Complete Resolver-to-Digital Interface: The AD2S1200
provides the complete solution for digitizing resolver
signals (12-bit resolution) with on-board programmable
sinusoidal oscillator.
•Triple Format Position Data: Absolute 12-bit angular
binary position data accessed either via a 12-bit parallel
port or via a 3-wire serial interface. Incremental encoder
emulation in standard A QUAD B format, with direction
output is available.
•Digital Velocity Output: 12-bit signed digital velocity,
twos complement format, accessed either via a 12-bit
parallel port or via a 3-wire serial interface.
quency easily programmable to 10 kHz, 12 kHz, 15 kHz, or
20 kHz by using the frequency select pins.
•Ratiometric Tracking Conversion: This technique
provides continuous output position data without
conversion delay. It also provides noise immunity and
tolerance of harmonic distortion on the reference and
input signals.
•System Fault Detection: A fault detection circuit will
detect any loss of resolver signals, out of range input
signals, input signal mismatch, or loss of position tracking.
Table 1. (AVDD = DVDD = 5.0 V ± 5% @ −40°C to +125°C CLKIN 8.192 MHz, unless otherwise noted.)
Parameter Min Typ Max Unit Conditions/Comments
Sin, Cos INPUTS1
Voltage 3.24 3.6 3.96 V p-p Sinusoidal waveforms, differential inputs
Input Bias Current 2 µA VIN = 3.96 V p-p
Input Impedance 1.0 MΩ VIN = 3.96 V p-p
Common Mode Volts 100 mV Peak CMV @ SinLO, CosLO, with respect to REFOUT @ 10 kHz
Phase Lock Range −45 +45 Degrees Sin/Cos vs. EXC output
ANGULAR ACCURACY
Angular Accuracy ±11 arc min Zero acceleration Y Grade
±22 arc min Zero acceleration W Grade
Resolution 12 Bits Guaranteed no missing codes
Linearity INL 2 LSB Zero acceleration, 0 to 1,000 rps
Linearity DNL 0.3 LSB Guaranteed monotonic
Repeatability 1 LSB
Hysteresis 1 LSB
VELOCITY OUTPUT
Velocity Accuracy 2 LSB Zero acceleration
Resolution 11 Bits
Linearity 1 LSB Guaranteed by design 2 LSB max
Offset 0 1 LSB Zero acceleration
Dynamic Ripple 1 LSB Zero acceleration
DYNAMIC PERFORMANCE
Bandwidth 1,500 1,700 2,000 Hz Fixed
Tracking Rate 1,000 rps Guaranteed by design. Tested to 800 rps.
Acceleration Error 30 arc min At 10,000 rps2
Settling Time 179° Step Input 4.72 5.0 ms To within stated accuracy
Settling Time 179° Step Input 3.7 3.8 ms To within one degree
EXC, EXC OUTPUTS
Voltage 3.34 3.6 3.83 V p-p Load ±100 µA
Center Voltage 2.39 2.47 2.52 V
Frequency 10 kHz FS1 = high, FS2 = high
12 kHz FS1 = high, FS2 = low
15 kHz FS1 = low, FS2 = high
20 kHz FS1 = low, FS2 = low
EXC/EXC DC Mismatch
THD −60 −55 dB First five harmonics
FAULT DETECTION BLOCK
LOS
Sin/Cos Threshold 2.86 2.92 3.0 V p-p
Angular Accuracy (Worst Case) 45 Degrees
Angular Latency (Worst Case) 90 Degrees
Time Latency 125 µs
35 mV
DOS and LOT go low when Sin or Cos fall below
threshold.
LOS indicated before angular output error exceeds limit
(3.96 V p-p input signal and 2.9 V LOS threshold).
Maximum electrical rotation before LOS is indicated
(3.96 V p-p input signal and 2.9 V LOS threshold).
1
The voltages Sin, SinLO, Cos, and CosLO relative to AGND must always be between 0.2 V and AVDD.
Rev. 0 | Page 4 of 24
AD2S1200
Parameter Min Typ Max Unit Conditions/Comments
FAULT DETECTION BLOCK (CONT.)
DOS
Sin/Cos Threshold 4.0 4.09 4.2 V p-p DOS goes low when Sin or Cos exceeds threshold.
Sin/Cos Mismatch 385 420 mV
Angular Accuracy (Worst Case) 30 Degrees
Angular Latency (Worst Case) 60 Degrees Maximum electrical rotation before DOS is indicated.
Time Latency 125 µs
LOT
Tracking Threshold 5 Degrees
Time Latency 1.1 ms
Hysteresis 4 Degrees Guaranteed by design
VOLTAGE REFERENCE
REFOUT 2.39 2.47 2.52 V ±IOUT = 100 µA
Drift 70 ppm/°C
PSRR −60 dB
CHARGE PUMP OUTPUT (CPO)
Frequency 204.8 kHz Square wave output
Duty Cycle 50 %
POWER SUPPLY
IDD Dynamic 18 mA
ELECTRICAL CHARACTERISTICS
VIL Voltage Input Low 0.8 V
VIH Voltage Input High 2.0 V
VOL Voltage Output Low 0.4 V 2 mA load
VOH Voltage Output High 4.0 V −1 mA load
IIL Low Level Input Current 10 µA
IIH High Level Input Current −10 µA
I
High Level Three-State Leakage −10 µA
OZH
I
Low Level Three-State Leakage 10 µA
OZL
DOS latched low when Sin/Cos amplitude mismatch
exceeds the threshold.
DOS indicated before angular output error exceeds
limit.
LOT goes low when internal error signal exceeds
threshold. Guaranteed by design.
Rev. 0 | Page 5 of 24
AD2S1200
ABSOLUTE MAXIMUM RATINGS
Table 2.
Parameter Rating
Supply Voltage (VDD) −0.3 V to +7.0 V
Supply Voltage (AVDD) −0.3 V to + 7.0 V
Input Voltage −0.3 V to VDD + 0.3 V
Output Voltage Swing −0.3 V to VDD + 0.3 V
Operating Temperature Range (Ambient) −40°C to +125°C
Storage Temperature Range −65°C to +150°C
Lead Temperature Soldering
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on
the human body and test equipment and can discharge without detection. Although this product features
proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy
electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance
degradation or loss of functionality.
Stresses above those listed under Absolute Maximum Ratings
may cause permanent damage to the device. This is a stress
rating only; functional operation of the device at these or any
other conditions above those indicated in the operational
sections of this specification is not implied. Exposure to
absolute maximum ratings for extended periods may affect
device reliability.
Figure 3. Classical Resolver vs. Variable Reluctance Resolver
R1
θ
R2
S1S3
V
= Vs× Sin(ϖt) × Sin(θ)
b
(B) VARIABLE RELUCTANCE RESOLVER
S2
Va = Vs× Sin(ϖt) × Cos(θ)
S4
04406-0-003
A resolver is a rotating transformer typically with a primary
winding on the rotor and two secondary windings on the stator.
In the case of a variable reluctance resolver, there are no windings on the rotor as shown in Figure 3. The primary winding is
on the stator as well as the secondary windings, but the saliency
in the rotor design provides the sinusoidal variation in the
secondary coupling with the angular position. Either way, the
resolver output voltages (S3–S1, S2–S4) will have the same
equations as shown in Equation 1.
13
0
42
0
θ
0
AngleShaft
=
ω
=
=
SintSinESS
×=−
CostSinESS
×=−
Equation 1.
θω
FrequencyExcitationRotortSin
AmplitudeExcitationRotorE
The stator windings are displaced mechanically by 90° (see
Figure 3). The primary winding is excited with an ac reference.
The amplitude of subsequent coupling onto the stator secondary windings is a function of the position of the rotor (shaft)
relative to the stator. The resolver, therefore, produces two
output voltages (S3–S1, S2–S4) modulated by the SinE and
CoSinE of shaft angle. Resolver format signals refer to the
signals derived from the output of a resolver as shown in
Equation 1. Figure 4 illustrates the output format.
S2 TO S4
(Cos)
S3 TO S1
(Sin)
R2 TO R4
(REF)
0°
90°180°
θ
270°360°
Figure 4. Electrical Resolver Representation
04406-0-004
Rev. 0 | Page 8 of 24
AD2S1200
φθ−φ
φ×θ×+φθ×
=
PRINCIPLE OF OPERATION
The AD2S1200 operates on a Type II tracking closed-loop
principle. The output continually tracks the position of the
resolver without the need for external convert and wait states.
As the resolver moves through a position equivalent to the least
significant bit weighting, the output is updated by one LSB.
The converter tracks the shaft angle θ by producing an output
angle ϕ that is fed back and compared to the input angle θ, and
the resulting error between the two is driven towards 0 when
the converter is correctly tracking the input angle. To measure
the error, S3–S1 is multiplied by Cosϕ and S2–S4 is multiplied
by Sinϕ to give
31
×
0
×
0
φθω
φθω
StoSCosSintSinE
42
StoSSinCostSinE
The difference is taken, giving
0
θ×ωSinCosCosSintSinE
Equation 2.
)(
This signal is demodulated using the internally generated
synthetic reference, yielding
0
Equation 3.
φθφθ
SinCosCosSinE−
)(
Equation 3 is equivalent to E0 Sin (θ − ϕ), which is
approximately equal to E
where
θ − ϕ = angular error.
The value E
(θ− ϕ) is the difference between the angular error
0
(θ − ϕ) for small values of θ − ϕ,
0
of the rotor and the converter’s digital angle output.
A phase-sensitive demodulator, integrators, and a compensation
filter form a closed-loop system that seeks to null the error
signal. When this is accomplished, ϕ equals the resolver angle θ
within the rated accuracy of the converter. A Type II tracking
loop is used so that constant velocity inputs can be tracked
without inherent error.
For more information about the operation of the converter, see
the Circuit Dynamics section.
FAULT DETECTION CIRCUIT
The AD2S1200 fault detection circuit will detect loss of resolver
signals, out of range input signals, input signal mismatch, or loss
of position tracking. In these cases, the position indicated by the
AD2S1200 may differ significantly from the actual shaft
position of the resolver.
Monitor Signal
The AD2S1200 generates a monitor signal by comparing the
angle in the position register to the incoming Sin and Cos
signals from the resolver. The monitor signal is created in a
similar fashion to the error signal described in the Principle of
Operation section. The incoming signals Sin
multiplied by the Sin and Cos of the output angle, respectively,
and then added together as shown below:
Equation 4.
Where A1 is the amplitude of the incoming Sin signal (A1 ×
Sin
θ), A2 is the amplitude of the incoming Cos signal (A2 ×
θ), θ is the resolver angle, and ϕ is the angle stored in the
Cos
position register. Note that Equation 4 is shown after demodulation, with the carrier signal Sin
ωt removed. Also note that for
matched input signal (i.e., no-fault condition), A1 = A2.
When A1 = A2 and the converter is tracking (
monitor signal output has a constant magnitude of A1 (Monitor
= A1 × (Sin
When A1
2
θ + Cos2 θ) = A1), independent of shaft angle.
≠ A2, the monitor signal magnitude varies between
A1 and A2 at twice the rate of shaft rotation. The monitor signal
is used as described in the following sections to detect
degradation or loss of input signals.
Loss of Signal Detection
Loss of signal (LOS) is detected when either resolver input (Sin
or Cos) falls below the specified LOS Sin/Cos threshold by
comparing the monitor signal to a fixed minimum value. LOS is
indicated by both DOS and LOT latching as logic low outputs.
The DOS and LOT pins are reset to the no fault state by a rising
edge of
SAMPLE
. The LOS condition has priority over both the
DOS and LOT conditions, as shown in Table 4. LOS is indicated
within 45° of angular output error worst case.
θ and Cosθ are
CosCosASinxSinAMonitor21
θ = ϕ), the
Rev. 0 | Page 9 of 24
AD2S1200
Signal Degradation Detection
Degradation of signal (DOS) is detected when either resolver
input (Sin or Cos) exceeds the specified DOS Sin/Cos threshold
by comparing the monitor signal to a fixed maximum value.
DOS is also detected when the amplitude of the input signals
Sin and Cos mismatch by more than the specified DOS Sin/
Cos mismatch by continuously storing the minimum and
maximum magnitude of the monitor signal in internal registers,
and calculating the difference between the minimum and
maximum. DOS is indicated by a logic low on the DOS pin, and
is not latched when the input signals exceed the maximum
input level. When DOS is indicated due to mismatched signals,
the output is latched low until a rising edge of
the stored minimum and maximum values. The DOS condition
has priority over the LOT condition, as shown in Table 4. DOS
is indicated within 30° of angular output error worst case.
Loss of Position Tracking Detection
Loss of tracking (LOT) is detected for three separate conditions:
•
When the internal error signal of the AD2S1200 has
exceeded 5°
When the input signal exceeds the maximum tracking rate
•
of 60,000 rpm (1,000 rps)
•
When the internal position (at the position integrator)
differs from the external position (at the position register)
by more than 5°
LOT is indicated by a logic low on the LOT pin, and is not
latched. LOT has a 4° hysteresis, and is not cleared until the
internal error signal or internal/external position mismatch is
less than 1°. When the maximum tracking rate is exceeded, LOT
is cleared when both the velocity is less than 1,000 rps and the
internal/external position mismatch is less than 1°. LOT can be
indicated for step changes in position (such as after a
signal is applied to the AD2S1200), or for accelerations
>~85,000 rps
2
. LOT is useful as a built-in test (BIT) that the
tracking converter is functioning properly. The LOT condition
has lower priority than both the DOS and LOS conditions as
shown in Table 4. The LOT and DOS conditions cannot be
indicated at the same time.
Table 4. Fault Detection Decoding
Condition DOS LOT Priority
Loss of Signal 0 0 1
Degradation of Signal 0 1 2
Loss of Tracking 1 0 3
No Fault 1 1
SAMPLE
RESET
resets
Responding to a Fault Condition
If any fault condition (LOS, DOS, or LOT) is indicated by the
AD2S1200, the output data must be presumed to be invalid.
This means that even if a
RESET
SAMPLE
or
pulse releases the
fault condition, the output data may be corrupted, even though
a fault may not be immediately indicated after the
SAMPLE
event. As discussed earlier, there are some fault
RESET
/
conditions with inherent latency. If the device fault is cleared,
there could be some latency in the resolver’s mechanical
position before the fault condition is re-indicated.
When a fault is indicated, all output pins will still provide data,
although the data may or may not be valid. The fault condition
will not force the parallel, serial, or encoder outputs to a known
state. However, a new startup sequence is recommended only
after a LOS fault has been indicated.
Response to specific fault conditions is a system-level
requirement. The fault outputs of the AD2S1200 indicate that
the device has sensed a potential problem with either the
internal or external signals of the AD2S1200. It is the
responsibility of the system designer to implement the
appropriate fault-handling schemes within the control hardware
and/or algorithm of a given application based on the indicated
fault(s) and the velocity or position data provided by the
AD2S1200.
False Null Condition
Resolver-to-digital converters that employ Type II tracking
loops based on the error equation (Equation 3) presented in the
Principle of Operation section can suffer from a condition
known as “false null.” This condition is caused by a metastable
solution to the error equation when θ − ϕ = 180°. The
AD2S1200 is not susceptible to this condition because its
hysteresis is implemented externally to the tracking loop.
Because of the loop architecture chosen for the AD2S1200, the
internal error signal always has some movement (1 LSB per
clock cycle), and so, in a metastable state, the converter will
always move to an unstable condition within one clock cycle,
causing the tracking loop to respond to the false null condition
as if it were a 180° step change in input position (the response
time is the same as specified in Dynamic Performance section
of Table 1). Therefore, it is impossible to enter the metastable
condition any time after the startup sequence as long as the
resolver signals are valid. However, in a case of a loss of signal, a
full reset is recommended to avoid the possibility of a false null
condition. The response to the false null condition has been
included in the value of t
Sequencing and Reset section.
provided in the Supply
TRACK
Rev. 0 | Page 10 of 24
AD2S1200
CONNECTING THE CONVERTER
Refer to Figure 5. Ground should be connected to the AGND
pin and DGND pin. Positive power supply V
should be connected to the AV
pin and DVDD pin. Typical
DD
values for the decoupling capacitors are 10 nF and 4.7 µF,
respectively. These capacitors should be placed as close to the
device pins as possible, and should be connected to both AV
and DV
. If desired, the reference oscillator frequency can be
DD
changed from the nominal value of 10 kHz using FS1 and FS2.
Typical values for the oscillator decoupling capacitors are 20 pF.
Typical values for the reference decoupling capacitors are 10 µF
and 0.01 µF, respectively.
S2
S6
S3S1
4.7µF
10µF
10nF
44
43
42
41
40
39
38
37
DD
DV
5V
1
2
3
4
5
6
7
8
9
10
11
12 13 14 15
DD
AGND
REFBYP
Cos
CosLO
AD2S1200
DGND16DV
4.7µF10nF
Figure 5. Connecting the AD2S1200 to a Resolver
Sin
AV
SinLO
DD
17 18 19 20 21 22
5V
= +5 V dc ± 5%
DD
R2
R1
5V
BUFFER
CIRCUIT
10nF
36 35
34
EXC
AGND
DGND
8.912
MHz
EXC
33
32
31
30
29
28
27
26
25
24
23
20pF20pF
RESET
DD
BUFFER
CIRCUIT
04406-0-005
The gain of the buffer depends on the type of resolver used.
Since the specified excitation output amplitudes are matched to
the specified Sin/Cos input amplitudes, the gain of the buffer is
determined by the attenuation of the resolver.
In this recommended configuration, the converter introduces a
V
/2 offset in the Sin, Cos signals coming from the resolver.
REF
Of course, the SinLO and CosLO signals may be connected to a
different potential relative to ground, as long as the Sin and Cos
signals respect the recommended specifications. Note that since
EXC
the EXC/
outputs are differential, there is an inherent gain
of 2×.
For example, if the primary to secondary turns ratio is 2:1, the
buffer will have unity gain. Likewise, if the turns ratio is 5:1, the
gain of the buffer should be 2.5×. Figure 6 suggests a buffer
circuit. The gain of the circuit is
)1/2(RRGain −=
R
2
1
2
R
×−
V
INREF
1
V
is set so that V
REF
and
VV
OUT
is always a positive value, eliminating the
OUT
R
+×=
1
R
need for a negative supply.
12V
EXC/EXC
(V
)
IN
5V
R1
(V
)
REF
442Ω 1.24kΩ
R2
12V
12V
2.7kΩ
2.7kΩ
33Ω
33Ω
V
OUT
04406-0-006
Figure 6. Buffer Circuit
Separate screened twisted cable pairs are recommended for
analog inputs Sin/SinLO and Cos/CosLO. The screens should
terminate to REFOUT. To achieve the dynamic performance
specified, an 8.192 MHz crystal must be used.
Rev. 0 | Page 11 of 24
AD2S1200
ABSOLUTE POSITION AND VELOCITY OUTPUT
The angular position and angular velocity are represented by
binary data and can be extracted either via a 12-bit parallel
interface or a 3-wire serial interface that operates at clock rates
CS
up to 25 MHz. The chip select pin,
enable the device. Angular position and velocity can be selected
using a dedicated polarity input,
SOE
Input
The serial output enable pin,
parallel interface. The
SOE
SOE
pin is held low to enable the serial
interface, which places pins (DB0–DB9) in the high impedance
state, while DB11 is the serial output (SO), and DB10 is the
serial clock input (SCLK).
Data Format
The digital angle signal represents the absolute position of the
resolver shaft as a 12-bit unsigned binary word. The digital
velocity signal is a 12-bit twos complement word, which
represents the velocity of the resolver shaft rotating in either a
clockwise or a counterclockwise direction.
RD
Finally, the
input is used to read the data from the output
register and to enable the output buffer. The timing
requirements for the read cycle are illustrated in Figure 7.
SAMPLE
Input
Data is transferred from the position and velocity integrators
respectively to the position and velocity registers following a
high to low transition of the
held low for at least t
RD
data.
rising edge of
should not be pulled low before this time. Also, a
SAMPLE
SAMPLE
ns to guarantee correct latching of the
1
resets the internal registers that contain
the minimum and maximum magnitude of the monitor signal.
PARALLEL INTERFACE
The angular position and angular velocity are available on the
AD2S1200 in two 12-bit registers, which can be accessed via the
12-bit parallel port. The parallel interface is selected holding the
SOE
pin high. Data is transferred from the velocity and position
, must be held low to
RDVEL
.
, is held high to enable the
signal. This pin must be
integrators, respectively, to the position and velocity registers
following a high-to-low transition on the
RDVEL
polarity pin selects which register from the position or
the velocity registers is transferred to the output register. The
SAMPLE
pin. The
CS
pin must be held low to transfer the selected data register to the
RD
output register. Finally, the
input is used to read the data
from the output register and to enable the output buffer. The
timing requirements for the read cycle are shown in Figure 7.
SAMPLE
Input
Data is transferred from the position and velocity integrators,
respectively, to the position and velocity registers following a
high-to-low transition on the
held low for at least t
RD
data.
should not be pulled low before this time since data
ns to guarantee correct latching of the
1
SAMPLE
signal. This pin must be
would not be ready. The converter will continue to operate
during the read process. Also, a rising edge of
SAMPLE
resets
the internal registers that contain the minimum and maximum
magnitude of the monitor signal.
CS
Input
The device will be enabled when CS is held low.
RDVEL
Input
RDVEL
velocity registers as shown in Figure 7.
angular position and low for angular velocity. The
must be set (stable) at least t
RD
input is used to select between the angular position and
RDVEL
is held high for
RDVEL
ns before the RD pin is pulled low.
4
Input
pin
The 12-bit data bus lines are normally in a high impedance
CS
state. The output buffer is enabled when
low. A falling edge of the
RD
signal transfers data to the output
and RD are held
buffer. The selected data is made available to the bus to be read
within t
high impedance state when the
t
reapplied a minimum of t
ns of the RD pin going low. The data pins will return to
6
RD
returns to high state, within
ns. If the user is reading data continuously, RD can be
7
ns after it was released.
5
Rev. 0 | Page 12 of 24
AD2S1200
t
CK
CLKIN
t
1
7
04406-0-007
SAMPLE
CS
RD
RDVEL
DATA
DON'T CARE
t
1
t
2
t
3
t
5
t
4
t
6
t
3
t
5
t
4
VELPOS
t
7
t
6
t
Figure 7. Parallel Port Read Timing
Table 5. Parallel Port Timing
Parameter Description Min Typ Max
tCK
t1
t2
t3
t4
t5
t6
t7
Clock Period (= 1/8.192 MHz)
SAMPLE
Delay from SAMPLE
RD
Set Time RDVEL
Hold Time RDVEL
Enable Delay RD
Disable Delay RD
Pulse Width
before RD/CS Low
Pulse Width
before RD/CS Low
after RD/CS Low
/CS Low to Data Valid
/CS Low to Data High Z
2 × t
+ 20 ns
CK
6 × t
+ 20 ns
CK
18 ns
5 ns
7 ns 12 ns
18 ns
~122 ns
Rev. 0 | Page 13 of 24
AD2S1200
SERIAL INTERFACE
The angular position and angular velocity are available on the
AD2S1200 in two 12-bit registers. These registers can be
RDVEL
CS
RDVEL
RD
, and SCLK, that
polarity pin
pin must be held
input), one
RDVEL
status
RDVEL
accessed via a 3-wire serial interface, SO,
operates at clock rates up to 25 MHz and is compatible with SPI
and DSP interface standards. The serial interface is selected by
SOE
holding low the
pin. Data from the position and velocity
integrators are first transferred to the position and velocity
registers, using the
SAMPLE
pin. The
selects which register from the position or the velocity registers
is transferred to the output register. The
low to transfer the selected data register to the output register.
RD
Finally, the
input is used to read the data that will be
clocked out of the output register and will be available on the
serial output pin, SO. When the serial interface is selected, DB11
is used as the serial output pin, SO, and DB10 is used as the
serial clock input, SCLK, while pins DB0–DB9 are placed in the
high impedance state. The timing requirements for the read
cycle are described in Figure 8.
SO Output
The output shift register is 16-bit wide. Data is shifted out of the
device as a 16-bit word under the control of the serial clock
input, SCLK. The timing diagram for this operation is shown in
Figure 8. The 16-bit word consists of 12 bits of angular data
(position or velocity depending on
status bit and three status bits, a parity bit, degradation of signal
bit, and loss of tracking bit. Data is read out MSB first (bit 15)
on the SO pin. Bit 15 through bit 4 correspond to the angular
information. The angular position data format is unsigned
binary, with all zeros corresponding to 0 degrees and all ones
corresponding to 360 degrees –l LSB. The angular velocity data
format instead is twos complement binary, with the MSB
representing the rotation direction. Bit 3 is the
bit, 1 indicating position and 0 indicating velocity. Bit 2 is DOS,
the degradation of signal flag (refer to the Fault Detection
Circuit section). Bit 1 is LOT, the loss of tracking flag (refer to
the Fault Detection Circuit section). Bit 0 is PAR, the parity bit:
both position and velocity data are odd parity format; the data
read out will always contain an odd number of logic highs (1s).
SAMPLE
Input
Data is transferred from the position and velocity integrators,
respectively, to the position and velocity registers following a
high-to-low transition on the
held low for at least t
RD
data.
should not be pulled low before this time since data
ns to guarantee correct latching of the
1
SAMPLE
signal. This pin must be
would not be ready. The converter will continue to operate
during the read process.
CS
Input
The device will be enabled when CS is held low.
RD
Input
The 12-bit data bus lines are normally in a high impedance
CS
state. The output buffer is enabled when
low. The
RD
input is an edge-triggered input that acts as frame
and RD are held
synchronization signal and output enable. A falling edge of the
RD
signal transfers data to the output buffer and data will be
available on the serial output pin, SO.
before the data is valid on the outputs. After
RD
must be held low for t9
RD
goes low, the
serial data will be clocked out of the SO pin on the falling edges
of the SCLK (after a minimum of t
ns): the MSB will be
10
already available at the SO pin on the very first falling edge of
the SCLK. Each other bit of the data word will be shifted out on
the rising edge of SCLK and will be available at the SO pin on
the falling edge of SCLK for the next 15 clock pulses.
RD
The high-to-low transition of
must happen during the high
time of the SCLK to avoid MSB being shifted on the first rising
RD
edge of the SCLK and lost.
may rise high after the falling
edge of the last bit transmitted. Subsequent negative edges
greater than the defined word length will clock zeros from the
RD
data output if
data continuously,
remains in a low state. If the user is reading
RD
can be reapplied a minimum of t5 ns after
it is released.
RDVEL
Input
RDVEL
velocity registers.
low for angular velocity. The
least t
input is used to select between the angular position and
RDVEL
ns before the RD pin is pulled low.
4
is held high for angular position and
RDVEL
pin must be set (stable) at
Rev. 0 | Page 14 of 24
AD2S1200
t
CK
CLKIN
SAMPLE
CS
RD
RDVEL
SO
RD
SCLK
SO
t
1
t
2
t
3
t
5
t
4
t
6
t
8
t
SCLK
t
10
MSBMSB–1LSBRDVELDOSLOTPAR
t
9
t
3
t
5
t
4
t
6
t
7
VELPOS
Figure 8. Serial Port Read Timing
t
1
t
7
t
11
04406-0-008
Table 6. Serial Port Timing
Parameter Description Min Typ Max
t8
t9
MSB Read Time from RD
Enable Time RD
/CS to DB Valid
/CS to SCLK
15 ns t
SCLK
12 ns
t10 Delay SCLK to DB Valid 14 ns
t11
t
Serial Clock Period (25 MHz Max) 40 ns
SCLK
Disable Time RD
/CS to DB High Z
18 ns
Rev. 0 | Page 15 of 24
AD2S1200
INCREMENTAL ENCODER OUTPUTS
The incremental encoder emulation outputs A, B, and NM are
free running and are always valid, providing that valid resolver
format input signals are applied to the converter.
The AD2S1200 emulates a 1024-line encoder. Relating this to
converter resolution means one revolution produces 1,024 A, B
pulses. A leads B for increasing angular rotation (i.e., clockwise
direction). The addition of the DIR output negates the need for
external A and B direction decode logic. The DIR output
indicates the direction of the input rotation and it is high for
increasing angular rotation. DIR can be considered as an
asynchronous output and can make multiple changes in state
between two consecutive LSB update cycles. This occurs when
the direction of rotation of the input changes but the magnitude
of the rotation is less than 1 LSB.
The north marker pulse is generated as the absolute angular
position passes through zero. The north marker pulse width is
set internally for 90° and is defined relative to the A cycle.
Figure 9 details the relationship between A, B, and NM.
A
B
NM
Figure 9. A, B, and NM Timing for Clockwise Rotation
Unlike incremental encoders, the AD2S1200 encoder output is
not subject to error specifications such as cycle error, eccentricity, pulse and state width errors, count density, and phase ϕ. The
maximum speed rating,
maximum switching frequency,
PPR).
lution (
n, of an encoder is calculated from its
f
, and its pu l ses per revo-
MAX
×=60
f
MAX
PPR
n
The AD2S1200 A, B pulses are initiated from XTALOUT, which
has a frequency of 4.096 MHz. The equivalent encoder
switching frequency is
)14(024.1096.44/1PulseUpdatesMHzMHz==×
04406-0-009
At 12 bits, the PPR = 1,024. Therefore, the maximum speed, n,
of the AD2S1200 is
=
000,024,160=×
024,1
rpmn60000
To get a maximum speed of 60,000 rpm, an external crystal of
8.192 MHz has to be chosen in order to produce an internal
CLOCKOUT equal to 4.096 MHz.
This compares favorably with encoder specifications where f
MAX
is specified from 20 kHz (photo diodes) to 125 kHz (laser
based) depending on the light system used. A 1,024 line laserbased encoder will have a maximum speed of 7,300 rpm.
The inclusion of A, B outputs allows the AD2S1200 plus
resolver solution to replace optical encoders directly without the
need to change or upgrade existing application software.
ON-BOARD PROGRAMMABLE SINUSOIDAL
OSCILLATOR
An on-board oscillator provides the sinusoidal excitation signal
(EXC) to the resolver as well as its complemented signal (
The frequency of this reference signal is programmable to four
standard frequencies (10 kHz, 12 kHz, 15 kHz, or 20 kHz) using
the FS1 and FS2 pins (see Table 7). FS1 and FS2 have internal pullups, so the default frequency is 10 kHz. The amplitude of this
signal is centered on 2.5 V and has an amplitude of 3.6 V p-p.
Table 7. Excitation Frequency Selection
Frequency Selection (kHz) FS1 FS2
10 1 1
12 1 0
15 0 1
20 0 0
The reference output of the AD2S1200 will need an external
buffer amplifier to provide gain and the additional current to
drive a resolver. Refer to Figure 6 for a suggested buffer circuit.
The AD2S1200 also provides an internal synchronous reference
signal that is phase locked to its Sin and Cos inputs. Phase
errors between the resolver primary and secondary windings
could degrade the accuracy of the RDC and are compensated by
this synchronous reference signal. This also compensates the
phase shifts due to temperature and cabling and eliminates the
need of an external preset phase compensation circuits.
EXC
).
Rev. 0 | Page 16 of 24
AD2S1200
Synthetic Reference Generation
When a resolver undergoes a high rotation rate, the RDC tends
to act as an electric motor and produces speed voltages, along
with the ideal Sin and Cos outputs. These speed voltages are in
quadrature to the main signal waveform. Moreover, nonzero
resistance in the resolver windings causes a non-zero phase shift
between the reference input and the Sin and Cos outputs. The
combination of speed voltages and phase shift causes a tracking
error in the RDC that is approximated by
After a rising edge on the
allowed at least 20 ms (t
circuitry to stabilize and the tracking loop to settle to the step
change in input position. After t
applied, releasing the LOT and DOT pins to the state determined by the fault detection circuitry and providing valid
position data at the parallel and serial outputs (note that if
position data is being acquired via the encoder outputs, they
may be monitored during t
RESET
input, the device must be
) as shown in Figure 10 for internal
TRACK
SAMPLE
TRACK
TRACK
).
, a
pulse must be
ShiftPhaseError
×=
RateRotation
FrequencyReference
To compensate for the described phase error between the
resolver reference excitation and the Sin/Cos signals, an internal
synthetic reference signal is generated in phase with the reference frequency carrier. The synthetic reference is derived using
the internally filtered Sin and Cos signals. It is generated by
determining the zero crossing of either the Sin or Cos (whichever signal is larger, to improve phase accuracy) and evaluating
the phase of the resolver reference excitation. The synthetic
reference reduces the phase shift between the reference and
Sin/Cos inputs to less than 10°, and will operate for phase shifts
of ±45°.
SUPPLY SEQUENCING AND RESET
The AD2S1200 requires an external reset signal to hold the
RESET
input low until VDD is within the specified operating
range of 4.5 V to 5.5 V.
RESET
The
V
DD
RESET
a value of 0x000 (degrees output through the parallel, serial, and
encoder interfaces) and causes LOS to be indicated (LOT and
DOS pins pulled low) as shown in Figure 10.
pin must be held low for a minimum of 10 µs after
is within the specified range (t
in Figure 10). Applying a
RST
signal to the AD2S1200 initializes the output position to
RESET
The
RESET
SAMPLE
LOT
DOS
pin is internally pulled up.
4.75V
V
DD
Figure 10. Power Supply Sequencing and Reset
t
RSTtRST
t
TRACK
VALID
OUTPUT
DATA
04406-0-010
CHARGE PUMP OUTPUT
A 204.8 kHz square wave output with 50% duty cycle is available at the CPO output pin of the AD2S1200. This square wave
output can be used for negative rail voltage generation, or to
create a V
CC
rail.
Failure to apply the above (correct) power-up/reset sequence
can result in an incorrect position indication.
Rev. 0 | Page 17 of 24
AD2S1200
θ
c
+
CIRCUIT DYNAMICS
AD2S1200 LOOP RESPONSE MODEL
ERROR
(ACCELERATION)
IN
k1 × k2
–
Figure 11. RDC System Response Block Diagram
1–z
Sin/Cos LOOKUP
The RDC is a mixed-signal device, which uses two A/D
converters to digitize signals from the resolver and a Type II
tracking loop to convert these to digital position and velocity
words.
The first gain stage consists of the ADC gain on the Sin/Cos
inputs, and the gain of the error signal into the first integrator.
The first integrator generates a signal proportional to velocity.
The compensation filter contains a pole and a zero, used to
provide phase margin and reduce high frequency noise gain.
The second integrator is the same as the first integrator and
generates the output position from the velocity signal. The
Sin/Cos lookup has unity gain. Values are given below for each
section:
• ADC gain parameter
(k1
= 1.8/2.5)
nom
• Error gain parameter
• Compensator zero coefficient
• Compensator pole coefficient
• Integrator gain parameter
• INT1 and INT2 transfer function
• Compensation filter transfer
function
VELOCITY
c1–az–1c
–1
1–bz
–1
1
k
1–z
IN
=
REF
4095
=a
4096
4085
=b
4096
1
=c
4096000
zI
=
)(
1
−
1
=
)(
zC
1
θ
–1
)(
VV
p
)(
VV
1
−
z
az
−
−
bz
OUT
π×=2101826xk
1
−
1
−
04406-0-011
The closed-loop magnitude and phase responses are that of a
second-order low-pass filter (see Figure 12 and Figure 13).
To convert G(z) into the s-plane, we perform an inverse bilinear
transformation by substituting for z, where T = the sampling
period (1/4.096 MHz
≈ 244 ns).
z
=
2
s
+
T
2
s
−
T
Substitution yields the open-loop transfer function G(s).
22
Ts
1
s
1
sT
)1(21
akk
)(
sG
=
−×
×
ba
−
++
4
2
s
×+
×
1
s
×+
)1(
aT
)1(2
a
−
)1(
bT
+
)1(2
b
−
This transformation produces the best matching at low
frequencies (f << f
). At lower frequencies (within the
SAMPLE
closed-loop bandwidth of the AD2S1200), the transfer function
can be simplified to
K
1
st
+
sG
×≅
2
s
a
)(
1
1
st
+
2
where:
+
)1(
aT
=
t
1
−
)1(2
a
+
)1(
bT
=
t
2
K
Solving for each value gives t1 = 1 µs, t2 = 90 µs, and Ka ≈ 7.4 ×
-
6
2
s
. Note that the closed-loop response is described as
10
−
)1(2
b
=
a
sH
)(
=
+
)1(21
−×
akk
ba
−
sG
)(
sG
)(1
By converting to the s-domain, we are able to quantify the
open-loop dc gain (K
). This value is useful during calculation
a
of acceleration error of the loop as discussed in the Sources of
Error
section.
• R2D open-loop transfer function
• R2D closed-loop transfer function
zH+=
)(
2
zCzIkkzG×××=
zG
)(
zG
)(1
The step response to a 10° input step is shown in Figure 14.
)()(21)(
Because the error calculation (Equation 3) is nonlinear for large
values of θ
position (90°
− ϕ, the response time for larger step changes in
–180°) will typically take three times as long as the
response to a small step change in position (<20°). In response
to a step change in velocity, the AD2S1200 will exhibit the same
response characteristics as for a step change in position.
Rev. 0 | Page 18 of 24
AD2S1200
5
–0
–5
–10
–15
–20
–25
MAGNITUDE (dB)
–30
–35
–40
–45
1
1010010k1k
100k
04406-0-012
Figure 12. RDC System Magnitude Response
0
–20
–40
–60
–80
–100
–120
PHASE (Degrees)
–140
–160
–180
–200
1
1010010k1k
FREQUENCY (Hz)
100k
04406-0-013
Figure 13. RDC System Phase Response
20
18
16
14
12
10
8
ANGLE (Degrees)
6
4
2
0
0
1243
TIME (ms)
5
04406-0-014
Figure 14. RDC Small Step Response
SOURCES OF ERROR
Acceleration
A tracking converter employing a Type II servo loop does not
suffer any velocity lag. There is, however, an error associated
with acceleration. This error can be quantified using the
acceleration constant (K
Conversely,
Figure 15 shows tracking error versus acceleration for the
AD2S1200.
The numerator and denominator’s units must be consistent. The
maximum acceleration of the AD2S1200 has been defined as
the acceleration that creates an output position error of 5°
(when LOT is indicated). The maximum acceleration can be
calculated as
The AD2S1200 will be able to withstand the maximum
acceleration of 103,000 rps
reaching its maximum tracking rate of 1,000 rps.
10
9
8
7
6
5
4
3
TRACKING ERROR (Degrees)
2
1
0
0
Figure 15. Tracking Error vs. Acceleration
) of the converter.
a
K
=
a
ErrorTracking
ErrorTracking=
−
K
a
onAcceleratiMaximum
=
2
for approximately 10 ms before
40k80k160k120k
ACCELERATION (rps
rps
rps
°
)(000,1
≅
2
)(000,103
2
K
rev
10
onAcceleratiInput
onAcceleratiInput
a
)/(360
ms
2
)
°×
5)(sec
≅
2
000,103
rps
04406-0-015
200k
Rev. 0 | Page 19 of 24
AD2S1200
CLOCK REQUIREMENTS
To achieve the specified dynamic performance, an external
crystal of 8.192 MHz must be used at the CLKIN, XTALOUT
pins. The position and velocity accuracy are guaranteed for
operation with a 8.192 MHz clock. However, the position
accuracy will still be maintained for clock frequencies ±10%
around this value. The velocity outputs are scaled in proportion
to the clock frequency so that if the clock is 10% higher than the
nominal, the full-scale velocity will be 10% higher than
nominal. The maximum tracking rate and the tracking loop
bandwidth also vary with the clock frequency.
CONNECTING TO THE DSP
The AD2S1200 serial port is ideally suited for interfacing to
DSP configured microprocessors. Figure 16 shows the
AD2S1200 interfaced to ADMC401, one of the DSP based
motor controllers.
SAMPLE
The
signal on the AD2S1200 could be provided either
by using a PIO or by inverting the PWMSYNC signal to
synchronize the position and velocity reading with the PWM
switching frequency.
and
may be obtained using two
RDVEL
CS
PIO outputs of the ADMC401. The 12 bits of significant data
plus status bits are available on each consecutive negative edge
RD
of the clock following the low going of the
signal. Data is
clocked from the AD2S1200 into the data receive register of the
ADMC401. This is internally set to 16 bits (12 bits data, 4 status
bits) because 16 bits are received overall. The serial port
automatically generates an internal processor interrupt. This
allows the ADMC401 to read 16 bits at once and continue
processing.
All ADMC401 products can interface to the AD2S1200 with
similar interface circuitry.
The on-chip serial port of the ADMC401 is used in the
following configuration:
• Alternate framing transmit mode with internal framing
(internally inverted)
• Normal framing receive mode with external framing
(internally inverted)
• Internal serial clock generation
In this mode, the ADMC401 uses the internal TFS signal as
external RFS to fully control the timing of receiving data and it
uses the same TFS as
RD
to the AD2S1200. The ADMC401 also
provides an internal continuous serial clock to the AD2S1200.