使用S3C2416 ARM 系统平台,使用WINCE6.0操作系统,LCD屏是奇美的LQ035NC111或科万宏的KWH035ST12-F01,其时序入下图。根据S3C2416芯片资料,自己编写的FrameRate计算器软件计算FrameRate,如下图:
得到FrameRate=61
一、修改的程序文件
1. D:\WINCE600\PLATFORM\SMDK2416\Src\Drivers\Display\s3c2416_ldi_lib\s3c2416_ldi.c
2. D:\WINCE600\PLATFORM\SMDK2416\Src\Inc\bsp_cfg.h
二、修改内容
1. D:\WINCE600\PLATFORM\SMDK2416\Src\Drivers\Display\s3c2416_ldi_lib\s3c2416_ldi.c
switch(g_ModuleType)
{
// Tianma 3.5"
case LDI_UT35A_RGB:
//SureLion
pDeviceInfo->RGBOutMode = DISP_24BIT_RGB888_P ;
pDeviceInfo->uiWidth = 320;
pDeviceInfo->uiHeight = 240;
pDeviceInfo->VBPD_Value = 15;
pDeviceInfo->VFPD_Value = 4;
pDeviceInfo->VSPW_Value = 3;
pDeviceInfo->HBPD_Value = 38;
pDeviceInfo->HFPD_Value = 20;
pDeviceInfo->HSPW_Value = 30;
pDeviceInfo->VCLK_Polarity = IVCLK_RISE_EDGE;
pDeviceInfo->HSYNC_Polarity = IHSYNC_LOW_ACTIVE;
pDeviceInfo->VSYNC_Polarity = IVSYNC_LOW_ACTIVE;
pDeviceInfo->VDEN_Polarity = IVDEN_LOW_ACTIVE;
pDeviceInfo->PNR_Mode = PNRMODE_RGB_P;
pDeviceInfo->VCLK_Source = CLKSEL_F_HCLK;
pDeviceInfo->VCLK_Direction = CLKDIR_DIVIDED;
pDeviceInfo->Frame_Rate = 61;
RETAILMSG(1,(TEXT("[LDI:INF] Output Devce Type [LDI_UT35A_RGB] =[%d] x [%d]\n\r"),pDeviceInfo->uiWidth,pDeviceInfo->uiHeight));
break;
2. D:\WINCE600\PLATFORM\SMDK2416\Src\Inc\bsp_cfg.h
#define LCD_MODULE_TYPE (LCD_MODULE_UT35A) // Tianma 3.5" 320x240
//#define LCD_MODULE_TYPE (LCD_MODULE_UT43A) // Qunchuang 4.3" 480x272
//#define LCD_MODULE_TYPE (LCD_MODULE_UT50A) // Dianbang 5 " 800x480
//#define LCD_MODULE_TYPE (LCD_MODULE_UT70A) // Qunchuang 7" 800x480
//#define LCD_MODULE_TYPE (LCD_MODULE_UT102A) // Qunchuang 10.2" 800x480
//#define LCD_MODULE_TYPE (LCD_MODULE_UT104A) // AUO 10.4" 800x600
//#define LCD_MODULE_TYPE (LCD_MODULE_UTVGA6448) // VGA 640x480
//#define LCD_MODULE_TYPE (LCD_MODULE_UTVGA8060) //VGA 800x600
三、编译下载
VISUAL STUDIO 2005 菜单"Build"->"Advanced Build Commands"->"Clean Sysgen"或”Build and Sysgen"编译,最好用DNW软件按步骤下载OK。