Infineon Designer powered by TinaCloud

XMC1300 LED Current Control Explorer - Example A2

Open online SPICE simulator circuit link: lighting_led_24V_LED_CC_EXP_XMC1302_A2.tsc


XMC LED Current Control Explorer - Example A2

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_A2_BCCU_ACMP_EXT_CCU4".

The following code lines have been changed to speed up initialization, simplify
potentiometer behavior, and show internal signals:
(line 62) #define OFFTIME (0x12)
(line 63) #define WALKTIME (0x0)
(line 91) .fclk_ps = 0x40,
(line 242) XMC_GPIO_SetMode(P0_8, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1);
(line 263) dimlevel = potresult;

VDC IN

OUTPUT STAGE

COMPARATOR REFERENCE

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


Technical Assistance