I am trying to use the trigger feature to signal a second LP55231. In program below, I try to ramp up M9, M12, M10, M11 (in that order) and then send a trigger. Then I want to ramp them down in the same order.
The program until the trigger works correctly, but the instructions following it, i.e. 0xc onwards that ramp down the LED is not executing.
I am not sure why though. the mapping should switch to M9 (instruction 0x16)and start ramping it down. Can you please point out the mistake here?
Here are the instructions I write to the chip:
0x9c12, // 0 map load and start
0x9c99, // 1 map load end
0x9404, // 2 add 4 to B
0x02ff, // 3 ramp up
0x0200, // 4 wait
0x9101, // 5 add one to A
0x8E21, // 6 jump two instructions if A = B
0x9d80, // 7 map next
0xa002, // 8 loop to 2
0xf040, // 9 send trigger
0x0200, // a wait
0x9d80, // b map next
0x03ff, // c ramp down
0x0200, // d wait
0xa00a, // e loop to a
0x0000, // f
0x0000, // 10
0x0000, // 11
0x0010, // 12 M9
0x0080, // 13 M12
0x0020, // 14 M10
0x0040, // 15 M11
0x0010, // 16 M9
0x0080, // 17 M12
0x0020, // 18 M10
0x0040, // 19 M11
I have a followup question. How can I select a group of LEDS and ramp them down simulatneously? For example, M9, M10, M11 and M12 need to be ramped down/up together. Thanks!