Download 3-Phase BLDC Drive Using Variable DC Link Six

Transcript
Software Design
Timer Compare
Interrupt
ADC
Start
Quad Timer 1
POSITION SENSOR
(Hall Sensors)
Quad Timer 3
one phase
only
Timer Compare
Interrupt
GPIO (B2, B5)
Interrupt
Timer 0 Capture
Interrupt
Period
Measuring
muwwHallSensorsState
miwDirectionSpinning
muwlMeasuredPeriod
Next HS State
Prediction
Mask and Swap
Calculation
Speed
Calculation
ADC
Predicted
com. time
mudtPWMState
ADC Conversion
Interrupt
Filtering
mfwOmegaActualMech
PWM
0-3
Timer 1
Update
GPIO
A6, B3
PWM Module
Quad Timer 2
SCI
PWM Reload
Interrupt
Timer Compare
Interrupt
FreeMASTER
mfwDCDCVoltage
Brake
Control
Voltage
PI Controller
GPIO B1
mwwDuty
Variable DC Link Six-Step
inverter duty cycle update
mfwOmegaDesiredMech
Ramp
fwDesiredSpeed
Speed
PI Controller
Software Block
mfwDesiredDCDCVoltage
PWM
4,5
Hardware Block
Figure 5-1. Main Data Flow
3-Phase BLDC Drive Using Variable DC Link Six-Step Inverter, Rev. 1
28
Freescale Semiconductor