2020-09-23 11:24 PM
Hi everyone,
I have an VL6180X connected to a PIC18F46J50. VL6180X is powered to 3V3 and I have implemented I2C routines and application code as in https://cdn.sparkfun.com/datasheets/Sensors/Proximity/VL6180_ApplicationNote.pdf to work in single shot mode.
However, when I am polling RESULT__INTERRUPT_STATUS_GPIO I always get 0x00, so I never get a range measurement.
- I am not using GPIO0 neither GPIO1
- On init, I am waiting until SYSTEM__FRESH_OUT_OF_RESET is 0x01 to set the VL6180X configuration.
- On Start Range I am checking RESULT__RANGE_STATUS is 0x01, and then writting 0x01 to SYSRANGE__START
- I have checked I2C communications and them works correctly.
Any idea of what I am missing?
Kind Regards,
Solved! Go to Solution.
2020-10-05 04:53 AM
2020-09-28 12:55 AM
Any help on this?
Kind Regards
2020-10-05 04:53 AM
Hi,
I have resolved the issue using SDA bit time = 20us
Regards,
Rafa