Download Print this page
Infineon XMC1000 Getting Started

Infineon XMC1000 Getting Started

Led lighting application kit
Hide thumbs Also See for XMC1000:

Advertisement

Quick Links

XMC1000
LED Lighting Application Kit
Getting Started

Advertisement

loading

Summary of Contents for Infineon XMC1000

  • Page 1 XMC1000 LED Lighting Application Kit Getting Started...
  • Page 2 Example Project with Colour LED Card  ¬ RGB Lamp using COLORLAMP01 app (RGBLamp_Example01_1Lamp_3Channels.zip) Example Project with White LED Card  ¬ Street Lamp using WHITELAMP01 app (StreetLamp_Example01_1Lamp_4Channels.zip) Example Projects Download  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 2...
  • Page 3 Example Project with Colour LED Card  ¬ RGB Lamp using COLORLAMP01 app (RGBLamp_Example01_1Lamp_3Channels.zip) Example Project with White LED Card  ¬ Street Lamp using WHITELAMP01 app (StreetLamp_Example01_1Lamp_4Channels.zip) Example Projects Download  Home 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 3...
  • Page 4 LED Lighting Application Kit Composition XMC1200 CPU Card  Micro USB 5 User LEDs On-board COM Connectors and Segger according to pin-out J-Link debugger Edge connector for XMC1200 Application cards 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 4...
  • Page 5 LED Lighting Application Kit Composition Colour LED card  Showcases color control  Low power RGB LEDs (10mA per channel) Ambient Light Sensor Connectivity DALI Connectivity DMX512 Connectivity 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 5...
  • Page 6 LED Lighting Application Kit Composition White LED card  Showcases brightness control  White LED strings (5 LEDs per string) 24V powered, 20mA per channel Temperature Sensor Connectivity Ambient Light Sensor DALI Connectivity 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 6...
  • Page 7 Example Project with Colour LED Card  ¬ RGB Lamp using COLORLAMP01 app (RGBLamp_Example01_1Lamp_3Channels.zip) Example Project with White LED Card  ¬ Street Lamp using WHITELAMP01 app (StreetLamp_Example01_1Lamp_4Channels.zip) Example Projects Download  Home 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 7...
  • Page 8  Infineon Can be downloaded from:  http://www.infineon.com/cms/en/product/promopages/aim-  mc/DAVE_3_Download.html For a guide on setting up DAVE , please refer to XMC1x00 Boot  Kit Getting Started 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 8...
  • Page 9 Example Project with Colour LED Card  ¬ RGB Lamp using COLORLAMP01 app (RGBLamp_Example01_1Lamp_3Channels.zip) Example Project with White LED Card  ¬ Street Lamp using WHITELAMP01 app (StreetLamp_Example01_1Lamp_4Channels.zip) Example Projects Download  Home 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 9...
  • Page 10: Getting Started Example

    Getting Started Example RGB Lamp using COLORLAMP01 app Connect to PC XMC1200/XMC1300 Colour LED Card CPU Card 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 10...
  • Page 11 Select the device accordingly In DAVE workspace, create a new “DAVE CE” project: File->New->DAVE Project  Give the project a name e.g.  “RGBLamp_Example01” Select “DAVE CE Project” as  Project Type 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 11...
  • Page 12 Configure Main Clock (MCLK) and Peripheral Clock (PCLK) Configure Brightness and Color Control Unit (BCCU) global settings Configure BCCU Dimming Engine Configure BCCU Channels Configure Port Pins Configure SysTick 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 12...
  • Page 13 Instantiate COLORLAMP01 app Select the COLORLAMP01 app from the  App Selection View COLORLAMP01 app automatically uses 3  BCCU channel apps (BCCU01) and 1 BCCU dimming app (BCCUDIM01) 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 13...
  • Page 14 S/W Connectivity View In UIEditor, under the Clock  Configuration tab, ¬ change the Desired Frequency of the MCLK to 32MHz ¬ select PCLK = 2*MCLK 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 14...
  • Page 15  change the Desired Fast Clock Frequency to 800kHz ¬ to limit the maximum possible off time to approx. 5ms (no flicker)  change Watchdog Maximum Bitnumber to 0x400 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 15...
  • Page 16 25%  change the Initial Dimming Level to 1024 ¬ set time to reach 25% brightness to approx. 5.6s  change Desired Transition Time to 7s 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 16...
  • Page 17 S/W Connectivity View In UIEditor, under the  Channel Configuration tab, ¬ Enable Channel at initialization ¬ Enable Flicker Watchdog ¬ change Desired Linear Walk Time to 0s (i.e. immediate) 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 17...
  • Page 18 1365 Assign pin to P0.4  ¬ Right-click on app->Manual Pin Assignment ¬ In Manual Pin Assignment window, set iohw as Resource, P0.4 as Port-Pin ¬ Solve And Save 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 18...
  • Page 19 Type RED in the field provided Repeat steps for the other 2 app instances (i.e. BCCUCH01/1  and BCCUCH01/2) ¬ Assign to P0.11 and P0.1 respectively ¬ Label them GREEN and BLUE respectively 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 19...
  • Page 20 Open the IO003 UIEditor by double-clicking or right-click-  >UIEditor on the app in S/W Connectivity View In UIEditor, under the Configure Pin tab,  ¬ set 6 Port Pins ¬ enable Output Driver 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 20...
  • Page 21 Resource, and P0.5 to P0.10 as Port-Pins ¬ Solve And Save Optional: Label the app  ¬ right-click on app -> Add User Label ¬ Type UNUSED_PINS in the field provided 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 21...
  • Page 22 Getting Started Example RGB Lamp using COLORLAMP01 app Configure SysTick Initialization function is defined in core_cm0.h  SysTick exception handler is defined in startup_XMC1200.s  Initialize the SysTick in Main.c  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 22...
  • Page 23 Define the SysTick exception  handler routine in Main.c ¬ Set a new target color by calling the function COLORLAMP01_SetColor(); ¬ Dim up or down by calling the function COLORLAMP01_SetDimLev elExponential(); 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 23...
  • Page 24 Build project  Click Wait for Build to finish Download code  Click Switch to TASKING Debug view Click to run code LED1 regularly changes color and brightness  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 24...
  • Page 25 Example Project with Colour LED Card  ¬ RGB Lamp using COLORLAMP01 app (RGBLamp_Example01_1Lamp_3Channels.zip) Example Project with White LED Card  ¬ Street Lamp using WHITELAMP01 app (StreetLamp_Example01_1Lamp_4Channels.zip) Example Projects Download  Home 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 25...
  • Page 26 Getting Started Example Street Lamp using WHITELAMP01 app Connect to PC XMC1200/XMC1300 White LED Card CPU Card 24V Power Supply 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 26...
  • Page 27 Select the device accordingly In DAVE workspace, create a new “DAVE CE” project: File->New->DAVE Project  Give the project a name e.g.  “StreetLamp_Example01” Select “DAVE CE Project” as  Project Type Copyright © Infineon 04/05/2013 Page 27 Technologies 2013.
  • Page 28 Configure Main Clock (MCLK) and Peripheral Clock (PCLK) Configure Brightness and Color Control Unit (BCCU) global settings Configure BCCU Dimming Engine Configure BCCU Channels Enable Channels and Dimming Engine Configure SysTick 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 28...
  • Page 29 Instantiate WHITELAMP01 app Select the WHITELAMP01 app from the  App Selection View WHITELAMP01 app automatically uses 4  BCCU channel apps (BCCU01) and 1 BCCU dimming app (BCCUDIM01) 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 29...
  • Page 30 S/W Connectivity View In UIEditor, under the Clock  Configuration tab, ¬ change the Desired Frequency of the MCLK to 32MHz ¬ select PCLK = 2*MCLK 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 30...
  • Page 31 S/W Connectivity View In UIEditor, under the  Global Configuration tab, ¬ change the Desired Fast Clock Frequency to 320kHz ¬ change Watchdog Maximum Bitnumber to 0x3F 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 31...
  • Page 32  double-clicking or right-click->UIEditor on the app in S/W Connectivity View In UIEditor, under the  Dimming Engine Configuration tab, ¬ Disable Dither Function ¬ select Fine Dimming Curve 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 32...
  • Page 33 Open the BCCUCH01/0 (first instance  of app) UIEditor by double-clicking or right-click->UIEditor on the app in S/W Connectivity View In UIEditor, under the  Channel Configuration tab, ¬ Enable Flicker Watchdog 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 33...
  • Page 34 ¬ configure on-time to 50us, 800Hz lowest frequency component  change Number of on-bits grouped together to 4  change Number of off-bits grouped together to 96 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 34...
  • Page 35 Repeat steps for the other 3 app instances (i.e.  BCCUCH01/1, BCCUCH01/2 and BCCUCH01/3) ¬ change Initial off-bit counter value to 48, 24 and 0 respectively ¬ Assign to P0.6, P0.7 and P0.8 respectively 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 35...
  • Page 36 Enable Channels and Dimming Engine In Main.c,  ¬ Enable all 4 BCCU channels at the same time ¬ Enable dimming engine ¬ Set all channels to 100% intensity 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 36...
  • Page 37 Getting Started Example Street Lamp using WHITELAMP01 app Configure SysTick Initialization function is defined in core_cm0.h  SysTick exception handler is defined in startup_XMC1200.s  Initialize the SysTick in Main.c  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 37...
  • Page 38 Getting Started Example Street Lamp using WHITELAMP01 app Configure SysTick (continued) Define the SysTick exception handler routine in Main.c  ¬ Dim up or down by calling the function WHITELAMP01_SetDimLevelExponential(); 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 38...
  • Page 39  Click Build project  Click Wait for Build to finish Download code  Click Switch to TASKING Debug view Click to run code LEDs regularly changes brightness  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 39...
  • Page 40 Example Project with Colour LED Card  ¬ RGB Lamp using COLORLAMP01 app (RGBLamp_Example01_1Lamp_3Channels.zip) Example Project with White LED Card  ¬ Street Lamp using WHITELAMP01 app (StreetLamp_Example01_1Lamp_4Channels.zip) Example Projects Download  Home 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 40...
  • Page 41 Can be downloaded directly from the web DAVE Project Library Examples  ¬ Can be downloaded from library in DAVE ¬ Can also be downloaded directly from the web 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 41...
  • Page 42 Demonstrates 1 RGB Lamp functionality using 3 BCCUCH01 apps and 1 BCCUDIM01 app (3 Channel, 1 Dimming Engine) RGB Lamp Example  (Simple_RGBLamp_Example_1Lamp_3Channels.zip) ¬ Demonstrates 1 RGB Lamp functionality without DAVE apps 04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 42...
  • Page 43 Additional Application Examples Additional Application Examples available  Street Lamp Example  (Simple_StreetLamp_Example_1Lamp_4Channels.zip) ¬ Demonstrates Street Lamp functionality without DAVE apps Can be downloaded from the web HERE  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 43...
  • Page 44 Example Projects Download DAVE Example Library Download Example Projects via DAVE library store  Help  Install DAVE Example Library  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 44...
  • Page 45 Example Projects Download DAVE Example Library Select DAVE Project Library Manager in the drop-down menu  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 45...
  • Page 46 Example Projects Download DAVE Example Library Select Examples in the Libraries window and click Next  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 46...
  • Page 47 Example Projects Download DAVE Example Library Accept terms of the license agreement and click Finish  DAVE Example Projects are installed  04/05/2013 Copyright © Infineon Technologies 2013. All rights reserved. Page 47...
  • Page 48 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 ...