Skip to main content
Kotit.1
Visitor II
January 25, 2022
Solved

VCNL interrupt always high

  • January 25, 2022
  • 1 reply
  • 928 views

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.

This topic has been closed for replies.
Best answer by Eleon BORLINI

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

1 reply

Eleon BORLINI
Eleon BORLINIBest answer
ST Employee
February 8, 2022

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