Page 1 of 1

Handling interruptions

Posted: Thu May 04, 2023 5:19 pm
by f_sat
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.

Re: Handling interruptions

Posted: Tue May 09, 2023 8:59 pm
by redpitaya
Hello f_sat,

Thank you for the question.

I will consult with the team and let you know the answer.

Re: Handling interruptions

Posted: Wed May 24, 2023 1:54 pm
by redpitaya
Apologies for the delay. We need to check this with the developers.

Re: Handling interruptions

Posted: Mon May 29, 2023 5:34 pm
by f_sat
ok no problem, alternatively I was able to solve this problem (for now) by means of threads.

Re: Handling interruptions

Posted: Fri Jun 02, 2023 2:41 pm
by redpitaya
This will be solved after the new OS release.