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.

TMS320F28379D: Routing pwm signals to any GPIO using xbar

Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hello Experts,

Is it possible to route any EPWM module signals to any GPIO using xbars?, I am not able to find any examples of this.

For example: I need to route EPWM1 signals (which are origenally GPIO0(CMP_A) and GPIO1(CMP_B)) to GPIO 50 and GPIO51.

Would appreciate it if a sample code is provided.

Thanks,

AK

  • Hi AK,

    This is possible by routing the EPWM output as an input to the CLB, feeding it to a CLB output, and routing the CLB output to OUTPUTXBAR. The OUTPUTXBAR cannot connect to every GPIO, but you will have many more options than the default gpio mux options for EPWM1A and EPWM1B.

    Unfortunately we do not have sample code for this exact use-case, but we do have examples for CLB and XBARs. I would highly recommend using SysConfig for configuring both the XBARs and CLBs as this is much easier than configuring the registers manually.

    Thank you,

    Luke

  • Thanks luke, I have not used SysConfig for this before, any tutorial material available on using SysConfig?

  • Hi AK,

    We have a tutorial video on using SysConfig here: 

    https://www.ti.com/video/6304751776001

    In a nutshell, SysConfig is a GUI based-tool used for generating driverlib code to initialize any of the modules in a C2000 devices. You can use it for some or all of your system initialization. It is very helpful for becoming aware of all of the available functionality for a specific module rather than reading through the entire TRM chapter or registers

    All of our C2000Ware examples have SysConfig included, the generated code gets placed into the Board_Init() function located in the main file of the example after building your project.

    Thank you,

    Luke