GPIO Interrupts

John Melton
New Member Posts: 1
How many interrupts can be assigned to GPIO pins? For rotary encoders I need 4 interrupts per encoder for performance and I am looking at 4 encoders and 8 push buttons.
Comments
-
Interrupts can be enabled on any of the 28 GPIO pins. From user-space, you can get falling/rising/both edge-triggered notifications. At kernel level, you can also get level-triggered notifications. Let me know if you need further details.
-
I dont know how John was using his GPIO. but my issue is the next one.
I have 3 push buttons and 5 input connected to a PLC(no problems on the interface board, I have checked it many times).
that makes 8 inputs.
I use Python and RPi.GPIO(up-board last version).
I create 1 callback function wich is printing the triggering channel number, and the actual value of the 8 inputs.
channel number is wrong most of the time, I cant figure out why.
does any one have an idea? For me it seems to be a bug of the RPi.GPIO lib
my code and the output log are attached -
That's an issue with the python lib provided by Up-Board.
The same code is working on Raspberry-pi 3 -
how can i know wich interrupt has occured in my LKM ? (in interrupt handler function)
Categories
- All Categories
- 105 Announcements & News
- 54 Product News - New Product/Product Change Notice/ End-of-life
- 186 Welcome Developers!
- 55 Unboxing & Project Sharing
- 50 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral