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.

LP5569: Interrupt generation

Part Number: LP5569

Tool/software:

Hello,

I am using lp5569 LED driver and I want to see the INT pin output when any interrupt is generated.

Can you explain in detail in what condition can I see the changes in the pin state of the INT pin which is high in default state and how to generate the interrupt and read the interrupt in any fault register or any other register(if it is possible)?

  • Hi Runita,

    Our expert will give you feedback later.

  • Hi Runita,

    Firstly, the GPIO/TRIG/INT worked as interrupt open-drain output by default. An external pull-up resistor is required to keep the INT as high state if there is no interrupt happened.

    When there is interrupt generated, the INT will be pulled low until the interrupt status is cleared through reading the register 0x3C (ENGINE_STATUS Register). There are two methods to generate interrupt.

    1.send "int" or "end" instructions

    2. after device start up or engine completed with the "mask_busy" bit = 0b.

    Best regards,

    Felix

  • Hi Felix,

    Can you provide an example to send the int instruction to the LED driver over I2C?

  • Hi Runita,

    ok, take the "int" instruction as an example (not include the device initial, e.g. pull up EN pin, set chip_en, etc.).

    Refer to the datasheet, the "int" instruction code is "0xC400". 

    1. set "ch1_mode" to "Load program to SRAM" (write 0x40 to register 0x02);
    2. set "Engine 1 Program Starting Address" and "Engine1 Program Counter" as 0 (write 0x00 to register 0x30, write 0x00 to register 0x4B);
    3. load data to SRAM (write 0xC4 to register 0x50, write 0x00 to register 0x51);
    4. set "ch1_mode" to "Run program" (write 0x80 to register 0x02);
    5. set  "ch1_exec" to " Execute once" (write 0xC0" to register 0x01)

    Then, the INT pin is pulled down. And read "ENGINE_STATUS" (0x3C) register will clear the interrupt that the INT pin will be pulled up high again. To execute the above step 5 can trigger the interrupt again.

    Best regards,

    Felix

  • Thank you for your support.