GTM: TOM: Two independant Phase shift output from TOM channels

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

cross mob
User20514
Level 1
Level 1
Hello,

My question is as follows,

Is it possible to generate two indepdendant phase shift outputs from channel 1 and channel 2 w.r.t to master output signal on channel 0 in the same TOM unit.

All the outputs should have duty cycle and period and difference is in different phase shift (phase 1) of channel1 and (phase 2) channel 2 w.r.t to master signal on channel 0.

Resource allocation is not a hardwired, it can be changed for acheiving the desired outputs.

Best Regards,
Arshad Ziyad
0 Likes
3 Replies
CookieMonster11
Employee
Employee
5 sign-ins First solution authored 10 replies posted
arshadziyad wrote:

Is it possible to generate two indepdendant phase shift outputs from channel 1 and channel 2 w.r.t to master output signal on channel 0 in the same TOM unit.
All the outputs should have duty cycle and period and difference is in different phase shift (phase 1) of channel1 and (phase 2) channel 2 w.r.t to master signal on channel 0.


Yes, it is possible to use one timer as master and others as slaves. The period would be synchronized by using the reset signal of the master for the slaves as well.
You need to calculate the phase shift in software, either on CPU or maybe also in MCS.
One idea could be to set the PWM channels to inactive LOW via SL bit and configure the required duty cycle (for the HIGH duration).
The output will be set to LOW again after the timer has reached it's maximum and the reset from master timer restarts the PWM channel.
0 Likes
NABICHAN
Level 2
Level 2
25 sign-ins 10 questions asked 5 replies posted

Hi,

NABICHAN_0-1676387549239.png

Could you please tell more regarding this? Is there some register where PWM can be synced and phase shift can be given?

We are working on same issue. There is Master PWM , Slave PWM B should have 180 degrees phase shift always. And Slave PWM C should have a programmable phase shift.

 

0 Likes
monk85
Level 1
Level 1
5 sign-ins First like given First reply posted

Seeing that this topic is open (not solved), would anyone care to share a piece of code here? 

 

Thank you,

M.

0 Likes