Download Print this page
Infineon XMC1000 Getting Started
Infineon XMC1000 Getting Started

Infineon XMC1000 Getting Started

Motor control application kit
Hide thumbs Also See for XMC1000:

Advertisement

Quick Links

XMC1000 / XMC4400
Motor Control Application Kit
Getting Started 6
PMSM Motor Sensorless Single Shunt Field Oriented
Control (FOC) with xSPY Apps
(PMSMFOCSL01 & DBG002)

Advertisement

loading

Summary of Contents for Infineon XMC1000

  • Page 1 XMC1000 / XMC4400 Motor Control Application Kit Getting Started 6 PMSM Motor Sensorless Single Shunt Field Oriented Control (FOC) with xSPY Apps (PMSMFOCSL01 & DBG002)
  • Page 2 Development Tool: DAVE & xSPY Prerequisite  Example Project with PMSM Motor  ¬ PMSM Sensorless FOC control with xSPY App (PMSM_Motor_xSPY_FOCSL_Example01_XMC13.zip) (PMSM_Motor_xSPY_FOCSL_Example01_XMC44.zip) Additional Example Projects Download  Help Content  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 2...
  • Page 3: Overview Of Xspy

    We will use System Timer (SysTick) as the time base for the interrupt  Time base of 1ms per tick  Time based scheduler to visualize the data  A few steps to create GUI to control motor operation  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 3...
  • Page 4 & xSPY Prerequisite  Example Project with PMSM Motor  ¬ PMSM Motor Sensorless FOC control with xSPY App (PMSM_Motor_xSPY_FOCSL_Example01_XMC13.zip) (PMSM_Motor_xSPY_FOCSL_Example01_XMC44.zip) Additional Example Projects Download  Help Content  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 4...
  • Page 5  Motor_Control_Application_Kit_Getting_Started01_v2_0.pdf Refer to slide 4, slide 5 & slide 6  For further info, please log on to XMC1000 Motor Control  Application Kit / XMC 4400 Hexagon Application Kit 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved.
  • Page 6: Motor Control Application Kit Composition Getting Started Development Tool: Dave

    & xSPY Prerequisite  Example Project with PMSM Motor  ¬ PMSM Motor Sensorless FOC control with xSPY App (PMSM_Motor_xSPY_FOCSL_Example01_XMC13.zip) (PMSM_Motor_xSPY_FOCSL_Example01_XMC44.zip) Additional Example Projects Download  Help Content  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 6...
  • Page 7 Update Segger J-link ARM Driver (v4.70 or above)  ¬ http://www.segger.com/jlink-software.html xSpy Plugin in DAVE  DBG002 app (v1.0.8 or above)  For further info, please log on to  http://www.infineon.com/xspy 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 7...
  • Page 8: Example Project With Pmsm Motor

    & xSPY Prerequisite  Example Project with PMSM Motor  ¬ PMSM Motor Sensorless FOC control with xSPY App (PMSM_Motor_xSPY_FOCSL01_Example01_XMC13.zip) (PMSM_Motor_xSPY_FOCSL01_Example01_XMC44.zip) Additional Example Projects Download  Help Content  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 8...
  • Page 9 Setup a Project Follow steps in “PMSM Sensorless FOC control with fixed speed”  Use a project name: “PMSM_Motor_xSPY_FOCSL01_Example01”  Search for PMSMFOCSL01 app in App Selection View  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 9...
  • Page 10 Build project & download the code COM Port Connection Setting Design xSPY Control page  Display Panel  Speed Change Panel  Control Panel  Motor Status  Oscilloscope Download & Run 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 10...
  • Page 11 1. Instantiate PMSMFOCSL01 & DBG002 app Click on “App Selection View” on  your right 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 11...
  • Page 12 1. Instantiate PMSMFOCSL01 & DBG002 app Look for “PMSMFOCSL01” under App  Selection View Double click on “PMSMFOCSL01” in the  S/W App Connectivity View Default setting in PMSMFOCSL01 app  should work fine 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 12...
  • Page 13 Look for “DBG002” under App Selection  View Double click on “DBG002” in the App  Selection View PMSMFOCSL01 – Motor Control app  DBG002 – xSPY app  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 13...
  • Page 14 Nominal Speed: 4400 ¬ Phase to Phase Resistance: 1.5 Ω ¬ Phase to Phase Inductance: 2.1 mH ¬ End Speed Reference: 1500 Power Board tab,  ¬ keep default settings. 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 14...
  • Page 15 Double click on DBG002 app  Configure the desired baudrate,  i.e. 1MBit/s, UART Configurations Default values for the rest of  parameters should work fine for basic usage 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 15...
  • Page 16 Low side Phase V IO002/4 [W_H] High side Phase W IO002/5 [W_L] Low side Phase W IO004/0 [Enable_Pin] Enable Pin Gate Driver IC IO002/6 [Trap_Pin] Trap Pin IO001/0 [I_DC] Average Current 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 16...
  • Page 17 IO002/2 [V_H] P0.7 IO002/3 [V_L] P0.6 IO002/4 [W_H] P0.8 IO002/5 [W_L] P0.9 IO004/0 [Enable_Pin] P0.11 IO002/6 [Trap_Pin] P0.12 IO001/0 [I_DC] P2.7 DBG002/0 [UART Receive] P1.3 DBG002/0 [UART Transmit] P1.2 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 17...
  • Page 18 IO002/2 [V_H] P0.4 IO002/3 [V_L] P0.1 IO002/4 [W_H] P0.3 IO002/5 [W_L] P0.0 IO004/0 [Enable_Pin] P1.15 IO002/6 [Trap_Pin] P0.7 IO001/0 [I_DC] P14.13 DBG002/0 [UART Receive] P1.5 DBG002/0 [UART Transmit] P1.7 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 18...
  • Page 19 3. Generate Code Generate Code  Click  Source Files are  generated by DBG002 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 19...
  • Page 20 4. Adding Code into main.c - XMC1300 only Define all private variables and constant  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 20...
  • Page 21 4. Adding Code into main.c – XMC4400 only Define all private variables and constant  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 21...
  • Page 22 Create Systick_Handler interrupt function - 1 mili sec  Process the command received from PC host via debug protocol  Update motor operation  Streams out the defined data variables to PC host  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 22...
  • Page 23 Motor Command (Motor Start, Stop, Change Direction) ¬ Speed reference Display Panel  ¬ Actual Speed, Motor Status, Motor Direction Initialize xSPY setting  System timer configuration and Initialization  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 23...
  • Page 24 4. Adding Code into main.c Copy the code into main function  Alternatively, copy the whole main.c at right corner into  working project main.c 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 24...
  • Page 25 Wait for Build to finish Download code  Click First time download, double click Tasking C/C++ Debugger in Debug Configuration Select Infineon Boot Kit for XMC1300/XMC4400 and click Debug Click to run code 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 25...
  • Page 26 6. COM Port Connection Setting Check COM Port Setting  Click to connect to Hardware  If connection is established  successfully, the declared variables will be available to GUI Click OK  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 26...
  • Page 27 7. Design xSPY GUI Control Page Switch to DAVE CE  Select “xSPY Control Page”  Click “Next”  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 27...
  • Page 28 7. Design xSPY GUI Control Page Use the default File Name  xSPYControlPage1.xini Click Finish  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 28...
  • Page 29  Mode Drag in Control Frame, Frame,  Control Field, Stream Field, two Label <- Label <- Frame <- Stream Field <- Label <- Control Frame <- Control Field 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 29...
  • Page 30 7. Design xSPY GUI Control Page Name the two labels in xSPY Property sheet  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 30...
  • Page 31 Name the Frame to Display Panel & set  the value accordingly Select Actual Speed in the Name drop down  list. Ensure xSPY read Address, GroupID & Scale correctly 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 31...
  • Page 32 Name the control frame to Speed Control  Panel & set the value accordingly Select Speed reference in the Name drop  down list. Ensure xSPY read Address, GroupID & Scale correctly 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 32...
  • Page 33 7. Design xSPY GUI Control Page (Control Panel) Drag in Frame, Label, 3 buttons  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 33...
  • Page 34 7. Design xSPY GUI Control Page (Control Panel) Name the Label to Control Panel in xSPY property sheet  <- Label <- Button Frame -> 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 34...
  • Page 35 7. Design xSPY GUI Control Page (Control Panel) Name and customize all the 3 buttons in property sheet  Motor Start button property Motor Stop button property 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 35...
  • Page 36 7. Design xSPY GUI Control Page (Control Panel) Continue setting button 3  Change Dir button property 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 36...
  • Page 37 7. Design xSPY GUI Control Page (Control Panel) Change the value of Frame in xSPY property sheet  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 37...
  • Page 38 7. Design xSPY GUI Control Page (Motor Status) Add in Label and rename to Motor Status  Drag in 5 Status Flag  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 38...
  • Page 39 7. Design xSPY GUI Control Page (Motor Status) Change all the 5 Status Flag property value  For the very first Step, change variable name  OFF Status Flag property ON Status Flag property 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 39...
  • Page 40 7. Design xSPY GUI Control Page (Motor Status) Continue configure the others Status Flag  RAMPING Status Flag property FORWARD Status Flag property 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 40...
  • Page 41 7. Design xSPY GUI Control Page (Motor Status) Continue configure the others Status Flag  BACKWARD Status Flag property Press CTRL + S to save the  control page 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 41...
  • Page 42 Now, configure two beams to be display in Oscilloscope  By Clicking the “Oscilloscope” button, please configure:-  ¬ Beam 1 – Actual Speed ¬ Beam 2 – Speed Reference ¬ Beam 3 - default 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 42...
  • Page 43 First time download, double click Tasking C/C++ Debugger in Debug Configuration Select Infineon Boot Kit for XMC1300/XMC4400 and click Debug Click to run code Click Connect to Hardware Click OK if connection established successfully. 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 43...
  • Page 44 8. Download & Run Click , expand project file, double click  to open xSPYControlPage01.xini Click , to switch to xSPY Run Mode  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 44...
  • Page 45  Click Start Stream – XMC stream out the data to Host PC  Click Get in Speed Control Panel  Click Motor Start – Motor operation start  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 45...
  • Page 46 8. Download & Run Motor ramp up to 1500 rpm  Click “Motor Stop” & “Change Direction”  Motor ramp up to 1500 rpm with reverse direction  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 46...
  • Page 47 Click the red highlighted box to scale Y-axis. Set to 500/div  Click the green highlighted box to scale X-axis  Actual Speed • (Green) Speed • reference (purple) 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 47...
  • Page 48 Development Tool: DAVE & xSPY Prerequisite  Example Project with PMSM Motor  ¬ PMSM Motor Sensorless FOC control with xSPY App (PMSM_Motor_xSPY_FOCSL01_Example01_XMC13.zip) (PMSM_Motor_xSPY_FOCSL01_Example01_XMC44.zip) Additional Example Projects Download  Help Content  Copyright © Infineon 11/5/2013 Page 48 Technologies 2011.
  • Page 49: Additional Example Projects Download

    Additional Example Projects Download Download additional Example Projects via DAVE library store  Help  Install DAVE Example Library  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 49...
  • Page 50 Additional Example Projects Download Select DAVE Project Library Manager in the drop-down menu  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 50...
  • Page 51 Additional Example Projects Download Select Examples in the Libraries window and click Next  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 51...
  • Page 52 Additional Example Projects Download Accept terms of the license agreement and click Finish  DAVE Example Projects are installed  11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 52...
  • Page 53 Download Example Projects from the web  http://www.infineon.com/cms/en/product/promopages/aim- mc/DAVE_3_Support_Portal/DAVE_Example_Project_Download.html Download the project zip file  Open DAVE™ and go to File  Import  Infineon  DAVE  Project Check “Select Archive File”  Browse to the downloaded DAVE project zip file ...
  • Page 54: Table Of Contents

    Development Tool: DAVE & xSPY Prerequisite  Example Project with PMSM Motor  ¬ PMSM Motor Sensorless FOC control with xSPY App (PMSM_Motor_xSPY_FOCSL01_Example01_XMC13.zip) (PMSM_Motor_xSPY_FOCSL01_Example01_XMC44.zip) Additional Example Projects Download  Help Content  Copyright © Infineon 11/5/2013 Page 54 Technologies 2011.
  • Page 55: Help Content

    Help Content Go to Help -> Help Contents  Look into DAVE Apps -> Expand  topics -> click on DBG002 (latest version) Click on DBG002 App ->  Overview 11/5/2013 Copyright © Infineon Technologies 2011. All rights reserved. Page 55...

This manual is also suitable for:

Xmc4400