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: How to start a simple engine?

Part Number: LP5569

Hello,

I started today putting the LP5569 in operation on our new board. If I write values to the LEDx_PWM registers I can control each LED individualy, but I do not get running a engine. Even if I do it the simplest way. What I am doing wrong?

I am writing the following register values:

0x59 to register 0x2F //Charge pump auto and enable internal clk

0x40 to register 0x00 //Enable Chip

0x40 to register 0x02 //Load program to SRAM

5ms delay

0x00 to register 0x4F //Select first page

0x40 to register 0x50

0x80 to register 0x51 //Set pwm to 50%

0xC0 to register 0x52

0x00 to register 0x53 //End

0xAA to register 0x71 //Map each second LED

0x00 to register 0x4B //Set start of engine1 to 0

0x00 to register 0x30 //set engine 1 program counter to 0

0x80 to register 0x01 //free run for engine1

0x80 to register 0x02 //run program

Have I forgotten any important register? Is the order of the commands wrong?

Best regards

Heiko

  • Hi Heiko,

    Please try the following writing steps after power up:

    1. 0x40 to 0x00
    2. 0x58 to 0x2F
    3. 0x80 to 0x16-0x1E
    4. 0x40 to 0x02
    5. 0x00 to 0x4b
    6. 0x00 to ox4F
    7. 0101 0000 to 0x50 & 1000 0000 to 0x51
    8. 0101 0001 to 0x52 & 1000 0000 to 0x53
    9. 1010 0000 to 0x54 & 0000 0000 to 0x55
    10. 1000 0110 to 0x56 & 0000 0000 to 0x57
    11. 1100 0000 to 0x58 & 0000 0000 to 0x59
    12. 0x08 to 0x3D
    13. 0xFF to 0x71
    14. 0x80 to 0x02
    15. 0x80 to 0x01

    Best Regard

    Monet Xu

  • Hello Monet,

    it is still the same behaviour all LEDs light with 50% (because 0x80 to 0x16-0x1E) but the lp5569 do not execute the ramps.

    After the test of your sequence, I changed the value in register 0x2F back to 0x59 because I do not have an externel clock. And therefore I also swapped the first two commands.

    I also tried to swap the last two command, but this doesn't change anyting, too.

    But all my tries lead to the same result: I can configure the LEDs manually but not by an engine.

    Do you have any further ideas?

    Best regards,

    Heiko

  • Hi Heiko,

    Please try the following program and it has been verified to be correct running in the LP5569 EVM. 2480.0904 lp5569_i2c_master_w_multibyte-master_code_MSP_EXP432P401R.zip

    If there still has questions, please contact me again. 

    Best Regard.

    Monet Xu