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.

TMS320F280049: GPIO output method for CMPSS output

Part Number: TMS320F280049
Other Parts Discussed in Thread: TIDM-02000, SYSCONFIG

I am trying to modify the TIDM-02000 and output the CMPSS3 High side output to GPIO24, but it is not output. Are there any other registers to set in the program below?

XBAR_setOutputMuxConfig(XBAR_OUTPUT1,XBAR_OUT_MUX04_CMPSS3_CTRIPOUTH);
XBAR_enableOutputMux(XBAR_OUTPUT1,XBAR_MUX04);
GPIO_setDirectionMode(24, GPIO_DIR_MODE_OUT);
GPIO_setQualificationMode(24, GPIO_QUAL_ASYNC);
GPIO_setPinConfig(GPIO_24_OUTPUTXBAR1);

  • A few things to check.

    1. F280049c controlCARD settings. There is a switch on the board that select the location for GPIO24 on the HSEC connector.

    2. The CTRIPOUTH configuration in the CMPSS module, specially if you are using the digital filter.

    3. XBAR/GPIO configuration. This looks ok to me. I check using sysconfig and it looks ok. Sysconfig generated code:

    //
    // OUTPUTXBAR1 -> myOUTPUTXBAR0 Pinmux
    //
    //
    // OUTPUTXBAR1 - GPIO Settings
    //
    #define GPIO_PIN_OUTPUTXBAR1 24
    #define myOUTPUTXBAR0_OUTPUTXBAR_GPIO 24
    #define myOUTPUTXBAR0_OUTPUTXBAR_PIN_CONFIG GPIO_24_OUTPUTXBAR1
    
    ...
    
    GPIO_setPinConfig(myOUTPUTXBAR0_OUTPUTXBAR_PIN_CONFIG);
    
    ..
    
    XBAR_setOutputLatchMode(myOUTPUTXBAR0, false);
    XBAR_invertOutputSignal(myOUTPUTXBAR0, false);
           
    //
    //Mux configuration
    //
    XBAR_setOutputMuxConfig(myOUTPUTXBAR0, XBAR_OUT_MUX04_CMPSS3_CTRIPOUTH);
    XBAR_enableOutputMux(myOUTPUTXBAR0, XBAR_MUX04);