cancel
Showing results for 
Search instead for 
Did you mean: 

VCNL interrupt always high

Kotit.1
Associate

Hello

I'm working on a project with VCNL4010 sensor connected to STM32.

I followed the annotation note to set the VCNL ready to get an interrupt when a value is exceeded.

The AN file said:

  • Set Led current, in my case 200mA
  • Set Frecuency to proximation rate, in my case 62.5measurements/sec
  • Set High and Low Threshold
  • Enable interrupt generation when High Threshold exceed and 4 counts (register 8Eh in VCNL)
  • Clear flags
  • Enable proximity and selftimed in register 80h

After configurate, the MCU starts to read values from proximity. The point is that interrupt pin is always High. Precisely, in the very moment that Threshold is set with a value, interrupt rise to 1.

Then, if a come close my finger to the sensor, interrupt pin go to 0. I think this is not make sense, since the example in the AN I can see a diagram that works in opposite way.

I don't know what to do more. I hope someone can help me to arrange this problem.

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

Hi @Kotit.1​ ,

since the VCNL4010 sensor is from Vishay Semiconductors, for issues related to the device specifically I suggest you to ask for help on Vishay online technical support.

-Eleon

View solution in original post

1 REPLY 1
Eleon BORLINI
ST Employee

Hi @Kotit.1​ ,

since the VCNL4010 sensor is from Vishay Semiconductors, for issues related to the device specifically I suggest you to ask for help on Vishay online technical support.

-Eleon