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.

TMS320F280039C: How to enter GPIO to CLB via CLB INPUT XBAR - problem in CLB_LCL_MUX_SEL_1/2 description

Part Number: TMS320F280039C
Other Parts Discussed in Thread: SYSCONFIG

I want to set a GPIO directly to the CLB via CLB INPUT XBAR. 

The produces of the  CLB INPUT XBAR are put as local inputs to the CLB at the index range 32 to 63. 

How to configure this if the field to configure local inputs at CLB_LCL_MUX_SEL_1/2 is only 5 bit wide, covering only indices 0...31? 

  • Hi Team,

    I have the same confusion as this customer.

    And for further, what is MISC_INPUT bits in CLB_LCL_MUX_SEL_1/2 used for? Are those bits the 6th bit for local mux selection?

    spruii0d_TMS320F2838x Real-Time Microcontrollers With Connectivity Manager TRM (Rev. D) P1178 & P1185 & P1287

    --

    Thanks & Regards

    Yale

  • Hello Yale and Yahali,

    I agree MISC_INPUT is not descriptive name and the description is not informative. I will submit a request to have this updated.

    You are correct that MISC_INPUT is used to access index 32 and higher.

    Here I configured:

    • in0 == EPWM1_DCAEVT1 --> index 1
    • in1 == ECAPx_ECAP_OUT_EN --> index 13
    • in2 == CLB pre-scaled clock --> index 31
    • in3 == EPWM5A --> index 0 + 32 = 32. Note: MISC_INPUT 3 is set to 1. 
    • in4 == INPUTXBAR1 --> index 16 + 32 = 48 Note: MISC_INPUT 4 is set to 1



    I would suggest trying the SysConfig tool. This is what I used to quickly configure these inputs to test it out.  

    First connect the CLB INPUTXBAR 1 to a GPIO - for example GPIO5


    Then configure the CLB inputs - very quick. When built, this generates a board.c file with the driverlib calls to configure the MUX. 

    Regards, 

    Lori