GPIO Interrupts
Options
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
- 63 Announcements & News
- 139 Product News - New Product/Product Change Notice/ End-of-life
- 112 Welcome Developers!
- 60 Unboxing & Project Sharing
- 114 Tech Updates
- 3.6K UP Products
- 119 UP 7000
- 25 UP Squared i12
- 24 UP Xtreme i12
- 14 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 24 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 59 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral