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.

CCS/TMS320F28377D: How to synchronize two DSPs?

Part Number: TMS320F28377D


Tool/software: Code Composer Studio

Hi,

I need to synchronize the PWMs on different two DSPs (TMS320F28377D), sending the DSP1's EPWM1SYNCOUT signal to the DSP2's EXTSYNCIN1, please see below. I am not sure if this right or not. If it works, could you please help me with the following 2 questions? If it is wrong, could you please teach me how to do it?  -Thanks!

1. How to configure INPUTXBAR5 to be EXTSYNCIN1 of DSP1?

2. How to configure EPWM1SYNCOUT of DSP1 to be the EXTSYNCIN1 of DSP2?

And the hardware connection is seen below. GPIO7 of DSP1 is connected with GPIO6 of DSP2, and GPIO6 of DSP1 is connected with GPIO7 of DSP2. Is this right?

  • Hi Hongmei Wan,

    You do not need to do any configuration to make INPUTXBAR5 into EXTSYNCIN1. Once you enable your phase loading on EPWM1 you will receive the sync signal.

    To configure EPWM1SYNCOUT to go to a pin, you will use SYNC_SOC_REGS.SYNCSELECT[SYNCOUT]. You can reference the figure called Time-Base Counter Synchronization Scheme in the TRM.

    For the hardware connections, you can use either EXTSYNCOUT on the GPIO mux or the Output X-Bar to get the SYNCOUT signal to the other chip. You will use the Input X-Bar on the receiving chip though so you can use any GPIO or EXTSYNCIN1. The Input X-Bar is connected to all GPIOs even though it isn't shown on the mux.

    Regards,

    Kris

  • Solved, Thanks a lot!!