Not applicable
Nov 18, 2017
10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 18, 2017
10:33 PM
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!
- Tags:
- ccu
- IFX
- synchrounous
1 Reply
Not applicable
Dec 04, 2017
05:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 04, 2017
05:51 AM
I figured out, this can be achieved by using GCSS - Global Channel Set Register.
Thanks.
Thanks.