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.

DLP4710LC: How to generate Pattern flash data files

Part Number: DLP4710LC

Tool/software:

Hello, Ti team:

I want to know how DLP EVM GUI generates Pattern flash data files, that is, how to generate bin files.

As shown in the figure below, in the GUI, by adding Pattern sets and Pattern set order, these two kinds of data can be exported and saved as a Pattern flash data files.

This process can be completed by GUI graphical tools, but I want to know how GUI packages pictures and time series and generates Pattern flash data files, so can you provide this part of the reference code?

We have a software requirement that we need to develop ourselves to realize this process, so that we can better update the pictures online.

Thanks for your support!

  • Hello Junfa,

    Please allow me some time to look into your request and get back to you.

    Best,

    Maximus

  • Thank you and look forward to your reply.

    This requirement is very important to us.

    Some of our customers develop their own control software that integrates the optical machine and camera.

    Generally, they add some functions that have practical requirements for the optical machine.

    Most of the functions are found in the API or programming guide.

    But I can't find the reference description of Pattern flash data files, so can you give some programming guidance or code reference?

  • Hi Junfa,

    I am still aligning internally on this and will get back to you as soon as I have some information regarding your question. Thank you for you patience and understanding.

    Best,

    Maximus

  • Hello Junfa,

    Our API shows how to generate some pattern files and how to flash them into the DLPC. I would suggest reviewing this (

    https://www.ti.com/tool/DLPC-API (dlpc347x_samples.c)).

    Best,

    Maximus

  • Ok, thank you.
    I know that the dlpc347x samples.c has some code about how to generate 1-bit or 8-bit picture data, as shown below, but it directly generates padding data, and modifies the data in memory through code to change the projected picture.


    My demand is to directly load 1D Patterns on the application software, and the software will convert it into bin data, and then write the pattern data to the Flash through Flash Update Commands.
    As shown below:


    What I want to know now is how to convert 1D Patterns into bin file data, that is, what kind of data processing is used to convert the 1D Patterns into the pattern data.

  • Hello Junfa,

    Thank you for the further information. 

    Please give our team some further time to look into your questions and please note there may be a delay in response due to the July 4th holiday in the U.S.

    Thanks,

    Alex Chan

  • Hi Junfa,

    Thanks for your patience while I was out. The DLPC347x_samples.c file goes more in depth past simply making an array of pixel data. I would suggest examining the functions which follow after. PopulateOneBitPatternData() is called in PopulatePatternSetData() function which is responsible for setting up full pattern sets with multiple patterns. PupulatePatternTableData() sets up all of the timings for each pattern set. GenerateAndWritePatternDataToFile() shows how to pack all the data and write it to a file. This is also how it is included in the flash to the DLPC.

    Best

    Maximus

  • Hello Rusi,
    Thank you for sharing this information, but it still can't guide me how to generate the .bin file.

  • Hello Junfa,

    The WriteDataToFile() is used as a callback in the GenerateAndWritePatternDataToFile() function, you should be able to use this to generate a .bin file or adapt the code to do so as needed in your application. 


    Here is a link which describes the fwrite() function used in WriteDataToFile(). (link)

    Unfortunately we do not have any other guidance on this and are not able to share the source code used for the GUI.

    Best,

    Maximus

  • Hello Rusi,

    Thank you for sharing your guidance and suggestions. We will study them.

  • Hi Junfa,

    No problem, please feel free to reply or open a new thread if you continue to have issues.

    Best,

    Maximus