新手入门
- 积分
- 14
- 金钱
- 14
- 注册时间
- 2020-12-25
- 在线时间
- 2 小时
|
1金钱
原程序为:环境 keil4+ucosIII+emwin。显示一切正常。后新建STM32keil5工程移植ucosIII+emwin5.44.屏幕驱动为SSD1963,移植完后,在切换界面的时候偶尔会出现花屏,残存上一屏的部分内容。在重绘的无效区域不会有,只有在使用小工具(按钮或下拉列表)的区域有。如附图所示。
请大神指点
部分设置如下:
#define GUI_NUMBYTES 1024*50
#define GUI_BLOCKSIZE 0x80
//---------------
static void _InitController(void)
{
LcdWriteReg(0x00E2);
LcdWriteData(0x002C);
LcdWriteData(0x0002);
LcdWriteData(0x0004);
Delay(100);
LcdWriteReg(0x00E0);
LcdWriteData(0x0001);
Delay(100);
LcdWriteReg(0x00E0);
LcdWriteData(0x0001);
Delay(0xAFFF);
LcdWriteReg(0x00E0);
LcdWriteData(0x0003);
Delay(0xAFFF);
.........................
//FSMC
timing.FSMC_AddressSetupTime = 0;
timing.FSMC_AddressHoldTime = 0x00;
timing.FSMC_DataSetupTime = 1;
timing.FSMC_BusTurnAroundDuration = 0x00;
timing.FSMC_CLKDivision = 0x00;
timing.FSMC_DataLatency = 0x00;
timing.FSMC_AccessMode = FSMC_AccessMode_B;
.........................
|
|