cancel
Showing results for 
Search instead for 
Did you mean: 

vl6180x is always busy in single shot reading mode

cem kar
Associate
Posted on December 23, 2016 at 13:21

After sending 'single shot reading mode' command (sending 0x01 to register 0x0018), I check 'RESULT_INTERRUPT_STATUS_GPIO' register at 0x04F and always read 0x00 that means it is busy.

I replaced vl6180x with a new one but problem still continues.

I do not have any problem in reading/writing from/to vl6180x registers. Initial values are standard values given in application notes.

Anybody comments on this problem ?

thanks in advance

3 REPLIES 3
Oliver Beirne
Senior
Posted on December 28, 2016 at 08:34

Hello

I have moved this thread to

https://community.st.com/community/mems-sensors-community/mems-sensors-forum?sr=search&searchId=ce13c706-76c3-41bc-a0af-aa41d2ead3f9&searchIndex=1

‌ where product-related questions are asked.

Thanks

Oli

Peter Thinghuus
Associate
Posted on October 10, 2017 at 14:51

Hi Cem kar

I have the same problem.

Initialization and Defaul setting acording to app notes,,

Starting Single shot mode

Polling for INTERRUPT_STATUS_GPIO = 0x04

Logging RESULT_RANGE_STATUS

No data in result.

All communication in I2C is OK. I can write and read to alle registers.

All help is apriciated.

muratkoc_ee
Associate II

I have a problem reading /writing from vl6180x using i2c.

if(HAL_I2C_Master_Transmit(&hi2c1,0x52,0x00,1,100) ==HAL_OK){

HAL_GPIO_WritePin(GPIOC, GPIO_PIN_8, GPIO_PIN_SET);

HAL_Delay(10);

}

This don't set to GPIOC8.