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.

LP5521 - About Trigger function

Guru 21045 points

Hi Team,

 

Our customer would like to make the following sequences using the trigger function.

 

[Sequences]

1.TRIG pin is toggled from High to Low.

2.RGB repeats blinking.

3.It is stop if TRIG pin is toggled from Low to High.

 

 

I understand that they can use this sequence.

However, could you please let us know if you have any concern and other recommended Stop method?

(For example, Is "the control of OP_MODE register" better to stop it?)

 

 

Regards,

Kanemaru

  • Hello Kanemaru,


    With 'Wait for External trigger' command you can start the sequence but you cannot stop it by releasing the TRIG pin as you have described. The command is executed only once and the execution continues when the trigger signal rising edge is received. If the TRIG signal stays low, there isn't needed signal edge for the 'Wait for External trigger' command to continue.

    This is assuming you have the 'Wait for external trigger' command inside the same branch that executes the blinking pattern.


    You can certainly stop the execution by changing the operation mode, like you have described.


    Thanks.

    Best Regards,

    Tomi Koskela

  • Hi Tomi-san,

     

    Thank you always for your kind support!

    I understood it in the following way.

    Could you please let us know if there are any mistakes in that?

     

    [Sequences]

    1.TRIG pin is toggled from High to Low.

    2.RGB repeats blinking.

    3. It is stop if OP_MODE is Disabled

    R_MODE=00b

    G_MODE=00b

    B_MODE=00b

     

    Regards,

    Kanemaru

  • Hi Kanemaru-san,

     

    Yes that works. However please note that the TRIG signal has to be released at some point before the RGB blinking can be restarted.

     

    Thanks.

    Best Regards,

    Tomi Koskela

  • Hi Tomi-san,

     

    Thank you for your prompt reply!

    I understood. thank you very much.

     

    Regards,

    Kanemaru