Do GPIO output pins bounce?
Does anyone know if setting or re-setting a GPIO output pin to its current status will cause the pin to bounce? IOW, if the pin is set high, and one issues a command in Python to set the pin high, does it momentarily drop low, or vice-versa?
Re: Do GPIO output pins bounce?
You are asking about "glitches" rather than "bounces". Bounces are normally taken as being multiple transitions on a state change.
To answer your question , GPIO outputs are glitch free.
PeterO
To answer your question , GPIO outputs are glitch free.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson
- HermannSW
- Posts: 3436
- Joined: Fri Jul 22, 2016 9:09 pm
- Location: Eberbach, Germany
- Contact: Website Twitter YouTube
Re: Do GPIO output pins bounce?
That is good to hear!
I do control 38V/1.5A led drivers powering a 5000lm led via two 24V IRF520 mosfets in series. GPIO13 is connected to SIG pin of both IRF520 modules. When Pi GPIO13 goes from high to low I would expect this:
Code: Select all
‾‾‾‾‾‾‾‾|_______
Code: Select all
‾‾‾‾‾‾‾‾|_|‾|______
Code: Select all
‾‾‾‾‾‾‾‾|_|‾|_|‾|______
So is this a problem of having reached maximal resolution of the logic analyzer, or is this real?
[even if it is real, that is no problem for my application, but I want to know]
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/working_with_FPGAs
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/working_with_FPGAs
- FTrevorGowen
- Forum Moderator
- Posts: 6003
- Joined: Mon Mar 04, 2013 6:12 pm
- Location: Bristol, U.K.
- Contact: Website
Re: Do GPIO output pins bounce?
Historically I've always used oscilloscopes (never had a "logic analyser" and no longer have access to a 'scope) but maybe what the analyzer is showing is its "interpretation" of "ringing" caused by probe/cable mis-match?HermannSW wrote: ↑Sun Jun 30, 2019 10:29 pm...
I do control 38V/1.5A led drivers powering a 5000lm led via two 24V IRF520 mosfets in series. GPIO13 is connected to SIG pin of both IRF520 modules. When Pi GPIO13 goes from high to low I would expect this:What my 100MSps logic analyzer sometimesshows is thisCode: Select all
‾‾‾‾‾‾‾‾|_______
or even thisCode: Select all
‾‾‾‾‾‾‾‾|_|‾|______
with width of the short pulses being 10ns.Code: Select all
‾‾‾‾‾‾‾‾|_|‾|_|‾|______
So is this a problem of having reached maximal resolution of the logic analyzer, or is this real?
[even if it is real, that is no problem for my application, but I want to know]
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's & P400. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm