|
改过尝试了,依然没有变化,后来发现是LPC3600一直被Enable,Disable LPC3600以后就没有黑条纹了,但是屏幕一直乱闪,纵向闪动,隐约可以看到WinCE的图标,这该怎么办啊?
寄存器的值都是参照手册设的啊:
s2410LCD->rLCDCON1=(7<<8)|(MVAL_USED<<7)|(3<<5)|(12<<1)|0; //TFT LCD panel,16bpp TFT,ENVID=off
s2410LCD->rLCDCON2=(VBPD<<24)|(LINEVAL_TFT<<14)|(VFPD<<6)|(VSPW);
s2410LCD->rLCDCON3=(HBPD<<19)|(HOZVAL_TFT<<8)|(HFPD);
s2410LCD->rLCDCON4=(MVAL<<8)|(HSPW);
s2410LCD->rLCDCON5=(1<<11)|(1<<9)|(1<<8)|1; //FRM5:6:5,HSYNC and VSYNC are inverted
s2410LCD->rLCDSADDR1=((FRAMEBUF_DMA_BASE>>22)<<21)|M5D(FRAMEBUF_DMA_BASE>>1);
s2410LCD->rLCDSADDR2=M5D( (FRAMEBUF_DMA_BASE+(LCD_XSIZE_TFT*LCD_YSIZE_TFT*2))>>1 );
s2410LCD->rLCDSADDR3=(((LCD_XSIZE_TFT-LCD_XSIZE_TFT)/1)<<11)|(LCD_XSIZE_TFT/1);
s2410LCD->rLPCSEL&=~(0x3); // Disable LPC3600
FBuf = (struct FrameBuffer *) (FRAMEBUF_BASE);
s2410LCD->rTPAL=0x0;
s2410LCD->rLCDCON1|=1; // ENVID=ON
其中VBPD=11,VFPD=9,VSPW=0,HBPD=68,HFPD=17,HSPW=0,CLKVAL=7,LINEVAL=319,HOZVAL=239. |
|