Hi,
I have linux device and try to drive lp5569 on linux driver.
I can control leds by i2c commands, i can change led brignighst etc.
I want one led to blink while the device is switching on.
After the device is turned on, I can control the driver myself. But I cannot control the LP5569 until the driver is up. Because of this, I try to program the engine. But I can't run the engine.
my program is simple for test,
001 00 01FF D123: dw 0000000111111111b
002 .segment program1
003 01 9C00 map_start D123
004 02 10FF ramp 1, 255
005 .segment program2
006 03 0000 rst
007 .segment program3
008 04 0000 rst
like this. I'm waiting for all leds to light up.
I changed ch1_mode to load from sram, I wrote "01FF9C0010FF00000000" in SRAM and set ENGINE1_PROG_START to 1. Then I checked that I did it by reading sram.
I changed ch1_mode to run and chip_en to 1. But i didn't see the led light up. I tried to change ch1_exec to free run in LED_ENGINE_CONTROL1 register. But there was no change.
I checked ENGINE_STATUS register, value is 128. ch1_int is 0. ENGINE1_PC Register is 0.
What can be the problem?
Can Engine1 run automatically when power up?
Thanks!