Infineon Designer powered by TinaCloud

XMC1300 LED Current Control Explorer - Example A1

Open online SPICE simulator circuit link: lighting_led_24V_LED_CC_EXP_XMC1302_A1.tsc


XMC LED Current Control Explorer - Example A1

HUMAN EYE

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
5. Select "Upload"
6. Drag and drop the .zip file created earlier
7. Click "Upload", then click "OK"
8. (optional) Launch debugger by clicking
on the "TR" button on the top right

This example demonstrates modulated peak-current control on one LED channel,
based on the DAVE project "LED_CCEXP_A1_BCCU_ACMP_ERU_CCU4".

The following code lines have been changed to speed up initialization, simplify
potentiometer behavior, and observe internal signals:
(line 64) #define OFFTIME (0x10)
(line 91) .fclk_ps = 0x50,
(line 262) XMC_GPIO_SetMode(P0_8, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1);
XMC_GPIO_SetMode(P0_2, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1);
(line 283) dimlevel = potresult;

VDC IN

OUTPUT STAGE

COMPARATOR REFERENCE

Other circuits
Development platform: DAVE™
DAVE code: LED_CCEXP_A1_BCCU_ACMP_ERU_CCU4
Evaluation board: XMC LED Current Control Explorer
Reference manual: XMC1300 AB-Step
Product info: XMC1302-T038F0200 AB


Technical Assistance