Handling interruptions

Applications, development tools, FPGA, C, WEB
Post Reply
f_sat
Posts: 8
Joined: Thu Mar 23, 2023 6:31 pm

Handling interruptions

Post by f_sat » Thu May 04, 2023 5:19 pm

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.

User avatar
redpitaya
Site Admin
Posts: 955
Joined: Wed Mar 26, 2014 7:04 pm

Re: Handling interruptions

Post by redpitaya » Tue May 09, 2023 8:59 pm

Hello f_sat,

Thank you for the question.

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

User avatar
redpitaya
Site Admin
Posts: 955
Joined: Wed Mar 26, 2014 7:04 pm

Re: Handling interruptions

Post by redpitaya » Wed May 24, 2023 1:54 pm

Apologies for the delay. We need to check this with the developers.

f_sat
Posts: 8
Joined: Thu Mar 23, 2023 6:31 pm

Re: Handling interruptions

Post by f_sat » Mon May 29, 2023 5:34 pm

ok no problem, alternatively I was able to solve this problem (for now) by means of threads.

User avatar
redpitaya
Site Admin
Posts: 955
Joined: Wed Mar 26, 2014 7:04 pm

Re: Handling interruptions

Post by redpitaya » Fri Jun 02, 2023 2:41 pm

This will be solved after the new OS release.

Post Reply
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