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.

AM625: How to set the hysteresis of the pin's input buffer.

Part Number: AM625

Tool/software:

In the AM62x datasheet, the Pin Attributes table suggests that some pins have hysteresis in the input buffer.
Can this hysteresis be switched ON/OFF?
If it is possible to switch ON/OFF, please tell me how to set it.

  • Hello,

    I am looking at your queries and you may expect reply in one or two days.

    Regards,

    Anil.

  • Hello,

    Typically, these pin attributes can be configured in the PADCFG Register for each pin.

    So, hysteria also should be controlled through the PADCFG registers.

    But in the PADCCFG registers this information is also missing.

    I need to check internally with the team.

    Meanwhile can you please confirm you are trying to control these HYS bit from the A53 or DM R5F/M4F.

    Regards,

    Anil.

  • Thank you for your reply.
    I am assuming that hysteresis will be controlled from R5.

  • Hello ,

    I internally discussed with Hw experts, and they have confirmed that this will be controlled under the Mux mode configuration.

    In the AM62x devices, the GPIO supports debounce functionality.

    And please look at the datasheet for which on the pins have functionality because all GPIO's do not support this feature.

    First, you need to be control the debounce selection bit in the PADCFG registers register to enable the debounce selection .

    Later, configure the debounce period .

    This way, this functionality can be achieved.

    This link below is helpful for the code and discussions on the debounce selection.

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1368738/sk-am62a-lp-how-do-we-configure-mcu-gpio-debounce-time-in-the-mcu-r5-firmware/5546773#5546773

    Regards,

    Anil.

  • Thank you for your reply.

    I have two questions.

    First, am I correct in saying that you can turn hysteresis OFF by setting the debounce period to 0, and ON by setting it to a value above 0?

    Second, is it possible to set the period and switch hysteresis ON/OFF even when the debounce function terminal is set as a clock input for serial communications?

  • Hello,

    You can set first period, and later you can, enable the hysteresis ON/OFF  or vice versa. It is also OK.

    Because, even if we set the hysteresis ON first and not the configured time period, then the default debounce logic is bypassed.

    So, go with the first period and later enable the hysteresis .

    Second, is it possible to set the period and switch hysteresis ON/OFF even when the debounce function terminal is set as a clock input for serial communications?

    The debounce logic is not valid for all the pins.

    So, make sure that before going to use the debounce logic you can check the datasheet.

    Typically, the debounce logic will do it in the initializations and not in the run time.

    And, if you ae changing the debounce logic on and off during the Run time, you may not get the issues and it may work.

    Tyr at your side.

    Regards,

    Anil.