How to syncronize CCU80 timers to do phase shift PWM?

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

cross mob
User2235
Level 3
Level 3
HI,

How to use CR2 from CC80 to reset the CC81 timer. This way control the phase between CC80 PWM and CC81 PWM.

Ari
0 Likes
1 Reply
P__Yélamos
Employee
Employee
10 sign-ins First like given 5 sign-ins
Hello,
for synchronizing slices:
this is mentioned in vreference manual of XMC4500 in section 23.6 (v1.1)
it is very simple. You just need to make sure that the slices you want to use are started from signal "SCU.GLCCST" (select the event "start" for the slices you need to synchronize). Once you have this connected, you need to assert the corresponding bitfields in register SCU.CCUCON.


For phase shifting:
I recommend that you start one timer in single shot mode(if phase shift is to be changed in run time) from the CR2 (for example) of the other timer. There are several posibilities for doing this, but this seems pretty simple and allows you to configure the start of the shifted timer and the CR and therefore the duty cycle of the second timer as you wish.

Hope it helps,


BR
Pablo
BR
Pablo
0 Likes