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

Fix for issue #4908 - pulseout leaving line high #4911

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

DavePutz
Copy link
Collaborator

Apparently if calling pwm_set_enabled() to disable PWM is done too soon after a pulseout is ended it can leave the pin high (Issue #4908) Inserting a short delay before the call seems to resolve the issue - testing was run for several minutes without reproducing the error.

@dhalbert
Copy link
Collaborator

Thanks for figuring this out. Is there already a report of this problem somewhere else? If not, it might be worthwhile filing an issue with your observation in https://github.com/raspberrypi/pico-feedback or https://github.com/raspberrypi/pico-sdk.

@tannewt
Copy link
Member

tannewt commented Jun 24, 2021

Does disabling PWM actually leave the pin in a know state or simply stop the counter to it? Maybe we want to force reset the pin instead of waiting a little time to hit the off phase of the pwm.

@DavePutz
Copy link
Collaborator Author

DavePutz commented Jun 24, 2021 via email

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Okie doke. We can merge this in the meantime. Thanks @DavePutz

@tannewt tannewt merged commit 061d3a1 into adafruit:main Jun 24, 2021
@DavePutz DavePutz deleted the issue_4908 branch July 13, 2021 16:39
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.

None yet

3 participants