6 years, 9 months ago.

Issue on Data ready interrupt of MPU-9250

Hello,

I am a complete newbie to microprocessor and I'm trying to use InterruptIn function to get data from MPU-9250 using new data as a trigger of interrupt but I have no idea on how to a accomplish it. I have been reading a Register Map but I still don't understand how things work. I’m wondering if someone could give me any input.

I'm using Nucelo F411RE.

.

posted by Takuma Oura 22 Aug 2017

1 Answer

6 years, 9 months ago.

The MPU9250 uses I2C to communicate with the MCU, so don't use an InterruptIn for this. Instead, use a library like MPU9250AHRS which has an example program which shows you how to read the data from the sensor.

Hello,Jongboom

Thank you for your response! I have already used Mr.Winer's program and have been able to get data, but I need to use to a interrupt to control timing. The problem I have been through is that I want to make the INT pin high when a sensor has new data to be read but I don't know which register's setting to change. Sorry for my bad english :(

posted by Takuma Oura 22 Aug 2017