Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

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

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

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>