Infineon MCU Motor Drive Application

e-Seminar April 2011 Agenda

 BLDC Motor Drive & MCU Rules

 Infineon MCU Key Features for Motor Drive

 Reference Solutions & Application Kits

 Summary

Copyright © Infineon Technologies 2011. All rights reserved. Page 2 BLDC Motor Drive & MCU Rules BLDC Motor Applications

Copyright © Infineon Technologies 2011. All rights reserved. Page 3 BLDC Motor Drive & MCU Rules Addressing the Market Trends and Needs Load Control MCU Application Behaviour Scheme Feature Highest XE166 GP inverter, dynamic load Direct Elevator, respone, Torque Spindle drive, accurate • 16bit positioning, • MAC unit Transportation high speed Resolver • 2 x ADC Assembly Lines FOC • 4 x CCU6 PLC, Servo, CNC machine Dynamic load Encoder response FOC Air-con Zero speed Sensorless compressor, high control performance pump FOC

HVAC fan, Sensorless domestic heating low noise, FOC XC800 pumps, valve variable load, variable speed control • 8bit Sinusoidal • MDU+Cordic • 1 x CCU6 Hall consumer fan, • 1 x ADC pump, eBike, variable speed, Sensorless simple sewing known load dynamics (look Block machine up table) Commutation

Copyright © Infineon Technologies 2011. All rights reserved. Page 4 BLDC Motor Drive & MCU Rules BLDC Motor Type

Copyright © Infineon Technologies 2011. All rights reserved. Page 5 BLDC Motor Drive & MCU Rules BLDC Driver Key Design Issues

 Sensor or Sensorless  6-Step or Vector Control  Shoot through current  Current Measurement  MOSFET/IGBT Protection  Current and Voltage Rating  EMI

Copyright © Infineon Technologies 2011. All rights reserved. Page 6 BLDC Motor Drive & MCU Rules Motor Driver Block Diagram

Power Circuit Bridge Driver

3 Phase Motor

Position Sensor Transceiver Motor Current

Signal Conditioning

Microcontroller

Copyright © Infineon Technologies 2011. All rights reserved. Page 7 BLDC Motor Drive & MCU Rules Role of MCU in BLDC Motor Control

Motor Pattern Position Sensors Motor Current

 6 PWM Generation  With Hall Sensor  1 or 2 Module s for Phase Current Sampling  Dead Time Control  Without Hall Sensor  Short Conversion Time  6 Step Control  Encoder  Sampling without  Vector Control  Resolver Switching Noise  Noisy Sensor Signal  Fault Management Conditioning

 6 PWM Generator  Hall Pattern Recognition  Phase Current Sampling  CAPCOM6 HW with noise filtering Two Independent ADC  CAPCOM6 Modules  HW Dead Time Generator  CAPCOM6  Encoder I/F  Sample Rate<1us (16bit)  GPT12 Sample Rate<1.5us (8bit)  Even 8bit MCU can simple FOC  Resolver I/F  Noise Free  Vector Computer  Two Independent ADC can be triggered by ADC Modules PWM generation module  High Performance  80MIPS 16bit MCU &  Hardware Trap Generation MAC unit

Copyright © Infineon Technologies 2011. All rights reserved. Page 8 Agenda

 BLDC Motor Drive & MCU Rules

 Infineon MCU Key Features for Motor Drive

 Reference Solutions & Application Kits

 Summary

Copyright © Infineon Technologies 2011. All rights reserved. Page 9 Infineon MCU Key Features for Motor Drive Infineon – scalable family

Flash 1.6MB 16BIT

8BIT

2KB PIN

16 20 20 24 28 38 48 64 100 144 176

Copyright © Infineon Technologies 2011. All rights reserved. Page 10 Infineon MCU Key Features for Motor Drive Common Peripherals through 8-to-16bit MCU

 Majority of code relates to the peripheral  Reduce Development Time (Common Elements)

 CAPCOM6 (PWM Unit)

 ADC

 DAvE Environment

Easy Migration

Copyright © Infineon Technologies 2011. All rights reserved. Page 11 Infineon MCU Key Features for Motor Drive High Performance XC800 Microcontroller

XC878 64kB CORDIC&MDU

52kB XC878 Cordic&MDU

XC888 32kB XC886 CORDIC&MDU CORDIC&MDU

XC886 XC888 24kB CORDIC&MDU CORDIC&MDU

XC866 16kB 27MHz

8kB XC835 XC836 XC866 CORDIC&MDU CORDIC&MDU 27MHz

XC866 4kB XC822 XC864 XC824 XC836 MDU 27MHz MDU CORDIC&MDU 27MHz

TSSOP16 TSSOP20 DSO20 DSO24 TSSOP28 TSSOP38 QFP48 QFP64

Copyright © Infineon Technologies 2011. All rights reserved. Page 12 Infineon MCU Key Features for Motor Drive XC800 Special Features

Copyright © Infineon Technologies 2011. All rights reserved. Page 13 Infineon MCU Key Features for Motor Drive Scaleable Motor Control

XC878

XC886 Enhanced NEW XC888 + Vector NEW XC835 XC821 XC836 Computer XC822 Vector + XC866 XC824 Vector Computer XC864 + + MDU Computer

PWM Unit with Fast PWM Unit PWM Unit PWM Unit two PWM Units hall sensor with triggers triggers trigger ADC Unit mode hall sensor ADC Unit ADC Unit mode

Block Sinusoidal Field-oriented Field-oriented Field- commutation commutation control control oriented with hall sensors with hall sensors sensorless sensorless control sensorless

Copyright © Infineon Technologies 2011. All rights reserved. Page 14 Infineon MCU Key Features for Motor Drive High Performance DSP XE166 Family

Copyright © Infineon Technologies 2011. All rights reserved. Page 15 Infineon MCU Key Features for Motor Drive Key Features of XE166 Family

Copyright © Infineon Technologies 2011. All rights reserved. Page 16 Infineon MCU Key Features for Motor Drive XE166 Target Application – Advanced Motor Control

>1 motor possible

high precision

XE166 product positioning  Everything optimized for real-time performance  Continue C166 and XC166 success by offering upgrade path Large C166 customer base  Address demand of new customers and applications Application optimized performance Enhanced reliability Easy to get, learn and use tool-chain

Copyright © Infineon Technologies 2011. All rights reserved. Page 17 Infineon MCU Key Features for Motor Drive CAPCOM6(CCU6) Module - Dedicated 3Ph PWM Generator

Copyright © Infineon Technologies 2011. All rights reserved. Page 18 Infineon MCU Key Features for Motor Drive CAPCOM6(CCU6) Module - Features

 Very flexible PWM modulation combination 1 Cx6x_T12_o MOD_T13_o A- CC6x_T12_o, COUT6x_T12_o 1 MCMPx Timer T12 events 0 = passive state 1 = active state 1 CTRAP

MOD_T13_o Timer T13 events to output Cx6x_T12_o pin CC6x, 1 COUT6x MOD_T13_o A- MCMPx 0 Multi channel Modulation events 1 MCMPx

PSLx 1 CTRAP

TRPS

Trap events (1 x for each T12-related output) 1 Cx6x_T12_o

1 MOD_T13_o A-

1 MCMPx

0 CTRAP

1 Cx6x_T12_o

MOD_T13_o A-

0 MCMPx

1 CTRAP

Copyright © Infineon Technologies 2011. All rights reserved. Page 19 Infineon MCU Key Features for Motor Drive CAPCOM6(CCU6) Module - Features

 Hysteresis mode provides current control for motor

 Deactivating command given by CCPOSx input pins

 PWM will be OFF till the end of carrier period

 PWM will be turned ON again once CCPOSx low signal released

Copyright © Infineon Technologies 2011. All rights reserved. Page 20 Infineon MCU Key Features for Motor Drive Synchronization between CCU6 & ADC

AN0 AN1 AN7 module kernel … compare channel 0 1 dead- multi- trap T12 channel 1 time channel 1 control control control channel 2 1 t t c e e

start l l t t Conversion AD e e e e e u u e r r r s s r p p

a a a t t u n n t p p p i i

u u control converter

l T13 channel 3 p l p p m m m p t t a a o o o a c u u r c c c H t compare o o 1 3 2 2 2 3 1 input / output control 0 1 2 3

0 1 2 Data 6 S S S 6 6 6

P Request R R T T T T O O O A

0 1 2 (result) H H U U U U P P P 6 6 6

R control 2 3 O O C O C O C C C C T 1 1 handling T T C C C C C C C C C C C

port control

Bus interface

Copyright © Infineon Technologies 2011. All rights reserved. Page 21 Infineon MCU Key Features for Motor Drive Synchronization between CCU6 & ADC  Timer12 compare match starts Timer13 to count.  Timer13 provides a delay for stable current measurement to avoid current ringing, IGBT switch on/off delay and dead time.  Timer13 period match triggers ADC to sample.  All triggering are hardware, no software interrupt needed.

Timer T12

Compare CCxR

CC6x

COUT6x

Timer T13 T13 Period match Synchronize T13 on T12

Start ADC Phase current

Copyright © Infineon Technologies 2011. All rights reserved. Page 22 Infineon MCU Key Features for Motor Drive ADC Module - Phase Current Sensing  There are two low-cost current sampling methods  Single DC shunt resistor

¬ Suitable for IPM(Intelligent Power Module) whose 3 low-side emitters are combined together ¬ Low cost ¬ Limitation in low-speed performance, and 6 sector switching points ¬ Complicated software implementation  Two DC shunt resistors ¬ Cannot be used for the above IPM device ¬ Good sampling current compared with single shunt method ¬ Duty cycle cannot reach 100% because a minimum PWM OFF time is needed for ADC sampling ¬ Simple software implementation Copyright © Infineon Technologies 2011. All rights reserved. Page 23 Infineon MCU Key Features for Motor Drive ADC Module - Single Shunt Current Sensing  Each 60 deg SVPWM sector using the same phase compare match (mid-one) to trigger Timer13.

Timer T12 / CAPCOM6 CC62R CC62R

CC61R CC61R

CC60R CC60R

t Channel 0 (CC60)

Channel 1 (CC61)

Channel 2 (CC62)

Timer T13 T13 Period T13 Period Triggered match Triggered match by CC61 by CC61 t ADC is triggered ADC is triggered IDC by T13 Period match by T13 Period match

ia ia ib ib

t Channel Injection Channel Injection ADC

PEC Transfer from PEC Transfer from t ADC_DAT2 to ADC_DAT2 to memory memory

Copyright © Infineon Technologies 2011. All rights reserved. Page 24 Infineon MCU Key Features for Motor Drive ADC Module - Two Shunt Current Sensing  For 2 shunt R sampling scheme, normal symmetrical SVPWM can be applied.  2-phase current can be sampled when all 3 low-side IGBT/MOSFETs are ON.  Using CC60 compare match to trigger Timer13, when 2 low-side IGBT/MOSFETs are ON.  Using Timer13 period match to trigger ADC sampling

T13PM

ADC

Copyright © Infineon Technologies 2011. All rights reserved. Page 25 Infineon MCU Key Features for Motor Drive ADC Module - How to sample 3-phase within shortest time ?

 ADC0: Ch0 & Ch3 started by sequential request source 2, triggered by CCU62 T13PM.  ADC1: Ch0 triggered by ADC0_Ch0 in parallel sampling mode.  Thus, analog conversion sequence as below:

 ADC0_ch0 -> ADC1_ch0 -> ADC0_ch3 T13PM CCU62 T13

ADC0 ch0 ch3 ch0 ch3

ADC1 ch0 ch0

Ttotal < 1.6usec

Copyright © Infineon Technologies 2011. All rights reserved. Page 26 Infineon MCU Key Features for Motor Drive Vector Computer – CORDIC

Copyright © Infineon Technologies 2011. All rights reserved. Page 27 Infineon MCU Key Features for Motor Drive Vector Computer – CORDIC - Park Transform using CORDIC Ibeta

Iapha  We will need to compute the Id and Iq.

 Traditional Method for computing Id/Iq  Step 1 – Refer to lookup table for cos  Step 2 – Multiple Ialpha with lookup table value  Step 3 – Refer to lookup table for sin  Step 4 – Multiple Ibeta with lookup table value  Step 5 – Add up both result to obtain Id

Copyright © Infineon Technologies 2011. All rights reserved. Page 28 Infineon MCU Key Features for Motor Drive Vector Computer – CORDIC - Park Transform using CORDIC Use CORDIC  Instruction 1 – Setup the CORDIC mode  Instruction 2 – load Z with angle value  Instruction 3 – load X with Ialpha value  Instruction 4 – load Y with Ibeta value, Cordic start automatically CORDIC will output the result of Id and Iq together

