This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT3001: Interrupt pin issue.

Part Number: OPT3001

Hi TI community, 

I am working on the OPT3001 sensor. And I am using Transparent Hysteresis-Style Comparison Mode to get interrupt at rising edge.

I have set a high threshold and low threshold, and I want an interrupt event only when the high threshold is crossed. Once the interrupt is detected it remains high and not getting cleared.

Can you help me how to clear INT after an interrupt event has been generated?

Thanks in advance.

  • Hi Dhruvit,

    "The transparent hysteresis-style comparison mode is typically used when a single digital signal is desired that indicates whether the input light is higher than or lower than a light level of interest". Per this description this mode will not allow you to manually clear the interrupt as the INT signal acts as a binary above/below indicator. If you would like to clear the INT manually you would need to select latched mode. You can set the low threshold to 0 so that you will only get an INT when the lux value crosses the high value. Then in latched mode you can clear the INT by reading the device config register. From the datasheet "The latched window-style comparison mode is typically selected when using the OPT3001 to interrupt an external processor." which it sounds may be the case for you.

    Best,

    Alex

  • Hi Alex Bhandari-Young.

    Thank you for the suggestion. The latch window-style also worked.

    Thanks again.