Eduardo Viramontes A P R External Use

Size: px
Start display at page:

Download "Eduardo Viramontes A P R External Use"

Transcription

1 Hands-On Workshop: Motor Control, Part 2: Efficient and Easy Motor Control with New Kinetis KVxx Family of Microcontrollers for Motor Control FTF-IND-F0015 Eduardo Viramontes A P R TM External Use

2 Rules I will skip over slides seemingly randomly, stop me if you have a question about it. Feel free to ask questions anytime. Make up questions when I ask if you have questions. I don t know the meaning of life, sorry. If you don t enjoy motors you probably shouldn t be here (but do fill out your evaluation form on your way out) External Use 1

3 Agenda Motor Control Challenges/Technology Motor Control Peripherals Kinetis/DSC Motor Control Solutions/Performance Hands-On Visualization/Tuning External Use 2

4 Motor Control Challenges External Use 3

5 What can impact MCU selection? Motor type Used hardware (sensors type and connection) Speed range / sensorless operation Application dynamic Motor parameters Application complexity (other application requirements) External Use 4

6 Motor Type Number of PWM channels DC Motors 1 or 4 channels BLDC motor, PMSM and ACIM: 6 channel Sine wave generation (PMSM, ACIM) Complementary logic automatic dead time insertion Electronic commutation (BLDC motors, SR motors) mask, swap, restart PWM features These features allow to provide commutation without change of duty cycle Fault Control External Use 5

