XMC4500: how to force CCU slices to their passive levels? (2)

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

cross mob
User15370
Level 2
Level 2
First like received First solution authored
Hello.

I am working on a simple pulse generator using Dave App PWM_CCU8. The configuration of one of these slices is:
- Channel 1 direct output, passive state=After Compare Match, passive state=Low.
My question: How can the output forced to its passive level?
I found in this form the thread "https://www.infineonforums.com/threads/4670-XMC4500-how-to-force-CCU-slices-to-their-passive-levels", but for me, it is unfortuately not exactly enough. For example, when I set the PWM into multichannel mode (Channel 1 enable), the PWM generation doesn't start.
Can please someon provide a more complete example?

Regards, j.
0 Likes
1 Solution
User15370
Level 2
Level 2
First like received First solution authored
A simple way to force the PWM output pins to their passive levels is to set their duty cycles, for example:
to 0% if the passive state of direct output is Low Before Compare match.
to 100% if the passive state of direct output is Low After Compare match.
It looks for me like a workaround, but it seems to work.

View solution in original post

0 Likes
2 Replies
User15370
Level 2
Level 2
First like received First solution authored
A simple way to force the PWM output pins to their passive levels is to set their duty cycles, for example:
to 0% if the passive state of direct output is Low Before Compare match.
to 100% if the passive state of direct output is Low After Compare match.
It looks for me like a workaround, but it seems to work.
0 Likes
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @User15370 ,

Yes, your workaround appears to work.

However, could you share the project or screenshots of the PWM_CCU8 configuration?

Regards,
Nikhil

0 Likes