2410板子程序为:
frameBuffer16BitTft240320=(U32 (*)[SCR_XSIZE_TFT_240320/2])LCDFRAMEBUFFER;
rLCDCON1=(CLKVAL_TFT_240320<<8)|(MVAL_USED<<7)|(3<<5)|(12<<1)|0;
// TFT LCD panel,12bpp TFT,ENVID=off
rLCDCON2=(VBPD_240320<<24)|(LINEVAL_TFT_240320<<14)|(VFPD_240320<<6)|(VSPW_240320);
rLCDCON3=(HBPD_240320<<19)|(HOZVAL_TFT_240320<<8)|(HFPD_240320);
rLCDCON4=(MVAL<<8)|(HSPW_240320);
rLCDCON5=(1<<11)|(1<<9)|(1<<8); //FRM5:6:5,HSYNC and VSYNC are inverted
rLCDSADDR1=(((U32)frameBuffer16BitTft240320>>22)<<21)|M5D((U32)frameBuffer16BitTft240320>>1);
rLCDSADDR2=M5D( ((U32)frameBuffer16BitTft240320+(SCR_XSIZE_TFT_240320*LCD_YSIZE_TFT_240320*2))>>1 );
rLCDSADDR3=(((SCR_XSIZE_TFT_240320-LCD_XSIZE_TFT_240320)/1)<<11)|(LCD_XSIZE_TFT_240320/1);
rLCDINTMSK|=(3); // MASK LCD Sub Interrupt
rLPCSEL&=(~7); // Disable LPC3600
//rLPCSEL|=(7);
rTPAL=0; // Disable Temp Palette
void Test_Lcd_Tft_16Bit_240320(void)
{
//int i,j,k;
Lcd_Port_Init();
Lcd_Init(MODE_TFT_16BIT_240320);
Glib_Init(MODE_TFT_16BIT_240320);
Lcd_Lpc3600Enable(); // Enable LPC3600
Lcd_PowerEnable(0, 1);
Lcd_EnvidOnOff(1);
rCLKCON=0x7fff0;
//Uart_Printf("[TFT 64K COLOR(16bit/1pixel) LCD TEST]\n");
Glib_ClearScr(0, MODE_TFT_16BIT_240320);
Glib_FilledRectangle(0,0,239,159,0xf800);
Glib_FilledRectangle(0,160,239,320,0xf800);
这样的程序一直没有显示,开机就出现彩带请问这是什么原因啊?时钟寄存器我置LCD位,但 rCLKCON |= (1<<5),后用AXD DEBUG都用不了了,谢谢!