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!
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!