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.

TMS320F28377S:How to synchronize two DSPs?

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE

Tool/software:

I am trying to synchronize ePWM1 of DSP2 using the SYNC signal from ePWM1 of DSP1 as an EXTSYNCIN.

On DSP1, I am using the Output X-BAR function to output EXTSYNCOUT through GPIO6,
and on DSP2, I am receiving the signal through GPIO34.

What might be wrong with this setup?

For the hardware setup, GPIO6 on DSP1 is wired directly to GPIO34 on DSP2.

Here is the code for DSP1.

GpioCtrlRegs.GPADIR.bit.GPIO6 = 1;  

GpioCtrlRegs.GPAMUX1.bit.GPIO6 = 3; 

GpioCtrlRegs.GPAGMUX1.bit.GPIO6 = 0; 

GpioCtrlRegs.GPAPUD.bit.GPIO6 = 0; 

SyncSocRegs.SYNCSELECT.bit.SYNCOUT = 0; 

OutputXbarRegs.OUTPUT1MUX0TO15CFG.bit.MUX14 = 3; 

OutputXbarRegs.OUTPUT1MUXENABLE.bit.MUX14 = 1;  

OutputXbarRegs.OUTPUTLATCHENABLE.bit.OUTPUT1 = 0;

OutputXbarRegs.OUTPUTINV.bit.OUTPUT1 = 0;


Here is the code for DSP2.

GpioCtrlRegs.GPBMUX1.bit.GPIO34 = 0;  

GpioCtrlRegs.GPBGMUX1.bit.GPIO34 = 0;    

GpioCtrlRegs.GPBDIR.bit.GPIO34 = 0;    

GpioCtrlRegs.GPBPUD.bit.GPIO34 = 0;  

InputXbarRegs.INPUT5SELECT = 34;   

EPwm1Regs.TBCTL.bit.PHSEN = 1;      

EPwm1Regs.TBPHS.bit.TBPHS = 0;    

EPwm1Regs.TBCTL.bit.CTRMODE = 0;