Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Drain GPIO mode #466

Open
ianrrees opened this issue Jul 2, 2021 · 0 comments
Open

Open Drain GPIO mode #466

ianrrees opened this issue Jul 2, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ianrrees
Copy link
Contributor

ianrrees commented Jul 2, 2021

On Matrix, there has been some discussion around an "Open Drain" GPIO mode, which could be used to drive shared interrupt or reset lines for example. This mode would have subtypes for Nmos and Pmos, and in each of those the pin could be in one of two states. In OpenDrain<Nmos>, the pin would either drive the output low, or leave the output disconnected.

It may be useful to enable the pull resistor when the pin is in the de-asserted state, which could be achieved using subtypes NFloating, NPullUp, PFloating, PPullDown (or according to wikipedia : , , , ).

The implementation would work along the lines of https://ez.analog.com/dsp/blackfin-processors/w/documents/4978/blackfin-gpio-open-drain-functionality - basically instead of set_high() and set_low() acting on the OUT bit, they'll work on a combination of OUT and DIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants