Download What is Digital Power Control?

Transcript
針對馬達控制和數位電源應用
的STM32微控制器系列
STM32 for Digital Power and
Motor Control Application
Anicet GIAIMO
技術行銷經理
意法半導體
STM32 for Digital Power
and Motor Control Application
• Introduction to Digital Power
• Application and benefit
• MCU requirement for Digital Power Control
• STM32 key ingredient for digital power
• STM32 for Digital Power Application
• STM32F334 Digital Power Product Line
• STM32 Digital Power Ecosystem
• Hardware and Firmware
• 500W DSMPS, 2kW DSMPS
• Documentation
2
STM32 Application
Digital Power
Introduction to Digital Power
What is Digital Power Control?
PROCESSING
Cortex-M
ENERGY SAVING
ACTUATION
TIMER PWM
SMART
SENSING
ADC
HIGH INTEGRATION
UART/I2C/SPI
…
COMMUNICATION
SMART
HIGH INTEGRATION
ENERGY SAVING
3
STM32 Application
Digital Power
Introduction to Digital Power
Power Conversion Applications
Lighting
Adapters
Wireless charger
Servers
Digital Power Control
Achieved by
STM32 broad Portfolio
Welding
Telecom power
Industrial
UPS and
PV inverters
4
STM32 Application
Digital Power
Introduction to Digital Power
• Benefit of digital control for power conversion
• Energy saving
Efficiency
• Increase the power efficiency
• High Integration
• Increase the power density
• Smarter design
• Control adaptability
• Make your design more flexible
Energy
saving
• Less components
• Simplify your design
• Reduce your BOM cost
• Increase the value of your product
Power density
5
STM32 Application
Digital Power
STM32 & Digital Power
6
1001001
MCU requirements for Power Control
COMMUNICATION
PROCESSING
(CPU)
D
I
G
I
T
A
L
-
(USART, CAN, I2C)
High Performance
Low latency
To host
Primary or
Secondary
ACTUATION (PWM)
-
Flexible PWM pattern generator
Supporting multiple topologies
PWMs
POWER
STAGE
SENSING
(ADC)
A
N
A
L
O
G
-
Multiple ADC
Fast and precise
Triggered by switching
patterns
ADC
ADC
ADC
CONDITIONING
-
High speed comparator
Event and Fault triggering
High BdW & Low offset Amplifier
DAC
+
COMP
PGA
IN
OUT
Feedback
Current
Voltage
STM32 Application
Digital Power
STM32 & Digital Power
7
STM32 key ingredients for power control
• Select the right core within STM32 broad pin-to-pin portfolio
PROCESSING
Cortex-M0/M0+
Cortex-M3
Cortex-M4
Cortex-M7
32bit performance
at competitive price
Cortex-M
Foundation
High performance
with DSP & FPU
Very high
performance
• Take advantage of STM32 unique acceleration features
• CCM-SRAM: SRAM on instruction bus
 boosts critical routines
• ART Accelerator
 cache memory
• DSP & FPU
CCMSRAM
0 WS
43% more performance
for routines executed
from CCM-SRAM
Flash
Critical
routines
Data
SRAM
0 WS
STM32 Application
Digital Power
STM32 & Digital Power
STM32 key ingredients for power control
DIGITAL
COMMUNICATION
1001001
ACTUATION (PWM)
CAN
Fast USART
I2C PMBus ready
Advanced Motor Control Timer
144Mhz (6.9ns)
High Resolution timer (217ps)
SENSING
CONDITIONING
12bit ADC SAR 5MSPS
16bit ADC Sigma Delta
Embedded Comparator
& Op-Amp
ANALOG
8
STM32 Application
Digital Power
STM32F334
9
Digital Power Product Line
• STM32 Digital Power Product Line: STM32F334
• Supporting complex topologies
• Multi-phase, interleaved
• Control up to 10 power switches
• High-resolution timers
Full bridge
3 phase
inverter
Interleave
Bridgeless
PFC
• Improve control precision
• Increase efficiency and power density
LLC
• New PWM features
• Burst Mode Hardware controller
• Push Pull Hardware controller
• Banking/windowing
• Lower reaction time
• Ultra fast comparator with direct path to PWM outputs
• Protection and cycle by cycle Event Control
Phase shift Full Bridge
Synchronous Rectification
STM32 Application
Digital Power
STM32F334
Digital Power Product Line
• STM32 Digital Power Product Line: STM32F334
1001001
• PROCESSING: ARM Cortex-M4
D
I
G
I
T
A
L
With DSP instruction and FPU
Up to 90DMIPS*
• ACTUATION: High Resolution TIMER
217ps High resolution, self compensated
Drift free vs voltage, temp or manufacturing
Advanced PWM waveform generator
Complex event management
• SENSING: Precise/Hi-Speed ADC
A
N
A
L
O
G
12bit SAR 5MSPS single end and diff. inputs
Down to 21ns Sampling time
Multiple trigger for PWM
• CONDITIONNING: COMP & PGA
Ultra Fast Comparator (26ns)
Op-Amp with built-in Gain (PGA)
* From CCM-RAM
HRTIM (10ch)
10
STM32 Application
Digital Power
STM32F334
Digital Power Product Line
• STM32F334: High Resolution Timer response time
PWM Output
(30pF load)
HRTIMER
12ns
26ns
Digital
73-80ns
26ns (FAST
mode)
COMP
Fault Input
OCP/OVP
Protection
DAC
Analog
45-52ns
12ns
(FAST
Mode)
COMP
Event Input
DAC
Set/Reset PWM
Synchronization
Digital
11
STM32 Application
Digital Power
STM32 Digital Power
Ecosystem Overview
• STM32F334 Dedicated Eco-system
• Set of evaluation boards:
NUCLEO
DISCOVERY
500W DSMPS eval
2KW DSMPS eval
Prototyping
Lighting Demo
Buck-Boost Demo
Semi-bridgeless PFC
LLC + SR
Interleave PFC
Phase Shift Full Bridge + SR
NUCLEO-F334R8
32F3348DISCOVERY
STEVAL-ISA147V2
Available Q4 2015
• Software (including library, middleware and examples)
•
•
•
•
HAL library
RTOS
DSP library and PMBus ready
Full set of examples
• PC tools:
Real Time OS
DSP Library
PMBus 1.2 ready
• CubeMx: Configuration tool
• STMStudio: On-the-fly variable monitoring (validation and debug)
HAL Library
12
STM32 Application
Digital Power
STM32 Digital Power Ecosystem
500W DSMPS
13
• STEVAL-ISA147V2: Key messages
Main features
Full Range AC Input
PFC output voltage: 430V DC
PFC switching frequency: 60 kHz
DC/DC switching frequency:76kHz/130kHz
Output voltage: 12V DC
Peak efficiency : 93.5%
Full digital control
STM32F051 for PFC
STM32F334 for LLC & SR
STEVAL-ISA147V2
All essential
protection features
Higher reliability, thanks to fast protections
Short Circuit protection
Over current/voltage Protection
Boosted peak and
light load efficiency
In line with the stringent
requirements of the power
supply industry. 80+ Platinum
compliant at 115 Vac
STM32 Application
Digital Power
STM32 Digital Power Ecosystem
500W DSMPS
• STEVAL-ISA147V2: Block Diagram
Input Voltage
90 Vac-264Vac, 45Hz/65Hz
Sinewave
EMI
Filter
HF Isolation
430V DC
Semi-Bridgeless
PFC
LLC Half
Bridge
12V DC
Synchr.
Rectifier
PFC
MOS1 Curr.
PFC
MOS2 Curr.
Input voltage
PWM4N
COMP.
ADC CH9
Sensing &
Conditioning
ADC CH1
Sensing &
Conditioning
ADC CH0
Sensing &
Conditioning
ADC CH8
ADC1/2
Ch3
AUX
PS
GPI/O
ADC1/2 CH2
HR TIM
Primary MCU
STM32F051K8
Secondary MCU
STM32F334C8
GPI/O
Opto
Bidirectional
Communication
LED
Synch. MOS2 VDS
Opto
Adv. TIM
CT
PWM4
PWM3N
Sensing
& Condit.
Synch. MOS1 VDS
Output
Voltage
Sensing &
Conditioning
PWM3
PWM1
PWM2
Transf. Current
LED
ADC1
CH1
Output Voltage
14
STM32 Application
Digital Power
STM32 Digital Power Ecosystem
2kW DSMPS
• 2KW DSMPS EVAL: Key messages
Main features
Full digital control
STM32F334 for PFC
STM32F334 for DC/DC & SR
All essential
protection features
Higher reliability, thanks to fast protections
Short Circuit protection
Over current/voltage Protection
Over temperature Protection
Full Range AC Input
PFC output voltage: 400V DC
PFC switching frequency: 60 kHz
DC/DC switching frequency:100kHz
Output voltage: 48V DC
HF transformer isolation:4 kV
Boosted peak and
light load efficiency
15
STM32 Application
Digital Power
STM32 Digital Power Ecosystem
2kW DSMPS
16
• 2KW DSMPS EVAL: Block Diagram
Input Voltage
90 Vac-264Vac, 45Hz/65Hz
Sinewave
HF Isolation
400V DC
EMI
Filter
Synchr.
Rectifier
DC/DC Full
Bridge
iPFC
48V DC
PFC
MOS2 Curr.
PFC shunt current
Input voltage
PWM SR2
COMP.
Adv. TIM
ADC3 In1
PWM SR1
PWM_LS2
PWM_LS1
PWM_HS1
PWM_HS2
Opto
HR TIM
Sensing &
Conditioning
ADC1 In2 + COMP
Sensing &
Conditioning
ADC2 In4 + COMP
AUX
PS
ADC1/2
Ch3
ADC1/2 CH2
Sensing &
Conditioning
ADC1 In1
Sensing &
Conditioning
ADC1 In3
Secondary MCU
STM32F334C8
Primary MCU
STM32F334C8
Opto
GPI/O
GPI/O
Bidirectional
Communication
LED
Synch. MOS2 VDS
PFC
MOS1 Curr.
Sensing &
Conditioning
Opto
Sensing
& Condit.
Synch. MOS1 VDS
Bust
Voltage
PWM2
PWM1
Transf. Current
LED
ADC1
CH1
Output Voltage
STM32 Application
Digital Power
STM32 Digital Power Ecosystem
Documentation
• Digital Power documentation
• Complete HW/FW application notes
• HRTIMER cookbook
How to operate HR timer in different topologies
Including firmware examples
17
AN4539
AN4449
HRTIM
Cookbook
Buck-Boost converter
F334 Discovery kit
AN4539
AN4468
• Buck-Boost converter with F334 discovery kit
Including Hardware and Firmware description
• High Resolution LED dimming with F334 discovery kit
Including Hardware and Firmware description
• 500W DSMPS (ISA147V2)
Including Hardware and Firmware description
• And also user manuals and getting started manuals
•
•
•
•
UM1733: Getting started with F334 discovery
UM1736: Getting started with F334 software
UM1735: Discovery kit user manual
UM1746: 500W DSMPS user manual
High Resolution 500W fully digital
LED Dimming F334 F334 AC-DC PSU
STM32 and Motor Control
Application
STM32 for Digital Power
and Motor Control Application
• Introduction to motor control
• Application
• STM32 & Motor control
• Motor classification
• STM32 Motor Control ecosystem
• FOC PMSM Firmware library
• ST Motor control workbench
• Hardware solutions
19
STM32 Application
Motor Control
Introduction
to Motor Control Application
Motion Control
Efficient motor control solutions
Motor Control
Industrial
Drives
A complete offer of ST devices
Robotics, HVAC,
pumps, CNC.
(IPMs) SLLIMM™
AC switches
Diodes
Home
appliances
White Goods,
Refrigerators,
Room air conditioning
Power
transistors
Control
unit
Sensors
Gate Drivers
Motor driver ICs
Motor Control
Fitness,
Healthcare,
Pedelec and more
Power
Management
Motor Control libraries
20
STM32 Application
Motor Control
Introduction to Motor Control
STM32 Shaped for Motor Control
STM32: THE Cortex-M based MCU family shaped for Motor Control
12-bit
DAC
Op-Amp
with 7 gains
SIL ready,
Class B,
HW safety
Control
Loop
Booster,
ART
Accelerator
Fast
12-bit
ADC
(0.2µs)
From entry level (F0 series) to very-high
performance (F7 series)
Ultra Fast
Comparator
(25ns)
Industrial
Grade
Interconnect
BUS Matrix
All STM32F devices equipped with advanced Motor
Control timer(s)
Rich and advanced analog integration especially in
STM32 F3 series sized for control loop
From 16 KBytes up to 2 MBytes in various
packages
21
STM32 Application
Motor Control
Introduction to Motor Control
STM32 Shaped for Motor Control
Ready to use ST Solution for Motor Control
MCUs for
Motor Control (8-32 bit)
MC FW
Library
Inverters
IPM / discretes
IPM
ST MC Workbench
PC SW GUI
Full customization
and real time
communication
Broad range of
algorithms for specific
applications
(FOC – 6step)
Technical Support (WW level)
HW & SW tools
22
STM32 Application
Motor Control
Introduction to Motor Control
Permanent
Magnet
Electric Motor: Classification
Sinusoidal
Wound field
Synchronous
Internal
mounted PM
(PMSM)
Higher efficiency
and/or reliability
Surface
mounted PM
Trapezoidal
(BLDC) PM
Switched
reluctance
Variable
reluctance
AC
Asynchronous
Electric
motors
(ACIM)
Stepper
Squirrel cage
DC (brushed)
Wound rotor
Universal
• PMSM: 3-phase permanent
magnet synchronous motor
• ACIM: 3-phase induction motor
Limited computation needs
Driving method well-known,
mastered by customer
Light ecosystem
Basic ADC/PWM requirement
23
Computation intensive
Complex driving, requires specific
knowledge and/or support
Complete ecosystem necessary
Requires 3-phase timer + sync’d ADC
STM32 Application
Motor Control
Introduction to Motor Control
STM32
Permanent
Magnet
Electric Motor: MCU Mapping
Sinusoidal
Higher efficiency
and/or reliability
Synchronous
STM8
STM32
Internal
mounted PM
(PMSM)
Wound field
Surface
mounted PM
Trapezoidal
(BLDC) PM
Switched
reluctance
Variable
reluctance
AC
STM32 + dSpin
Stepper
STM8
Electric
motors
STM32
DC (brushed)
STM8
STM32
Asynchronous
Squirrel cage
(ACIM)
STM8
Wound rotor
Universal
• PMSM: 3-phase permanent
magnet synchronous motor
• ACIM: here 3-phase induction
motor
Solution
available today
24
Supported with ST
products but no
ecosystem
Complete Motor
Control ecosystem
(FW Library V4.x)
Solution available
(HW & SW)
Complete Motor
Control ecosystem
(FW library V2.x)
STM32 Application
Motor Control
STM32 FOC PMSM FW lib
Motor Control Firmware Features
STM32F4xx, STM32F3xx
STM32F103x HD/XL, STM32F2xx
STM32F103x LD/MD
STM32F100x, STM32F0xx
New
1shunt
Flux
Weakening
IPMSM MTPA
3shunt
Dual FOC
HFI(1)
Feed Forward
Sensor-less
(STO + PLL)
Sensor-less
(STO +
Cordic)
FreeRTOS
Max FOC(3)
Max FOC(3)
F103, F2xx
F103 ~23kHz
F2xx ~40kHz
F3xx ~ 30kHz
F4xx ~50kHz
Hall sensors
Debug &
Tuning
ICS(2)
Max Dual
FOC(3)
Max FOC
Max Dual
FOC(3)
Max FOC(3)
F103 ~20kHz
F2xx ~36kHz
F3xx ~27kHz
F4xx~45kHz
Encoder
ST MC
Workbench
support
USART based
com protocol
add-on
F100 ~11kHz
F0xx ~12kHz
~23kHz
(1) High Frequency Injection
(2) F1, F2, F4
(3) Max FOC estimated in sensorless mode
25
STM32 Application
Motor Control
STM32 FOC PMSM FW lib
ST MC Workbench
PC GUI to setup MC environment + configure the MC FW lib
Motor
Drive
Management
Power Stage
1
2
3
Control Stage
4
Configure the MC FW lib
parameters in 4 steps
.h
.h
+
.lib
=
.exe
Generate source code
project and compile
RUN the motor
26
STM32 Application
Motor Control
STM32 FOC PMSM FW lib
ST MC Workbench
Real time tuning
•
•
•
Use the ST MC workbench to set-up a “real time communication” to send
start/stop commands or to set a speed ramp.
Debug or fine tuning motor control variables (like speed PI parameters) can be
assessed using the advanced tab.
Plot significant motor control variables (virtual oscilloscope) like target or
measured motor speed.
27
STM32 Application
Motor Control
STM32 FOC PMSM FW lib
Motor Profiler + One Touch Tuning
Plug and Spin your Motor in less than 1 minute !
• Automatic detection of key parameters
• Zero equipment required
• Spin motor within < 1min.
• Single parameter to tune the speed controller
• Wide speed range
• Adapting to various load/inertia
28
STM32 Application
Motor Control
STM32 FOC PMSM FW lib
Motor Profiler + One Touch Tuning
Plug and Spin your Motor in less than 1 minute !
Motor stopped
•
•
•
Rs measurement
Ls measurement
Current regulators set-up
10 sec
•
•
•
Ke measurement
Sensorless state observer set-up
Switch over
5 sec
Closed loop
•
•
•
Friction coefficient measurement
Moment of inertia measurement
Speed regulator set-up
45 sec
1 minute !
Open loop
29
STM32 Application
Motor Control
STM32 FOC PMSM FW lib
Motor Startup “on-the-fly”
• Ready for Fan and Air-Con
• This Motor Startup “on-the-fly” algorithm provides smooth sensorless
FOC drive insertion in applications where the rotor is already
rotating. A typical application is an outdoor fan (Air Con, Smoke
extractor and more).
• Related benefits:
•
Reliable starts up.
•
Reducing noise and mechanical vibration/noise
•
Efficient drive
30
STM32 Application
Motor Control
Hardware Ecosystem
System Approach
Flexible
MC Platform
Complete
MC drives
STM32
Nucleo + X-NUCLEO
Control stages
Power stages
MC Software Development Kit (SDK)
(FW library, GUI, collateral materials)
MC
KIT
31
STM32 Application
Motor Control
Hardware Ecosystem
Building Your Evaluation Kit
Flexible MC Platform
Full set of control board
featuring all ST MCUs
MC Connector
Full set of Power board
featuring Power Transistor,
IPM, MC Driver ICs.
Display
ST Microcontrollers
Power supply
Sensing
network
inverter
32
STM32 Application
Motor Control
Hardware Ecosystem
New Motor Control Nucleo Pack
Low Voltage MC kit for PMSM/BLDC motor
NUCLEO-F302
X-NUCLEO-IHM07M1*
All in
one
blister
LV BLDC Motor
*Expansion Nucleo Board with STSPIN L6230 (up to 50V,1.4 A)
• Fast & safe prototyping
• Affordable for everyone
Main features
•
3-Phase motor control application
(up to 50V,1.4 A)
•
6 Step modulation - FOC
FW library compatible with
STM32Cube MX
•
Vector drive control –
ST PMSM FOC SDK (STSWSTM32100)
33
Thank You
34