Resolver IF
Resolver IF
TM
External Use
Session Introduction
TM
External Use 1
Session Objectives
TM
External Use 2
Agenda
• Resolver basics
− Brief
history
− Resolver types, constructions and operation principles
TM
External Use 3
Resolver Basics
TM
External Use 4
Brief Resolver History
• Developed in 1940s at MIT (Supported by the U.S. military)
• Resolvers have been part of electromechanical servo and shaft angle
positioning systems for over 50 years
• Resolver position sensor constructions evolved over time
− 1970s: Brushless resolver
− 1980s: Hollow shaft brushless resolver
− 1990s: Variable reluctance resolver
• Resolver position conversion methods evolved from phase analog techniques
to tracking observer-based digital techniques with run-time diagnostic
• Since 2000, the Freescale Motor Control team has investigated different
approaches of the resolver-to-digital conversion using available MCUs/DSCs.
The first application was the SMT pick and place machine where fast
dynamics and high precision is a key for overall cost effectiveness.
Until today, the method was continuously improved and ported to practically
all el. motor control MCUs, including special CPU autonomous version based
on the eTPU to target ramping EV and HEV markets
TM
External Use 5
Resolvers: Electro-magnetic Induction Angle Sensors
TM
External Use 6
Resolver Types
Traditional Brushless Brushless Variable Reluctance
Primary side With variable air-gap With solid rotor
Rotary coupling
transformers
stator stator
θ [°] θ [°] θ [°]
rotor rotor
cos cos cos
HF HF HF
excitation excitation excitation
sin sin sin
Secondary side Secondary Side Secondary side
Rotating magnetic coupling transfers HF The VR variable air-gap resolver has The VR solid rotor resolver has primary
energy from the stator (primary) to the rotor primary and secondary windings in the and secondary windings in the stator,
(secondary), connected directly to the resolver stator, therefore it does not need a therefore it does not need a rotating
primary. This generates an AC magnetic field rotating magnetic coupling. The contour magnetic coupling. The rotor contains a
with a sinusoidal distribution, hence causing HF of rotor is made as the permeance diagonal section of highly permeable
voltages in the stator windings (secondary side) of air-gap between the stator and rotor material that varies the magnetic field
with amplitudes dependent (sine/cosine) on the is varied in sinusoid oscillation. Thus, across the stator as the rotor turns.
rotational angle of the rotor. the induced voltage amplitudes Thus, the induced voltage amplitudes
correspond to the sine and cosine of correspond to the sine and cosine of
the rotor angle. the rotor angle.
TM
External Use 7
Traditional Brushless Resolver
TM
External Use 8
Brushless VR Resolver
TM
External Use 9
Basic Resolver Terms
TM
External Use 10
Resolver Angle Position Sensing
TM
External Use 11
Resolver Based Angular Sensing Methods
TM
External Use 12
Angle Tracking Observer Principle
LP est
Filter
Angle Tracking
est
Envelope Pos. Error e()
Regulator
Extractor Comparator
Sine
Cosine
Generator
TM
External Use 13
Angle Tracking Observer Basics
( ) () () ( )
sin( )
e Θ - Θ̂ sin (Θ) cos Θ̂ cos(Θ ) sin Θ̂ sin Θ - Θ̂
+ 1 +
e(Θ - Θ̂ ) sin (Θ - Θ̂ ) Θ - Θ̂ for (Θ - Θ̂ ) 7
1 (s)
K1 s s +
-
cos( ) e( -)
K2
sin ( )
Transfer function:
cos( )
Θ̂(s) K (1 K 2s )
F(s) 2 1
Θ(s) s K1K 2s K1
Features:
• Non-sensitivity to disturbance and harmonic distortion of the carrier
• Non-sensitivity to voltage and frequency changes
• High accuracy of the angle extraction
TM
External Use 14
BASICS OF ANGLE EXTRACTION 5/6
TUNNING THE ANGLE TRACKING OBSERVER
Tuning the Angle Tracking Observer
35
Transfer function of the General
25
20
15
10
Transient responses: 0
0.5 400
600
Overshoot
1 800
Dampin 1.5 1000 d/s]
g factor [- 1200 ncy [ra
] 2 1400
l freque
Natura
±2%
0.050
0.045
0.035
0.030
0.025
0.020
0.010
0.005
0
0.5 400
1 600
800
Dampin 1000 ]
g facto 1.5 1200 ncy [ra
d/s
r [-] 2 1400
l freque
Natura
TM
External Use 15
Direct MCU R-D Conversion
TM
External Use 16
Case 1: Sin/Cos Envelope Extractor
Detail view
Resolver excitation
signal at 10 kHz
“sin” envelope
Timer OC
ADC Trigger
Resolver feedback
“sin” signal
“cos” envelope
Resolver feedback
“cos” signal
ADC ADC
sampling sampling
TM
External Use 17
Case 2: Over-sampling of Resolver Signals
Detail view
Resolver excitation
signal at 10 kHz
“sin” envelope
Timer OC
Resolver feedback
“sin” signal
“cos” envelope
Resolver feedback
“cos” signal
SDADC sampling
TM
External Use 18
Direct MCU-Resolver Interface
TM
External Use 19
Direct MCU R-D Conversion vs. RDC IC
MPCxxxxX
Ext. circuitry Peripherals CPU
Δ sin
SW RDC Angle RC
∑∆A/D Demodulation PD ATO
Application
Sensor Network s/w
Sync.
Δ cos
Run Time Diagnostic
Output
eTIMER
H/W layer
TM
External Use 20
Direct MCU R-D Conversion: Application Example
12 V
2nd order PWM MPCxxxxX
LP Filter (eTPU)
Excitation CPU
Amplifier
SDADC 4+5
2xch s. ended mode;
optional excitation
monitoring INIT values
R1 R2
LP Filter, Cosine Angle Tracking
SDADC 2+3
S4 Observer Angular position
2xch. s. ended mode
S2
DC ATO
Common Sine Angular speed
Tracking err.
S1 S3 Mode SDADC 0+1
sin, cos
2xch. s. ended mode
Shift
Detection
Resolver
Diagnostic Fault diagnostic
Angular speed
TM
External Use 21
Resolver Differential Excitation Stage
MPCxxxxX
PWM
(eTPU)
Low-pass filter
TM
External Use 22
Resolver Input Stage (Phy. Layer)
MPCxxxxX
SDADC 4+5
2xch s. ended mode;
optional excitation
monitoring
SDADC 0+1
2xch. s. ended mode
SDADC 2+3
2xch. s. ended mode
TM
External Use 23
Evaluation Results
• Position accuracy ±0.09 deg. 12bit ±1LSB • Position accuracy ±0.13 deg. 12bit ±2LSB
• External hardware • External hardware
‒ Excitation amplifier ‒ Excitation amplifier
‒ Hardware tuned for given resolver ‒ LP Filter, DC Common Mode Shift Detection
‒ Differential measurement
‒ Phase difference, offset, gain error uncompensated • True 12-bit resolution without noise
‒ LP Filter, DC Common Mode Shift Detection
• Repeatability ±0.07 deg.
• Noise, repeatability ±0.033 deg.
‒ Higher CPU* & ADC load
0,15 angleErr
Position accuracy
0,1
resolver error [mech. deg[
Noise
0,05
0
-180 -135 -90 -45 0 45 90 135 180
-0,05
-0,1
reference position [mech. deg]
TM
External Use 24
Diagnostics: Calibratable Fault Thresholds
SIN_AMPLS
COS_AMPL
SIN_POS
COS_POS
SIN_ZERO
COS_ZERO
SIN_NEG
COS_POS
SIN_AMPLS
COS_AMPL
UNIT_CIRCLE_MAX
OBSERVER
_ERROR
UNIT_CIRCLE_MIN
OBSERVER
_ERROR
TM
External Use 25
Fault Example: SIN Short to GND
SIN_Z SIN_P SIN_N SIN_A COS_Z COS_P COS_ COS_ SIN_MEAN SIN_MEAN COS_MEA COS_MEA UNIT_CIRCL UNIT_CIRCL OBSERVE Calculated
ERO OS EG MPL ERO OS NEG AMPL _POS _NEG N_POS N_NEG E_MIN E_MAX R_ERROR Angle
TM
External Use 26
Fault Example: REFSIN Open
SIN_Z SIN_P SIN_N SIN_A COS_Z COS_P COS_ COS_ SIN_MEAN SIN_MEAN COS_MEA COS_MEA UNIT_CIRCL UNIT_CIRCL OBSERVE Calculated
ERO OS EG MPL ERO OS NEG AMPL _POS _NEG N_POS N_NEG E_MIN E_MAX R_ERROR Angle
1.3a REFSIN Wire(or pin) open ? 0 1 0 ? ? ? ? 0 1 ? ? 1 1 ? wrong
TM
External Use 27
Fault Example: Shortcut REZ_GEN and REFSIN
SIN_Z SIN_P SIN_N SIN_A COS_Z COS_P COS_ COS_ SIN_MEAN SIN_MEAN COS_MEA COS_MEA UNIT_CIRCL UNIT_CIRCL OBSERVE Calculated
ERO OS EG MPL ERO OS NEG AMPL _POS _NEG N_POS N_NEG E_MIN E_MAX R_ERROR Angle
Short between REZ_GEN and
2.2 REFSIN ? 1 0 1 ? ? ? ? 1 0 ? ? 1 1 ? wrong
TM
External Use 28
Resolver + R/D IC Comments
• Advantages
− Positioninformation during MCU initialization stage
− High resolution: 12-bit
− Simple SPI interface between MCU and RDC IC
• Disadvantages
− Only simple diagnostic possible (raw signal data not accessible)
− No limp operation modes
− RDC IC may require up to 30 pins
− Larger board area
− Higher system cost
TM
External Use 29
Resolver + SW Observer Comments
• Advantages
− High resolution: 10-12 bit (dependent on the resolution of A/D converter)
− Simple hardware
− Lower cost than resolver + ASIC
− Intelligent diagnostics possible with complex conditioning for fault source
detection
− Limp mode operation modes possible
• Disadvantages
− Intensive
calculation needs, higher CPU load easily managed by
Freescale 32-bit Qorivva microcontrollers
TM
External Use 30
Freescale Support, Examples,
Documentation
TM
External Use 31
Motor Control Development Kit: Composition
PMSM with
3-phase Current FET 3-phase Resolver/Encoder
Shunts Power Stage or
FET DRIVER
MC33937A
BLDC with
Hall/No Sensor
Incremental
Encoder Interface
MC33937A
3-phase
Low Voltage
Power Stage
Qorivva Resolver/Sin-Cos
MPC5643L MCU SBC Interface
MC33905
Controller Board
TM
External Use 32
Sensor: Position and Speed Measurement
Resolver
Usin
Uref
Ucos
Rotor shaft
ADC measurement
Encoder
TM
External Use 33
Motor Control Development Kit Series: Content
• Out-of-the-box experience offers:
− Complete schematics of the development kit hardware
− Complete source code of the development kit software application
− Math and Motor Control libraries (MCLib) in object code
− FreeMASTER & MCAT interface to easy application visualization / control
− Extensive documentation including User Guide, Quick Start Guide and Fact
Sheet
www.freescale.com/AutoMCDevKits
TM
External Use 34
Auto Math and Motor Control Library Set
Target Platform GreenHills Multi WindRiver Diab Cosmic
Qorivva MCU RTM Rev 1.0 RTM Rev 1.0
S12ZVM RTM Rev 1.0
GFLIB_Cos
GetPositionElRes()
TM
External Use 35
MC Development Kits: Web Page Summary
FreeMASTER
www.freescale.com/freemaster
TM
External Use 36
TM
www.Freescale.com