Copyright © Infineon Technologies 2011. All rights reserved. Page 29 Infineon MCU Key Features for Motor Drive Vector Computer – MDU

 MDU is very useful for some mathematical functions such as UIDIV, LMUL, ULDIV, LShift  ROM contains most valuable MDU-routines which can be called by user – this saves code space and runtime (no wait-state for ROM access)  Easy integration with compiler  MDU Library support in ROM only available for devices marked with “M”

Copyright © Infineon Technologies 2011. All rights reserved. Page 30 Agenda

 BLDC Motor Drive & MCU Rules

 Infineon MCU Key Features for Motor Drive

 Reference Solutions & Application Kits

 Summary

Copyright © Infineon Technologies 2011. All rights reserved. Page 31 Reference Solutions & Application Kits E-bike Reference Platform HandleBar, Brake, Buzzer Display Panel, Direction

Battery

ECU

ECU HandleBarMotor

Battery

Motor

Copyright © Infineon Technologies 2011. All rights reserved. Page 32 Reference Solutions & Application Kits E-bike Reference Platform - BLDC Trapezoidal Control with 3 Hall Sensors

Solution Strengths  Synchronous Rectification to increase efficiency  Hardware fault detection to disable PWM output instantaneously  Automatic Hall Effect Sensor Decoding and HW Noise Filter  Ebike app library supported

XC866-1FR

Copyright © Infineon Technologies 2011. All rights reserved. Page 33 Reference Solutions & Application Kits BLDC Ceiling Fan  Sensorless FOC using XC836

 110vAC input

 50rpm – 200rpm

 <55w power consumption

 5 wooden fan blades

 Simplified sinusoidal control using XC824

 220vAC input

 50rpm – 350rpm

 <30w power consumption

 3 iron fan blades

Copyright © Infineon Technologies 2011. All rights reserved. Page 34 Reference Solutions & Application Kits BLDC Ceiling Fan - Simplified Sinusoidal Control with Hall Sensors  Infineon 8bit DSO-20 device XC824 offers a perfect match for this application. Function Pin Assignment P1.0 U_H P1.1 U_L P1.2 V_H PWM outputs P1.3 V_L P1.4 W_H P1.5 W_L Low cost CTRAP P0.3 Emergency stop input P0.0 Hall_0 Low noise Hall inputs P0.1 Hall_1 P0.2 Hall_2 P2.0 VR or other speed command High efficiency ADC inputs P2.1 measure Idc P2.2 measure Vdc Easy fine-tuning FG output P0.4 speed feedback UART P0.6 Txd Compact design P0.5 Rxd

Copyright © Infineon Technologies 2011. All rights reserved. Page 35 Reference Solutions & Application Kits BLDC Ceiling Fan - Sensorless FOC Control  Infineon 8bit TSSOP-28 device XC836 offers a perfect match for this application.

Function Pin Assignment P1.0 U_H P1.1 U_L P1.2 V_H PWM outputs P1.3 V_L P1.4 W_H P1.5 W_L Low cost CTRAP P0.3 Emergency stop input P2.0 VR or other speed command Low noise P2.1 measure Iu ADC inputs P2.2 measure Iv High efficiency P2.3 measure Vdc

FG output P0.4 speed feedback No more sensor UART P0.6 Txd

P0.5 Rxd Easy maintenance

Copyright © Infineon Technologies 2011. All rights reserved. Page 36 Reference Solutions & Application Kits Motor Drives in Air Conditioner System

Indoor fan motor  BLDC or PMSM of low power  Low noise  Sinusoidal control is preferred

Compressor Outdoor fan motor  BLDC or PMSM  BLDC or PMSM  High efficiency, low noise  High efficiency, low noise  Sensorless control  Reliable startup in strong wind weather Copyright © Infineon Technologies 2011. All rights reserved. Page 37 Reference Solutions & Application Kits Air Conditioner System Block Diagram

● 800W~3kW ● IPM (Interior Vac PM EMI PFC compre Permanent Magnet) filter ssor motor with sensorless FOC

