This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0L1306-Q1: How to use clock phase shift

Part Number: MSPM0L1306-Q1
Other Parts Discussed in Thread: MSPM0L1306

Hi team

Can we use three timers to change the phase by 90° each in MSPM0L1306-Q1?

What kind of program should we set up?

  • Hello,

    To clarify, you want 3 timers running at 90degress phase shifted from each other.  Practically speaking, this means 3 timers running with the same period but timer 1 restarts 25% of the period after timer0, and timer2 restarts 50% after timer0.  Is this correct?   How accurate must they be?  

    our TIMAx modules have built-in phase load registers, but we do not have any TIMAx on the MSPM0L1306.  There may be future M0Lxx devices that include these advanced timers. 

    Currently, the only option that comes to mind is to try and manually start the timers at the right time.  I am thinking that we can try and use the cross-triggering functionality to do this.  Start timer0 and set a compare at the 25% mark to trigger Timer1 to start.  Then reconfigure timer0 or use timer1 to then trigger timer2 to start.  It's not the most straight forward and I don't have a code example showing this currently. 

    Does this help? 

    Thanks

    JD     

  • Thank you for your reply. I will try this.