LCD的配置STM32和SWM32是一样的,SWM32图片的显示位置往上移了不少,调整Hfp,Hbp,Vfp,vbp也没有用
PORT->PORTN_SEL0 = 0xAAAAAAAA; //GPION.0~15 LCD_DATA0~15
PORT->PORTN_SEL1 = 0xAA;
LCD_initStruct.Interface = LCD_INTERFACE_RGB;
LCD_initStruct.HnPixel = LCD_HDOT;
LCD_initStruct.VnPixel = LCD_VDOT;
LCD_initStruct.Hfp = 19;//HFP;//*/5;
LCD_initStruct.Hbp = 67;//HBP;//*/40;
LCD_initStruct.Vfp = 3;//VFP;//*/8;
LCD_initStruct.Vbp = 17;//VBP;//*/8;
LCD_initStruct.ClkDiv = LCD_CLKDIV_10; // 注意手册上屏幕的时钟要求
LCD_initStruct.ClkAlways = 0;
LCD_initStruct.SamplEdge = LCD_SAMPLEDGE_FALL;
LCD_initStruct.HsyncWidth = LCD_HSYNC_1DOTCLK;
LCD_initStruct.IntEOTEn = 1;
LCD_InitS(LCD, &LCD_initStruct);
LCD->SRCADDR = (uint32_t)LCD_Buffer;
LCD_Start(LCD);
离线