● Ic : 8A – 30A Gate driver ● 5kHz switching ● Partial switching DC bus Fault Gatings PFC (<2kW) and full voltage ControllerXC800 switching PFC(>2kW) DC bus (XC878) current outdoor Gatings Fault Gatings Speed fan command ● 40-150W 3-phase inverter ● BLDC Sinu Control

● Ic : 1-2A 3-phase inverter ● 15kHz switching Fault Gatings indoor Controller XC800 fan (XC836)

Copyright © Infineon Technologies 2011. All rights reserved. Page 38 Reference Solutions & Application Kits Infineon Application Kits - Solutions for Motor Control from 12 to 230 V

White Goods Air conditioner Field Oriented Control 3phase Dual FOC + PFC Drive Motor Drive 230V XC886 XC878 3A 7,8A + 0,8A

Industrial Drives, Pumps, Fans, Valves and Power Tools 48V DAvE Valves, Gear Motor FOC Motor Drive Drive XC800 FOC XC878 7,5A XC886 24V XC886 7,5A 1,2A

Gauges Pump/Blower LIN Stepper BLDC 12V XC866 XC866 200 mA 20A Block Commutation

Copyright © Infineon Technologies 2011. All rights reserved. Page 39 Reference Solutions & Application Kits LIN STEPPER Application Kit

Key Features:  XC866

 PWM unit

 Fast ADC with <200ns sample time  Supporting 50 to 200mA stepper motor  On board stepper gauge  Software package included to control the stepper motor and deploy your own design

 Free toolchain including compiler and Applications:  Instrumentation / Gauges  Mini-Wiggler for JTAG debug via USB interface  Multi-Axis Positioning  Ready for LIN prototyping  Surveillance Equipment  DAvE compatible software packages  CNC machining  Suitable for Windows 98/2000/XP  Printers  Business Machines

www.infineon.com/LINStepper Order Code: KIT_AK_XC866_LIN_STEPPER

Copyright © Infineon Technologies 2011. All rights reserved. Page 40 Reference Solutions & Application Kits DAvE Drive Application Kit

Key Features:  XC886 with vector computer  PWM unit  Fast ADC with <200ns sample time  Power Board 23V - 56V, 7.5A  15W PMSM Motor and plug in power supply 24V  Using Infineon 6ED003L06 gate driver, BSC196N10 MOSFETs, CoolSET ICE3B0565 power supply and TLE4264 LDO  DAvE Drive Auto code generator (fully functional application code)XC886 Inverter Motor for  Block commutation with hall sensors and sensorless  Sensorless FOC of PMSM  Free toolchain integrated in DAvE Drive  Flexibly generates optimized code and is not based on static libraries  Configures Infineon’s powerful and flexible motor control peripherals Applications:  Compresses a detailed user manual into a few mouse clicks  Industrial motor control  Helps designers to quickly and easily implement advanced  Transportation systems motor control techniques on low-cost components  Consumer Motor Control  Digital isolated real time monitoring tool (USB to JTAG and CAN  Appliance Motor Control bridge)  Suitable for Windows 98/2000/XP

www.infineon.com/DAvEdrive Order Code: KIT_AK_DAVEDRIVE_V2 Copyright © Infineon Technologies 2011. All rights reserved. Page 41 Reference Solutions & Application Kits FOC Drive Application Kit

Key Features:  XC878 with vector computer  2 independent PWM units  Fast ADC with <200ns sample time  XE164 Real Time Signal controller with MAC unit  3 independent PWM units  2 independent fast ADCs with <200ns sample time  Power Board 23V - 56V, 7.5A  15W PMSM Motor and plug in power supply 24V  Using Infineon 6ED003L06 gate driver, BSC196N10 MOSFETs, CoolSET ICE3B0565 power supply and TLE4264 LDO  Software package including source code  Sensorless FOC of PMSM with XE164  Sensorless FOC of PMSM with XC878 Applications:  Free toolchain for XC878 and XE164 including compiler and debugger  Industrial drives  Digital isolated real time monitoring tool (USB to JTAG and  Fans, Blowers CAN bridge)  Pumps  DAvE compatible software packages  Suitable for Windows 98/2000/XP

www.infineon.com/FOCdrive Order Code: KIT_AK_FOCDRIVE_V1 Copyright © Infineon Technologies 2011. All rights reserved. Page 42 Reference Solutions & Application Kits 3 Phase Drive Application Kit

