
XMC1000
LED Lighting Application Kit
Getting Started

Contents
LED Lighting Application 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
04/05/2013 Page 2 Copyright © Infineon Technologies 2013. All rights reserved.

Contents
LED Lighting Application 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
04/05/2013 Page 3 Copyright © Infineon Technologies 2013. All rights reserved.
Home

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

LED Lighting Application Kit Composition
Colour LED card
Showcases color control
Low power RGB LEDs
(10mA per channel)
Ambient
Light Sensor
DMX512 Connectivity DALI Connectivity
04/05/2013 Page 5 Copyright © Infineon Technologies 2013. All rights reserved.
RF
Connectivity

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
Ambient
Light Sensor
DALI Connectivity
04/05/2013 Page 6 Copyright © Infineon Technologies 2013. All rights reserved.
RF
Connectivity

Contents
LED Lighting Application 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
04/05/2013 Page 7 Copyright © Infineon Technologies 2013. All rights reserved.
Home

Getting Started
Development Tool: DAVE
TM
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
04/05/2013 Page 8 Copyright © Infineon Technologies 2013. All rights reserved.

Contents
LED Lighting Application 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
04/05/2013 Page 9 Copyright © Infineon Technologies 2013. All rights reserved.
Home

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

Getting Started Example
RGB Lamp using COLORLAMP01 app
1. Open DAVE
TM
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
04/05/2013 Page 11 Copyright © Infineon Technologies 2013. All rights reserved.

Getting Started Example
RGB Lamp using COLORLAMP01 app
This example demonstrates RGB Lamp functionality using COLORLAMP01
app
We will use the System Timer (SysTick) as the time 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 BCCU Channels
6. Configure Port Pins
7. Configure SysTick
04/05/2013 Page 12 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)
04/05/2013 Page 13 Copyright © Infineon Technologies 2013. All rights reserved.

Getting Started Example
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
04/05/2013 Page 14 Copyright © Infineon Technologies 2013. All rights reserved.

Getting Started Example
RGB Lamp using COLORLAMP01 app
3. Configure BCCU global 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
04/05/2013 Page 15 Copyright © Infineon Technologies 2013. All rights reserved.