On-The-Fly & Synchronized CCU/PWM update for Compare/ Timer-Period

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

cross mob
Not applicable
Hi,

I am using XMC4500 Relax Kit. My requirement is to generate 2 PWMs. And, need to change the timer-period and duty-cycle for both synchronously and on-the-fly.

I have configured CCU40.IN0I and CCU40.IN1I as inputs which is connected with SCU.GSC40.

SCU.GSC40 is configured for rising edge as synchronous start event for both PWM => This is OK.
Now, If I changed only duty-cycle (by using compare register) synchronously, but not the time-period => This is OK
But, if I change synchronously both duty-cycle and time-period of both timers => This doesn't work (i.e. the PWM synchronous is lost).

Please help me to achieve the synchronous update for duty-cycle and time-period on the fly for both CCUs.

Thanks in advance for your help!
0 Likes
1 Reply
Not applicable
I figured out, this can be achieved by using GCSS - Global Channel Set Register.2922.attach

Thanks.
0 Likes