MPU-9250 magnetometer AK8963

By fbutl , 29 June 2017

Hi

I would like to know if it is possible to trigger the int pin
when there is DRDY on the magnetometer side. I can see the interrupt
trigger when accelerometer and gyroscope are enabled but the pin
never goes high when I only have magnetometer enabled.

mag_data.sndval = 0x22; //Set chip in bypass mode to talk directly to AK8963
I2C_Write(i2cInit.port, MPU9250_ADDRESS, MPU9250_INT_PIN_CFG, mag_data.sndval, 1);

mag_data.sndval = 0x01; //Enable the DRDY Interrupt
I2C_Write(i2cInit.port, MPU9250_ADDRESS, MPU9250_INT_ENABLE, mag_data.sndval, 1);

phpbb Topic ID
36387