Handling interruptions
Posted: 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.
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.