background image

04/05/2013 

Page 13 

Copyright © Infineon Technologies 2013. All rights reserved. 

Getting Started Example 

RGB Lamp using COLORLAMP01 app 

1.

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

 

Summary of Contents for XMC1000

Page 1: ...XMC1000 LED Lighting Application Kit Getting Started ...

Page 2: ...ation Kit Composition Getting Started Development Tool DAVETM 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 ...

Page 3: ...ion Kit Composition Getting Started Development Tool DAVETM 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 ...

Page 4: ... Copyright Infineon Technologies 2013 All rights reserved LED Lighting Application Kit Composition Edge connector for Application cards On board COM and Segger J Link debugger XMC1200 5 User LEDs Connectors according to pin out Micro USB ...

Page 5: ...control 04 05 2013 Page 5 Copyright Infineon Technologies 2013 All rights reserved LED Lighting Application Kit Composition Low power RGB LEDs 10mA per channel RF Connectivity DMX512 Connectivity DALI Connectivity Ambient Light Sensor ...

Page 6: ...5 2013 Page 6 Copyright Infineon Technologies 2013 All rights reserved LED Lighting Application Kit Composition RF Connectivity Ambient Light Sensor DALI Connectivity White LED strings 5 LEDs per string 24V powered 20mA per channel Temperature Sensor ...

Page 7: ...ion Kit Composition Getting Started Development Tool DAVETM 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 ...

Page 8: ... Started Development Tool DAVETM DAVETM is a free development platform for code generation by 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 DAVETM please refer to XMC1x00 Boot Kit Getting Started ...

Page 9: ...ion Kit Composition Getting Started Development Tool DAVETM 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 ...

Page 10: ...Getting Started Example RGB Lamp using COLORLAMP01 app 04 05 2013 Copyright Infineon Technologies 2013 All rights reserved Page 10 Connect to PC Colour LED Card XMC1200 XMC1300 CPU Card ...

Page 11: ... reserved Getting Started Example RGB Lamp using COLORLAMP01 app 1 Open DAVETM 2 In DAVETM 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 3 Select the device accordingly ...

Page 12: ...base for the interrupt Time base of 0 2s In the interrupt a new target dimming level or target color is regularly set with a 7s linear walk time Next we will show you the steps to creating this project 1 Instantiate COLORLAMP01 app 2 Configure Main Clock MCLK and Peripheral Clock PCLK 3 Configure Brightness and Color Control Unit BCCU global settings 4 Configure BCCU Dimming Engine 5 Configure BCC...

Page 13: ...3 All rights reserved Getting Started Example RGB Lamp using COLORLAMP01 app 1 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 ...

Page 14: ...RGB Lamp using COLORLAMP01 app 2 Configure Main Clock MCLK and Peripheral Clock PCLK Open CLK002 UIEditor by double clicking or right clicking UIEditor on the app in S W Connectivity View In UIEditor under the Clock Configuration tab change the Desired Frequency of the MCLK to 32MHz select PCLK 2 MCLK ...

Page 15: ...lobal settings Open BCCUGLOBAL UIEditor by double clicking or right clicking UIEditor on the app in S W Connectivity View In UIEditor under the Global Configuration tab to get a bit time of 5us 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 ...

Page 16: ...ngine Open BCCUDIM01 UIEditor by double clicking or right clicking UIEditor on the app in S W Connectivity View In UIEditor under the Dimming Engine Configuration tab Enable Dimming Engine at initialization set brightness level at 25 change the Initial Dimming Level to 1024 set time to reach 25 brightness to approx 5 6s change Desired Transition Time to 7s ...

Page 17: ...MP01 app 5 Configure BCCU Channels Open the BCCUCH01 0 first instance of app UIEditor by double clicking or right clicking UIEditor on the app in 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 ...

Page 18: ...B Lamp using COLORLAMP01 app 5 Configure BCCU Channels continued In UIEditor under the Intensity and Packer Configuration tab change Channel Intensity to 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 ...

Page 19: ...using COLORLAMP01 app 5 Configure BCCU Channels continued Optional Label the first app instance right click on app Add User Label 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 ...

Page 20: ...ng COLORLAMP01 app 6 Configure PORT Pins The intention of this step is to ensure that the unused pins are not left in a floating state 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 ...

Page 21: ...Lamp using COLORLAMP01 app 6 Configure PORT Pins continued Assign pins right click on app Manual Pin Assignment in Manual Pin Assignment window set pinX as 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 ...

Page 22: ...logies 2013 All rights reserved Getting Started Example RGB Lamp using COLORLAMP01 app 7 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 ...

Page 23: ...ing Started Example RGB Lamp using COLORLAMP01 app 7 Configure SysTick continued Define the SysTick exception handler routine in Main c Set a new target color by calling the function COLORLAMP01_SetColor or Dim up or down by calling the function COLORLAMP01_SetDimLev elExponential ...

Page 24: ...l rights reserved Getting Started Example RGB Lamp using COLORLAMP01 app Generate code 1 Click Build project 1 Click 2 Wait for Build to finish Download code 1 Click 2 Switch to TASKING Debug view 3 Click to run code LED1 regularly changes color and brightness ...

