Skip to content

mimxrt/machine_pin: Updated DRIVE_# constants. #8389

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

Conversation

alphaFred
Copy link
Contributor

Updated DRIVE_# constants representing pin drive strength.

Signed-off-by: Philipp Ebensberger

Updated DRIVE_# constants representing pin drive strength.

Signed-off-by: Philipp Ebensberger
@alphaFred
Copy link
Contributor Author

@dpgeorge based on our discussion from #8313. On a side note, it would be really great if you would find the time to also take a look at @robert-hh PR #7494 allowing us to bring some documentation for the mimxrt port to mainline.

{ MP_ROM_QSTR(MP_QSTR_POWER_4), MP_ROM_INT(PIN_DRIVE_POWER_4) }, // R0/5
{ MP_ROM_QSTR(MP_QSTR_POWER_5), MP_ROM_INT(PIN_DRIVE_POWER_5) }, // R0/6
{ MP_ROM_QSTR(MP_QSTR_POWER_6), MP_ROM_INT(PIN_DRIVE_POWER_6) }, // R0/7
{ MP_ROM_QSTR(MP_QSTR_DRIVE_OFF), MP_ROM_INT(PIN_DRIVE_OFF) },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this level really off, ie it does not drive the GPIO at all? Or is it just a very weak drive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the documentation it turns the output driver off.

Copy link
Contributor

@robert-hh robert-hh Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested: It switches the driver off. With a 0.9 MOhm load and the value set to 1, the output voltage drops to 0.01V. When drive=Pin.DRIVE_OFF is set. With drive=Pin.DRIVE_0, the output voltage reads 3.28 V.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for testing!

@dpgeorge
Copy link
Member

dpgeorge commented Mar 8, 2022

Rebased and merged in 62cb206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants