Академический Документы
Профессиональный Документы
Культура Документы
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
Presentation Outline
BLDC
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
120o
60o
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
A
0
%
1.
0
%
2.
3.
5.
4.
6.
BLDC
A
C
Phases voltage
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
rotor field
TM
PWM3
S BT
PWM5
SCT
POWER
SOURCE
DC VOLTAGE
PWM2
SAB
PWM4
S BT
PWM6
SCT
MOSFET/IGBT DRIVERS
PWM1
PWM2 PWM3
PWM4
PWM5
PWM6
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
Controller
TM
Second Quadrant
negative speed-positive torque
reverse-braking
Current
(Torque)
Quadrants of Operation
Generating
Motoring
Motoring
First Quadrant
positive speed-positive torque
forward-accelerating
II
III IV
Third Quadrant
negative speed - negative torque
reverse-accelerating
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
Voltage
(Speed)
Generating
Fourth Quadrant
Positive speed - negative torque
forward-braking
TM
commutation
commutation
120o
support
commutation
commutation
commutation
commutation
SAt
A - Off
A - Off
SAb
A - Off
A - Off
SBt
B - Off
B - Off
SBb
B - Off
B - Off
SCt
C - Off
SCb
C - Off
commutation
60o
C - Off
C - Off
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
SAt
SBt
SCt
SAb
SBb
SCb
C - Off
3phase
Brushless
DC motor
C - Off
B
A
TM
is opposite of TOP
Dead Dead Dead Dead Dead Dead
Time Time Time Time Time Time
SAt
A - Off
SAb
A - Off
SBt
B - Off
SBb
B - Off
SCt
B - Off
C
SCb
B - Off
C
Dead Dead
Time Time
Dead Dead
Time Time
Swap
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
commutation
commutation
120o
support
commutation
commutation
commutation
commutation
SAt
A - Off
A - Off
SAb
A - Off
A - Off
SBt
B - Off
B - Off
SBb
B - Off
B - Off
SCt
C - Off
SC
C - Off
commutation
60o
C - Off
C - Off
SAt
SAt
SCt
SAb
SBb
SCb
C - Off
3phase
Brushless
DC motor
C - Off
B
A
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
10
TM
Synchronous PM Motors
Stator
La
Running
Direction
Motor
Torque
90`
Lc
LbStator Flux
GND (PWM)
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2007.
TM
12
P h a s e A - B V o l ta g e
P h a s e B -C V o l t a g e
P hase A
P h a s e C - A V o lt a g e
P hase B
P hase C
A
CH4
0V
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2007.
TM
13
0
%
1.
3.
5.
4.
6.
0
%
2.
BLDC
A
C
USc = UbackEMFc
After
Ic = 0 and so UC = BEMFC
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
14
Appropriate Phase
Comparator Output
selected
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
15
60
120
180
240
300
360
Rotor Electrical Position (Degrees)
Phase R
Phase S
Phase T
Zero
crossings
PWM 1
PWM 3
PWM 5
PWM 2
PWM 4
PWM 6
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
16
Inverter Stage
Udcbus
Not Accessible
Rshunt
Phase c
Idcbus
Phase b
BLDC
Motor
Phase a
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
17
Regeneration
2
-
-V
1
+
Q2 Q1
Q3
3
-
4
+
Regeneration
4
Q4
3
-I
PhC
PhA
PhB
VDCB
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
VDCB/2
GND
TM
18
2
-
2 Two Bottoms on
3
3 Top Bottom
in diagonal on
One cycle
in Quadrant 1
4
+
4 Two Bottoms on
(inverse current)
One cycle
in Quadrant 3
PhC
PhA
PhB
VDCB
Gnd
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
VDCB/2
TM
19
A
V0
HB2
HB3
HB3
+
-
+
-
HB3
HB1
+
-
+
-
+
-
HB2
+
-
+
-
V0
+
-
Udcb
HB1
V0
HB2
+
-
UDCB reference
GND reference
Virtual CP reference
Udcbus
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
HB1
HB3
V0
Idcbus
HB2
Rshunt
Motor
Central Point is
not accessible
BLDC
BLDC
Motor
TM
20
is opposite of TOP
Top and Bottom
in diagonal on
Top and Bottom
negative in diagonal on
SAt
A - Off
SAb
A - Off
SBt
B - Off
SBb
B - Off
SCt
B - Off
C
SCb
B - Off
C
Dead
Time
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
Dead
Time
TM
21
is opposite of TOP
A - Off
SAb
A - Off
SBt
B - Off
SBb
B - Off
SCt
B - Off
C
SCb
B - Off
C
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
22
is opposite of TOP
Top and Bottom
in diagonal on
Two Bottoms on
SAt
SAb
SBt
SBb
SCt
C - Off
SCb
C - Off
Zero-Crossing
Sampling
Window
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
23
UDCB reference
Phase Selection
According to PWM Sector
Sampling
Phase c
+
-
ZC Sampling
Window
Sampling
Window
Generator
Cout
Phase b
B
Positive
MUX
Udcb
V0
Phase a
Udcb/2
Negative
MUX
Ud/2
PWM Sync
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
24
CMT
ZC
Zero Crossing
Detected
BLDC
Commutation
Current
Recirculation
Zero
Crossing
Detection
Process
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
BLDC
Commutation
TM
25
commutation overtook
zero-crossing
No
BEMF Zero-Crossing
detected between previous
commutations?
Corrective Calculation 1.
with timeZC(k-1) = timeCmt(k-1)
Yes
Service of Commutation:
preset new pwm sector
Preset commutation
time
Yes
BEMF Zero-Crossing
Detected?
No
No
has commutation
time expired?
has commutation
time expired?
Yes
Yes
No
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
26
timeCmt[n]
T2[n-1]
T2[n]
n
COMMUTATION IS PRESET
ZERO-CROSSING
DETECTIONSIGNAL
p eriod ZC[n]
COMMUTATEDATPRESETTIME NO
BACK-BMF FEEDBACK WAS RECEIVED
CORRECTIVE CALCULATION 1.
t imeCm t*[n+ 1]
ZERO-CROSSING
DETECTON SIGNAL
peri odZC[ n-2]
period ZC0[n ] =
p eriod ZC[n- 1]
t imeZC [n-1]
BACK-EMF FEEDBACK
RECEIVEDANDEVALUATED
perZCT off[n ]
COMMUTATEDWHEN BACK-EMF
ZERO-CROSSING IS MISSED DURING
ZERO-CROSSING
DETECTION SIGNAL
peri odZC[ n]
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
27
t ZCForced TForced
Vmotor
TZCerror
Regulator
tCMT
PWM
DutyCycle
3-phase
Power Stage
Motor
ZC
Detector
t ZC TZC
0
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
28
Sensorless
Alignment
Open-Loop Start
Sensorless Run
Alignment
ALIGNMENT
ALIGNMENTTIME
EXPIRED?
start.
Alignment duration and current is dependent on
motor electrical and mechanical time constant.
Because after alignment, motor is not spinning,
there is state a Open-Loop Start between
Alignment and Running, in which no Zero
Crosses are detected and commutation must
be performed manually.
NO
YES
OPENLOOPSTART
NO
YES
SENSORLESSRUN
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
29
Alignment Vector
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
30
Running Mode
Close Loop:
Starting
Mode
Open Loop Ramp:
no feedback
q
supposed rotor position
Field
M
S
Field
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
31
Velocity
Open Loop
Commutation velocity
Ramp Acceleration OL
Velocity
Desired
Alignment
Run
Velocity
Threshold
OLtoRun
Closed Loop
Commutation velocity
Ramp Acceleration CL
real speed
time
Alignment
Period
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
32
3-ph
BLDC
Motor
Idc
Control
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
33
Actual DC
Bus Current
1/T
Period
Zero Crossing
Filtered/Estimated
Current Limitation
PI Controller
-
Velocity Required +
Speed
PI Controller
To
PWM
Velocity Actual
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
34
Current Control/Limitation
Technique
SW current limitation with slow control loop
Issue:
Problematic current sensing during commutation transient
Controller
SW
current
control
HW
OVC
3-ph
BLDC
Motor
ADC
Idc
+
-
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
35
Back-EMF
Zero-crossing
Phase Voltage
Phase Current
DC Bus Current Envelope
DC Bus Shunt Current
Current
Sampling
At Back-EMF
Zero Crossing
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
36
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
37
MCF51AG128
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
38
Application Usage:
Fans
Compressors
Pumps
Industrial drives
Appliances
Application Features:
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
39
Application Code
Control page
Design Reference
Manual
Demo Hardware
TM
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
24V
DC Power
Input
3 Phase
BLDC
Motor
3 Phase Voltages
Vdcb, Idcb
Vphasea,b,c
Over-current
FAULT
PWM1..6
FTM
ADC
Module
PDB1
Synchronization
ADC to PWM
ADC
Sensing
I/O
Ports
Superior
System
Application
Monitoring
and Control
USB to
COM
Convertor
HSCMP2
ZC Comparator
FTM2
PWM 3pps Generator
PDB2
ZC to PWM
Synchronization
MC33927
driver
Config.
Commutation
And PWM
Control
Sensorless
Commutation
GPIO
Module
SPI
FTM1
Timer Cmt
(and) ZC
Zero Crossing
Period & Position
Recognition
Simmilar
Peripheral
to
MCF51AG
128
PWM
Duty
cycle
Zero-crossing
Period
Application
Control
1/T
Desired
speed
SCI
Module
Freemaster
Ramp
Generation
Actual
speed
+
Required
speed
MTIM
Time Base
DC Bus
Current
Freescale and the Freescale logo are trademarks
of Freescale Semiconductor, Inc. All other product or service names are
Required
PI
+
the property of their respective owners. Freescale Semiconductor,
Inc. 2008.
torque
On Board
Programmi
ng
Speed
PI Controller
BDM
Limitations
Torque
Controller
MC9S08MP16
41
TM
FreeMASTER
(PC Computer - Superior
system)
rampAccelOL
rampAccelCL
FreeMASTER
(S08MP16)
regSpeedPIparams
uDdcbFilt
regCurrentPIparams
appControlFlags
regForcedPLLParams
temperatureFilt
velocityDesired
regSyncPLLParams
BLDC (Application Main)
Process
temperature
appFaultFlags
adcSensingStateIndex
appFaultPendingFlags
iDcbLimit
ADC Sensing
Process
Fault Checking
Process
iDcbZcFilt
uDcb
iDcb
velocityAct
bldcMainFlags,
bldcStateIndex
bldcIntTimBFlags
regSpeedPIparams
pwm3ppsSector
Zero-Crossing
Detection
Process
regCurrentPIparams
periodBLDCZcFlt
velocityRampAct
zcDetectStateIndex
Sensorless
Commutation
Process
coefCmtPresetHlf
rampAccelCL
coefZcToCmt
timeBLDCCmt timeBLDCCmtNext pwm3ppsSector
coefZcOff
dutyCycleU16
FTM2SYNC_TRIG2
regForcedPLLParams
PWM 3pps Driver
regSyncPLLParams
MC33927Config
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
mc33927ModeCommands,
mc33927MaskInterrupts
TM
42
BLDC MCUInit
BLDC Fault
Done
appFaultPendingFlags = 0 &
appControlFlags.Bits.FaultClear
BLDC AppInit
FaultPin
(over-current)
appFaultFlags!=0
BLDC Fault ISR
bldcFlags.ForcedPLLModeRq=0 &
bldcFlags.CurLimit=1
Done
SL_TECHNIQUE_SYNC_PLL &
bldcFlags.SyncPLLModeRq=1 &
appControlFlags.BldcStart=0
SL_TECHNIQUE_FORCED_PLL &
bldcFlags.ForcedPLLModeRq=1 &
bldcFlags.CurLimit=0
bldcFlags.SyncPLLModeRq=0
BLDC Stop
appControlFlags.BldcStart=1 &
velocityDesired !=0
Done
velocityRampAct < velocityThresholdRuntoOL
BLDC Alignment
timBExtendedCntr>alignmentPeriodTimB
BLDC Start Vector
BLDCShift Vector
(Make 1.5(1, 2) steps)
Done
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
43
Periodically
50us
at 20kHz PWM
Periodically
3ms
at default sw setting
ADC
ADC Sensing
Complete ISR
MTIM
TimB
Overflow ISR
Read Current
Sample
ADCR
Time alignment/
Speed close
/open loop ramp
MC Reset
Calculate
velocityAct from
periodBLDCZcFlt
iDcb =
ADCR-iDcboffset
MCUInit
Start Secound
Sample
Conversion
(uDcb or
temperature)
ZC Detection
Process
Sensorless
Commutation
Process
Calculate
Speed/Current
Regulator
BLDCProcessState
Fault Control/
Clear
Background
Loop
Set HW trigger
ADHWT
Preset Next
Current
Conversion
FreeMASTER
Poll
ADC Sensing
Process
Voltage
Temperature
Filter/Average
Alignment/Ramp/Sp
. Reg.
Process
FreeMASTER
recorder
Application and
Fault Control
Watchdog
RTI
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
RTI
TM
44
FTM1 ch0
Timer Cmt Zc
OC ISR
Set ZC Detection
Sampling:
Enable Set ZC Input
Capture Edge sensing
ZC Detection State
=Current recirculation
No
Calculate
periodBLDCZcToff
Time Preset CMT:
timeBLDCCmt =
timeBLDCCmt +
periodBLDCCmtPreset/
timeBLDCCmt =
timeBLDCzcEstimated +
periodBLDCZcToCmt
RTI
yes
Calcul ate
timeCmtPreset/
Set ZC Detection
Sampling:
Enable Set ZC
Input Capture
Edge sensing
timeBLDCzcEsti
mated
Set ZC Detection
Curr Recirculation:
Enable Set HSCM
sensing
FTM1 ch1
TimerZc
ZC IC ISR
FTM2
pwm3pps
Fault ISR
Set ZC off
load timeBLDCZc
Calculate
periodZC
timeCmt/
Set Fault
Sync/Forced PLL
closed loop
RTI
ZC Detection
Process
Sensorless
Commutation
Process
PWM 3pps Driver
RTI
ADC Sensing
Process
Alignment/Ramp/Sp
. Reg.
Process
RTI
Application and
Fault Control
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
45
Timer Cmt
Current dec
Timeout
Timer ZC
Zero-Crossing
Detected
25us (*)
10us (*)
20us (*)
100%
625us
Ca 300us
ADC
service
14us
50us (*)
ADC
service
14us
ADC
service
14us
ADC
service
14us
ADC
service
14us
100%
50us
Sensorless BLDC Commutation using HSCMP comparators occupies around 10 % and ADC service
occupies around 30 % (*) of HCS08 8bit processor computational power at 4000rpm with 8-pole motor
and 50kHz pwm.
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
46
Questions
and answers
Contact:
Libor Prokop
Freescale
1.maje 1009
75661Roznov pod Radhostem
Czech Republic
E-mail:Libor.Prokop@freescale.com
www.freescale.com/motorcontrol
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
47
Back-up slides
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
48
3-ph
BLDC
Motor
Idc
Control
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
49
SW Current Control
Commutation Transient:
Current not sensed during commutation transient
Phase Voltage
Phase Current
Tregulator
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
50
HW Current Limitation
Commutation Transient:
Problematic current sensing
Phase Voltage
Phase Current
HW
Current
Limitation
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. Freescale Semiconductor, Inc. 2008.
TM
51
TM