HF_ATL
Posts: 14
Joined: Fri Oct 26, 2018 2:18 pm

what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?

Mon Jul 22, 2019 10:36 am

Does anybody know what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?
I don't see that information in BCM2837 datasheet...

Thank you and best regards

Heater
Posts: 13878
Joined: Tue Jul 17, 2012 3:02 pm

Re: what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?

Mon Jul 22, 2019 1:12 pm

No idea. Almost certainly shorter than the shortest pulse you can generate. Given the clock rates it must be down to a nanosecond or 2.

I'm curious, what high speed thing to you want to get interrupts from?
Memory in C++ is a leaky abstraction .

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2152
Joined: Thu Jul 11, 2013 2:37 pm

Re: what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?

Mon Jul 22, 2019 1:33 pm

In theory, a pulse wider than 3 system bus clocks will be detected (assume the bus clock is 250MHz), so pulses wider than 12ns should trigger an interrupt and latch the event detect register(s).

Driving these pulses reliably so you only get a single event is another matter - if the input voltage bounces around due to stray loop inductance then the event will be retriggered for as long as the ringing passes the pin's VIH/VIL.
Rockets are loud.
https://astro-pi.org

HF_ATL
Posts: 14
Joined: Fri Oct 26, 2018 2:18 pm

Re: what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?

Tue Jul 23, 2019 8:54 am

Many thanks both for your replies.
Indeed I'm starting with python programming as well as in the raspberry pi and wondering about the shortest pulse width possible when searching for information about interrupts on the RPi.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24130
Joined: Sat Jul 30, 2011 7:41 pm

Re: what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?

Tue Jul 23, 2019 9:10 am

HF_ATL wrote:
Tue Jul 23, 2019 8:54 am
Many thanks both for your replies.
Indeed I'm starting with python programming as well as in the raspberry pi and wondering about the shortest pulse width possible when searching for information about interrupts on the RPi.
Using Python means a lot of extra code between you and the hardware - you won't be able to get near the figures above with it.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright


User avatar
joan
Posts: 14472
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: what is the shortest pulse width that the Raspberry Pi 3 B GPIO interrupt pins can detect?

Tue Jul 23, 2019 9:41 am

We don't know what you want to do. You need to explain what you are trying to achieve.

Return to “General discussion”