7 Sensors Type and Connection Speed/Position Measurement If quadrature encoder used, decoding of quadrature signals is necessary Current measurement If there is current loop fast ADC (<2.5ms) is advantage (the less time spent by ADC conversion, the more time for control loop calculation. Typically the current control loop is ms If shunts used for current sensing the PWM to ADC synchronization necessary External Use 6

8 Speed Range / Sensorless Operation Speed Range High speed especially for electronically commutated motors requires powerful MCU include powerful peripherals (HW support of commutation, fast ADC) since commutation period becomes very short (few ms) Zero or low speed may be issue for sensorless algorithms Sensorless Motor control DC/BLDC motors Simple algorithms, can run on 8-bit MCU ACIM, PMSM Require powerful MCU core due to motor model calculation External Use 7

9 Dynamic Performance Open Loop Control System Close Loop Control System External Use 8

10 Dynamic Performance Speed Control Applications requiring the motor to operate with a specified speed (pumps, fans, compressors, etc.) Low dynamic performance The actual motor speed is kept by speed controller to follow reference speed command Speed Control with Inner Current Loop Majority of variable speed drives High dynamic performance Position Control Applications with additional position control loop to keep desired position (servos, industrial robots, linear motors) Most complex drives Torque Control Applications requiring the motor to operate with a specified torque regardless of speed (vehicles, electric power steering, winding machines, etc.) External Use 9

11 Dynamic Performance Low Dynamic Applications Closed Loop Speed Control Closed Loop Speed Control with Inner Current Loop External Use 10

12 Dynamic Performance High Dynamic Applications Closed Loop Speed Control Closed Loop Speed Control with Inner Current Loop External Use 11

13 Dynamic Performance Low dynamic performance Speed control loop only Volt per Hertz (V/Hz) method is suitable for low dynamic drives (ACIM & PMSM) Low performance MCU core required (also 8-bit) High dynamic performance Inner current loop brings benefit for high dynamic application Inner current loop requires more computation power since the current controller is calculated every PWM period Speed Control with inner current/torque loop (DC/BLDC motors) Current control loop calculated every PWM period 16-bit MCU preferred Field Oriented Control (ACIM and PMSM) FOC loop calculated every or second PWM period Powerful 16-bit MCU core required External Use 12

14 Motor Parameters The motor drive has two important time constants: Electrical motor constant The electrical constant is defined by RL parameters of stator windings: L e R The electrical constant impacts the execution/timing of current loop Mechanical motor constant The mechanical constant is defined by the motor inertia include the load The mechanical constant impacts the execution/timing of speed loop Since the electrical constant is much smaller than mechanical, it has critical impact on MCU performance External Use 13

15 Motor Parameters The execution time of control loop should be ideally at least 10-times faster than the time constant of control loop I phase [A] 63.2% L e R T[s] External Use 14

16 Motor Parameters The execution time of control loop is multiple of PWM period If /10 is significantly longer than the PWM period, the control loop is executed every 2 nd, 4 th PWM period -> more time for control loop calculation -> less powerful MCU can be used If the /10 is extremely lower than PWM period it may lead to increase PWM frequency to keep control loop stable External Use 15

17 Application Complexity There may be other application requirements, which can limit the MCU selection like: Communication requirements Ethernet, CAN, USB, SD card Graphical interface LCD, VGA controllers Application memory requirements External Use 16

18 Motor Control Technology External Use 17

19 MCU Requirements for Motor Control Applications A Gate Driver with Isolation B C Motor Current Feedback Speed/Position Feedback Speed/Torque Command PWM Generation Control Algorithm Feedback Processing MCU External Use 18

20 MCU Requirements for Motor Control Applications ADC Module We need to measure DC Bus voltage, Back-EM voltage, phase currents, DC Bus current, heatsink temperature PWM module We need to generate 1 up 8 PWM according to motor type Timer/Quadrature decoder We need to measure speed and rotor position from different sensors (hall sensors, quadrature encoder, tacho generator, sin/cos interface, etc.) Built-in Comparator We need to detect fault conditions (over-current, over-voltage) Allows to eliminate external comparators Build in DAC allows SW control of fault level User interface Communication interfaces, if required (SCI, SPI, CAN, I2C) GPIO pins External Use 19

21 Kinetis V Series MCUs ARM Cortex -M-based Motor Control MCUs External Use 20

22 Kinetis Key Pillars by Family L E K X W M V Low Power 5V Robustness High Performance & Rich Integration Extreme performance & integration Integrated RF Connectivity Integrated metrology engine Motor and Power Conversion 48MHz Cortex M0+ Up to 48MHz Cortex M0+ Up to 180MHz Cortex M4 Up to 400MHz Cortex M-next Up to 50MHz Cortex M4, Cortex M0+ Up to 48MHz Cortex M0+ Up to 200MHz, Cortex M4, Cortex M0+ 8KB to 512kB Flash 8KB to 128kB Flash 32KB to 2MB Flash 0KB to 16MB Flash 32KB to 512kB Flash 32KB to 128kB Flash 16KB to 2MB Flash Up to 128KB RAM Up to 16KB RAM Up to 256KB RAM Up to 512KB RAM Up to 64KB RAM Up to 32KB RAM Up to 256KB RAM Now! Now! Now! Q2 14 Q4 13 Q4 13 Q1 14 Leading Performance Low Power Scalability Industrial Grade reliability & temp Freescale Bundled IDE, RTOS & Middleware Rapid Prototyping Platform Broad ARM Ecosystem Support External Use 21

23 Motor Control and Power Conversion Market Trends Motor Control Innovation Precise speed and torque control, quieter operation, increased reliability, connectivity for remote system monitoring Increased efficiency Significant reduction in motor power consumption with modern BLDC, PMSM and ACIM technologies System integration Reduced component count & BOM cost Hardware and software reuse Multiple end-products from a single MCU platform entry level BLDC, to multi- motor PMSM and ACIM Safety, reliability and security Compliance with regional safety standards, extended product life Power Conversion Innovation Dynamic load compensation, system parameter modification to counter analog component drift Increased conversion efficiency Reduced power consumption and improved green credentials Increased power density Smaller, cooler systems Software flexibility Product customization for different customers, applications and regions Safety, reliability and security Compliance with regional safety standards, extended product life External Use 22

24 Introducing Kinetis V Series Motor Control and Power Conversion MCUs Builds on Freescale s motor and power control expertise to address NEW mass market customers. Enables efficient, next generation BLDC, PMSM and ACIM designs through optimized performance, analog and timing IP. High speed DSC peripherals are ideal for advanced motor control and power conversion and include the fastest ADC in the Freescale MCU portfolio. Features scalable, low-power families built on ARM Cortex processors starting with the industry s fastest ARM Cortex-M0+ MCU. Includes sophisticated enablement tools like the new, easy-to-use Kinetis motor suite which helps to reduce development time and cost for every customer. External Use 23

25 Kinetis V Series Target Applications Motor Control Sensored BLDC / PMSM High Dynamic Control Sensored ACIM Sensorless VOC PMSM/BLDC High Dynamic Control Low Dynamic Control Sensorless ACIM Digital Power Conversion Solar Inverters Grid-Tied Non Grid Tied Power factor correction Switch Mode Power Supplies AC/DC DC/DC UPS On-Line Offline Inductive cooking Multi cook plate External Use 24

26 Performance TM Solutions for Motor Control and Digital Power Conversion ARM Cortex-M0+ ARM Cortex-M4 ARM Cortex-M 2014 KV1x Family BLDC, entry level PMSM + High Speed ADC + High Resolution PWM 2014 KV3x Family Mid range PMSM, UPS power control + Advanced Memory, Connectivity and Communications Motor Control Software KV4x Family High performance motors, UPS, solar and mid range AC/DC control Feature Integration + Multi Channel Timers + Floating Point Unit KVxx Families Increasing performance and feature integration Optimized memory configurations Freescale IDE, RTOS, Software Libraries and Motor Control Development Tools External Use 25

27 Kinetis V Series Performance and Feature Scalability High Performance DSC Peripherals MCU Family Core Memory Key IP for Motor and Power Control Applications Motor Control Timers Enhanced Timers ADC DAC ACMP LQFP & QFN Packages KV4x 150MHz CM4 DSP + FPU kB Flash 2 x 8ch 1x 2ch FlexTimers 12ch eflexpwm + Nano- Edge 2x 12bit 4.1Msps / 1.9Msps 2x 12-bit 4x ACMP with 6-bit DAC 100 pin 64 pin KV3x 100/120MHz CM4 DSP + FPU kB Flash 2x 8ch 2x 2ch FlexTimers - 2x 16-bit 1.2Msps 2x 12-bit 2x ACMP with 6-bit DAC 100 pin 64 pin 48 pin 32 pin KV1x 75MHz CM0+ H/W DIV & SQRT 16-32kB Flash 1x 6ch 2x 2ch FlexTimers - 2x 16-bit 1.2Msps 1x 12-bit 2x ACMP with 6-bit DAC 48 pin 32 pin Scalable performance, timing and analog functionality based on application needs External Use 26

28 Current Kinetis V Series Product Families KV1x Family KV3x Family KV4x Family Features 75 MHz + h/w DIV & SQRT block >25% performance gain vs. comparable MCUs 2x 1.2Msps ADCs, ACMP and DAC Target Applications 3-phase BLDC and low end PMSM, low dynamic control Features 100/120 MHz CM4 DSP + FPU for advanced algorithm processing Scalability from KB, pin. External bus interface Target Applications All motor control applications, high dynamic control Features 150 MHz,128-bit cache 2x 4.1 Msps ADC, 312 ps eflexpwm (NanoEdge resolution), up to 30-Ch. PWM, FlexCAN Target Applications Multi-motor systems, high dynamic control, power conversion, UPS, AC/DC SMPS External Use 27

29 Kinetis V Series Product Family Scalability Common Features System KV4x Family: Advanced Control Systems ARM Cortex-M0+ core (H/w DIV&SQRT) ARM Cortex-M4 core (DSP + FPU) Multiple low-power modes Power Supply 1.71V - 3.6V Operating Temp: -40 to 105 C KV46 KV KB Flash KB Flash 24-32KB RAM 24-32KB RAM 2x 12-bit ADC up to 4.1 Msps 2x 12-bit ADC up to 1.9 Msps FlexTimers up to 18ch FlexTimers up to 18ch eflexpwms up to 12ch eflexpwms up to 12ch Nano Edge CAN up to 2 DAC CAN 2 Memory 90nm TFS Flash, SRAM Internal Memory Security/Protection Direct Memory Access Controller Analog Dual 12/16-Bit ADCs KV44 KV43 KV40 Cortex-M4 w FPU 150MHz KB Flash KB Flash KB Flash 16-24KB RAM 16-24KB RAM 16-32KB RAM 2x 12-bit ADC up to 4.1 Msps 2x 12-bit ADC up to 1.9 Msps 2x 12-bit ADC up to 1.9 Msps eflexpwms up to 12ch eflexpwms up to 12ch FlexTimers up to 18ch NanoEdge DAC CAN CAN up to 2 CAN up to 2 12-bit DAC Analog Comparators Serial Interfaces UART SPI, IIC Timers FlexTimer (1ns) / eflexpwm (312ps) KV3x Family: High Dynamic Control Systems KV31 KV30 Cortex-M4 w FPU 100/120MHz Cortex-M4 w FPU 100MHz KB Flash KB Flash 24-96KB RAM 16KB RAM 2x 16-bit ADC up to 1.2 Msps* 2x 16-bit ADC up to 1.2 Msps* KV1x Family: Low Dynamic Control Systems FlexTimers up to 20ch FlexTimers up to 12ch DAC up to 2 DAC 16-bit Low Power Timer Programmable Delay Block KV10 Cortex-M0+ 75MHz 16-32KB Flash 8KB RAM 2x 16-bit ADC up to 1.2 Msps* FlexTimers up to 10ch * 1.2Msps rate avalable in 12-bit mode External Use 28

30 KV1x Features and Benefits Features Cortex Hardware Square Root & Divide blocks Benefits Fastest ARM Cortex M0+ MCU in the market. Enables advanced PMSM motor control with a small footprint, cost-effective MCU Up to 35% performance vs. ARM Cortex-M0 based MCUs in mathintensive applications such as Sensorless FOC algorithms 2 x 16-bit ADCs with 835nS conversion times Capture current & voltage simultaneously for the most accurate result 4-ch DMA 6-ch FlexTimer + 2 x 2-ch FlexTimer Integrated 6-bit DAC & CMP Peripheral Interconnection Light weight peripheral and memory configuration Dual Watchdog Reduced CPU loading, improved system performance Motor control PWM generation with integrated PFC, or integrated speed sensor decoder (incremental decoder / hall sensor) Fault detection against over-current and over-voltage. Reduced Bom costs ADC and ACMP interconnected with PWM and PDB for real time hardware control Enough performance for the majority of motor control applications, with the right amount of memory to fit complex motor control algorithms IEC60730 Compliant solution External Use 29

31 KV3x Features and Benefits Features Cortex M4 solution with up to 120MHz performance Scalable memory solutions Single Precision Floating Point Unit Scalable Timer Solutions Benefits Cortex M class core with DSP functionality enabling all motor control applications Highly scalable family with dedicated cost effective solutions for Motor Control Increased numeric resolution for Math Intensive calculations enabling easy conversion from Matlab models Support for single and multiple motor control with PFC Dual ADC blocks at 835nS conversion Integrated 6b DAC & CMP Dual Watchdog 32-byte Register File FlexBus Capture current & voltage simultaneously for the most accurate result Reduce BOM costs with integrated components for over current over voltage fault detection IEC60730 Compliant Solution Low power RAM memory retention Enables further memory expansion allowing all system needs to be included. External Use 30

32 KV4x Features and Benefits Features 150MHz cortex M4 core 128bit wide, 128Bit cache 240ns conversion time ADC eflexpwm Timer Nano edge timer capability Up to 30 Timer channels Dual CAN Quadrature Encoder Memory Protection Unit Floating point unit as standard across family Dual ADC blocks with dual sample and hold Inter Module Crossbar w/ AND & OR interface Dual Watchdog Benefits High performance core needed for the most demanding mathematically dependant applications Fast Flash access with reduced wait states The fastest ADC conversion time is the Freescale Microcontroller portfolio The most advanced and flexible timer options available simplifying development and implementation First Cortex solution to feature very high resolution PWM capability enabling true power conversion Manage multiple control loops in parallel Increased systems options, perfect for UPS applications Integrated speed sensor decoder (incremental decoder / hall sensor) Restricts access to key modules from within user mode enabling easier certification and greater reliability. Increase numeric resolution for Math Intensive calculations and enabling Capture current & voltage simultaneously for the most accurate result Configure your peripheral communication as your topology demands, simplifying pin out and reducing cross peripheral & CPU communication. IEC60730 Compliant Solution External Use 31

33 Flash Memory TM Kinetis V Series Package Scalability Precision Intermediate Entry-level 512KB KV3x KV3x 256KB KV4x KV3x KV4x KV3x 128KB KV4x KV4x KV3x KV3x KV3x KV3x 64KB KV3x KV3x KV4x KV3x 32KB KV1x KV1x KV1x 16KB KV1x KV1x KV1x 32QFN 32LQFP 48LQFP 64 LQFP 100 LQFP Package External Use 32

34 Kinetis V Series Enablement New Kinetis Motor Suite A simple-to-use, motor control development suite that allows customers of all experience levels to design applications quickly, efficiently and without the need for in-depth motor control expertise. Turnkey solutions initially targeting fans, compressors and pumps. MCU interaction via GUI. Additional application areas will be developed over time. Advanced solutions for user development of app. code, with Kinetis motor suite configuring and controlling the motor subsystem. Motor Parameters & Control Observer Config. ADRC Motor Subsystem Application function Kinetis Motor Observer Kinetis motor tuner Real time view of operation Kinetis motor manager Motor Control Tools New Freescale Enablement Software Kinetis SDK, Kinetis Design Studio, Kinetis Bootloader FreeMASTER: GUI-based run-time debug monitor and data visualization tool MCAT: FreeMASTER plug-in for real-time monitoring, tuning and updating of control parameters Motor Control Toolbox: MATLAB modeling environment plug-in for automatic code generation Software Libraries for CM0+/M4 & IEC60730: Math, General, Filter and Motor Control libraries. Sensorless algorithms for advanced control Tower Development System, IDEs & Auto-code Generators: KDS, IAR, Keil & Processor Expert Extensive Ref. Design and App. Note Library: BLDC, PMSM, High Voltage Power Stage and more Supported by Freescale s Motor Control Center of Excellence with 20+ years of expertise in MCU development, enablement and customer support External Use 33

35 Kinetis V Series Availability MCU Family Core / Frequency Flash Range ADC FlexTimers / eflexpwm Starting From Price (10K# SRP, USD) Expected availability (Samples / Production) KV4x Cortex-M4 150 MHz KB 2x 12bit 4.1 MSps / 1.9 MSps Up to 8-ch. FlexTimer / 12-ch. eflexpwm + Nano-Edge *$2.99 Sept KV3x Cortex-M4 100/120 MHz KB 2x 16-bit 1.2 MSps Up to 20-ch. FlexTimers *$1.79 Apr / Aug KV1x Cortex-M0+ 75 MHz KB 2x 16-bit 1.2 MSps Up to 10-ch. FlexTimers $0.99 Now *Subject to change External Use 34

36 Summary Scalable, low-power MCUs for next-generation motor control and digital power conversion applications Addressing market requirements Cortex-M series MCUs with performance, analog and timing IP for every motor control use case. Advanced DSC peripherals for the most demanding motor control and power conversion systems. Product family scalability From the industry s fastest Cortex-M0+ MCU, to 150 MHz Cortex-M4 MCUs with FPU. Multiple memory, peripheral and package options for evolving end product feature and price requirements. Enabling every customer Class-leading tools including free software libraries and the new Kinetis motor suite designed for simpler, faster and more cost-effective system development. Kinetis V Series MCUs on display at Freescale Technology Forum April 8-11 in Dallas, Texas External Use 35

37 Kinetis Motor control peripherals External Use 36

38 PWM Signal Generation Sinusoidal Controlled Motors AC Induction Motor, PM Synchronous Motor PWM Requirements Synchronized PWM Update Complementary Signal Generation Dead-time insertion Fault Control Block Commutated Motors BLDC Motor, SR Motor, Stepper Motor Commutation is asynchronous to PWM generation Software Control Mask/Swap (Invert) Control Fault Control External Use 37

39 FlexTimer Module FTM source clock is selectable with prescaler divide-by 1, 2, 4, 8, 16, 32, 64, or 128 FTM has a 16-bit counter 2 up to 8 channels (inputs/outputs) The counting can be up or up-down Each channel can be configured for input capture, output compare, or Input filter can be selected for some channels New combined mode to generate a PWM signal (with independent control of both edges of PWM signal) Complementary outputs, include the deadtime insertion Software control of PWM outputs Up to 4 fault inputs for global fault control The polarity of each channel is configurable The generation of an interrupt per channel input capture/compare, counter overflow, at fault condition Synchronized loading of write buffered FTM registers Write protection for critical registers Backwards compatible with TPM Dual edge capture for pulse and period width measurement Quadrature decoder with input filters, relative position counting and interrupt on Position count or capture of position count on external event External Use 38

40 FlexTimer Module Diagram External Use 39

41 FTM Counting Modes Edge Aligned PWM The frequency is defined by FTMx_MOD register The duty cycle is defined by FTMx_CnV register External Use 40

42 FTM Counting Modes Edge Aligned PWM If FTMx_CNTIN register is set to non zero value, then the frequency defined as FTMx_MOD - FTMx_CNTIN +1 External Use 41

43 FTM Counting Modes Center Aligned PWM The frequency is defined by FTMx_MOD register The duty cycle is defined by FTMx_CnV register Note: For Center Aligned PWM the FTMx_CNTIN has to be set to 0 External Use 42

44 FTM Counting Modes Combined PWM Mode Two FTM Channels are combined together to define one PWM signal The channel n (FTMx_CnV register) defines rising edge of PWM signal The channel (n+1) (FTMx_C(n+1)V register) defines falling edge of PWM signal In independent mode both outputs generates two equal signals In complementary mode both outputs generates two complementary signals External Use 43

45 FlexTimer Edge Aligned PWM Generation MOD ($0100) C1V ($0000) CNTIN ($FF00) C0V = $FF00 Channel 0,1 Output All PWM-on values are set to the init value, and never changed again. Positive PWM-off values generate pulse widths above 50% duty cycle. Negative PWM-off values generate pulse widths below 50% duty cycle. This works well for bipolar waveform generation. External Use 44

46 FlexTimer Center Aligned PWM Generation MOD ($0100) C1V ($0000) C0V CNTIN ($FF00) Channel 0, 1 Output When the Init value is the signed negative of the Modulus value, the PWM module works in signed mode. Center-aligned operation is achieved when the turn-on and turn-off values are the same number, but just different signs. External Use 45

47 FlexTimer Shifted PWM Generation MOD ($0100) C3V C1V ($0000) C2V C0V CNTIN ($FF00) Channel 0, 1 Output Channel 2, 3 Output In this example, both PWMs have the same duty-cycle. However, the edges are shifted relative to each other by simply biasing the compare values of one waveform relative to the other. External Use 46

48 Single Shunt Current Reconstruction +U/2 DC Bus PWM At PWM Bt PWM Ct Phase A Phase B Phase C PWM Ab PWM Bb PWM Cb - U/2 Shunt resistor Shunt resistor Ground n 3-ph AC Induction Motor 3-ph PM Synchronous Motor External Use 47

49 Single Shunt Current Reconstruction - Analysis Measurement Table Voltage Vector DC-Link current i dc A B (000) (100) (110) (111) (110) (100) V 1 (100) V 2 (110) +i a -i c C V 3 (010) +i b V 4 (011) -i a V 5 (001) +i c V 6 (101) -i b V 7 (111) 0 i DC =0 i DC =+i a i DC =-i c i DC =0 i DC =-i c idc=+ia t delay t deadtime t progdelay V 0 (000) 0 External Use 48

50 Single Shunt Current Reconstruction - Issues Two current samples cannot be taken: 1. Voltage vector is crossing a sector border Only one sample can be taken 2. Low modulation indexes Sampling intervals too short None of current samples can be taken Passing Active Vector Low Modulation Index External Use 49

51 Single Shunt Current Reconstruction - Solution Asymmetrical PWMs Case 1 Passing active vector: Freeze center edge Move one critical edge Goes for higher modulation indexes Critical edge Move critical edge Case 2 Low modulation indexes: Freeze center edge Move both side edges in opposite direction Goes for low modulation indexes Critical edges Move critical edges External Use 50

52 Block Commutation The commutation depends on rotor position and it is asynchronous to PWM modulation The PWM outputs state has to be change at any time during PWM period but the PWM update is done at the end of the PWM period only The solution is to use mask, invert and sw control features on FlexTimer module External Use 51

53 FTM Mask, Invert and SW Control Features MASK Control The Mask feature disable PWM output regardless to duty cycle value Inverter Control The Invert feature inverts signal going to complementary logic. It results in signals swap for top and bottom transistor. This feature can be used in complementary mode Software Control This feature set user value (0, 1) to PWM output regardless to duty cycle value External Use 52

54 BLDC Motor Commutation Six Step BLDC Motor Control Voltage applied on two phases only +U/2 DC Bus PWM At PWM Bt PWM Ct Phase A Phase B Phase C PWM Ab PWM Bb PWM Cb - U/2 Shunt resistor Shunt resistor Ground n 3-ph Brushless DC Motor External Use 53

55 BLDC Motor Commutation Six Step BLDC Motor Control Voltage applied on two phases only It creates 6 flux vectors Phases are powered based on rotor position The process is called commutation Phase voltages External Use 54

56 BLDC Motor Commutation Complementary bipolar PWM switching Q1=Q4=PWM; Q2=Q3=Q1 External Use 55

57 BLDC Motor Commutation 70% A B C 70% 70% PWM Output Mask Register (FTMx_OUTMASK) % 30% 30% FTM Inverting Control Register (FTMx_INVCTRL) All six FTMx_CnV registers are set to generate 70 % Duty Cycle Complementary logic with deadtime enabled Speed Control External Use 56

58 BLDC Motor Commutation 0% 1. 0% A B C 70% 70% % 30% PWM Output Mask Register (FTMx_OUTMASK) transistors Mask will disable the complementary transistors pair FTM Inverting Control Register (FTMx_INVCTRL) MASK All six FTMx_CnV registers are set to generate 70 % Duty Cycle Complementary logic with deadtime enabled Speed Control External Use 57

59 BLDC Motor Commutation 0% 1. 0% 2. A B C MASK 70% 30% % 70% 6. INVERT All six FTMx_CnV registers are set to generate 70 % Duty Cycle Complementary logic with deadtime enabled Speed Control Commutation Control PWM Output Mask Register (FTMx_OUTMASK) transistors Mask will disable the complementary transistors pair FTM Inverting Control Register (FTMx_INVCTRL) Invert reroutes the top and bottom control signals of complementary pair External Use 58

60 FTM Fault Control There are four fault inputs ORed into single fault signal The fault signal disables all PWM outputs The polarity of the fault signal is user configurable The all inputs have input filter Manual or automatic clear fault control External Use 59

61 Build-in Comparator Continuous, Sampled, Windowed modes Programmable filter and hysteresis Up to eight independently selectable channels for positive and negative comparator inputs External pin inputs and several internal reference options including 6bit DAC, 12-bit DAC, bandgap, VREF, OpAmp, 6-bit DAC Output range (Vin/64) to Vin VREF or VDD selectable as DAC reference External Use 60

62 16-bit ADC Analog Quantities Measurement Up to 4 pairs of differential and 24 single-ended external analog inputs Single or continuous conversion (automatic return to idle after single conversion) Configurable sample time and conversion speed/power Input clock selectable from up to four sources Operation in low power modes Asynchronous clock source for lower noise operation Selectable hardware conversion trigger with hardware channel select Automatic compare with interrupt for less-than, greater-than or equal-to, within range,or out-ofrange, programmable value Temperature sensor Hardware average function Selectable voltage reference: external or alternate Self-calibration mode Programmable Gain Amplifier (PGA) with up to x64 gain External Use 61

63 ADC Analog Inputs Section Up to 24 single ended channels and 4 differential channels Internal channel connections from: DAC, Temp Sensor PMC Bandgap Vrefh, Vrefl Vref_Out VREF selection from: Vrefh,Vrefl external pin pair or VREF module Channel Interleaving on s.e. and diff. channels External Use 62

64 Multiple Channel Select and Result Registers Multiple ADC_SC1n registers are used to select channels and conversion modes for the ADC Each ADC_SC1n register contains its own channel selection bitfield interrupt enable and conversion complete flag to allow flexibility in the interrupt handling Programmable Delay block hardware triggers ( and also other trig sources ) can be sent to the ADC to initiate conversions at pre-set time intervals for detailed control of ADC conversion timing Results for each ADCSC1 are stored in individual result registers ADC_Rn 2 sets of control (ADC_SC1n) and result (ADC_Rn) registers implemented on available Kinetic devices up to 4 ADC modules available on Kinetis devices External Use 63

65 Three-phase Current Measurement The ADC provides one differential and one single ended input channel connected to both ADC modules It can be utilized with advantage for 3-phase current measurement We need to measure two phase currents in parallel (any combination) This requires to have one phase connected to both ADC modules Therefore it is desirable to connect one phase current signal to interleaved channel Phase A => ADC0 Phase B => ADC1 Phase C => ADC0/ADC1 External Use 64

66 ADC to PWM Synchronization - Why Needed? ADC sampling helps to filter the measured current - antialiasing Average Current PWM Period Inductor Current Asynchronous Sampling Sampled Current Synchronized Sampling PWM 0 ADC trigger Signal A/D calc. Data Processing and New PWM Parameters Calculation External Use 65

67 ADC to PWM Synchronization - Why Needed? Phase current can be sensed for certain time only +U/2 DC Bus PWM At PWM Bt PWM Ct PWM1 Q AT Phase A Phase B Phase C PWM Ab PWM Bb PWM Cb PWM2 Q AB - U/2 Shunt resistor Shunt resistor Ground Dead Time I sense_a n 3-ph AC Induction Motor 3-ph PM Synchronous Motor time to sensing stabilized current sampling window External Use 66

68 Programmable Delay Block (PDB) The PDB provides delays between input and output triggers Up to 4 channels available (one for each ADC) with two pretriggers Trigger 0 => Sample A Trigger 1 => Sample B External Use 67

69 Speed/Position Measurement The FlexTimer can be used for Speed/Position Measurement Quadrature Mode The FTM is capable to decode signals from quadrature encoder There are input filters for both A and B inputs External Use 68

70 Speed/Position Measurement FlexTimer Dual Capture Capability FTM is capable to capture two consecutive edges The One-shot Capture mode Captures two edges and disable capturing The Continuous Capture mode The edges are captured continuously Pulse width measurement with both positive/negative polarity Period measurement Between two consecutive edges of the same polarity Between two consecutive rising/falling edges External Use 69

71 Digital Signal Controllers (DSC) Motor control peripherals for 56F8xxx families External Use 70

72 MC56F827x Half the Power, Twice the Performance (100MHz in a 5x5 32pin QFN!) 100MHz DSP 32-BIT 56800EX Hawk V3 core Fastest DSC in its class with 100 MHz of performance FIR Filter 6x faster than ARM CortexM3 The highest number of operations per cycle of any MCU in its class Fractional arithmetic Nested looping Superfast interrupt High Performance DSC Core eflexpwm Freescale s most advance timer for Digtial Power Conversion with up to 8ch and 312pico-sec resolution, supported by 4 independent time bases, with half cycle reloads for increased flexibility and best in class performance High Performance Peripherals NanoEdge placer to implement fractional delays Intermodule Cross-Bar directly connecting any input and/or output with flexibility for additional logic functions (AND/OR/XOR/NOR) DAC with hardware Waveform generation support Very high speed ADCs capture events real time. The lowest power DSC available on the market Less than 0.4mA/Mhz at full speed run Concurrent operations offer best-inclass execution times and overall low power run rates. Lowest Power Lowest Cost of Design Advanced Integration & development speed A high level of on-chip integration lowers external Op Amp and capacitor costs. Motor Control, Power Control, Safety (IEC60730) Libraries, PMBus software stack, PLC software stack. Motor control with integrated Power Factor Correction (PFC) reducing chip count. Proven 5 volt tolerant I/O and Peripheral Crossbar enable greater flexibility and system cost reduction. Development tools, including FREEMaster External Use 71

73 Enhanced Flex Pulse Width Modulator (eflexpwm) Four independent sub-modules with own time base, two PWM outputs + 1 auxiliary PWM input/output 16 bits resolution for center, edge aligned, and asymmetrical PWMs Fractional delay for enhanced resolution of the PWM period and edge placement Complementary pairs or independent operation Independent control of both edges of each PWM output Synchronization to external hardware or other PWM sub-modules Double buffered PWM registers Integral reload rates from 1 to 16 include half cycle reload Half cycle reload capability Multiple output trigger events per PWM cycle Support for double switching PWM outputs Fault inputs can be assigned to control multiple PWM outputs Programmable filters for fault inputs Independently programmable PWM output polarity Independent top and bottom deadtime insertion Individual software control for each PWM output Software control, and swap features via FORCE_OUT event Compare/capture functions for unused PWM channels Enhanced dual edge capture functionality External Use 72

74 eflexpwm - Sub-Module Detail External Use 73

75 eflexpwm PWM Generation External Use 74

76 eflexpwm Edge Aligned PWM Generation VAL1 ($0100) VAL5 INIT ($FF00) ($0000) VAL3 VAL2, VAL4 = $FF00 CH0 b CH0 a All PWM-on values are set to the init value, and never changed again. Positive PWM-off values generate pulse widths above 50% duty cycle. Negative PWM-off values generate pulse widths below 50% duty cycle. This works well for bipolar waveform generation. External Use 75

77 eflexpwm Center Aligned PWM Generation VAL1 ($0100) VAL3 VAL5 ($0000) VAL4 VAL2 INIT ($FF00) Ch0 a Ch0 b When the Init value is the signed negative of the Modulus value, the PWM module works in signed mode. Center-aligned operation is achieved when the turn-on and turn-off values are the same number, but just different signs. External Use 76

78 eflexpwm Shifted PWM Generation VAL1 ($0100) VAL5 VAL3 ($0000) VAL4 VAL2 INIT ($FF00) CH0 a CH0 b In this example, both PWMs have the same duty-cycle. However, the edges are shifted relative to each other by simply biasing the compare values of one waveform relative to the other. External Use 77

79 eflexpwm Force Output Logic External Use 78

80 eflexpwm Complementary and Deadtime Logic External Use 79

81 eflexpwm Fractional Delay and Output Logic External Use 80

82 A/D Converter 12-bit resolution Maximum ADC clock frequency of 20 MHz with 50 ns period Sampling rate up to 6.66 million samples per second Single conversion time of 8.5 ADC clock cycles ( ns = 450 ns) Additional conversion time of 6 ADC clock cycles (6 50 ns = 300 ns) ADC to PWM synchronization through the SYNC0/1 input signal sequentially scans and stores up to sixteen measurements Scans and stores up to eight measurements each on two ADC converters operating simultaneously and in parallel Scans and stores up to eight measurements each on two ADC converters operating asynchronously to each other in parallel Multi-triggering support Gains the input signal by x1, x2, or x4 Optional interrupts at end of scan if an out-of-range limit is exceeded or there is a zero crossing Optional sample correction by subtracting a pre-programmed offset value Signed or unsigned result Single-ended or differential inputs PWM outputs with hysteresis for three of the analog inputs External Use 81

83 MUX TM RESULT MUX IRQ Logic A/D Converter HIGH LIMIT Gain Setting X1, x2, x4 8x LOW LIMIT > < Above Below IRQ AN0 Zero Crossing Logic AN1 ANx PGA V+ 12Bit ADC V- ADC RESULT 16x Vrefl Channel Select Single Ended or Differential ADC OFFSET 8x External Use 82

84 Crossbar Switch - MC56F824x/5x Flexible signal interconnection among peripherals Connects any of 22 signals on left side to the output on right side (multiplexer) Total 30 multiplexers All multiplexers share the same set of 22 signals Increase flexibility of peripheral configuration according to user needs External Use 83

85 Crossbar Inter-module Connection - MC56F824x/5x External Use 84

86 Crossbar Inter-module Connection - MC56F84xx Crossbar B AND-OR-INV Logic AND-OR-INV Logic AND-OR-INT Logic AND-OR-INV Logic n n n n n n n6 n n n n DMA Req INT eflexpwm HS-CMP Timer Q_Decoder I/O PDB Crossbar A External Use 85

87 Motor Control Solutions Devices and enablement External Use 86

88 Motor Control Devices ASP under $1 Kinetis < $4 Kinetis K < $2 Kinetis E < $1.5 Freescale DSC Positioning: Dedicated High Performance Motor Control Key Message: Fractional Arithmetic, Parallel Processing, Optimized cost and performance for advanced motor control Example: Most advanced 3ph Sensorless VOC, High and Low Speed Optimizations Kinetis V Series MCUs: Specialized Motor Control Family Positioning: Advanced motor control while multi-tasking on the most popular ecosystem in the world Key Message: MQX RTOS and motor control, Scalability for any application, DSP instructions, Floating Point, ARM ecosystem Example: Sensored or Sensorless Sinosoidal BLDC/PMSM VOC/FOC MC56F827x MC56F823x Kinetis V 75 MHz Cortex M0+ Kinetis V MHz Cortex M4 Kinetis X < $4 Kinetis K < $2 Kinetis E < $1.5 Kinetis MCUs for Motor Control Kinetis K MHz General Purpose Advanced motor control while multi-tasking on the most popular ecosystem in the world - MQX RTOS and motor control, Scalability for any application, DSP instructions, Floating Point, ARM ecosystem Kinetis L Example: Sensored or Sensorless Sinosoidal BLDC/PMSM VOC/FOC Low Power General Purpose Kinetis E 5V drive, robust ASP under $1 S08P 8-bit S08 Family Entry Level Motor Control - 5V drive, Robust EMC/EMI, Low Cost Example: Sensored, Sensorless Trapezoidal BLDC S08PT S08PL S08PA External Use 87

89 FreeMaster Monitoring Tool Application control and monitor Live graphs, variable watches, and graphical control page Real-time operation monitor Supports: - HCS08, HC12, HCS12 and HCS12X BDM - 56F8000, 56F8100 and 56F8300 JTAG - SCI driver (FMASTERSCIDRV) for all platforms External Use 88

90 Documentation ACLIB MCLIB Processor Freescale Embedded Software Libraries Range of Applications: Digital Control Systems Motor Control (BLDC, PMSM, AC) User Application SW APPLICATION Application SW Highlights/Description: Software modules implemented in assembly Optimized for speed C-callable interface Easy to use Fully documented GDFLIB GFLIB FSLESL On-Chip Drivers System Infrastructure Libraries On-Chip Driver On-Chip Peripherals PINS External HW Deliverables: FMaster* Support External App.* Support *Optional External Connections General Function Library (GFLIB) contains math, trigonometric, look-up table and control functions. These software modules are basic building blocks. Motor Control Library (MCLIB) contains vector modulation, transformation and specific motor related functions to build digitally controlled motor drives. General Digital Filter Library (GDFLIB) contains filter functions for signal conditioning. Advanced Control Library (ACLIB) will contain functions to enable building the variable speed AC motor drive systems with field oriented control techniques without position or speed transducer (will be available soon). External Use 89

91 Control Library Functions Control Functions Clark Clarke Transformation algorithm ClarInv Inverse Clarke Transformation algorithm Park - Park Transformation algorithm ParkInv Inverse Park Transformation algorithm DecouplingPMSM cross-coupling voltages to eliminate dq axis coupling (only of PM synchronous motor) ElimDcBusRip elimination of the DC-Bus voltage ripple SvmStd appropriate duty-cycle ratios needed for generating the given stator reference voltage using a Standard Space Vector Modulation (SVM) techique SvmU0n as SvmStd, but using termed SVM with O000 Nulls SvmU7n as SvmStd, but using termed SVM with O111 Ones SvmAlt special standard SVM SvmSci general sinusoidal modulation with injection of the third harmonic PWMIct general sinusoidal modulation External Use 90

92 New Enablement MCAT Motor control application tuning tool Floating-point control libraries For Cortex M4 FPU-enabled devices Motor control toolbox For Kinetis V Hardware divide and square root on the Kinetis V M0+ External Use 91

93 Develop an Application using Libraries The coding of the fast control loop of the PMSM vector control using libraries is simply handling of peripheral data (speed, position, current), calling of the library functions and passing the addresses of the application structures... // Iq current PI controllers udqreq.s32arg2 = GFLIB_ControllerPIpAW(iDQErr.s32Arg2,&qAxisPI); // inverse Park trf for voltages GMCLIB_ParkInv(&uAlBeReq,&thRotElSyst,&uDQReq); // Elimination of DC bus ripple elimdcbrip.s32argdcbusmsr = udcbus; GMCLIB_ElimDcBusRip(&uAlBeReqDCB,&uAlBeReq,&elimDcbRip); // Calculation of Standard space vector modulation svmsector = GMCLIB_SvmStd(&pwm32,&uAlBeReqDCB);... External Use 92

94 Motor Control Performance External Use 93

95 PMSM Vector Control w/ Encoder Built on Libraries slow control loop fast control loop U dcb Required speed Ramp PI controller Measured Speed I d_req I q_req I q I d PI controller Lim PI controller Park Transf d,q α,β U d U q I α I β Inv Park Transf d,q α,β Clarke Transf α,β a,b,c Elim DC Bus Ripple SVM PWM Phase Currents Duty cycle DC-Bus Voltage PWM ADC PWM Output U dcb I a I b I c Inverter Speed evaluation sin cos Position evaluation Pulses count Quadr. decoder ENC ph A ENC ph B PMSM 3 Time base Timer Blocks supported by Libraries Peripherals External Use 94

96 PMSM Sensorless Vector Control Built on Libraries Kinetis MCUs based on ARM Cortex -M4 slow control loop Required speed Ramp Merge PI controller MERGED Integrator I d_req I q_req + - I q + - I d MERGED Merge 1 PI controller Lim PI controller Park Trans d,q α,β sin cos ˆ ˆ U d U q I α I β fast control loop Inv Park Trans d,q α,β Tracking Observer Clarke Trans α,β a,b,c Elim DC Bus Ripple SVM PWM DC-Bus Voltage Phase Currents Back-EMF Observer d,q Park Trans d,q α,β sin cos PWM ADC ˆ U α U β PWM Output U dcb I a I b I c U dcb Inverter PMSM 3 MA filter d,q I α Open loop start up Blocks supported by Libraries Position Estimation Peripherals α,β Park Trans I β External Use 95

97 Machine Cycles Fast Control Loop of PMSM FOC Sensorless Solution Encoder based solution Peripherals servicing Filter MA Vector limit InvParkTrf Filter IIR ParkTrf (3x) TrackObsv PMSMBemfObsrvDQ ControllerPIpAW(2x) CosTlr SinTlr Peripherals servicing Position calculation from Encoder signals ParkTrf Vector limit InvParkTrf ControllerPIpAW(2x) CosTlr SinTlr ElimDcBusRip ElimDcBusRip SvmStd ClarkeTrf SvmStd ClarkeTrf External Use 96

98 PMSM Sensorless Vector Control Algorithm Slow (speed) control loop - Executed in 1-5msec loop - represents just like 1% of the CPU performance, neglected for the benchmark Fast (current) control loop - Executed in usec loop - CPU load should be <40% - critical for sensorless FOC, target of the benchmark Sensorless algorithm External Use 97

99 ARM Cortex-M0+/M4 Comparison Results for Sensored PMSM Vector Control Algorithm External Use 98

100 Execution Time [ms] TM ARM Cortex-M0+/M4 Comparison Results for Sensored PMSM Vector Control Algorithm μs Cortex-M4 (P2 platform) Cortex-M4 (P0 platform) Cortex-M0+ Note: All Platforms run at 48MHz bit Arithmetic 16-bit Arithmetic External Use 99

101 ARM Cortex-M0+/M4 Comparison Results for Sensorless PMSM Vector Control Algorithm External Use 100

102 CPU Cycles TM ARM Cortex-M0+/M4 Comparison Results for Sensorless PMSM Vector Control Algorithm Cortex-M4 (P2 platform) Cortex-M4 (P0 platform) Cortex-M0+ Note: All Platforms run at 48MHz 0 32-bit Arithmetic 16-bit Arithmetic External Use 101

103 Execution Time [ms] TM ARM Cortex-M0+/M4 Comparison Results for Sensorless PMSM Vector Control Algorithm Cortex-M4 (P2 platform) Cortex-M4 (P0 platform) Cortex-M μs Note: All Platforms run at 48MHz 0 32-bit Arithmetic 16-bit Arithmetic External Use 102

104 Results for Sensorless PMSM Vector Control Algorithm Cycles Exec. Time [ms] Cortex-M4 50MHz RAM (Kinetis K series MCUs) Cortex-M4 100 MHz RAM (Kinetis K series MCUs) Cortex-M4 50MHz FLASH (Kinetis K series MCUs) Cortex-M4 100MHz FLASH (Kinetis K series MCUs) DSC Hawk V External Use 103

105 ARM Cortex-M0+/M4 Comparison Summary The Cortex-M0+ is slower by 175% than Cortex-M4 using 32-bit arithmetic This is due to missing 32-bit instruction The Cortex-M0+ cannot run Sensorless PMSM FOC in 32-bit arithmetic every PWM period (65ms) The Cortex-M0+ is on the limit to run Sensorless PMSM FOC in 16- bit arithmetic every PWM period (65ms). But it can run the algorithm every second period (130ms). External Use 104

106 Plain Cortex M0+ vs HW SQRT and Divide New KV10 75 MHz devices include hardware SQRT and Divide to offload the CPU from these operations. Biggest cycle consumer for CM0+ CPU External Use 105

107 Benchmark The sensorless PMSM application calculates 3 DIV and 1 SQRT in fast current loop. 2xDIV in dc bus ripple elimination 1xDIV in ArcusTangent (used in sensorless observer) 1xSQRT in Limitation SW Divide = 180 to 360 cycles/divide HW Divide = 20 cycles/divide HW SQRT and DIV improve up to 26% performance Optimized_SW_SQRT = 201 cycles/sqrt HW_SQRT = 13 cycles/sqrt External Use 106

108 Motor Tuning Simple measurement and tuning using data visualization External Use 107

109 Tuning the application constants with help of FreeMASTER The most challenging task for the developer is the setting of the application constants, sometimes trial-error method must be used when the system (drive) parameters are difficult to identify: P and I constants of the regulators Filter constants Constants of the position estimation algorithms Tuning the merging process when switching from the open loop start-up to full sensorless mode External Use 108

110 What is FREEMASTER? Real-time Monitor Graphical Control Panel Demonstration Platform FOR YOUR EMBEDDED APPLICATION External Use 109

111 as a Real-time Monitor External Use 110

112 FEEMASTER as a Real-Time Monitor Connects to an embedded application SCI, UART JTAG/EOnCE (56F8xxx only) BDM (HCS08, HCS12 only) CAN Calibration Protocol Ethernet, TCP/IP Any of the above remotely over the network Enables access to application memory Parses ELF application executable file Parses DWARF debugging information in the ELF file Knows addresses of global and static C-variables Knows variable sizes, structure types, array dimensions etc. Serial Communication Driver Completely Interrupt-Driven LONG INTERRUPT Mixed Interrupt and Polling Modes SHORT INTERRUPT Completely Poll-Driven preferred mode, run typically in main() loop External Use 111

113 FEEMASTER as a Real-Time Monitor Application control and monitor 112 Live graphs, variable watches, and graphical control page Real-time operation monitor External Use 112

114 FEEMASTER as a Real-Time Monitor Variable Transformations Variable value can be transformed to the custom unit Variable transformations may reference other variable values Values are transformed back when writing a new value to the variable Application Commands Command code and parameters are delivered to an application for arbitrary processing After processed (asynchronously to a command delivery) the command result code is returned to the PC Ability to protect memory regions Describing variables visible to FreeMASTER Declaring variables as read-write to read-only for FreeMASTER the access is guarded by the embedded-side driver External Use 113

115 FEEMASTER as a Real-Time Monitor Displays the variable values in various formats: Text, tabular grid variable name value as hex, dec or bin number min, max values number-to-text labels - similar to the classical hardware oscilloscope - variables read in real-time - sampling time limited by communication data link Real Time Graph Real-time waveforms up to 8 variables simultaneously in an oscilloscope-like graph High-speed recorded data up to 8 variables in onboard memory transient recorder - variables recorded by the embedded-side timer periodic ISR - after requested Variable number Watch of samples data stored in Recorder buffer - sample very fast actions - buffer download can be defined External Use 114

116 FEEMASTER as a Real-Time Monitor Highlights: FreeMASTER helps developers to debug or tune their applications Replaces debugger in situations when the processor core can not be simply stopped (e.g. motor control) Recorder may be used to visualize transitions in near 10-us resolution External Use 115

117 Demo Demo of motor control parameter tuning with FreeMASTER External Use 116

118 MCAT Motor control application tuning tool External Use 117

119 Software Concept FreeMASTER as well as CodeWarrior are for free. External Use 118

120 Motor Control Development Kit Series Content Out-of-the-box experience offers: Complete schematics of the Development Kit HW. Complete source code of the Development Kit SW application Math and Motor Control libraries (MCLib) in object code FreeMASTER & MCAT interface to easy application visualization / control Extensive documentation including User guide, Quick Start Guide and Fact sheet. FreeMASTER Scope FreeMASTER HTML based Control Page External Use 119

121 Math and Motor Control Library Set Advance Control Library Advance Motor Control Library General Motor Control Library General Digital Filters Library General Function Library Mathematical Library External Use 120

122 PMSM Field Oriented Control MCLib Application Example for MPC5643L Development Kit External Use 121

123 Field Oriented Control External Use 122

124 PI Controllers External Use 123

125 Current Control Loop External Use 124

126 Control Loop Bandwidth External Use 125

127 Speed Overshoot External Use 126

128 MCAT Introduction & Features Tool enabling tuning of control parameters according to the target motor / application Dynamic tuning & update of control parameters Generation of header file with static configuration of the tuned parameters MCU independent (Kinetis, MPC, DSC) Currently supports PMSM MCAT for BLDC motor is in progress MCAT for ACIM motor will follow External Use 127

129 FreeMASTER with MCAT HTML based environment jscript based calculation engines File reading/storing via FreeMASTER External Use 128

130 Steps to Tune the Current Loop 1. Parameter Setting-Up 2. Control Loop Tuning 4. Generated.h file 3. Output Control Constant Preview External Use 129

131 MCAT Control Structure Selector Open loop control no need any current, position or speed feedback Voltage control position required no need any current and speed feedback Current control current, position required no need any speed feedback Speed control - current, position and speed required External Use 130

132 Motor Control Application Tuning Tool MCAT Tool External Use 131

133 MCAT Tool Features & Motor Types Supported MCAT Tool Number of motors One motor Two motors Three motors Motor types PMSM motor PMSM/BLDC BLDC motor Control strategy Field Oriented Control Scalar Control 6-step trapezoidal Control Control structure Voltage Control Current Control Open Loop Speed Control Available Speed Control Planned for the next phases External Use 132

134 MCAT Tool Look and Feel External Use 133

135 MCAT Tool Control Structure Parameters Tuning Motor Control Application Tuning Tool The calculation of the PI controllers parameters is based on Poleplacement method, which is the one of the most popular technique in control theory. The Pole placement control method applied to closedloop system leads to desired system behavior. External Use 134

136 MCAT Tool Structure Selector Open loop control no need any current, position or speed feedback Voltage control position required no need any current and speed feedback Current control current, position required no need any speed feedback Speed control - current, position and speed required External Use 135

137 Motor Identification Tool Coming Soon Relieves of complicated and long motor measurement Estimation routines are standalone running on DSCs or Kinetis Convenient to use with MCAT where Identification precedes application tuning Motor Identification Application Tuning Application tuning based on the estimated parameters Offline estimation of electrical (in progress) and mechanical (will follow) parameters of a connected motor External Use 136

138 Motor Identification Tool Coming Soon Adds a new tab to the MCAT environment Application & HW scales Characterisation parameters Estimation parameters Estimated Rs, Ld, Lq External Use 137

Motor control challenges Motor control solutions overview Freescale Motor control IP Motor control enablement. Hands on / Demo

Motor control challenges Motor control solutions overview Freescale Motor control IP Motor control enablement. Hands on / Demo September 2013 Motor control challenges Motor control solutions overview Freescale Motor control IP Motor control enablement MC Libraries Safety libraries FreeMASTER MCAT Roadmap Hands on / Demo 2 Motor

More information

3-in-1 Air Condition Solution

3-in-1 Air Condition Solution 3-in-1 Air Condition Solution FTF-IND-F0476 Zhou Xuwei Application Engineer M A Y. 2 0 1 4 TM External Use Agenda Abstract Application Development Sensorless PMSM FOC Timing & PFC Timing Start Up Realization

More information

Motor Control Solutions

Motor Control Solutions Motor Control Solutions EUF-IND-T0590 Radim Visinka MCU SW Libs Manager J U N E. 2 0 1 4 TM External Use Agenda Key Motor Control Technologies Freescale Motor Control Microcontrollers DSC and Kinetis V

More information

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE NXP Semiconductors Document Number: AN5237 Application Note Rev. 3, 10/2016 Sensorless PMSM Field-Oriented Control on Kinetis KV and KE By: Josef Tkadlec 1. Introduction This application note describes

More information

RX23T inverter ref. kit

RX23T inverter ref. kit RX23T inverter ref. kit Deep Dive October 2015 YROTATE-IT-RX23T kit content Page 2 YROTATE-IT-RX23T kit: 3-ph. Brushless Motor Specs Page 3 Motors & driving methods supported Brushless DC Permanent Magnet

More information

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its main features and the application benefits of leveraging

More information

RL78 Motor Control. YRMCKITRL78G14 Starter Kit. Renesas Electronics Europe. David Parsons Application Engineering Industrial Business Group.

RL78 Motor Control. YRMCKITRL78G14 Starter Kit. Renesas Electronics Europe. David Parsons Application Engineering Industrial Business Group. RL78 Motor Control YRMCKITRL78G14 Starter Kit Renesas Electronics Europe David Parsons Application Engineering Industrial Business Group July 2012 Renesas MCU for 3-phase Motor Control Control Method Brushless

More information

Motor Control using NXP s LPC2900

Motor Control using NXP s LPC2900 Motor Control using NXP s LPC2900 Agenda LPC2900 Overview and Development tools Control of BLDC Motors using the LPC2900 CPU Load of BLDCM and PMSM Enhancing performance LPC2900 Demo BLDC motor 2 LPC2900

More information

Designing with STM32F3x

Designing with STM32F3x Designing with STM32F3x Course Description Designing with STM32F3x is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing platforms based

More information

Developer Day. XMC technical presentation & Introduction to DAVE. Cristian Zaharia Field Application Engineering Industrial MCU June, 2014

Developer Day. XMC technical presentation & Introduction to DAVE. Cristian Zaharia Field Application Engineering Industrial MCU June, 2014 Developer Day XMC technical presentation & Introduction to DAVE Cristian Zaharia Field Application Engineering Industrial MCU June, 2014 Agenda XMC Family - XMC technical presentation Introduction to DAVE

More information

STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China

STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China STM32 PMSM FOC SDK v3.2 蒋建国 MCU Application Great China Agenda 2 1 st day Morning Overview Key message Basics Feature Performance Hardware support Tools STM32 MC Workbench SDK components Architectural

More information

Sensorless Vector Control and Implementation: Why and How

Sensorless Vector Control and Implementation: Why and How Sensorless Vector Control and Implementation: Why and How Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit

More information

Sensorless Vector Control with RL78G14

Sensorless Vector Control with RL78G14 Sensorless Vector Control with RL78G14 Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit 1200 DMIPS, Superscalar

More information

Using the HCS08 TPM Module In Motor Control Applications

Using the HCS08 TPM Module In Motor Control Applications Pavel Grasblum Using the HCS08 TPM Module In Motor Control Applications Designers can choose from a wide range of microcontrollers to provide digital control for variable speed drives. Microcontrollers

More information

Three-Phase BLDC Sensorless Motor Control Using the MKV4x In Quadcopter Application

Three-Phase BLDC Sensorless Motor Control Using the MKV4x In Quadcopter Application Freescale Semiconductor, Inc. Document Number: AN5169 Application Note Rev. 0, 07/2015 Three-Phase Sensorless Motor Control Using the MKV4x In Quadcopter Application By: Zbynek Mynar 1. Introduction This

More information

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02 NXP Semiconductors Document Number: AN5294 Application Note Rev. 1, 05/2017 Low Cost PMSM Sensorless Field-Oriented Control Based on KE02 1. Introduction This application note describes the design of a

More information

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 65 CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 4.1 INTRODUCTION Many control strategies are available for the control of IMs. The Direct Torque Control (DTC) is one of the most

More information

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU Application Note Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU AN026002-0608 Abstract This application note describes a controller for a 200 W, 24 V Brushless DC (BLDC) motor used to power

More information

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE 113 CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE 5.1 INTRODUCTION This chapter describes hardware design and implementation of direct torque controlled induction motor drive with

More information

Sensorless PMSM Control on MKV46F256 Using Kinetis SDK

Sensorless PMSM Control on MKV46F256 Using Kinetis SDK Freescale Semiconductor, Inc. Application Note Document Number: AN5004 Rev. 1, 03/2015 Sensorless PMSM Control on MKV46F256 Using Kinetis SDK by: Marek Zeman 1 Introduction This application note represents

More information

Dual FOC Servo Motor Control on i.mx RT

Dual FOC Servo Motor Control on i.mx RT NXP Semiconductors Document Number: AN12200 Application Note Rev. 0, 06/2018 Dual FOC Servo Motor Control on i.mx RT 1. Introduction This application note describes the dual servo demo with the NXP i.mx

More information

Hands-on Workshop: Motor Control Part 4 - Brushless DC Motors Made Easy

Hands-on Workshop: Motor Control Part 4 - Brushless DC Motors Made Easy November, 2008 Hands-on Workshop: Motor Control Part 4 - Brushless DC Motors Made Easy PZ104 Derek Liu of Freescale Semiconductor, Inc. All other product or service names are the property of their respective

More information

POWER- SWITCHING CONVERTERS Medium and High Power

POWER- SWITCHING CONVERTERS Medium and High Power POWER- SWITCHING CONVERTERS Medium and High Power By Dorin O. Neacsu Taylor &. Francis Taylor & Francis Group Boca Raton London New York CRC is an imprint of the Taylor & Francis Group, an informa business

More information

Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers

Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers Freescale Semiconductor Application Note Document Number: AN4836 Rev. 1, 07/2014 Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers by Freescale

More information

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents User Guide 08092 IRMCS3043 System Overview/Guide By International Rectifier s imotion Team Table of Contents IRMCS3043 System Overview/Guide... 1 Introduction... 1 IRMCF343 Application Circuit... 2 Power

More information

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction User Guide 0607 IRMCS3041 System Overview/Guide By Aengus Murray Table of Contents Introduction... 1 IRMCF341 Application Circuit... 2 Sensorless Control Algorithm... 4 Velocity and Current Control...

More information

Sensorless Vector Control with RL78G14

Sensorless Vector Control with RL78G14 Sensorless Vector Control with RL78G14 John Pocs, Applications Engineering Manager Class ID: 7L02I Renesas Electronics America Inc. John Pocs Sr. Application Engineering Manager Application focus: motor

More information

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs Peripherals Summary When migrating from one PIC microcontroller (MCU) family to another, you get to stay within the same MPLAB

More information

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers -bit ARM Cortex-, Cortex- and Cortex-MF microcontrollers Energy, gas, water and smart metering Alarm and security systems Health and fitness applications Industrial and home automation Smart accessories

More information

Efficient and Easy Motor Control with New Kinetis KVxx and DSC Families

Efficient and Easy Motor Control with New Kinetis KVxx and DSC Families Efficient and Easy Motor Control with New Kinetis KVxx and DSC Families EUF-IND-T0584 Petr Staszko System Application Engineer J U N E. 2 0 1 4 External Use Agenda Introducing Kinetis V & new DSC series

More information

DRM100 Designer Reference Manual. Devices Supported: 56F801X

DRM100 Designer Reference Manual. Devices Supported: 56F801X DRM100 Designer Reference Manual Devices Supported: 56F801X Document Number: DRM100 Rev. 0 06/2008 Contents Chapter 1 Introduction 1.1 Introduction... 9 1.2 Freescale Digital Signal Controller Advantages

More information

A Practical Primer On Motor Drives (Part 13): Motor Drive Control Architectures And Algorithms

A Practical Primer On Motor Drives (Part 13): Motor Drive Control Architectures And Algorithms ISSUE: February 2017 A Practical Primer On Motor Drives (Part 13): Motor Drive Control Architectures And Algorithms by Ken Johnson, Teledyne LeCroy, Chestnut Ridge, N.Y. Part 12 began the explanation of

More information

National Infotech. Electrical Drive Trainers. Developed By: : Authorized Dealer : Embedded System Solutions

National Infotech. Electrical Drive Trainers. Developed By: : Authorized Dealer : Embedded System Solutions National Infotech A way to Power Electronics and Embedded System Solutions Electrical Drive Trainers In every industry there are industrial processes where electrical motors are used as a part of process

More information

Application - Power Factor Correction (PFC) with XMC TM. XMC microcontrollers July 2016

Application - Power Factor Correction (PFC) with XMC TM. XMC microcontrollers July 2016 Application - Power Factor Correction (PFC) with XMC TM XMC microcontrollers July 2016 Agenda 1 Key features 2 Specification 3 System block diagram 4 Software overview 5 Highlight MCU features 6 CCM PFC

More information

KV4x Family Product Brief Supports 150 MHz devices with 64 KB to 256 KB Flash

KV4x Family Product Brief Supports 150 MHz devices with 64 KB to 256 KB Flash Freescale Semiconductor Document Number:KV4XPB Product Brief Rev 2, 02/2015 KV4x Family Product Brief Supports 150 MHz devices with 64 KB to 256 KB Flash 1 Introduction The Kinetis KV4x family of microcontrollers

More information

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which behaves like ADC with external analog part and configurable

More information

Using FTM, PDB, and ADC on KE1xF to Drive Dual PMSM FOC and PFC

Using FTM, PDB, and ADC on KE1xF to Drive Dual PMSM FOC and PFC NXP Semiconductors Document Number: AN5380 Application Note Rev. 0, 11/2016 Using FTM, PDB, and ADC on KE1xF to Drive Dual PMSM FOC and PFC 1. Introduction This application note describes the design for

More information

XMC in Power Conversion Applications. XMC Microcontrollers July 2016

XMC in Power Conversion Applications. XMC Microcontrollers July 2016 XMC in Power Conversion Applications XMC Microcontrollers July 2016 Agenda 1 Why XMC for digital power control? 2 Key microcontroller features 3 Kits and reference design 4 Development tool and software

More information

Low Voltage Solutions for DC & BLDC Motors in Industrial Applications

Low Voltage Solutions for DC & BLDC Motors in Industrial Applications Low Voltage Solutions for DC & BLDC Motors in Industrial Applications Agenda n Introduction o Technical Requirements o DC vs BLDC Motors n Infineon Solutions for DC & BLDC n Infineon Support n Summary

More information

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL 47 CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL 4.1 INTRODUCTION Passive filters are used to minimize the harmonic components present in the stator voltage and current of the BLDC motor. Based on the design,

More information

Low Cost Motor Control Family

Low Cost Motor Control Family Low Cost Motor Control Family 2011 Microchip Technology Incorporated. All Rights Reserved. Comparator with blanking and filtering Slide 1 Welcome to the Low Cost Motor Control Family web seminar. My Name

More information

Hands-On Workshop: Motor Control, Part 3: Development in MATLAB /Simulink Using the Motor Control Toolbox FTF-IND-F0010

Hands-On Workshop: Motor Control, Part 3: Development in MATLAB /Simulink Using the Motor Control Toolbox FTF-IND-F0010 Hands-On Workshop: Motor Control, Part 3: Development in MATLAB /Simulink Using the Motor Control Toolbox FTF-IND-F0010 John H Floros MCD Toolbox Manager A P R. 2 0 1 4 TM External Use Agenda Overview:

More information

STM32 motor control firmware library. STM32 FOC PMSM SDK v3.0.

STM32 motor control firmware library. STM32 FOC PMSM SDK v3.0. STM32 motor control firmware library STM32 FOC PMSM SDK v3.0 Contents STM32 FOC PMSM SDK v3.0 overview The FOC (field oriented control) algorithm STM32 with FOC Motor control and electric motor offer FOC

More information

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge L298 Full H-Bridge HEF4071B OR Gate Brushed DC Motor with Optical Encoder & Load Inertia Flyback Diodes Arduino Microcontroller

More information

1 Introduction. Freescale Semiconductor Application Note. Document Number: AN4386 Rev. 0, 01/2012

1 Introduction. Freescale Semiconductor Application Note. Document Number: AN4386 Rev. 0, 01/2012 Freescale Semiconductor Application Note Document Number: AN4386 Rev. 0, 01/2012 Implementing on the MC56F8257 A Single Phase Two-Channel Interleaved Critical Conduction Mode by: Petr Frgal System Application

More information

imotion Solution Platform Dedicated to Motor Control

imotion Solution Platform Dedicated to Motor Control imotion Solution Platform Dedicated to Motor Control Christian Daniel - Head of Product Marketing Marco Palma imotion Technical Marketing - restricted - We are driving for right-fit products and highest

More information

CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL

CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL 9 CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL 2.1 INTRODUCTION AC drives are mainly classified into direct and indirect converter drives. In direct converters (cycloconverters), the AC power is fed

More information

Digital Power: Consider The Possibilities

Digital Power: Consider The Possibilities Power: Consider The Possibilities Joseph G Renauer Michael G. Amaro David Figoli Texas Instruments 1 The Promise of Power Accuracy and precision No drift Unit to unit uniformity Programmable performance

More information

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES Lukáš Pohl Doctoral Degree Programme (2), FEEC BUT E-mail: xpohll01@stud.feec.vutbr.cz Supervised by: Petr Blaha E-mail: blahap@feec.vutbr.cz Abstract: This

More information

AP CANmotion. Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10. Microcontrollers

AP CANmotion. Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10. Microcontrollers Application Note, V1.0, April 2007 AP08060 CANmotion Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10 Microcontrollers Edition 2007-04 Published by Infineon Technologies

More information

2014 Texas Instruments Motor Control Training Series. -V th. Dave Wilson

2014 Texas Instruments Motor Control Training Series. -V th. Dave Wilson 2014 Texas Instruments Motor Control Training Series -V th Evolution of Sensorless Drive Technology March, 2013 InstaSPIN-FOC Saliency Tracking Direct Torque Control Sliding Mode Observers Linear Observers

More information

Design of Joint Controller Circuit for PA10 Robot Arm

Design of Joint Controller Circuit for PA10 Robot Arm Design of Joint Controller Circuit for PA10 Robot Arm Sereiratha Phal and Manop Wongsaisuwan Department of Electrical Engineering, Faculty of Engineering, Chulalongkorn University, Bangkok, 10330, Thailand.

More information

XMC in power conversion applications. XMC microcontrollers September 2016

XMC in power conversion applications. XMC microcontrollers September 2016 XMC in power conversion applications XMC microcontrollers September 2016 Agenda 1 Why XMC for digital power control? 2 Key microcontroller features 3 Kits and reference design 4 Development tool and software

More information

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR Shiyoung Lee, Ph.D. Pennsylvania State University Berks Campus Room 120 Luerssen Building, Tulpehocken

More information

Infineon XMC1000 The M0 that punches well above its weight. Thursday 19 th September 2013 Dave Greenhill Rob McLoughlin

Infineon XMC1000 The M0 that punches well above its weight. Thursday 19 th September 2013 Dave Greenhill Rob McLoughlin Infineon XMC1000 The M0 that punches well above its weight Thursday 19 th September 2013 Dave Greenhill Rob McLoughlin Introduction to the XMC1000 Family Key peripherals for motor control Maths Co-processor

More information

EE152 Final Project Report

EE152 Final Project Report LPMC (Low Power Motor Controller) EE152 Final Project Report Summary: For my final project, I designed a brushless motor controller that operates with 6-step commutation with a PI speed loop. There are

More information

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016 Analog I/O ECE 153B Sensor & Peripheral Interface Design Introduction Anytime we need to monitor or control analog signals with a digital system, we require analogto-digital (ADC) and digital-to-analog

More information

DMCode-MS(BL) MATLAB Library

DMCode-MS(BL) MATLAB Library Technosoft is a Third Party of Texas Instruments supporting the TMS320C28xx and TMS320F24xx DSP controllers of the C2000 family To help you get your project started rapidly, Technosoft offers the DMCode-MS(BL)

More information

CHAPTER 2 VSI FED INDUCTION MOTOR DRIVE

CHAPTER 2 VSI FED INDUCTION MOTOR DRIVE CHAPTER 2 VI FE INUCTION MOTOR RIVE 2.1 INTROUCTION C motors have been used during the last century in industries for variable speed applications, because its flux and torque can be controlled easily by

More information

STM32 for Motor Control. Applications. Features and benefits. MCU Division. Applications

STM32 for Motor Control. Applications. Features and benefits. MCU Division. Applications STM32 for Motor Control Applications MCU Division Applications Features and benefits Plan PWM generation Speed / position feedback Multi timer configuration Analog to Digital converter Current sensing

More information

DSC MC56F84xxx in the motor control application

DSC MC56F84xxx in the motor control application Freescale Semiconductor Document Number:AN4625 Application Note Rev. 0, 10/2012 DSC MC56F84xxx in the motor control application by: Arendarik Stanislav 1 Introduction 3-phase high voltage or low voltage

More information

Simplify Motor Control Development with S12 MagniV

Simplify Motor Control Development with S12 MagniV Simplify Motor Control Development with S12 MagniV FTF-AUT-F0079 Manuel Alves Product Line Manager A P R. 2 0 1 4 TM External Use Agenda Introduction to S12 MagniV Mixed-signal MCUs Target motor control

More information

Nicolò Antonante Kristian Bergaplass Mumba Collins

Nicolò Antonante Kristian Bergaplass Mumba Collins Norwegian University of Science and Technology TET4190 Power Electronics for Renewable Energy Mini-project 19 Power Electronics in Motor Drive Application Nicolò Antonante Kristian Bergaplass Mumba Collins

More information

Sistemi per il controllo motori

Sistemi per il controllo motori Sistemi per il controllo motori TALENTIS 4ª SESSIONE - 28 MAGGIO 2018 Speaker: Ing. Giuseppe Scuderi Automation and Motion control team Central Lab Prodotti ST per il controllo motori 2 Applicazioni e

More information

3-Phase Switched Reluctance Motor Control with Encoder Using DSP56F80x. 1. Introduction. Contents. Freescale Semiconductor, I

3-Phase Switched Reluctance Motor Control with Encoder Using DSP56F80x. 1. Introduction. Contents. Freescale Semiconductor, I nc. Order by AN1937/D (Motorola Order Number) Rev. 0, 9/02 3-Phase Switched Reluctance Motor Control with Encoder Using DSP56F80x Design of a Motor Control Application Based on the Motorola Software Development

More information

Sensorless Sinusoidal Vector Control of BLDC Ceiling Fan on MC56F8006

Sensorless Sinusoidal Vector Control of BLDC Ceiling Fan on MC56F8006 Freescale Semiconductor Document Number:AN4612 Application Note Rev. 0, 10/2012 Sensorless Sinusoidal Vector Control of BLDC Ceiling Fan on MC56F8006 by: Xuwei Zhou 1 Introduction The first ceiling fan

More information

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM 74 CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM 4.1 LABORATARY SETUP OF STATCOM The laboratory setup of the STATCOM consists of the following hardware components: Three phase auto transformer used as a 3

More information

VORAGO Timer (TIM) subsystem application note

VORAGO Timer (TIM) subsystem application note AN1202 VORAGO Timer (TIM) subsystem application note Feb 24, 2017, Version 1.2 VA10800/VA10820 Abstract This application note reviews the Timer (TIM) subsystem on the VA108xx family of MCUs and provides

More information

TUTORIAL Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM

TUTORIAL Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM TUTORIAL Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM January 2017 1 PSIM supports TI s InstaSPIN FOC sensorless motor control algorithm in simulation and SimCoder auto code generation.

More information

High-speed and High-precision Motion Controller

High-speed and High-precision Motion Controller High-speed and High-precision Motion Controller - KSMC - Definition High-Speed Axes move fast Execute the controller ( position/velocity loop, current loop ) at high frequency High-Precision High positioning

More information

Digital Control of Permanent Magnet Synchronous Motor

Digital Control of Permanent Magnet Synchronous Motor Digital Control of Permanent Magnet Synchronous Motor Jayasri R. Nair 1 Assistant Professor, Dept. of EEE, Rajagiri School Of Engineering and Technology, Kochi, Kerala, India 1 ABSTRACT: The principle

More information

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG Fujitsu Microelectronics Europe Application Note MCU-AN-300020-E-V10 F²MC-8FX/16LX/16FX/FR FAMILY 8/16/32-BIT MICROCONTROLLER ALL SERIES BLDC DRIVE WITH THE PPG APPLICATION NOTE Revision History Revision

More information

Analog Devices: High Efficiency, Low Cost, Sensorless Motor Control.

Analog Devices: High Efficiency, Low Cost, Sensorless Motor Control. Analog Devices: High Efficiency, Low Cost, Sensorless Motor Control. Dr. Tom Flint, Analog Devices, Inc. Abstract In this paper we consider the sensorless control of two types of high efficiency electric

More information

Hardware Platforms and Sensors

Hardware Platforms and Sensors Hardware Platforms and Sensors Tom Spink Including material adapted from Bjoern Franke and Michael O Boyle Hardware Platform A hardware platform describes the physical components that go to make up a particular

More information

System-on-Chip Two-Way Radio

System-on-Chip Two-Way Radio System-on-Chip Two-Way Radio FTF-CON-F0508 Steve Johnson / Keith Tilley Product Management 31 August 2011 Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy

More information

BLuAC5 Brushless Universal Servo Amplifier

BLuAC5 Brushless Universal Servo Amplifier BLuAC5 Brushless Universal Servo Amplifier Description The BLu Series servo drives provide compact, reliable solutions for a wide range of motion applications in a variety of industries. BLu Series drives

More information

MC56F825x/MC56F824x Product Brief

MC56F825x/MC56F824x Product Brief Freescale Semiconductor Product Brief Document Number: MC56F825XPB Rev. 2, 06/2010 MC56F825x/MC56F824x Product Brief The MC56F825x/MC56F824x is a member of Freescale s family of digital signal controllers

More information

Moving Forward Efficiently HEV/EV Traction Motor Lab

Moving Forward Efficiently HEV/EV Traction Motor Lab Moving Forward Efficiently HEV/EV Traction Motor Lab A traction motor is an electric motor providing the primary rotational torque of a machine, usually for conversion into linear motion (traction). Renesas

More information

CHAPTER IV DESIGN AND ANALYSIS OF VARIOUS PWM TECHNIQUES FOR BUCK BOOST CONVERTER

CHAPTER IV DESIGN AND ANALYSIS OF VARIOUS PWM TECHNIQUES FOR BUCK BOOST CONVERTER 59 CHAPTER IV DESIGN AND ANALYSIS OF VARIOUS PWM TECHNIQUES FOR BUCK BOOST CONVERTER 4.1 Conventional Method A buck-boost converter circuit is a combination of the buck converter topology and a boost converter

More information

Exercise 3: Sound volume robot

Exercise 3: Sound volume robot ETH Course 40-048-00L: Electronics for Physicists II (Digital) 1: Setup uc tools, introduction : Solder SMD Arduino Nano board 3: Build application around ATmega38P 4: Design your own PCB schematic 5:

More information

DSP BASED SYSTEM FOR SYNCHRONOUS GENERATOR EXCITATION CONTROLL

DSP BASED SYSTEM FOR SYNCHRONOUS GENERATOR EXCITATION CONTROLL DSP BASED SYSTEM FOR SYNCHRONOUS GENERATOR EXCITATION CONTROLL N. Bulic *, M. Miletic ** and I.Erceg *** Faculty of electrical engineering and computing Department of Electric Machines, Drives and Automation,

More information

BLuAC5 Brushless Universal Servo Amplifier

BLuAC5 Brushless Universal Servo Amplifier BLuAC5 Brushless Universal Servo Amplifier Description The BLu Series servo drives provide compact, reliable solutions for a wide range of motion applications in a variety of industries. BLu Series drives

More information

Testra Corporation ss483 Series Microstepping Motor Driver. Specifications Sep SoftStep FIRMWARE FEATURES

Testra Corporation ss483 Series Microstepping Motor Driver. Specifications Sep SoftStep FIRMWARE FEATURES SoftStep The New Art of Stepper Motor Control With SoftStep you get the benefits of ultra smooth microstepping regardless of your selected step size. The intelligent on board processor treats the input

More information

EIE/ENE 334 Microprocessors

EIE/ENE 334 Microprocessors EIE/ENE 334 Microprocessors Lecture 13: NuMicro NUC140 (cont.) Week #13 : Dejwoot KHAWPARISUTH Adapted from http://webstaff.kmutt.ac.th/~dejwoot.kha/ NuMicro NUC140: Technical Ref. Page 2 Week #13 NuMicro

More information

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form: 6.111 Lecture # 19 Controlling Position Servomechanisms are of this form: Some General Features of Servos: They are feedback circuits Natural frequencies are 'zeros' of 1+G(s)H(s) System is unstable if

More information

AN Sensorless single-shunt FOC on LPC2900. Document information. LPC2900, FOC, SVPWM, SMC, current observer, PMSM, single shunt DC-link

AN Sensorless single-shunt FOC on LPC2900. Document information. LPC2900, FOC, SVPWM, SMC, current observer, PMSM, single shunt DC-link Sensorless single-shunt Rev. 01 16 December 2009 Application note Document information Info Keywords Abstract Content LPC2900, FOC, SVPWM, SMC, current observer, PMSM, single shunt DC-link This application

More information

Tarocco Closed Loop Motor Controller

Tarocco Closed Loop Motor Controller Contents Safety Information... 3 Overview... 4 Features... 4 SoC for Closed Loop Control... 4 Gate Driver... 5 MOSFETs in H Bridge Configuration... 5 Device Characteristics... 6 Installation... 7 Motor

More information

Soloist. Position Controller and Servo Amplifier PWM. Single axis digital servo controller with integral power supply and amplifier

Soloist. Position Controller and Servo Amplifier PWM. Single axis digital servo controller with integral power supply and amplifier Soloist Position Controller and Servo Amplifier PWM Single axis digital servo controller with integral power supply and amplifier Advanced software architecture shortens customer development time; use

More information

Generating DTMF Tones Using Z8 Encore! MCU

Generating DTMF Tones Using Z8 Encore! MCU Application Note Generating DTMF Tones Using Z8 Encore! MCU AN024802-0608 Abstract This Application Note describes how Zilog s Z8 Encore! MCU is used as a Dual-Tone Multi- (DTMF) signal encoder to generate

More information

Firmware plugin for STSW-ESC001V1 board with ST Motor Control FOC SDK

Firmware plugin for STSW-ESC001V1 board with ST Motor Control FOC SDK User manual Firmware plugin for STSW-ESC001V1 board with ST Motor Control FOC SDK Introduction The STSW-ESC001V1 firmware package for the STEVAL-ESC001V1 board includes the application code to support

More information

2013 Texas Instruments Motor Control Training Series. -V th. InstaSPIN Training

2013 Texas Instruments Motor Control Training Series. -V th. InstaSPIN Training 2013 Texas Instruments Motor Control Training Series -V th InstaSPIN Training How Do You Control Torque on a DC Motor? Brush DC Motor Desire Current + - Error Signal PI Controller PWM Power Stage Texas

More information

Motor Control Development Kit

Motor Control Development Kit User s Manual, V 1.0, June 2003 Motor Control Development Kit A reference design for low voltage 3-phase AC induction and brushless DC motor control. Microcontrollers Never stop thinking. Revision History:2003-06

More information

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER A Thesis Submitted in partial Fulfillment Of the Requirements of the Degree of Bachelor of Technology In Electronics

More information

Sensorless BLDC Motor Control Using FRDM-KE02Z Based on Tower Board

Sensorless BLDC Motor Control Using FRDM-KE02Z Based on Tower Board Freescale Semiconductor Document Number: AN4796 Application Note Rev. 1, 11/2013 Sensorless BLDC Motor Control Using FRDM-KE02Z Based on Tower Board by: Zhen Liu, Howard Liu, and Binbin Zhang 1 Introduction

More information

{Speed_limit} Position_Error. {P_pos/quadcounts} max. Speed_command. z.o.h. Radians/sec. clk. Clamp min. Clk1 V22. {-Speed_limit} VELOCITY OBSERVER

{Speed_limit} Position_Error. {P_pos/quadcounts} max. Speed_command. z.o.h. Radians/sec. clk. Clamp min. Clk1 V22. {-Speed_limit} VELOCITY OBSERVER Co-Owner Kappa Electronics www.kappaiq.com Counts V14 Clk0 z.o.h. PULSE(-1 1 0 0 0 {T_aperture} {1/Fs_pos} 100000) V7 Position_Command {2*pi/quadcounts} E18 i_sampled Pos_encoder POSITION REGULATOR VELOCITY

More information

Motor Control trends with Freescale MCU

Motor Control trends with Freescale MCU November, 2010 Motor Control trends with Freescale MCU Eduardo Viramontes Applications Engineer Objectives By the end of this session, you should be able to Know the newest Control solutions provided by

More information

Demonstration. Agenda

Demonstration. Agenda Demonstration Edward Lee 2009 Microchip Technology, Inc. 1 Agenda 1. Buck/Boost Board with Explorer 16 2. AC/DC Reference Design 3. Pure Sinewave Inverter Reference Design 4. Interleaved PFC Reference

More information

TMS320F241 DSP Boards for Power-electronics Applications

TMS320F241 DSP Boards for Power-electronics Applications TMS320F241 DSP Boards for Power-electronics Applications Kittiphan Techakittiroj, Narong Aphiratsakun, Wuttikorn Threevithayanon and Soemoe Nyun Faculty of Engineering, Assumption University Bangkok, Thailand

More information

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. 1 The purpose of this course is to provide an introduction to the RL78 timer Architecture.

More information

Analog Servo Drive. Continuous Current. Features

Analog Servo Drive. Continuous Current. Features Description Power Range The PWM servo drive is designed to drive three phase brushless motors with sine wave current at a high switching frequency. The drive requires two sinusoidal command signals with

More information