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.

DLPDLCR3010EVM: Need help writing batch file for max led current, content-adaptive illumination and color temperature.

Part Number: DLPDLCR3010EVM

Hi Everyone,

I want to write a batch file so that when I turn on the projector it is at its max brightness/lumens, "cool" color temperature and enable the content-adaptive illumination to about a 2.5 gain. I've never dealt with I2C programming and I have tried to read the Programmer's Guide, but I still do not know how to go about it. Can anyone write the code then explain it to me, and how I would go about updating the projector with it. I would really appreciate it.

Manuel

  • Hi Manuel, 

    It is a two step process, 

    Step1: Create a list of I2C commands which you would like to apply on system startup, for example, set maximum brightness for this you have add command to set LED currents which is defined in section 4.1.3.33 Write RGB LED Current (54h), and similarly for the CAIC setting register. Once you have created list of registers with settings,  goto the next step.

    Step2: Refer to this thread discussion where it explains setting some other settings on startup http://e2e.ti.com/support/dlp__mems_micro-electro-mechanical_systems/video_and_data_display/f/993/p/573356/2105607

    Regards,

    Sanjeev

  • Hi Sanjeev,

    I understand what you are saying, but as I stated before, I do not know how to write the I2C commands. I have read the 4.1.3.33 Write RGB LED Current section in the Programmer's Guide, but I still do not understand it. Can you give me an example code that I could work with?
  • Refer to EVM user's guide http://www.ti.com/lit/ug/dlpu021a/dlpu021a.pdf Section 4.7 Advanced Mode

    Regards,
    Sanjeev

  • So can you verify if my I2C commands are correct:

    ####### Set up Look Select #######

    ## Write: Look Select = 2 (Warm Color Temperature)
    W 36 22 02

    # 100 ms delay
    W 36 DB 64 00

    ####### Set up Illumination #######

    ## Write: RGB LED Current
    W 36 54 ff 03 ff 03 ff 03

    ## Write: RGB LED Max Current
    W 36 5c ff 03 ff 03 ff 03

    # 100 ms delay
    W 36 DB 64 00

    ######## Set up Image #######

    ## Write: CAIC Local Area Brightness Control
    W 36 80 b1 00

    ## Write: CAIC Image Processing Control
    W 36 84 00 80 00

    # 100 ms delay
    W 36 DB 64 00

    -------------------------------------------------------------------------------------

    Note: I tried to add this file into the "Auto-Init Update" section, but when I click "Update Flash" I get the following error: "Error: File is not a valid image." Can you tell me what may be the issue? All I did was write the commands in Notepad and changed the extension to ".bf" Was that the wrong way to do it?

  • While saving from notepad you can do the following, saveas and give the filename and extension in double quotes like "autoinit.bf" then save.

    Reagrds,
    Sanjeev

  • I did do that, but it is still giving me the same error.

    Since the Auto-Init Update has 3 Batch File Options, am I suppose to be uploading another batch file in addition to the one I created? Because I see the note, "One of the user defined batch files must set-up start-up source," does that also mean I am suppose to add something to my created batch file?

  • How about you add these commands to existing autoinit batchfile and try.
  • Where can I locate the existing autoinit batch file?
  • I believe I found the autoinit batch file. This is the code in it:

    # Disable CCA
    #w 36 86 00

    ########################################################################
    ################# SET UP TEST PATTERN SOURCE BY DEFAULT ###############
    ########################################################################
    ## Write: InputSourceSelect: 1 = Test Pattern
    W 36 05 01
    ## Write: InputImageSize: 1280x720 = 0x0500 x 0x02D0
    W 36 2e 00 05 D0 02
    ## Write: ImageCrop: 1280x720
    W 36 10 00 00 00 00 00 05 D0 02
    ## Write: DisplaySize: 1280x720
    W 36 12 00 00 00 00 00 05 D0 02
    w 36 0b 00 00

    #w 36 db 12 00

    ########################################################################
    ################# SET UP RGB PARALLEL SOURCE ###############
    # Uncomment the I2C instructions to enable it.
    ########################################################################

    ## Write: ImageCrop: 1280x720
    #W 36 10 00 00 00 00 00 05 D0 02
    ## Write: DisplaySize: 854x480
    #W 36 12 00 00 00 00 00 05 D0 02
    ## Write: InputImageSize: 1280x720
    #W 36 2e 00 05 D0 02
    ## Write: InputSourceSelect; 0 = External Video Port
    #W 36 05 00
    ## Write: VideoSourceFormatSelect: 0x43=RGB888
    #W 36 07 43

    ###########################################################
    # Write Sequence Abort Instruction
    # This is to workaround image shift issue after input source command

    # 15 ms delay
    #w 36 DB 0F 00

    # Actual sequence abort command
    w 36 E5 60 22 00 40
    w 36 E6 01 00 00 00

    # Write: WRITE LED CURRENT
    #W 36 54 ff 00 ff 00 ff 0


    ###########################################################
    # Zero delay as a marker
    ###########################################################
    w 36 DB 00 00


    ########################################################################
    ################# SET UP SPLASH SOURCE ###############
    # Uncomment the I2C instructions to enable it.
    ########################################################################

    ## Write: ImageCrop: 960x720
    W 36 10 00 00 00 00 C0 03 d0 02
    ## Write: DisplaySize: 1280x720
    W 36 12 00 00 00 00 00 05 D0 02
    ## Write: InputImageSize: 960x720
    W 36 2e C0 03 d0 02
    ## Write: Splash screen select ; 00 = First Splash screen
    W 36 0D 00
    # Write: InputSourceSelect; 2 = Splash screen
    W 36 05 02


    # 100 ms delay
    w 36 DB 64 00

    ###########################################################
    # Write: WRITE LED ENABLE = 7. DISABLE = 0
    W 36 52 07
    ## Write Splash screen execute
    w 36 35


    Even after I tried: 1) Running the batch file separately, 2) Running the batch file and my custom batch file & 3) Putting my custom I2C code into the autoinit batch file, I still received the same error in each scenario.