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.

TMS320F28374D: X-Bar Output

Part Number: TMS320F28374D

I am trying to output the ePWM1 sync signal to GPIO34. I have been reviewing SPRUHM8I and the xbar.c and xbar.h drivers and can't seem to figure it out. I think I have located where the ePWM sync signal goes into the mux (mux 14 bit 3 for EXTSYNCOUT), but unclear how to get that loaded int he correct register. Then also unclear how a X-Bar output channel gets routed to a GPIO. I have looked for examples but no luck.

   Any help would be appreciated,

             Thanks

                Dave

  • Hi,

    Please refer to Figure 9-1. Input X-BAR and Figure 15-7. Time-Base Counter Synchronization Scheme

    you can directly use the output of Input XBAR (INPUT5) as SYNCIN to the PWM.
    EXTSYNCOUT is for a different signal for a different purpose, sending a sync signal out of the device.
    For your case, you seem to need the SYNCIN function which can be simply used via INPUT5 of InputXBAR.
    This signal is connected to the sync input of EPWM as shown in 15-7

  • Thanks for the reply,

    I have 2 mcu's that need synchronized, so need one output and one input. The input was fairly straightforward as I had another piece of code that used a X-Bar input that I adapted. The Output X-Bar was a bit more difficult. I used the xbar.c and xbar.h to get one of the X-Bar output channels and then connected that channel through the GPIO mux (I originally thought there was a mux like the X-Bar input, didn't realize it was directly mapped  into the GPIO mux

    XBAR_setOutputMuxConfig(XBAR_OUTPUT1, XBAR_OUT_MUX14_EXTSYNCOUT );

     Thanks again,

                Dave