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.

how to write code to realize a function like "next "butten

Other Parts Discussed in Thread: DLPC300

hello:

I have a case that not use DM365 and linux but use mcu to control DLPC300.And now i am writing code to realize a function like "next "butten in lcr's GUI with pattern display mode . I have tried times but all no work. PLS  tell me which register should i use?Or could  you give me a sample code if possable. Thank for you answer!

  • I'm sorry you're having trouble getting that functionality to work. Can you tell me what you've tried that hasn't worked?

    Thanks,
    Paul
  • I assume that by wanting a "next" button that you're looking to manually command the pattern to change to the next image when you hit. Have you tried using 0xC1 over I2C to trigger the next pattern? Consult section 2.2.10 and 2.2.10.4 of the DLPC300 programmer's guide.

    www.ti.com/lit/pdf/dlpu004b

    Paul

  • thank you for your answer! Command 0xc1 means Loads a new display sequence from SPI flash,and i have already wrote code with the steps in Table 2-106 in DLPC300 programmer's guide to load a new display sequence from SPI,and that worked well. But how can i write code to change to the next pattern.Infact i want to use my own code to realize the API function called " Advance Pattern Sequence (0×04 0×03)" in DLPU007 section 3.12.
  • In DLPU007 section 2.2.9.1 there is a sequencer control command(0x82),should i use this command to control pattern display?If yes,which command can increase the sequence vector?
  • In the GUI source code, here is the code used to advance to the next sequence. You are correct that x0403 should be used as the command to advance the pattern.

    void MainWindow::on_nextSeqBut_clicked()

    {

       if(packetHandler.writeCommand(0x0403))

           return;

       if(packetHandler.sendPacket())

           return;

    }

    Have you looked at the GUI source code? You can download it here. Scroll down the page to the software bundles section.

    Hope this helps,

    Paul