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.

LP5562EVM: Using engines to pulse orange

Part Number: LP5562EVM

Hi,

I am trying to use the engines and to pulse orange color over and over again.

This is the code that I am using:

# engine 1 section start
.ENGINE1

# engine 2 section start
.ENGINE2
ramp 500, 128
wait 300
ramp 500, -128
wait 300

# engine 3 section start
.ENGINE3
ramp 500, 70
wait 300
ramp 500, -70
wait 300

Engine 2 is assigned to Red and ENGINE3 to Green. Blue is I2C controlled.

The problem is that the LEDs are not blinking in the same time. As I can see, red is the first one that starts to blink and green is after it. Does the engines execute the code in the same time for all 3 engines or does it execute it sequentially (one engine after another)?

Regards,

Gabriel

  • You can refer to 7.3.3.4.6 Trigger, "Wait or send triggers can be used to synchronize operation between different engines."

    Please use trigger as following:

    # engine 1 section start
    .ENGINE1

    # engine 2 section start
    .ENGINE2
    trigger s3
    ramp 500, 128
    wait 300
    ramp 500, -128
    wait 300
    trigger w3

    # engine 3 section start
    .ENGINE3
    trigger w2
    ramp 500, 70
    wait 300
    ramp 500, -70
    wait 300
    trigger s2