3.2inch 320x240 Touch LCD (C)

3.2inch 320x240 Touch LCD (C)
3.2inch-320x240-Touch-LCD-C
{{{name2}}}
{{{name3}}}
基本信息
分类: 通用彩色LCD模块
{{{userDefinedInfo1}}}: {{{userdefinedvalue1}}}
{{{userDefinedInfo2}}}: {{{userdefinedvalue2}}}
{{{userDefinedInfo3}}}: {{{userdefinedvalue3}}}
品牌: Waveshare
功能简介
特性 3.2寸电阻屏 带LCD控制器
驱动芯片 ILI9325(LCD控制)、XPT2046(触摸)
分辨率 320×240
' 无特性,不解释
' 无特性,不解释
接口 8080 SPI+16BIT并行 LCD32
相关产品
带3.2inch 320x240 Touch LCD (C)的产品
♦ {{{Product1}}}
♦ {{{Product2}}}
♦ {{{Product3}}}
♦ {{{Product4}}}
♦ {{{Product5}}}
♦ {{{Product6}}}

文档

程序

数据手册


批量下载教程——请戳Download-icon.png

Mail.png 创客、技术牛、腹愁者,使命召唤


身为创客的你,基于我们的产品,做了些屌炸天的东西出来,居然没人知道?
人世间最得意的事,就是写教程,做笔记;拍视频,赚外快... ...


问题:该LCD的提供哪些电源参数?
答复:
  • LCD供电电压:2.5V~3.3V
  • 背光供电电压:4.5V~5V
  • 平均背光工作电流:150mA
  • 平均LCD面板工作电流:15mA


问题:3.2inch 320x240 Touch LCD (C)这个和旧型号的3.2inch 320x240 Touch LCD (A) 有什么区别
答复:

【相同点】:

  • 接口一致,分辨率一致。

【区别】:

  • 3.2inch 320x240 Touch LCD (A) LCD控制芯片SSD1289
  • 3.2inch 320x240 Touch LCD (C) LCD控制芯片ILI9325


问题:我之前是用3.2inch 320x240 Touch LCD (A)的,现在要采购,要怎么办?
答复:
  • 您好,A的已经停产了,您可以购买C型3.2inch 320x240 Touch LCD (C)这款,接口是兼容的。另外需要下载新版的示例程序资料,修改您现有的程序即可。


问题:LCD显示效果异常?
答复:
  • 可能是初始化代码有问题,打开工程,用以下代码覆盖试试(如果是不同硬件平台的代码,可能需要作相应的修改)
if( DeviceCode == 0x9325 || DeviceCode == 0x9328 ) 
 {
        LCD_Code = ILI9325;
        LCD_WriteReg(0xE5, 0x78F0); /* set SRAM internal timing */
        LCD_WriteReg(0x01, 0x0100); /* set Driver Output Control */
        LCD_WriteReg(0x02, 0x0700); /* set 1 line inversion */
        LCD_WriteReg(0x03, 0x1030); /* set GRAM write direction and BGR=1 */
        LCD_WriteReg(0x04, 0x0000); /* Resize register */
        LCD_WriteReg(0x08, 0x0207); /* set the back porch and front porch */
        LCD_WriteReg(0x09, 0x0000); /* set non-display area refresh cycle ISC[3:0] */
        LCD_WriteReg(0x0A, 0x0000); /* FMARK function */
        LCD_WriteReg(0x0C, 0x0000); /* RGB interface setting */
        LCD_WriteReg(0x0D, 0x0000); /* Frame marker Position */
        LCD_WriteReg(0x0F, 0x0000); /* RGB interface polarity */
        /*************Power On sequence ****************/
        LCD_WriteReg(0x10, 0x0000); /* SAP, BT[3:0], AP, DSTB, SLP, STB */
        LCD_WriteReg(0x11, 0x0007); /* DC1[2:0], DC0[2:0], VC[2:0] */
        LCD_WriteReg(0x12, 0x0000); /* VREG1OUT voltage */
        LCD_WriteReg(0x13, 0x0000); /* VDV[4:0] for VCOM amplitude */
        LCD_WriteReg(0x07, 0x0001);
        delay_ms(200); 
        /* Dis-charge capacitor power voltage */
        LCD_WriteReg(0x10, 0x1090); /* SAP, BT[3:0], AP, DSTB, SLP, STB */
        LCD_WriteReg(0x11, 0x0227); /* Set DC1[2:0], DC0[2:0], VC[2:0] */
        delay_ms(50);                          /* Delay 50ms */
        LCD_WriteReg(0x12, 0x001F); 
        delay_ms(50);                          /* Delay 50ms */
        LCD_WriteReg(0x13, 0x1500); /* VDV[4:0] for VCOM amplitude */
        LCD_WriteReg(0x29, 0x0027); /* 04 VCM[5:0] for VCOMH */
        LCD_WriteReg(0x2B, 0x000D); /* Set Frame Rate */
        delay_ms(50);                          /* Delay 50ms */
        LCD_WriteReg(0x20, 0x0000); /* GRAM horizontal Address */
        LCD_WriteReg(0x21, 0x0000); /* GRAM Vertical Address */
        /* ----------- Adjust the Gamma Curve ---------- */
#if 1  //不同批次Gamma值可能有一定差异,以下提供了我们常用的3组参数作为参考
	LCD_WriteReg(0x30, 0x0000);
	LCD_WriteReg(0x31, 0x0603);
	LCD_WriteReg(0x32, 0x0206);
	LCD_WriteReg(0x35, 0x0206);
	LCD_WriteReg(0x36, 0x0004);
	LCD_WriteReg(0x37, 0x0105);
	LCD_WriteReg(0x38, 0x0401);
	LCD_WriteReg(0x39, 0x0707);
	LCD_WriteReg(0x3C, 0x0602);
	LCD_WriteReg(0x3D, 0x0004);
#endif
#if 0
        LCD_WriteReg(0x30, 0x0000);
        LCD_WriteReg(0x31, 0x0707);
        LCD_WriteReg(0x32, 0x0307);
        LCD_WriteReg(0x35, 0x0200);
        LCD_WriteReg(0x36, 0x0008);
        LCD_WriteReg(0x37, 0x0004);
        LCD_WriteReg(0x38, 0x0000);
        LCD_WriteReg(0x39, 0x0707);
        LCD_WriteReg(0x3C, 0x0002);
        LCD_WriteReg(0x3D, 0x1D04);
#endif
#if 0		
	LCD_WriteReg(0x30,0x0007); 
	LCD_WriteReg(0x31,0x0707);   
	LCD_WriteReg(0x32,0x0006);
	LCD_WriteReg(0x35,0x0704);
	LCD_WriteReg(0x36,0x1f04); 
	LCD_WriteReg(0x37,0x0004);
	LCD_WriteReg(0x38,0x0000);        
	LCD_WriteReg(0x39,0x0706);     
	LCD_WriteReg(0x3c,0x0701);
	LCD_WriteReg(0x3d,0x000f);
#endif
        /* ------------------ Set GRAM area --------------- */
        LCD_WriteReg(0x50, 0x0000); /* Horizontal GRAM Start Address */
        LCD_WriteReg(0x51, 0x00EF); /* Horizontal GRAM End Address */
        LCD_WriteReg(0x52, 0x0000); /* Vertical GRAM Start Address */
        LCD_WriteReg(0x53, 0x013F); /* Vertical GRAM Start Address */
        LCD_WriteReg(0x60, 0xA700); /* Gate Scan Line */
        LCD_WriteReg(0x61, 0x0001); /* NDL,VLE, REV */
        LCD_WriteReg(0x6A, 0x0000); /* set scrolling line */
        /* -------------- Partial Display Control --------- */
        LCD_WriteReg(0x80, 0x0000);
        LCD_WriteReg(0x81, 0x0000);
        LCD_WriteReg(0x82, 0x0000);
        LCD_WriteReg(0x83, 0x0000);
        LCD_WriteReg(0x84, 0x0000);
        LCD_WriteReg(0x85, 0x0000);
        /* -------------- Panel Control ------------------- */
        LCD_WriteReg(0x90, 0x0010);
        LCD_WriteReg(0x92, 0x0600);
        LCD_WriteReg(0x07, 0x0133); /* 262K color and display ON */
}



QQ:3005223819
EMAIL:3005223819@qq.com
电话:0755-83046082

说明:进行售后服务前,请准备好客户信息(定货单位、定货人等),以供验证。
Phone-wiki.png
手机百科