Hello, I am doing a project which must read the values of an MPU6050 sensor through I2C, the connection has already been solved and I can read the values without problems, however, now I need to know how interruptions are handled in the red pitaya, the sensor has a pin that sends a 1 when it already has data prepared and a 0 when it is not. The idea is to make an interruption so that when a 1 arrives through the DIO0_N pin, an interruption is activated in the code to show the generated values. and then continue with the code where it left off.
I'm programming all this in C, and the intention is to make a motion detector (similar), but I'm very new to this, could you tell me if that pin (DIO0_N) configured as an input serves such a purpose and how does the red pitaya system handle interruptions?
Maybe some very basic example of this?
First of all, Thanks.
Handling interruptions
- redpitaya
- Site Admin
- Posts: 955
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Handling interruptions
Hello f_sat,
Thank you for the question.
I will consult with the team and let you know the answer.
Thank you for the question.
I will consult with the team and let you know the answer.
- redpitaya
- Site Admin
- Posts: 955
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Handling interruptions
Apologies for the delay. We need to check this with the developers.
-
- Posts: 8
- Joined: Thu Mar 23, 2023 6:31 pm
Re: Handling interruptions
ok no problem, alternatively I was able to solve this problem (for now) by means of threads.
- redpitaya
- Site Admin
- Posts: 955
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Handling interruptions
This will be solved after the new OS release.
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 7 guests