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.

TMS320F280049M: AIO pin can be input of Input X-BAR?

Part Number: TMS320F280049M


Hi Champs,

I like to know if AIOs can be input of the Input X-BAR. It's noted in TRM that Input X-BAR has access to every GPIO. AIOs are assigned to digital input #2xx which is  GPIO_H, So i thought AIO can be the input of Input X-BAR. However, over the digital input #168 can NOT be selected as XBAR input in driverlib's XBAR_setInputPin() in xbar.h as following.

XBAR_setInputPin(XBAR_InputNum input, uint16_t pin)
{
    //
    // Check the argument.
    //
    ASSERT(pin <= 168U);

    //
    // Write the requested pin to the appropriate input select register.
    //
    EALLOW;

    HWREGH(XBAR_INPUT_BASE + (uint16_t)input) = pin;

    EDIS;
}

I couldn't find any clear document about it yet. Could anyone look into this, pls?

Thanks,

Steve

  • Hi Steve,

    Good question that I actually ran into myself recently. The AIOs can be used with the Input X-Bar as long as the pins are in GPIO mode via the appropriate analog mode select register. It will then function like every other GPIO when you connect it to the X-Bar. I have a pending update to the TRM that will show up in the next release.

    For the driverlib, that looks like a bug. I'll submit to have that corrected as well. Thanks for pointing this out.

    Regards,

    Kris