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

DAVE™ Forum Discussions

User11179
Level 1
Level 1
First like received
Hi,

I'm using the app CCU8 to generate a PWM signal and when I stop my application in a breakpoint
also the generated PWM signal stops.

Is possible to debug the application unless stops the PWM signal?

Regards,
Matteo
0 Likes
5 Replies
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

I was not able to reproduce your issue.

Could you share your project?
Could you check the value of GCTRL.SUSCFG bitfield when you stop your application? It should read 0.

Regards,
Jesus
0 Likes
User11179
Level 1
Level 1
First like received
Hi Jesus,

you are right.
GCTRL.SUSCFG bitfield is 0 and PWM continue when debugging.
We have wrong, because in field, the motor goes in an anomaly condition and pull a lot of current, so we can't watch the signal.

Knowing the problem I want to try a different solution.
I like to stop the motor and put the output in a know state.

In GCTRL.SUSCFG bitfield, I see that there's the 0x10 mode that stops the block immediatly and clamps all the output to PASSIVE state....
but I don't understand howo to set the passive state in a way that put the output signal low.
How can I do that?
0 Likes
User10709
Level 1
Level 1
Hi!
I also have the same problem. I need to bring the PWM outputs into a safe condition.

Read the GCTRL.SUSCFG documentation below

Suspend Mode Configuration
This field controls the entry in suspend mode for all the CCU8 slices.
00B Suspend request ignored. The module neverenters in suspend
01B Stops all the running slices immediately. Safe stop is not applied.
10B Stops the block immediately and clamps all the outputs to PASSIVE state. Safe stop is applied.
11B Waits for the roll over of each slice to stop and clamp the slices outputs. Safe stop is applied.

Setting 10B or 11B can not get the desired result.
Are there other settings to do?

If you have any idea of that
Thanks in advance
regards
Stefano
0 Likes
User10696
Level 4
Level 4
First solution authored
I know this is an old thread, but maybe someone can answer my question.

In the Suspend Mode Configuration the expression "Safe stop" is used, but this expression is not explained anywhere in the reference manual.
What is "Safe stop"?
0 Likes
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

"safe stop" means that no glitches are produced when the suspend is enforced: the CCU8,CCU4 waits until the timer reaches its period/rollover, to avoid any abrupt chopping of a PWM signal, that could i.e. generate shorts outside

Regards,
Jesus
0 Likes