Infineon MCU Motor Drive Application
Total Page:16
File Type:pdf, Size:1020Kb
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 Microcontroller – 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 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.