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: Sample code in "Application Note SNVA822 - LP5569 Lighting Pattern Design"

Part Number: LP5569


Hi,

I am trying to get the dual-color chasing pattern sample code in the application note referred above in the description to run but am not having any success. From what I can tell, it appears that all of the pattern sample code related to the RGB LEDs in section 4 is structured into a single, large program with the common code being the LED map and the breathing example? I copied the code into a .src for each chip, assembled using the EVM GUI and transcribed the hex codes into my C program, but it doesn't run due to the triggers from what I can tell. 

I need help understanding how to use inter-chip triggers to synchronize the chips. What I'm not understanding is how to work with triggers between multiple LP5569 ICs. My design has 4 LP5569 parts driving 12 RGB LEDs using a board design based on the older ring demo EVM. I assume that the bits in the "trigger" command and/or TRIG pin register bits must be set to allow inter-chip communication to work? I already have the CLK master and slave configuration working correctly and all of the other patterns I have programmed such as blinking and breathing (which use the same code on all chips and do not need triggers) are synchronized correctly. I'm just not understanding how to use triggers between chips. I see that there is a bit in the trigger command for both send and wait that supports "external" triggers? Is this what I need to use? If so, how are the engine bits specified when using external triggers? For each chip, I map all of the LEDs to engine 1 so I'm not understanding how the s{x} and w{x} commands know the source and targets across the chips. Hopefully, this makes sense. I can provide any further details to help you assist me in resolving this issue.

Thank you kindly,

Bill 

  • Hi, Bill,

    Sorry for the trouble you are facing now and let's work together to solve this.

    Actually if you set one chip CLK for output and other chips' CLK for input, they will using the internal 32kHz to run engine synchronously.

    So would you attach your GUI setup and .src for me to have a reference?

    Let me double check.

    Thanks.
    Regards,
    Kenneth
  • Hi Kenneth,

    Thank you for your reply. Attached are the 4 .src files I'm using. Naming convention is by chip number (i.e. 1.src == chip1, etc.). Please note that I believe there is a bug in the U1 program on p.8 of the application note. I think the loop label should be loop2_0, rather than loop2_3. I'm only using the TI LP5569EVM GUI to assemble and generate the hex codes which I use in my application. Each of the 4 .src files compiles cleanly with no errors. Although I am using the mapping table provided in the example, I only need the Blue/Green mapping for my application. Once I understand the triggering, I'm hopeful that I can remove the unnecessary mappings so that only BG is used.

    This is time-sensitive for me and I appreciate the help, Kenneth.

    Thank you kindly,

    Bill

    chase-pattern3.rar

  • Kenneth,

    I just noticed that I made a copy/paste error in 2.src-4.src. The load_end line incorrectly specifies row2. I changed to row7 which is the code I'm attempting to execute.

    Thanks,

    Bill

  • Hi Kenneth, did you receive the files and have you had a chance to review? Thanks.
  • Hi, Bill,

    I make a simple chasing code for you to modify.

    6518.1.zip

    Please let me know if this solves your problem.

    Thanks.

    Regards,

    Kenneth

  • Hi Kenneth,

    Thank you for the sample. I have no problem running that, but my original issue is that I need a 4-chip solution, not just a single chip. I tried to duplicate the code for the remaining 3 chips and adjust the timing, but am not getting the results I expect. Is there a possibility you can provide an implementation that the other 3 chips would use to complete the chase pattern?

    Thank you kindly,

    Bill