cancel
Showing results for 
Search instead for 
Did you mean: 

STPC ATLAS WINCE 5.0 TFT Problem

kzahran
Associate II
Posted on June 21, 2006 at 07:53

STPC ATLAS WINCE 5.0 TFT Problem

4 REPLIES 4
kzahran
Associate II
Posted on June 19, 2006 at 20:20

Hi,

I am trying to use the LB064V02-A1 TFT Panel with the STPC ATLAS BSP WIN CE 5.0, but I'm getting a distorted picture on my TFT display. so I was hoping that somebody here could tell me what I’m missing or doing wrong. The Panel is 640x480 with a DCLK frequency of 25 MHZ, Here is what I did:

1. In C:\WINCE500\PLATFORM\Stpc_atlas\Src\Drivers\Display\Stpc\ddi_stpc.reg, I modified the registry to the following:

[HKEY_LOCAL_MACHINE\Drivers\Display\STPC\CONFIG]

''Dll''=''ddi_stpc.dll''

''Accel''=dword:1 ; Enable acceleration

''Depth''=dword:10 ; Pixel depth 16 bits per pixels

''Width''=dword:280 ; Horizontal resolution 640 pixels

''Height''=dword:1e0 ; Vertical resolution 480 pixels

''Refresh''=dword:3c ; Refresh rate 60Hz

''Outputtype''=''TFTLGPHILIPSLM151X2'' ;

2. In C:\WINCE500\PLATFORM\Stpc_atlas\Src\Drivers\Display\Gdk\crtcdata.c, I added the correct resolution and frequency to that entry:

{ HWCRTC_OUTPUT_TFTLGPHILIPSLM151X2, HWCRTC_GRAPHICSMODE_ID(640, 480), HWGENERIC_HAS_TFT, HWCRTC_pucMonitor640x480, HWCRTC_DCLK_INTERNAL | HWCRTC_DCLK_FIXED|25570, 0x2b },

3. I modified the C:\WINCE500\PLATFORM\Stpc_atlas\Src\Drivers\Display\Gdk\tftdata.c file According to the LG TFT Panel manual. Here is the Signal Timing Specifications table:

 ITEM SYMBOL MIN TYP. MAX. UNIT

Dclk Period tCLK 35 39.7 46 ns

Frequency fclk 22 25 28 MHz

Hsync Period tHP 696 800 880 tCLK

Width tWH 24 96 144 tCLK

Vsync Period tVP 486 525 - tHP

Frequency fV 55 60 65 Hz

Width tWV 2 2 - tHP

DE (Data Enable) Horizontal Valid tHV 640 640 640 tCLK

Horizontal Back Porch tHBP 16 40 - tCLK

Horizontal Front Porch tHFP 16 24 - tCLK

Horizontal Blank - 56 160 tHP -tHV tCLK

Vertical Valid tVV 480 480 480 tHP

Vertical Back Porch tVBP 2 33 - tHP

Vertical Front Porch tVFP 2 10 - tHP

Vertical Blank - 6 45 tVP -tVV tHP

And here is my addition to that file:

unsigned short HWTFT_LGPhilipsLM151X2[] =

{

0x00, 640, /* Input scan line active pixel count */

0x01, 39, /* Input scan line back porch delay -1 */

0x02, 96, /* Flat panel hsync width Flat panel */

0x03, 38, /* Flat panel horizontal back porch -2 */

0x04, 640, /* Flat panel active pixel count */

0x05, 15, /* Flat panel minimum front porch -1 */

0x06, 2, /* Flat panel vsync width Flat panel */

0x07, 33, /* Flat panel vertical back porch */

0x08, 480, /* Flat panel active line count */

0x09, 0x0, /* Set Flat panel interface */

0x0a, 0x80A, /* Set 10 KHz 50% duty cycle */

0x0c, 0x0, /* Set blank pixel red/green/blue values */

0x0d, 0x0,

0x0e, 0x0,

0x0f, 0x13, /* set polarity control */

0xff

};

Any suggestion is appreciated.

Thanks!

kaouther
Associate II
Posted on June 20, 2006 at 13:40

Hi,

What about the ''genedata.c'' file? did you modify it to support LGPHILIPSLM151X2 640*480?

2. In C:\WINCE500\PLATFORM\Stpc_atlas\Src\Drivers\Display\Gdk\crtcdata.c, I added the correct resolution and frequency to that entry:

{ HWCRTC_OUTPUT_TFTLGPHILIPSLM151X2, HWCRTC_GRAPHICSMODE_ID(640, 480), HWGENERIC_HAS_TFT, HWCRTC_pucMonitor640x480, HWCRTC_DCLK_INTERNAL | HWCRTC_DCLK_FIXED|25570, 0x2b },

It should work using the inetrnal clok did you tried it?

{ HWCRTC_OUTPUT_TFTLGPHILIPSLM151X2, HWCRTC_GRAPHICSMODE_ID(640, 480), HWGENERIC_HAS_TFT, HWCRTC_pucMonitor640x480, HWCRTC_DCLK_INTERNAL, 0x2b },

Thanks.

kzahran
Associate II
Posted on June 20, 2006 at 17:27

Thanks for your input, it just turns out that the engineer who was working on this BSP prior to me had duplicated the ddi_stpc.reg original contents in the platform.reg and that was causing the conflict. I cleaned the platform.reg and it now works fine.

Thanks again.

kaouther
Associate II
Posted on June 21, 2006 at 07:53

😉