No interrupt generation on mpu6050 MPL5.1.2

By timo , 17 September 2014

Hello everybody,

after porting the msp430 example to the tiva c launchpad i can read the fifo with the dmp data however im not able to generate interrupts on the int pin of my mpu6050.

int_param.cb = dummy;
int_param.pin = 0;
int_param.lp_exit = 0;
int_param.active_low = 0;
int result = mpu_init(&int_param);
UARTprintf("mpu_init: %in", result);
mpu_set_sensors(INV_XYZ_ACCEL | INV_XYZ_GYRO);
mpu_configure_fifo(INV_XYZ_GYRO | INV_XYZ_ACCEL);

memset(&hal, 0, sizeof(hal));
hal.sensors = ACCEL_ON | GYRO_ON;
hal.report = PRINT_QUAT;

dmp_load_motion_driver_firmware();

dmp_set_orientation(inv_orientation_matrix_to_scalar(gyro_orientation));

hal.dmp_features = DMP_FEATURE_6X_LP_QUAT | DMP_FEATURE_SEND_RAW_ACCEL | DMP_FEATURE_SEND_CAL_GYRO |DMP_FEATURE_GYRO_CAL;
dmp_enable_feature(hal.dmp_features);
dmp_set_fifo_rate(200);
mpu_set_dmp_state(1);
hal.dmp_on = 1;
mpu_set_int_level(1);
mpu_set_int_latched(0);
dmp_set_interrupt_mode(DMP_INT_CONTINUOUS);
GPIOIntClear(GPIO_PORTA_BASE, GPIO_PIN_5);
IntEnable(INT_GPIOA);

I have tried all parameter combinations of functions
mpu_set_int_level(1);
mpu_set_int_latched(0);
dmp_set_interrupt_mode(DMP_INT_CONTINUOUS);
but the level of the interrupt pin is always GND and there is no signal.

Does somebody have an idea? Thank you very much!!

phpbb Topic ID
16617