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.

Need help on LCD Driver

I need to modify the WinCE BSP to drive a 640 X RGB X 480 TFT LCD, which is different from what on the Mistral EVM3530.  I am new to this and would appreciate anyone's tips on what I need to modify and where is the source code in the BSP.

Thanks,

Luan

  • You will need to modify the sources at C:\WINCE600\PLATFORM\TI_EVM_3530\SRC\drivers\lcd\vga. The lcd_vga.c has settings for both DVI and LCD. Go to the last #else block which defines the horizontal and vertical porch settings for LCD and modify it to suit your LCD. Also you will need to modify C:\WINCE600\PLATFORM\TI_EVM_3530\SRC\INC\bsp_cfg.h for pixel clock. Search for BSP_DVI_640W_480H. In that block of if defines, again go to the last #else block and set the right values for BSP_DSS_CLKSEL_DSS1 and  BSP_LCD_PIXCLKDIV based on your LCD's refresh rate.

  • Hi Madhvi,

    I did what you suggested.  However, the display looks exactly the same.  It appears that the display is in portrait mode instead of landscape mode to match my LCD.  The first touch calibration cross and the logo are not center on the screen; there are duplicated vertical sections on the right side of the display.

    I took several pictures of the display so that I can send them to you to give you a better idea but I have hard time to insert it into this post.  Can I email them to you?

    Would you please tell me what I need to do to set the screen in landscape mode?  I think the EVM displays in portrait. 

    Thank you very much for your help.

    Luan

  • If your main concern is to get the display to be in Landscape mode rather than Portrait you can try the following steps (try this on the EVM first so that you know what to expect before trying on your platform).

    ti_evm_3530.bat: 

    Enable VRFB by unsetting the BSP_NOVRFB variable as shown below (this is the default in BSP 6.14.01)

    set BSP_NOVRFB=

    TI_EVM_3530\FILES\platform.reg:
    Search for the variable "Angle" under [HKEY_LOCAL_MACHINE\System\GDI\Drivers] and set it to 1 (for 90 degrees) or 4 for (270 degrees. 4 is not a typo).
    Recompile your BSP and try it on the EVM.
    Unfortunately enabling VRFB has one constraint. VRFB uses extra display stride and the Microsoft supplied codecs (WMV) don't handle this stride causing garbage for video playback with these formats. All the TI supplied video codecs (H.264, MPEG4, MPEG2) handle this properly. So if you are not concerned about the specific video playback of WMV then you should be fine with VRFB enabled. We are hoping that the MS codec issue will get resolved in a future release of WinCE from Microsoft.