Key Features:  XC886 with vector computer

 PWM unit

 Fast ADC with <200ns sample time  Power Board 110V - 230V AC, 3A

 Inverter with 375W – 750W  Using Infineon IKCS12F60 CIPOS 12A, CoolSET ICE3B0565 power supply and TLE4264 LDO  Software package including source code  Sensorless FOC of PMSM Applications  V/f control of ACIM for quick evaluation  Home appliances

 Free toolchain including compiler and debugger  Washing machines XC878 Motor  Digital isolated real time monitoring tool (USB to  Dish washers JTAG and CAN bridge)  Industrial motor control  DAvE compatible software packages  Pumps  DAvE Drive ready  Fans  Suitable for Windows 98/2000/XP

www.infineon.com/3phasedrive Order Code: KIT_AK_3PHASE_DRIVE_V1 Copyright © Infineon Technologies 2011. All rights reserved. Page 43 Reference Solutions & Application Kits Dual Motor Drive Application Kit

Key Features:  XC878 with vector computer  2 independent PWM units  Fast ADC with <200ns sample time  XE164 Real Time Signal controller with MAC unit  3 independent PWM units  2 independent fast ADCs with <200ns sample time  Power Board 110V - 230V AC, 8A  Inverter A with 900W – 1800W  Inverter B with 100-200W  Boost converter for Power Factor Correction (PFC)  Using Infineon IKCS17F60 CIPOS 17A, 6ED003L06 gate driver, SPD04N50C3 MOSFETs, IDT08S60 SiC diode, SPA15N60C3 MOSFETs, CoolSET ICE3B0565 power supply and TLE4264 LDO  Software package including source code Applications:  Simultaneous control of two PMSM with sensor less FOC & digital PFC with XE164  Air conditioning PFC  Sensor less FOC & digital PFC with XC878  Industrial drives  V/f control of ACIM for quick evaluation  Fans, Blowers  Free toolchain for XC878 and XE164 including compiler and debugger  Pumps  Digital isolated real time monitoring tool (USB to JTAG and CAN  White goods bridge)  DAvE compatible software packages  Suitable for Windows 98/2000/XP www.infineon.com/2motordrive Order Code: KIT_AK_2MOTORDRIVE_V1 Copyright © Infineon Technologies 2011. All rights reserved. Page 44 Agenda

 BLDC Motor Drive & MCU Rules

 Infineon MCU Key Features for Motor Drive

 Reference Solutions & Application Kits

 Summary

Copyright © Infineon Technologies 2011. All rights reserved. Page 45 Summary Brushless DC Motors Microcontroller Solutions – XC800 Family Unique Features

PFC

Copyright © Infineon Technologies 2011. All rights reserved. Page 46 Summary Brushless DC Motors Microcontroller Solutions – XE166 Family Unique Features

PFC

Copyright © Infineon Technologies 2011. All rights reserved. Page 47 Summary Infineon Solutions – BLDC Motors

 Control Solutions

 Usually 8-bit MCUs are powerful enough for trapezoidal control ¬ XC800 Family

 Usually 16-bit MCUs are used for vector or servo control. ¬ XE166 Family ¬ XC88x Family for low end vector control PFC

Copyright © Infineon Technologies 2011. All rights reserved. Page 48 Summary Microcontroller Decision Tree

Which Infineon MCU should I use for my motor

8bit 16bit 32bit Do you already know what Y size and architecture of MCU you want to use ? N XC800 XE164 TC11xx What kind of motor Family Family Family are you using ? Sinusoid Switched DC or Inductio Servo al BLDC Stepper Reluctan Trapezoi n (PMSM) ce dal BLDC

Are you using a 3 or fewer position sensor phases ? Y XC800 What control or What control N scheme do you want to use ? XE164 scheme do you Y N want to use ? Constant V/F Vector Control Slip Freq. Comp. Vector Control XC800 (FOC) Or Open Loop Sinusoidal (FOC) or XC878, XE164 XC800 XE164 XE164 XE164 or or or or XC800 XE164 TC11xx TC11xx TC11xx or XE164

Copyright © Infineon Technologies 2011. All rights reserved. Page 49 Thank You!

영업문의: 윤경문차장, [email protected] 기술문의: 김동하차장, [email protected]