Hello,
I'm facing a serious probleme with the ADXL372:
I'm trying to put the ADXL372 to autosleep mode, int1 linked to activity (xyz) and int2 linked to inactivity (xyz) , but no interrupt is generated when I tilt the sensor.
this is how I set the rigsters :
adxl372_is_connected(&adxl_device);
adxl372_reset(&adxl_device);
adxl372_set_op_mode(&adxl_device,ADXL372_STANDBY);
adxl372_set_bandwidth(&adxl_device,ADXL372_BW_800HZ);//
adxl372_set_odr(&adxl_device,ADXL372_ODR_6400HZ ); //
adxl372_set_wakeup_rate(&adxl_device, ADXL372_WUR_512ms);
adxl372_set_activity_threshold(&adxl_device,ADXL372_ACTIVITY, 40, true, true); --> referenced active
adxl372_set_activity_threshold(&adxl_device, ADXL372_INACTIVITY, 100, true, true); --> referenced active
adxl372_set_activity_time(&adxl_device, 100); // X 3.3ms if ODR = 6400 Hz else 6.6ms
adxl372_set_inactivity_time(&adxl_device,100 ); // X 13ms if ODR = 6400 Hz else 26ms
adxl372_interrupt_config(&adxl_device, int1,int2);
adxl372_set_lpf(&adxl_device,ADXL372_LPF_DISABL ); //
adxl372_set_hpf(&adxl_device,ADXL372_HPF_ENABEL); //
adxl372_set_filter_settle(&adxl_device, ADXL372_FILTER_SETTLE_16); //
adxl372_set_act_proc_mode(&adxl_device, ADXL372_LOOPED);
adxl372_set_autosleep(&adxl_device,true);
Can anybody tell me what is wrong in my doing ? hwo can I be sur that the device is in autosleep mode ? why no interrupt is generated ?
For information : I read back all register to check that what I write is realy wrinten physicaly in the device.
I'm waiting for your help