Infineon Designer powered by TinaCloud

XMC1200 Controlling RGB LED Color with BCCU

Open online SPICE simulator circuit link: mcu_XMC1200_RGB_LED_BCCU_color.tsc


Controlling RGB LED Color with BCCU

How to program the microcontroller:
1. Build project in DAVE
2. Export project into a .zip
3. Click on the microcontroller symbol
4. Click on the "MCU-code" details, then select "Upload"
5. Drag and drop the .zip file created earlier
6. Click "Upload", then click "OK"
7. (optional) Launch debugger by clicking on the "TR" button on the top right

This example demonstrates how easily the color of the light emitted by an
RGB LED (3-channel LED) can be controlled by the BCCU in XMC1200,
based on the DAVE project "RGB_LED_Example_Color_Control".

The following code lines have been changed to speed up the color walk:
(line 185) XMC_BCCU_CH_SetLinearWalkPrescaler(R_LED1_CH, 0x1);
(line 186) XMC_BCCU_CH_SetLinearWalkPrescaler(G_LED1_CH, 0x1);
(line 187) XMC_BCCU_CH_SetLinearWalkPrescaler(B_LED1_CH, 0x1);
(line 193) SysTick_Config(24000U);

Human vision

LEDs

Drivers

Other circuits
Development platform: DAVE™
DAVE code: RGB LED Example
Application Note: Brightness and Color Control Unit (BCCU)
Reference manual: XMC1200 AB-Step
Product info: XMC1200-T038F0200 AB


Technical Assistance