您尚未登录。

楼主 # 2024-10-22 15:58:31

视觉℡
会员
注册时间: 2019-01-29
已发帖子: 41
积分: 23
个人网站

ILI9488的MIPI接口初始化是用MIPI初始化还是用SPI初始化

Void ILI9488_CTC3.5_G22_Initial_Code(void)
{// VCI=2.8V 13-2-22
//************* Reset LCD Driver ****************//
LCD_nRESET = 1;
Delayms(1); // Delay 1ms
LCD_nRESET = 0;
Delayms(10); // Delay 10ms // This delay time is necessary
LCD_nRESET = 1;
Delayms(120); // Delay 120 ms

//************* Start Initial Sequence **********//


LCD_ILI9488_CMD(0xE0);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_INDEX(0x04);
LCD_ILI9488_INDEX(0x0E);
LCD_ILI9488_INDEX(0x08);
LCD_ILI9488_INDEX(0x17);
LCD_ILI9488_INDEX(0x0A);
LCD_ILI9488_INDEX(0x40);
LCD_ILI9488_INDEX(0x79);
LCD_ILI9488_INDEX(0x4D);
LCD_ILI9488_INDEX(0x07);
LCD_ILI9488_INDEX(0x0E);
LCD_ILI9488_INDEX(0x0A);
LCD_ILI9488_INDEX(0x1A);
LCD_ILI9488_INDEX(0x1D);
LCD_ILI9488_INDEX(0x0F); 

LCD_ILI9488_CMD(0xE1);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_INDEX(0x1B);
LCD_ILI9488_INDEX(0x1F);
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_INDEX(0x10);
LCD_ILI9488_INDEX(0x05);
LCD_ILI9488_INDEX(0x32);
LCD_ILI9488_INDEX(0x34);
LCD_ILI9488_INDEX(0x43);
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_INDEX(0x0A);
LCD_ILI9488_INDEX(0x09);
LCD_ILI9488_INDEX(0x33);
LCD_ILI9488_INDEX(0x37);
LCD_ILI9488_INDEX(0x0F);

LCD_ILI9488_CMD(0xC0);
LCD_ILI9488_INDEX(0x18);
LCD_ILI9488_INDEX(0x16);

LCD_ILI9488_CMD(0xC1);
LCD_ILI9488_INDEX(0x41);

LCD_ILI9488_CMD(0xC5);
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_INDEX(0x22); //2b
LCD_ILI9488_INDEX(0x80);

LCD_ILI9488_CMD(0x36);
LCD_ILI9488_INDEX(0x08);

LCD_ILI9488_CMD(0x3A); Interface Mode Control
LCD_ILI9488_INDEX(0x66);


LCD_ILI9488_CMD(0XB0);  //Interface Mode Control 
LCD_ILI9488_INDEX(0x00);
LCD_ILI9488_CMD(0xB1);   //Frame rate 70HZ 
LCD_ILI9488_INDEX(0xB0);

LCD_ILI9488_CMD(0xB4);
LCD_ILI9488_INDEX(0x02);   

LCD_ILI9488_CMD(0xB6); //RGB/MCU Interface Control
LCD_ILI9488_INDEX(0x02);
LCD_ILI9488_INDEX(0x22);

LCD_ILI9488_CMD(0xE9);
LCD_ILI9488_INDEX(0x00);

LCD_ILI9488_CMD(0XF7);   
LCD_ILI9488_INDEX(0xA9);
LCD_ILI9488_INDEX(0x51);
LCD_ILI9488_INDEX(0x2C);
LCD_ILI9488_INDEX(0x82);

LCD_ILI9488_CMD(0x11);
Delayms(120);
LCD_ILI9488_CMD(0x29);
}

Void ILI9488_EnterSleep_Code(void)
{
LCD_ILI9488_CMD(0x28)
Delayms(10);
LCD_ILI9488_CMD(0x10);     
Delayms(120);
}


Void ILI9488_ExitSleep_Code(void)
{
LCD_ILI9488_CMD(0x11);     
Delayms(120);
LCD_ILI9488_CMD(0x29)
}





离线

#1 2024-10-22 16:54:53

lanlanzhilian
会员
注册时间: 2021-12-21
已发帖子: 130
积分: 50

Re: ILI9488的MIPI接口初始化是用MIPI初始化还是用SPI初始化

有SPI的话肯定是用SPI初始化,要不然不就是多余的吗

离线

#2 2024-10-22 21:39:36

微凉VeiLiang
会员
所在地: 深圳
注册时间: 2018-10-28
已发帖子: 630
积分: 525
个人网站

Re: ILI9488的MIPI接口初始化是用MIPI初始化还是用SPI初始化

一般都是可以的。用spi初始化就不用太特定去写屏幕驱动,配下参数就行。如果用dsi的命令去初始化就要写驱动

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn