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.

MCU-PLUS-SDK-AM263X: AM263X SDK API to switch the pull-up/down resistor configuration

Part Number: MCU-PLUS-SDK-AM263X
Other Parts Discussed in Thread: SYSCONFIG

Hello community,

I need to be able to enable or disable internal resistors at runtime but haven't found an API for that.

I wonder if there any supported functionality to change the GPIO internal resistor configuration?

Regards,

Artem

  • Hi Artem,

    There is no direct API to enable/disable internal pull up/ pull down resistor configuration. I will check and get back to you if there is any way to achieve this runtime functionality.

    Regards,
    Shaunak

  • Hello Artem,

    Apology for the delay in reply, I was on holiday leave.

    In general the pull-up/pull-down functionality is handled through SysConfig as it's not part of the GPIO registers but actually part of the MSS IOMUX. You'll find for each module there is an Internal Pull Resistor Disable bit in the Register Addendum which controls if the pull resistor is enabled/disabled and the bit after it is Pull Up/Pull Down Selection.

    Because this is done at that level and not in the GPIO module, the SDK and SysConfig are set up to handle that based on SysConfig.

    For runtime adjustments there isn't a dedicated API, but one option you might be able to look into using is Pinmux_config. I believe that is what does the configuration when the SysConfig setup occurs. Though it would require some care to use in a real time application to ensure you are only changing the pull resistors and nothing else.

    Best Regards,

    Ralph Jacobi