Skip to main content
MŻbik.1
Associate
August 28, 2023
Question

Controling INT PIN on VL53L7CX

  • August 28, 2023
  • 2 replies
  • 1606 views

Hi everyone!

I have a not conventional question to this device. INT pin is used in library to send interrupt to MCU. In my case i use just necessary part of library so the INT pin is not used at all.

So now the question. Is it possible to use it now the way i want it to?  For example there is a register i can change so the state of INT pin will also change?  

This topic has been closed for replies.

2 replies

John E KVAM
ST Employee
August 28, 2023

You don't have to do anything to the interrupt pin. You can poll sensor, asking the question, "Are you done yet?" And the sensor will tell you. The fact that the Interrupt pin rises at the same time can be ignored.

- john

Visitor II
August 29, 2023

Thank you for this answer though it's not the topic of my qestion.

Can i use INT PIN as GPIO that i'm controlling? for example turn on and off simple LED?  

Anne BIGOT
Technical Moderator
September 8, 2023

Hello,
INT pin can not be used for anything else than what it has been programmed by the FW for.
So no way to use it to turn on and off a simple LED using the INT pin.
Regards

 

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'