Page 25: ...ion Kit Composition Getting Started Development Tool DAVETM 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 ...

Page 26: ...etting Started Example Street Lamp using WHITELAMP01 app 04 05 2013 Copyright Infineon Technologies 2013 All rights reserved Page 26 Connect to PC 24V Power Supply White LED Card XMC1200 XMC1300 CPU Card ...

Page 27: ...ting Started Example Street Lamp using WHITELAMP01 app 1 Open DAVETM 2 In DAVETM 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 3 Select the device accordingly ...

Page 28: ...ime base for the interrupt Time base of 0 2s In the interrupt a new target dimming level is set and the dimming process is started Next we will show you the steps to creating this project 1 Instantiate WHITELAMP001 app 2 Configure Main Clock MCLK and Peripheral Clock PCLK 3 Configure Brightness and Color Control Unit BCCU global settings 4 Configure BCCU Dimming Engine 5 Configure BCCU Channels 6 ...

Page 29: ...All rights reserved Getting Started Example Street Lamp using WHITELAMP01 app 1 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 ...

Page 30: ...Street Lamp using WHITELAMP01 app 2 Configure Main Clock MCLK and Peripheral Clock PCLK Open CLK002 UIEditor by double clicking or right click UIEditor on the app in S W Connectivity View In UIEditor under the Clock Configuration tab change the Desired Frequency of the MCLK to 32MHz select PCLK 2 MCLK ...

Page 31: ...et Lamp using WHITELAMP01 app 3 Configure BCCU global settings Open BCCUGLOBAL UIEditor by double clicking or right click UIEditor on the app in 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 ...

Page 32: ...arted Example Street Lamp using WHITELAMP01 app 4 Configure BCCU Dimming Engine Open BCCUDIM01 UIEditor by 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 ...

Page 33: ...ing Started Example Street Lamp using WHITELAMP01 app 5 Configure BCCU Channels 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 ...

Page 34: ...re BCCU Channels continued In UIEditor under the Intensity and Packer Configuration tab enable Packer change Initial off bit counter value to 72 to introduce phase shift between the channels 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 ...

Page 35: ...hannels continued Assign pin to P0 5 Right click on app Manual Pin Assignment In Manual Pin Assignment window set iohw as Resource P0 5 as Port Pin Solve And Save 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 ...

Page 36: ...ng WHITELAMP01 app 6 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 Page 36 Copyright Infineon Technologies 2013 All rights reserved ...

Page 37: ...gies 2013 All rights reserved Getting Started Example Street Lamp using WHITELAMP01 app 7 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 ...

Page 38: ...TELAMP01 app 7 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 Page 38 Copyright Infineon Technologies 2013 All rights reserved ...

Page 39: ... All rights reserved Getting Started Example Street Lamp using WHITELAMP01 app Generate code 1 Click Build project 1 Click 2 Wait for Build to finish Download code 1 Click 2 Switch to TASKING Debug view 3 Click to run code LEDs regularly changes brightness ...

Page 40: ...ion Kit Composition Getting Started Development Tool DAVETM 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 ...

Page 41: ... Additional Application Examples Can be downloaded directly from the web DAVETM Project Library Examples Can be downloaded from library in DAVETM Can also be downloaded directly from the web 04 05 2013 Copyright Infineon Technologies 2013 All rights reserved Page 41 ...

Page 42: ...3 COLORLAMP01 apps 9 Channels 3 Dimming Engines RGB Lamp Example with Apps RGBLamp_Example03_1Lamp_3Channels zip 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 DAVETM apps 04 05 2013 Copyright Infineon Technologies 2013 All rights res...

Page 43: ...l Application Examples available Street Lamp Example Simple_StreetLamp_Example_1Lamp_4Channels zip Demonstrates Street Lamp functionality without DAVETM apps Can be downloaded from the web HERE 04 05 2013 Copyright Infineon Technologies 2013 All rights reserved Page 43 ...

Page 44: ...nload Example Projects via DAVETM library store Help Install DAVE Example Library 04 05 2013 Page 44 Copyright Infineon Technologies 2013 All rights reserved Example Projects Download DAVETM Example Library ...

Page 45: ... Select DAVE Project Library Manager in the drop down menu 04 05 2013 Page 45 Copyright Infineon Technologies 2013 All rights reserved Example Projects Download DAVETM Example Library ...

Page 46: ... Select Examples in the Libraries window and click Next 04 05 2013 Page 46 Copyright Infineon Technologies 2013 All rights reserved Example Projects Download DAVETM Example Library ...

Page 47: ...terms of the license agreement and click Finish DAVETM Example Projects are installed 04 05 2013 Page 47 Copyright Infineon Technologies 2013 All rights reserved Example Projects Download DAVETM Example Library ...

Page 48: ..._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 Press Open 04 05 2013 Page 48 Copyright Infineon Technologies 2013 All rights reserved Example Projects Download DAVETM Example Library ...

Page 49: ......

Reviews: