PWMSVM01 with CCU81

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

cross mob
Not applicable
Hello

I am trying to get the PWMSVM01 app to work with CCU81. I need to use the pins P1.10 - P1.15.

I am using Dave to generate the code and then I am forcing my own settings.
I have changed the GlobalPtr in PWMSVM01_Handle0 to use CCU81 instead of CCU80, and also the PhasePtrs to use CCU81_80, CCU81_81 and CCU81_82, but it does not seem to work.

I have also changed the interrupt lines to be using the CCU81, as well as the IO configuration.

Will this app work with CCU81?

Many Thanks,
Kieran
0 Likes
2 Replies
Not applicable
BTW, I have also changed the KSyncStart to be 0x200 and the RESET001_DeassertReset(PER0_CCU81);

To me this should be a straightforward change?
0 Likes
Not applicable
Ok. I solved the problem. It only works on CCU81 if I set kEnableTrap to 0.

This seems odd to me. I looked at all the registers in the CCU80 module vs the CCU81 module and the values in them were identical.

Anyway it works now.
0 Likes