0
\$\begingroup\$

I have a Light Sensor IC.

There is an Interrupt pin. I can see the status of it on page 9.

What is the high and low threshold exceed that they are mentioning in that table? Can someone tell me what does the interrupt pin indicate when connected to a Microcontroller GPIO?

Is there a possibility that the INT Pin will send some signal if there's some error in I2C Communication bits? Like does INT help in the data protection of the data transferred from the Light sensor to the microcontroller?

\$\endgroup\$
3
  • \$\begingroup\$ scroll up to page 8. You see registers setting thresholds (low and high) and such. And even higher on page 5 you have the graphs with all the wavelengths and sensitivity and stuff. \$\endgroup\$
    – Ilya
    Feb 12 '21 at 10:23
  • \$\begingroup\$ From the datasheet: 'For detailed description about set-up and use of the interrupt as well as more application related information see AN: “Designing VEML6030 into an Application”' \$\endgroup\$
    – Mat
    Feb 12 '21 at 10:31
  • \$\begingroup\$ INT for initiating communication by sensor. The values and procedures can be programmed. \$\endgroup\$
    – user263983
    Feb 12 '21 at 11:41
1
\$\begingroup\$

Int is an interrupt output.

It is configurable to be pulled down (it needs a pull-up resistor since it is an open drain output) when programmed thresholds are crossed. The threshold is on the ambient light since it is the measured variable.

It is used to launch an event driven communication instead of polling consecutive reads by the micro-controller.

\$\endgroup\$
3
  • \$\begingroup\$ Thank you for the answer. Just a question. Actually, we have a pull-up resistor at INT. How to program this IC? Are we programming and setting the ambient light information through the I2C Lines? \$\endgroup\$
    – Newbie
    Feb 13 '21 at 6:36
  • 1
    \$\begingroup\$ @Newbie yes the configuration is done through the I2C. You have 7 registers (6 used and one unimplemented). To change a register you set the address which is depending on pin 4 either 0x48 (pin 4 high) or 0x10 (pin 4 low), write the register number, LSB of the value you want to write to register and then MSB of the value you want to write to register. \$\endgroup\$ Feb 13 '21 at 6:58
  • \$\begingroup\$ Thank you very much for the answer \$\endgroup\$
    – Newbie
    Feb 13 '21 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.