Xmc1302 p1.4 LED

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Yalcin_Haksoz
Level 2
Level 2
First like received 10 replies posted 10 questions asked
I have XMC power explorer kit and I am using the the control boards with XMC1302 and XMC4200 for learning.
On the XMC1302 board there is a test LED connected to P1.4. I wanted to blink it with the PWM app but it is not shown as feasible from the pin mapping tool.
Could you please help me understand why P1.4 is not available for the pwm output? Can it be made available? Am I doing anything wrong?
Thanks in advance.
YH
0 Likes
4 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Try by selecting in the PWM APP the CCU8 as timer module. The P1.4 alternate output function is only connected to CCU8 slice output, not CCU4.

Regards,
Jesus
0 Likes
Yalcin_Haksoz
Level 2
Level 2
First like received 10 replies posted 10 questions asked
Thank you. I got it working.
0 Likes
Yalcin_Haksoz
Level 2
Level 2
First like received 10 replies posted 10 questions asked
Is there a way of accessing the pwm output by the software? We can access digital io by using:

pin_status = DIGITAL_IO_GetInput(&DIGITAL_IO_0);

I would like to do the same for pwm output.

Thank you.
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
You use the same API on the pin where the PWM is output is being driven.
0 Likes