AnsweredAssumed Answered

Interrupt GPIO VL53L0X

Question asked by jonas m on Feb 21, 2018

hi,  

how does the Vl53L0X ranging sensor adress the GPIO for the interrupt, i can only find a long list of register adresses in the vl53l0x_interrupt_threshold_settings.h.

After initialization and calibration of the Sensor, i tried it with the code below. However, no interrupt is given out in StartMeasurement(). Im using the stm32f103RE microcontroller.

 

 

FixPoint1616_t threshold_high=(255);
FixPoint1616_t threshold_low=(350);

 

    status= VL53L0X_SetInterruptThresholds(pTestDev,
                    VL53L0X_DEVICEMODE_SINGLE_RANGING, threshold_low ,
                    threshold_high);
 status=VL53L0X_SetGpioConfig(pTestDev,0,VL53L0X_DEVICEMODE_SINGLE_RANGING,VL53L0X_GPIOFU                                 NCTIONALITY_THRESHOLD_CROSSED_LOW, VL53L0X_INTERRUPTPOLARITY_LOW);

 

 

 

    status=VL53L0X_StartMeasurement(pTestDev);

 

best regards

jonas

Outcomes