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

Legacy microcontrollers Forum Discussions

Not applicable
Hi,

I'm have a problem with the XE167FM CCU6 module.
I have made a setup with Dave that produce 6 PWM signal.
Now I want to change the PWM duty.
If I change: CCU60_CC60SR,CCU60_CC61SR,CCU60_CC62SR nothing happens.

What I'm doing wrong?
And are the simple working examples on how to do this.

Hope you can help.
0 Likes
4 Replies
MsMdt
Employee
Employee
10 replies posted 5 replies posted First reply posted
Hi,
you need to trigger a Shadow Transfer. Set bit TCTR0.STE12.
Regards
0 Likes
Not applicable
MMarquardt wrote:
Hi,
you need to trigger a Shadow Transfer. Set bit TCTR0.STE12.
Regards


That doesn't work: but this does: CCU60_TCTR4 = 0x40;
That isn't very clear in the documentation. Took a lot of time to find that.
0 Likes
Not applicable
STE12 is rh (read and hardware). It can be activated by setting the bit T12STR (shadow transfer request), which is what you are doing.
0 Likes
Not applicable
I'm trying to create a PWM signal with CCU6. The controller is an XC22XXH.
The CCU60_CC60 is using T12, this is working fine for signal generation.
Now I want to generate an output signal on CCU60_CC61 using T13. According to the user manual this should be possible. But I'm not getting any signal at the output pin of CCU60_CC61 (P8.1).
The CCU60_MODCTR is 0x0401. So CC60 is using T12 and CC61 uses T13.
INP.INPT12 is set to Service Request SR0
and
INP.INPT13 is set to Service Request SR1

I'm getting an interrupt for the T13 period match, but nothing happens at the output pin.
If I try T13 with COUT63, this is working, too. But this is not an option for my final solution.
What am I missing?
0 Likes