Skip to content

Modified GPIO code to prevent low pulse when switching to Hi-Z mode.#1074

Merged
mathias-arm merged 1 commit into
ARMmbed:mainfrom
analogdevicesinc:fix/reset_glitch
Apr 30, 2024
Merged

Modified GPIO code to prevent low pulse when switching to Hi-Z mode.#1074
mathias-arm merged 1 commit into
ARMmbed:mainfrom
analogdevicesinc:fix/reset_glitch

Conversation

@lorne-maxim
Copy link
Copy Markdown
Contributor

When code attempted to release the ports by placing them into Hi-Z mode, it would first clear the out register (so that weak pull-up would be disabled) then made the switch to Hi-Z. Since the signals were initially in output mode, clearing the out register caused a low pulse on the pins. One of the pins is the RESETN line which caused an unwanted device reset.

This PR changes the code to use the "NORMAL_HI_Z" mode that the MAX32625 supports. This mode places the pins in Hi-Z (no pull-up) regardless of the state of the out register.

See section 5.4.3 of the MAX32625 user guide for the I/O modes supported.

@mathias-arm mathias-arm merged commit 82dc31d into ARMmbed:main Apr 30, 2024
ozersa added a commit to analogdevicesinc/max32625pico-firmware-images that referenced this pull request Jul 8, 2024
BL image generated from below SHA point
ARMmbed/DAPLink@82dc31d

Detail:
When code attempted to release the ports by placing them into Hi-Z mode,
it would first clear the out register (so that weak pull-up would be disabled)
then made the switch to Hi-Z. Since the signals were initially in output mode,
clearing the out register caused a low pulse on the pins. One of the pins is
the RESETN line which caused an unwanted device reset.

MAX32625PICO BL gpio is going to to use the "NORMAL_HI_Z" mode
that the MAX32625 supports.
This mode places the pins in Hi-Z (no pull-up) regardless of
the state of the out register.

PR: ARMmbed/DAPLink#1074

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants