首页资源分类应用技术消费电子 > ILITEK9806 应用规格

ILITEK9806 应用规格

已有 445117个资源

下载专区

上传者其他资源

    文档信息举报收藏

    标    签:LCM

    分    享:

    文档简介

    LCM IC 应该用规格书 与 驱动代码

    文档预览

    ILI9806 a-Si TFT LCD Single Chip Driver with 480(RGB) x 864 Resolution , 16.7M-color with internal GRAM Application Notes ILI TECHNOLOGY CORP. 8F, No.38, Taiyuan St., Jhubei City, Hsinchu County, Taiwan 302, R.O.C. Tel.886-3-5600099; Fax.886-3-5600585 http://www.ilitek.com Version: V0.3 Date: Dec. 24th, 2012 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 1. HSD PANEL .......................................................................................................................................................................4 1.1 HSD 3.97” (C0401D)INITIAL CODE ..........................................................................................................................5 1.2 HSD 4.02” (C0404)INITIAL CODE ...........................................................................................................................10 1.3 HSD 4.63” (C0404)INITIAL CODE ...........................................................................................................................15 1.4 HSD 5.0” (C0500) INITIAL CODE ............................................................................................................................20 1.5 HSD 5.3”(C0501) INITIAL CODE .............................................................................................................................25 2. CMI PANEL .....................................................................................................................................................................30 2.1 CMI 3.97” (F04013)INITIAL CODE..........................................................................................................................31 2.2 CMI 3.97” (F04014)INITIAL CODE..........................................................................................................................36 2.3 CMI 4.02” (F04011)INITIAL CODE..........................................................................................................................41 2.4 CMI 4.46” (F04503)INITIAL CODE..........................................................................................................................46 3. CPT PANEL......................................................................................................................................................................51 3.1 CPT 3.97” (040LE)INITIAL CODE ...........................................................................................................................52 3.2 CPT 3.97” (040LJ_FW)INITIAL CODE ...................................................................................................................57 3.3 CPT 3.97” (040LJ_BW)INITIAL CODE ...................................................................................................................62 3.4 CPT 4.3” (043LG)INITIAL CODE.............................................................................................................................67 3.5 CPT 4.63” (047LA)INITIAL CODE...........................................................................................................................72 3.6 CPT 5.0” (050LB)INITIAL CODE .............................................................................................................................77 3.7 CPT 5.0” (050LD)INITIAL CODE.............................................................................................................................82 4. IVO PANEL ......................................................................................................................................................................87 4.1 IVO 4.63 INITIAL CODE ...........................................................................................................................................88 5. TM PANEL .......................................................................................................................................................................92 5.1 TM 3.97” INITIAL CODE ..........................................................................................................................................92 5.2 TM 4.5” INITIAL CODE(RGB MODE)....................................................................................................................97 6. BOE PANEL ...................................................................................................................................................................102 6.1 BOE 3.97 INITIAL CODE ........................................................................................................................................103 6.2 BOE 4.95_FW INITIAL CODE ................................................................................................................................108 6.3 BOE 4.95_BW INITIAL CODE................................................................................................................................113 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 2 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 7. CTC PANEL ................................................................................................................................................................... 118 7.1 CTC 3.97_FW INITIAL CODE ............................................................................................................................. 118 7.2 CTC 3.97_BW INITIAL CODE .............................................................................................................................123 7.3 CTC 4.3_FW INITIAL CODE ...............................................................................................................................128 7.4 CTC 4.3_BW INITIAL CODE...............................................................................................................................133 8. REVISION HISTORY...................................................................................................................................................138 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 3 of 138 V0.3 V0.3 Page 4 of 138 whole or in part without prior written permission of ILI Technology Corp. The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in Note: 1. Please ensure the same naming pin is connected certainly(Ex.Pin3 VCOM must link to pin177 VCOM) Connector 60 J2 0 MDDI 1 1 0 CLK_N 60 CLK_P 59 Data_1N 58 57 Data_1P 56 Data_2N Data_2P 55 Data_3N 54 Data_3P 53 VGH 52 Hardware pin 5 51 50 Hardware pin 4 Hardware pin 3 49 Hardware pin 2 48 Hardware pin 1 47 VCORE 46 IOVCC 45 44 I OVC C 43 VCI VCI 42 VCI 41 DB23 40 DB22 39 38 DB21 37 DB20 DB19 36 DB18 35 DB17 34 DB16 33 DB15 32 31 DB14 30 DB13 DB12 29 DB11 28 DB10 27 DB9 26 25 DB8 24 DB7 DB6 23 DB5 22 DB4 21 DB3 20 DB2 19 18 DB1 DB0 17 IM3 16 IM2 15 RESX 14 74245_OUT3 13 12 WRX 11 RDX DCX 10 CSX 9 IM1 8 IM0 7 SDA 6 5 SD 0 DOTCLK 4 ENABLE 3 HSYNC 2 VSYNC 1 HSSI _D 1_P HSSI _D 1_N HSSI _C LK_P HSSI _C LK_N HSSI _D 0_P HSSI _D 0_N GND GND VGH GND GND TE LED ON LED PW M DVD D IOVCC IOVCC VCI VCI VCI DB23 DB22 DB21 DB20 DB19 DB18 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 RESX WRX RDX DCX CSX SDI SDO PCLK DE HSYNC VSYNC 1 MIPI DSI 0 1 0 1 Type C 3-line 1 0 X DPI Type 3 with DBI 1 DBI Type B 18-bit 0 1 1 0 DBI Type B 9-bit 0 1 1 0 DBI Type B 24-bit 1 0 0 1 DBI Type B 16-bit 0 0 0 0 DBI Type B 8-bit 0 0 0 D1_P D1_N D1_P D1_N D1_N D1_P Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 0 CLK_P CLK_N D0_P D0_N 0 1 CLK_N CLK_P D0_N D0_P IM3 IM2 IM1 IM0 Interface For MDDI interface R5 2 0 VGL:PUMP circuit (Deafult) VGL_REG:Regulator power circuit D1_P D1_N D1_P D1_N D1_N D1_P D0_P D0_N D0_N D0_P 1 CLK_N CLK_P D1_N D1_P 1 0 CLK_P CLK_N D1_P D1_N V0 > V1 >…> V254 > V255, normally white V255 > V254 >…> V1 > V0, normally black 1 data lane 2 data lane 0 NBWSEL 1 0 LANSEL 1 T1 T2 T3 T4 T5 D1:Optional (necessary if databus signal is earlier than IOVCC) Bus Interface Pins 0 R4 11 11 11 11 11 VGMP VGMN VGSP VGSN OTP R8 2 0 LAN SEL 3 1 IOVCC NBWSEL 3 1 IOVCC R7 2 0 For MIPI interface Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 0 0 CLK_P CLK_N D0_P D0_N 1 CLK_N CLK_P D0_N D0_P DSWAP 2 3 1 IOVCC R9 0 PSW AP 2 3 1 IOVCC R 10 0 VGL_REG 3 VGLO 1 VGL IM0 2 3 1 IOVCC R1 0 IM1 2 3 1 IOVCC R2 0 IM2 2 3 1 IOVCC R3 0 IM3 2 3 1 IOVCC C24 2.2UF/6.3V VCOM OTP VGL VGLO C23 1UF/25V VGL_REG C21 2.2UF/6.3V VCL C25 2.2UF/6.3V VREF_PWR GND VCI GND C14 2.2UF/6.3V VCI C15 1UF/6.3V VGSN VGSP VGM N VGM P GND DVD D VCI VCL GND LAN SEL DSW AP PSW AP NBW SEL RGBBP IM3 IM2 IM1 IM0 EXB1T TE SDO SDI DCX WRX RDX CSX RESX GND C13 1UF/6.3V IOVCC DB23 DB22 DB21 DB20 DB19 DB18 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 DE PCLK HSYNC VSYNC LED PW M LED ON IOVCC GND C19 4.7UF/10V AVDD GND C20 4.7UF/10V AVEE VCI GND DVD D GND HSSI _D 1_P HSSI _D 1_N GND HSSI _C LK_P HSSI _C LK_N GND HSSI _D 0_P HSSI _D 0_N GND C10 1UF/6.3V C11 1UF/6.3V VC I VC I GND C16 1UF/6.3V NDVDD VCI GND C1 1UF/6.3V C11P C11N C2 1UF/10V C12P C12N C3 1UF/6.3V C13N C13P C4 1UF/10V C14P C14N AVD D GND AVEE C5 1UF/10V C21P C21N C6 1UF/16V C22P C22N C7 1UF/10V C23P C23N C8 1UF/16V C24P C24N VCI VCL GND GND C9 1UF/6.3V C31P C31N C10 1UF/10V C32N C32P DVD D GND C11 1UF/16V C41P C41N C22 2.2UF/25V VGH C12 1UF/16V C51P 2 1 HSC226 D1 C51N VGL_REG VGLO VGL VCOM C26 2.2UF/25V 1 2 3 4 5 6 7 DUMMY DUMMY VCOMOU T M TP_PW R VGLX VGLO 8 9 10 VGL_REG VCL VREF _PW R 11 12 VSSA VDDA 13 14 15 16 17 18 19 VDDR VSSR VDD _DET D I OPWR VGSN VGSP VGM N 20 21 22 23 24 VGM P D VSS D VD D VDDB VCL 25 26 27 28 29 30 31 32 33 AVSS LANSEL D SW AP PSW AP D STB_SEL N BW SEL R GBBP I 2C_SA0 I M3 34 35 36 I M2 I M1 I M0 37 38 EXB1T TE 39 40 41 42 43 44 45 VSEL SDO SDI DCX WRX RDX C SX 46 47 48 R ESX VSSI VDDI 49 50 D 23 D 22 51 52 53 54 55 56 57 58 59 60 61 62 D 21 D 20 D 19 D 18 D 17 D 16 D 15 D 14 D 13 D 12 D 11 D 10 63 64 D9 D8 65 66 67 D7 D6 D5 68 69 70 71 72 73 74 D4 D3 D2 D1 D0 DE PCLK 75 76 HS VS 77 78 79 80 81 82 83 84 85 86 87 88 LEDPWM LEDON VDDI VSSI AVDD AVSS AVEE VDDA D VSS D VD D VSSAM H SSI _D1_P 89 90 91 92 93 H SSI _D1_P H SSI _D1_N H SSI _D1_N VSSAM H SSI _CLK_P 94 95 96 97 98 99 100 H SSI _CLK_P H SSI _CLK_N H SSI _CLK_N VSSAM H SSI _D0_P H SSI _D0_P H SSI _D0_N 101 102 H SSI _D0_N VSSAM 103 104 105 M VD DL M VD DL M VD DA 106 107 108 109 110 111 112 113 114 M VD DA VDD AM VDDR VSSR VREF CP EXTP C SP EXTN C SN 115 116 117 VDDB VSSB C 11P 118 119 C 11P C 11N 120 121 122 123 124 125 126 C 11N C 12P C 12P C 12N C 12N C 13P C 13P 127 128 129 130 131 C 13N C 13N C 14P C 14P C 14N 132 133 134 135 136 137 138 139 140 C 14N AVDD AVSS AVEE C 21P C 21P C 21N C 21N C 22P 141 142 143 C 22P C 22N C 22N 144 145 C 23P C 23P 146 147 148 149 150 151 152 C 23N C 23N C 24P C 24P C 24N C 24N VDDB 153 154 155 VCL AVSS VSSB 156 157 C 31P C 31P 158 159 160 161 162 163 164 165 166 167 168 169 C 31N C 31N C 32P C 32P C 32N C 32N D VD D D VSS C 41P C 41P C 41N C 41N 170 171 VGH C 51P 172 173 174 C 51P C 51N C 51N 175 176 177 178 VGL_REG VGLO VGL VCOMOU T 179 DUMMY DUMMY 1. HSD Panel J1 ILI9806_HSD GLASS(4.46"+3.97") ILI9806 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 1.1 HSD 3.97” (C0401D)Initial Code void ILI9806_Initial_HSD(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x39); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 5 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x69); // VCOM Control LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 6 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate Control LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x92); LCD_ILI9806_INDEX(0x50); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x79); LCD_ILI9806_INDEX(0x20); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 7 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x19); LCD_ILI9806_INDEX(0xCC); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x2F); LCD_ILI9806_INDEX(0x2C); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x78); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x2C); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 8 of 138 V0.3 LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 9 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 1.2 HSD 4.02” (C0404)Initial Code void ILI9806_Initial_HSD(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x6F); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 10 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x6B); // VCOM Control LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 11 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate Control LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x78); LCD_ILI9806_INDEX(0x7B); LCD_ILI9806_INDEX(0x20); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 12 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0xC9); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x2F); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x7A); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x2D); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 13 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 14 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 1.3 HSD 4.63” (C0404)Initial Code void ILI9806_Initial_HSD(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x6F); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 15 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x66); // VCOM Control LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 16 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate Control LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x78); LCD_ILI9806_INDEX(0x7B); LCD_ILI9806_INDEX(0x20); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 17 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x1C); LCD_ILI9806_INDEX(0xC8); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x31); LCD_ILI9806_INDEX(0x2C); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x7C); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x2E); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 18 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 19 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 1.4 HSD 5.0” (C0500) Initial Code void ILI9806_Initial_HSD(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x6F); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 20 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x62); // VCOM Control LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 21 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate Control LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x78); LCD_ILI9806_INDEX(0x7B); LCD_ILI9806_INDEX(0x20); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 22 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x1A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x2F); LCD_ILI9806_INDEX(0x2C); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x78); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x32); LCD_ILI9806_INDEX(0x2D); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 23 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 24 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 1.5 HSD 5.3”(C0501) Initial Code void ILI9806_Initial_HSD(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x6F); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 25 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x4C); // VCOM Control LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 26 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate Control LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x50); LCD_ILI9806_INDEX(0x2A); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x77); LCD_ILI9806_INDEX(0x72); LCD_ILI9806_INDEX(0x20); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 27 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x19); LCD_ILI9806_INDEX(0xC9); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x32); LCD_ILI9806_INDEX(0x29); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0x7A); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x2C); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 28 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 29 of 138 V0.3 V0.3 Page 30 of 138 whole or in part without prior written permission of ILI Technology Corp. The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in Note: 1. Please make sure the same named pin is connected by FPC. (Ex.Pin3~5 VCOM must be linked to Pin208~210 VCOM) Connector 60 J2 GND 60 GND CLK_N 59 HSSI_CLK_N CLK_P 58 HSSI_CLK_P GND 57 GND Data_1N 56 HSSI_D1_N Data_1P 55 HSSI_D1_P GND 54 GND Data_0N 53 HSSI_D0_N 52 HSSI_D0_P Data_0P GND 51 GND GND 50 GND TE 49 TE 48 LEDON LEDON LEDPWM 47 LEDPWM VCORE 46 DVDD IOVCC 45 IOVCC 44 IOVCC IOVCC VCI 43 VCI VCI 42 VCI VCI 41 VCI DB23 40 DB23 DB22 39 DB22 DB21 38 DB21 DB20 37 DB20 DB19 36 DB19 35 DB18 DB18 DB17 34 DB17 DB16 33 DB16 DB15 32 DB15 31 DB14 DB14 DB13 30 DB13 DB12 29 DB12 DB11 28 DB11 27 DB10 DB10 DB9 26 DB9 DB8 25 DB8 DB7 24 DB7 DB6 23 DB6 DB5 22 DB5 DB4 21 DB4 DB3 20 DB3 DB2 19 DB2 18 DB1 DB1 DB0 17 DB0 IM3 16 IM3 IM2 15 IM2 RESX 14 RESX GND 13 GND WRX 12 WRX RDX 11 RDX 10 DCX DCX CSX 9 CSX IM1 8 IM1 IM0 7 IM0 SDA 6 SDI SD0 5 SDO DOTCLK 4 PCLK ENABLE 3 DE HSYNC 2 HSYNC 1 VSYNC VSYNC 0 MDDI 1 1 0 D1_P D1_N D1_P D1_N D1_N D1_P Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 0 CLK_P CLK_N D0_P D0_N 0 1 CLK_N CLK_P D0_N D0_P 1 MIPI DSI 0 1 0 1 Type C 3-line 1 0 X DPI Type 3 with DBI 1 DBI Type B 18-bit 0 1 1 For MDDI interface 0 DBI Type B 9-bit 0 1 1 D1_P D1_N D1_P D1_N D1_N D1_P D0_P D0_N D0_N D0_P 1 CLK_N CLK_P D1_N D1_P 1 0 CLK_P CLK_N D1_P D1_N 0 DBI Type B 24-bit 1 0 0 1 CLK_N CLK_P D0_N D0_P 1 DBI Type B 16-bit 0 0 0 0 0 CLK_P CLK_N D0_P D0_N VGL:PUMP circuit VGL_REG:Regulator power circuit(Default) Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N For MIPI interface R8 2 0 T1 T2 T3 T4 T5 T6 0 1 data lane LANSEL 0 2 data lane 0 DBI Type B 8-bit 0 0 0 IM3 IM2 IM1 IM0 Interface R5 2 0 Bus Interface Pins IM0 2 3 1 IOVCC R1 0 IM1 2 3 1 IOVCC R2 0 IM2 2 3 1 IOVCC R3 0 IM3 2 3 1 IOVCC R4 0 11 11 11 11 11 11 OTP VGSN VGSP VGMN VGMP ERR LANSEL 3 1 IOVCC R6 2 0 DSWAP 3 1 IOVCC PSWAP 3 1 IOVCC R7 2 0 VGL_REG 3 VGLO 1 VGL D1 is optional unless databus signal is earlier than IOVCC C1 2.2UF/6.3V VCOM OT P VGL VGLO C2 1UF/25V VGL_REG C3 1UF/10V VRGH C4 2.2UF /6.3V VCL C5 2.2UF /6.3VVREF_PWR GN D C6 2.2UF /6.3V VCI GND VCI C7 1UF/6.3V VGSN VGSP VGMN VGMP GN D DVDD VCL AVSS LANSEL DSWAP PSWAP GND IM3 IM2 IM1 IM0 EXB1T TE C8 1UF/6.3V SDO SDI DCX WRX RDX CSX RESX GN D I OVC C DB23 DB22 DB21 DB20 DB19 DB18 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 DE PCLK HSYNC VSYNC LEDPWM LEDON ERR I OVC C GN D C9 4.7UF /10V AVDD GN D C10 4.7UF /10V AVEE VCI GN D DVDD GND HSSI_D1_P H SSI _D 1_N GND HSSI_CLK_P H SSI _C KL_N GND HSSI_D0_P H SSI _D 0_N GND C11 1UF/6.3V MVDDL C12 1UF/6.3V MVDDA VCI GND C13 1UF/6.3V NDVDD VRGH VCI GND C14 1UF/6.3V C11P C11N C15 1UF/10V C12P C12N C16 1UF/6.3V C13N C13P C17 1UF/10V C14P C14N AVDD GND AVEE C18 1UF/10V C21P C21N C19 1UF/16V C22P C22N C20 1UF/10V C23P C23N C21 1UF/16V C24P C24N VCI VCL GN D GN D C22 1UF/6.3V C31P C31N C23 1UF /10V C32N C32P DVDD GND C24 1UF/16V C41P C41N C25 2.2UF/25V VGH VRGH C26 1UF /16V C51P C51N VGL_REG 2 1 VGLO D1 HSC226 VGL C27 2.2UF /25V VCOM 1 2 3 4 DUMMY DUMMY DUMMY 5 6 7 8 9 VCOM VCOM VCOM MTP_PWR MTP_PWR 10 11 12 13 14 15 16 17 VGLX VGLO VGL_REG VRGH VCL VREF_PWR VREF_PWR VSSA 18 19 20 21 22 VSSA VDDA VDDA VDDR VDDR 23 24 25 VSSR VSSR VDD_DET 26 27 28 29 30 VDD_DET DIOPWR VGSN VGSP VGMN 31 32 33 34 35 36 37 38 39 40 41 42 43 VGMP DVSS DVDD VCL VCL AVSS LANSEL DSWAP PSWAP DSTB_SEL RGBBP I2C_SA0 IM3 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 IM2 IM1 IM0 GPO3 GPO2 GPO1 GPO0 EXB1T TE VSEL SDO SDI DCX WRX RDX CSX 60 61 62 63 64 65 66 67 68 69 70 71 72 RESX VSSI VDDI D23 D22 D21 D20 D19 D18 D17 D16 D15 D14 73 74 75 76 77 D13 D12 D11 D10 D9 78 79 80 81 82 83 84 85 D8 D7 D6 D5 D4 D3 D2 D1 86 87 88 89 90 D0 DE PCLK HS VS 91 92 93 LEDPWM LEDON ERR 94 95 96 97 98 VDDI VSSI AVDD AVDD AVSS 99 100 101 102 103 104 105 106 AVSS AVEE VDDA VDDA DVSS DVSS DVDD DVDD 107 108 109 110 111 VSSAM VSSAM D1_P D1_P D1_N 112 113 114 115 116 117 118 119 D1_N VSSAM VSSAM CLK_P CLK_P CLK_N CLK_N VSSAM 120 121 122 123 124 VSSAM D0_P D0_P D0_N D0_N 125 126 127 VSSAM VSSAM MVDDL 128 129 130 131 132 MVDDL MVDDA MVDDA VDDAM VSSR 133 134 135 136 137 138 139 140 VSSR VREFCP VRGH EXTP CSP EXTN CSN VDDB 141 142 143 144 145 VDDB VSSB C11P C11P C11N 146 147 148 149 150 151 152 153 C11N C12P C12P C12N C12N C13P C13P C13N 154 155 156 157 158 C13N C14P C14P C14N C14N 159 160 161 AVDD AVDD AVSS 162 163 164 165 166 AVEE AVEE C21P C21P C21N 167 168 169 170 171 172 173 174 C21N C22P C22P C22N C22N C23P C23P C23N 175 176 177 178 179 C23N C24P C24P C24N C24N 180 181 182 183 184 185 186 187 DUMMY VDDB VDDB VCL VCL AVSS VSSB VSSB 188 189 190 191 192 C31P C31N C32P C32N DVDD 193 194 195 DVDD DVSS DVSS 196 197 198 199 200 C41P C41N VGH VGH VRGH 201 202 203 204 205 206 207 208 C51P C51P C51N C51N VGL_REG VGLO VGLX VGL 209 210 211 212 213 VCOM VCOM VCOM IT O_GND IT O_GND DUMMY 2. CMI Panel J1 ILI9806_CMI GLASS ILI9806 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 2.1 CMI 3.97” (F04013)Initial Code void ILI9806_Initial_CMI(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x71); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 31 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x6F); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 32 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); // CR/EQ/PC LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x79); LCD_ILI9806_INDEX(0x20); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 33 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0xC7); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 //Gamma LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 //Gamma LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 34 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 35 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 2.2 CMI 3.97” (F04014)Initial Code void ILI9806_Initial_CMI(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x71); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 36 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x6F); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 37 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x79); LCD_ILI9806_INDEX(0x20); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 38 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0xC7); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x15); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x10); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x76); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xB9); LCD_ILI9806_INDEX(0x02); // Panel Control The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 39 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Tearing Effect ON //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 40 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 2.3 CMI 4.02” (F04011)Initial Code ILI9806 void ILI9806_Initial_CMI(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x71); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x05); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 41 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x74); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 42 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0X75); LCD_ILI9806_INDEX(0x79); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 43 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0XC5); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x10); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x76); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 44 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 45 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 2.4 CMI 4.46” (F04503)Initial Code void ILI9806_Initial_CMI(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x71); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 46 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0xDC); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x83); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 47 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x20); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 48 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0xC6); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x1F); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x77); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 49 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 50 of 138 V0.3 V0.3 Page 51 of 138 whole or in part without prior written permission of ILI Technology Corp. The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in Note: 1. Please make sure the same named pin is connected by FPC. (Ex.Pin11~12 VCOM must be linked to Pin211~212 VCOM) Connector 60 J2 GND 60 59 HSSI_CLK_N HSSI_CLK_P 58 GND 57 HSSI_D1_N 56 HSSI_D1_P 55 GND 54 53 H SSI _D0_N HSSI_D0_P 52 GND 51 GND 50 TE 49 LEDON 48 LEDPWM 47 DVDD 46 IOVCC 45 IOVCC 44 VCI 43 42 VCI VCI 41 DB23 40 DB22 39 DB21 38 37 D B20 36 D B19 DB18 35 DB17 34 DB16 33 DB15 32 DB14 31 30 D B13 DB12 29 DB11 28 DB10 27 DB9 26 DB8 25 DB7 24 DB6 23 DB5 22 DB4 21 DB3 20 19 D B2 DB1 18 DB0 17 IM3 16 IM2 15 14 RESX 13 74245_OU T3 WRX 12 RDX 11 DCX 10 CSX 9 8 IM1 7 IM0 SDA 6 SD0 5 DOTCLK 4 ENABLE 3 HSYNC 2 VSYNC 1 GN D HSSI_CLK_N HSSI _CLK_P GN D HSSI_D1_N HSSI _D1_P GN D HSSI_D0_N HSSI _D0_P GN D GN D TE LED ON LED PW M DVDD IOVC C IOVC C VC I VC I VC I DB23 DB22 DB21 DB20 DB19 DB18 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 IM3 IM2 RESX GN D WRX RDX DCX CSX IM1 IM0 SD I SD O PC LK DE HSYNC VSYNC 0 MDDI 1 1 0 1 MIPI DSI 0 1 0 D1_P D1_N D1_P D1_N D1_N D1_P Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 0 CLK_P CLK_N D0_P D0_N 0 1 CLK_N CLK_P D0_N D0_P 1 Type C 3-line 1 0 X DPI Type 3 with DBI 1 DBI Type B 18-bit 0 1 1 For MDDI interface 0 DBI Type B 9-bit 0 1 1 0 DBI Type B 24-bit 1 0 0 D1_P D1_N D1_P D1_N D1_N D1_P D0_P D0_N D0_N D0_P 1 CLK_N CLK_P D1_N D1_P 1 0 CLK_P CLK_N D1_P D1_N 1 CLK_N CLK_P D0_N D0_P 0 R5 2 0 VGL:PUMP circuit (Deafult) VGL_REG:Regulator power circuit 1 DBI Type B 16-bit 0 0 0 0 CLK_P CLK_N D0_P D0_N 0 DBI Type B 8-bit 0 0 0 Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 1 data lane 2 data lane 0 LANSEL 1 IM3 IM2 IM1 IM0 Interface For MIPI interface R8 2 0 LANSEL 3 1 IOVCC DSWAP 2 3 1 IOVCC R9 0 PSWAP 2 3 1 IOVCC R10 0 IM0 2 3 1 IOVCC R1 0 IM1 2 3 1 IOVCC R2 0 IM2 2 3 1 IOVCC R3 0 IM3 2 3 1 IOVCC R4 0 VGL_REG 3 VGLO 1 VGL Bus Interface Pins D1:Optional (necessary if databus signal is earlier than IOVCC) VC OM VGLO C1 2.2UF/6.3V VCOM T1 T3 T5 T2 T4 11 OTP VGL C2 1UF/25V VGL_REG C3 2.2UF/6.3V VCL C4 2.2UF/6.3V C5 2.2UF/6.3V VCI VCI 11 11 11 1 1 C6 1UF/6.3V DVDD VCI VCL LANSEL DSWAP PSWAP IM3 IM2 IM1 IM0 TE SDO SDI DCX WRX RDX WRX R ESX C7 1UF/6.3V IOVCC D B23 D B22 D B21 D B20 D B19 D B18 D B17 D B16 D B15 D B14 D B13 D B12 D B11 D B10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 DE PCLK H SYNC VSYNC LEDPWM LEDON ERR IOVC C C8 4.7UF/10V AVDD C9 4.7UF/10V AVEE VCI D VD D HSSI_D1_P H SSI_D 1_N HSSI_CLK_P H SSI_C LK_N HSSI_D0_P H SSI_D 0_N C10 1UF/6.3V C11 1UF/6.3V VCI TE C12 1UF/6.3V NDVDD VCI C13 1UF/6.3V C14 1UF/10V C15 1UF/6.3V C16 1UF/10V AVD D AVEE C17 1UF/10V C18 1UF/16V C19 1UF/10V C20 1UF/16V VCI VCL C21 1UF/6.3V C22 1UF/10V DVDD C23 1UF/16V C24 2.2UF/25V C25 1UF/16V VGL_R EG C1 2.2UF/25V VGL 2 D1 1 HSC226 VCOM VGL VCOM 221 220 219 218 217 216 DUMMY DUMMY VC OM G1 VGLO 215 214 213 212 211 210 209 CKBO CKO STVO G799 VC OM VC OM CONT AC T 1A 208 207 206 205 204 CONT AC T 1B MTP_PWR MTP_PWR VGLX VGLO 203 202 VGL_REG VC L 201 200 199 VC L VR EF_PW R VSSA 198 197 VD DA VD DR 196 195 194 193 192 VSSR VD D_D ET DIOPWR VGSN VGSP 191 190 189 188 187 186 185 184 183 182 181 180 VGMN VGMP DVSS DVDD VD DB VD DB VC L AVSS LAN SEL DSWAP PSWAP DSTB_SEL 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 RGBBP I2C_SA0 IM3 IM2 IM1 IM0 GPO3 GPO2 GPO1 GPO0 EXB1T TE_L VSEL SD O SD I DCX WRX RDX WRX RESX VSSI VD DI 157 156 155 154 153 D23 D22 D21 D20 D19 152 151 D18 D17 150 149 148 D16 D15 D14 147 146 D13 D12 145 144 143 142 141 D11 D10 D9 D8 D7 140 139 D6 D5 138 137 136 135 134 D4 D3 D2 D1 D0 133 132 131 130 129 DE PC LK HS VS LED PW M 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 LED ON ER R VD DI VSSI AVD D AVD D AVSS AVEE AVEE VD DA DVSS DVDD VSSAM HSSI_D1_P HSSI_D1_P HSSI_D1_N HSSI_D1_N 111 110 109 108 107 VSSAM HSSI_CLK_P HSSI_CLK_P HSSI_CLK_N HSSI_CLK_N 106 105 104 103 102 VSSAM HSSI_D0_P HSSI_D0_P HSSI_D0_N HSSI_D0_N 101 100 VSSAM MVDDL 99 98 97 MVDDL MVDDA MVDDA 96 95 VD DAM VD DAM 94 93 VD DR TE_R 92 91 90 VSSR VR EFC P EXTP 89 88 CSP EXTN 87 86 85 84 83 CSN VD DB VD DB VSSB VSSB 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 C11P C11P C11N C11N C12P C12P C12N C12N C13P C13P C13N C13N C14P C14P C14N C14N AVD D AVD D AVSS AVSS AVEE AVEE 60 59 58 57 56 C21P C21P C21N C21N C22P 55 54 C22P C22N 53 52 51 C22N C23P C23P 50 49 C23N C23N 48 47 46 45 44 C24P C24P C24N C24N VD DB 43 42 VD DB VC L 41 40 39 VC L AVSS VSSB 38 37 VSSB C31P 36 35 34 33 32 C31P C31N C31N C32P C32P 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 C32N C32N DVDD DVSS C41P C41P C41N C41N VGH VGH C51P C51P C51N C51N VGL_REG VGL_REG VGLO VGLO VGL VGL VC OM VC OM 9 8 7 6 5 G800 STVE CKE CKBE VGLE 4 3 G2 VGL 2 1 VC OM DUMMY DUMMY CLAF040LE21 J1ILI9806_CPT GLASS(3.97") 3. CPT Panel ILI9806 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 3.1 CPT 3.97” (040LE)Initial Code void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 52 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x52); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x5B); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 53 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x09); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0x21); LCD_ILI9806_INDEX(0x00); // Display Inversion On LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x9B); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 54 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x79); LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x1A); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0xD7); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x6A); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x3B); LCD_ILI9806_INDEX(0x35); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 55 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Tearing Effect ON //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 56 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 3.2 CPT 3.97” (040LJ_FW)Initial Code ILI9806 void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x34); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x31); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x03); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 57 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xF7); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x72); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xD2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x47); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 58 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x2A); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x86); LCD_ILI9806_INDEX(0x96); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 59 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x1A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x79); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x24); LCD_ILI9806_INDEX(0x20); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 60 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 61 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 3.3 CPT 3.97” (040LJ_BW)Initial Code ILI9806 void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x34); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x31); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x03); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 62 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xF7); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x72); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xD2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x47); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0x36); LCD_ILI9806_INDEX(0x03); // MADCTL The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 63 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x2A); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 64 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x86); LCD_ILI9806_INDEX(0x96); LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x1A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x0C); //P2 LCD_ILI9806_INDEX(0x18); //P3 LCD_ILI9806_INDEX(0x11); //P4 LCD_ILI9806_INDEX(0x13); //P5 LCD_ILI9806_INDEX(0x17); //P6 LCD_ILI9806_INDEX(0x79); //P7 LCD_ILI9806_INDEX(0x08); //P8 LCD_ILI9806_INDEX(0x03); //P9 LCD_ILI9806_INDEX(0x07); //P10 LCD_ILI9806_INDEX(0x07); //P11 LCD_ILI9806_INDEX(0x0B); //P12 LCD_ILI9806_INDEX(0x0D); //P13 LCD_ILI9806_INDEX(0x24); //P14 LCD_ILI9806_INDEX(0x20); //P15 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 65 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 66 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 3.4 CPT 4.3” (043LG)Initial Code ILI9806 void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 67 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0x52); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xBA); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0XC7); LCD_ILI9806_INDEX(0x44); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 68 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x09); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x9B); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x79); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 69 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x2B); LCD_ILI9806_INDEX(0x34); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0xD9); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x1C); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x38); LCD_ILI9806_INDEX(0x33); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 70 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 71 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 3.5 CPT 4.63” (047LA)Initial Code ILI9806 void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x6A); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x39); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 72 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0XF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x82); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xD2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x3D); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 73 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xF9); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFD); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0xC0); // Engineering Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); //Panel Timing Control LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x40); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 74 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x28); LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0xD7); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x24); LCD_ILI9806_INDEX(0x20); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x02); //P2 LCD_ILI9806_INDEX(0x07); //P3 LCD_ILI9806_INDEX(0x0C); //P4 LCD_ILI9806_INDEX(0x0F); //P5 LCD_ILI9806_INDEX(0x13); //P6 LCD_ILI9806_INDEX(0x69); //P7 LCD_ILI9806_INDEX(0x07); //P8 LCD_ILI9806_INDEX(0x06); //P9 LCD_ILI9806_INDEX(0x0A); //P10 LCD_ILI9806_INDEX(0x08); //P11 LCD_ILI9806_INDEX(0x0D); //P12 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 75 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x33); LCD_ILI9806_INDEX(0x00); //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); / } //Exit Sleep / Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 76 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 3.6 CPT 5.0” (050LB)Initial Code ILI9806 void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x34); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x39); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x04); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 77 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0XF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); / LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x82); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xDE); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); / GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x27); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 78 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_INDEX(0xD2); LCD_ILI9806_INDEX(0x50); LCD_ILI9806_INDEX(0x2A); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x74); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 79 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0xD7); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x69); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x39); LCD_ILI9806_INDEX(0x33); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 80 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 81 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 3.7 CPT 5.0” (050LD)Initial Code void ILI9806_Initial_CPT(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0x34); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x39); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 82 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x82); LCD_ILI9806_INDEX(0x2A); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xDE); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x25); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 83 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_INDEX(0xD2); LCD_ILI9806_INDEX(0x50); LCD_ILI9806_INDEX(0x2A); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x74); LCD_ILI9806_INDEX(0x20); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 84 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x1A); LCD_ILI9806_INDEX(0xCA); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x2C); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x19); LCD_ILI9806_INDEX(0x78); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x2B); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 85 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 86 of 138 V0.3 V0.3 Page 87 of 138 whole or in part without prior written permission of ILI Technology Corp. The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in Note: 1. Please make sure the same named pin is connected by FPC. (Ex.Pin3 VCOM must be linked to Pin 177 VCOM) Connector 60 J2 GND 60 HSSI_CLK_N 59 HSSI_CLK_P 58 GND 57 HSSI_D1_N 56 HSSI_D1_P 55 GND 54 HSSI_D0_N 53 HSSI_D0_P 52 GND 51 GND 50 TE 49 LEDON 48 LEDPWM 47 DVDD 46 IOVCC 45 IOVCC 44 VCI 43 VCI 42 VCI 41 DB23 40 DB22 39 DB21 38 DB20 37 DB19 36 DB18 35 DB17 34 DB16 33 DB15 32 DB14 31 DB13 30 DB12 29 DB11 28 DB10 27 DB9 26 DB8 25 DB7 24 DB6 23 DB5 22 DB4 21 DB3 20 DB2 19 DB1 18 17 DB0 IM3 16 IM2 15 RESX 14 74245_OUT3 13 WRX 12 RDX 11 DCX 10 CSX 9 IM1 8 IM0 7 SDA 6 SD0 5 DOTCLK 4 ENABLE 3 HSYNC 2 VSYNC 1 GND HSSI_CLK_N HSSI _C LK_P GND HSSI_D1_N HSSI _D 1_P GND HSSI_D0_N HSSI _D 0_P GND GND TE LEDON LEDPWM DVDD IOVCC IOVCC VCI VCI VCI DB23 DB22 DB21 DB20 DB19 DB18 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 IM3 IM2 RESX GND WRX RDX DCX CSX IM1 IM0 SDI SDO PCLK DE HSYNC VSYNC 0 MDDI 1 1 0 1 MIPI DSI 0 1 0 D1_P D1_N D1_P D1_N D1_N D1_P Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 0 CLK_P CLK_N D0_P D0_N 0 1 CLK_N CLK_P D0_N D0_P 1 Type C 3-line 1 0 X DPI Type 3 with DBI 1 DBI Type B 18-bit 0 1 1 For MDDI interface D1:Optional (necessary if databus signal is earlier than IOVCC) R5 2 0 VGL:PUMP circuit (Deafult) VGL_REG:Regulator power circuit 0 DBI Type B 9-bit 0 1 1 0 DBI Type B 24-bit 1 0 0 D1_P D1_N D1_P D1_N D1_N D1_P D0_P D0_N D0_N D0_P 1 CLK_N CLK_P D1_N D1_P 1 0 CLK_P CLK_N D1_P D1_N 1 CLK_N CLK_P D0_N D0_P 0 1 DBI Type B 16-bit 0 0 0 0 CLK_P CLK_N D0_P D0_N 0 DBI Type B 8-bit 0 0 0 Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 1 data lane 2 data lane 0 LANSEL 1 R8 2 0 LAN SEL 3 1 IOVCC For MIPI interface D SW AP 2 3 1 IOVCC R9 0 PSWAP 2 3 1 IOVCC R 10 0 IM3 IM2 IM1 IM0 Interface IM0 2 3 1 IOVCC R1 0 IM1 2 3 1 IOVCC R2 0 IM2 2 3 1 IOVCC R3 0 IM3 2 3 1 IOVCC R4 0 VGL_REG 3 VGLO 1 VGL Bus Interface Pins C1 2.2UF/6.3V VCOM 11 OTP VGL T5 VGLO C2 1UF/25V VGL_REG C3 2.2UF/6.3V VCL C4 2.2UF/6.3V VREF_PWR VCI C5 2.2UF/6.3V VCI T4 T2 1 1 T3 T1 1 11 1 1 1 C6 1UF/6.3V VGSN VGSP VGMN VGMP DVDD VCI VCL LAN SEL DSWAP PSW AP RGBBP IM3 IM2 IM1 IM0 TE SDO SDI DCX WRX RDX CSX RESX C7 1UF/6.3V IOVCC DB23 DB22 DB21 DB20 DB19 DB18 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 DE PCLK HSYNC VSYNC LED PWM LEDON IOVC C C8 4.7UF/10V AVDD C9 4.7UF/10V AVEE VCI DVD D HSSI _D 1_P HSSI_D1_N HSSI _C LK_P HSSI_CLK_N HSSI _D 0_P HSSI_D0_N C10 1UF/6.3V MVDDL C11 1UF/6.3V MVDDA VCI VCI C12 1UF/6.3V NDVDD VCI C13 1UF/6.3V C14 1UF/10V C15 1UF/6.3V C16 1UF/10V C17 1UF/10V C18 1UF/16V C19 1UF/10V C20 1UF/16V C11P C11N C12P C12N C13N C13P C14P C14N AVDD AVEE C21P C21N C22P C22N C23P C23N C24P C24N VCI VCL C21 1UF/6.3V C22 1UF/10V C31P C31N C32N C32P DVDD C23 1UF/16V C41P C41N C24 2.2UF/25V VGH C25 1UF/16V C51P 2 D1 HS1C226 C51N VGL_R EG VGLO VGL VCOM C26 2.2UF/25V 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 DUMMY DUMMY VC OMOU T M T P_PWR VGLX VGLO VGL_R EG VC L VR EF _PWR VSSA VD DA VD DR VSSR VD D_DET D IOPW R VGSN VGSP VGMN VGMP D VSS D VDD VD DB VC L AVSS LAN SEL D SWAP PSWAP D ST B_SEL N BWSEL R GBBP I 2C _SA0 IM3 IM2 IM1 IM0 EXB1T TE VSEL SD O SD I DCX WRX RDX C SX R ESX VSSI VD DI D 23 D 22 D 21 D 20 D 19 D 18 D 17 D 16 D 15 D 14 D 13 D 12 D 11 D 10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 DE 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 PC LK HS VS LED PWM LED ON VD DI VSSI AVDD AVSS AVEE VD DA D VSS D VDD VSSAM H SSI_D1_P H SSI_D1_P H SSI_D1_N H SSI_D1_N VSSAM H SSI_CLK_P H SSI_CLK_P H SSI_CLK_N H SSI_CLK_N VSSAM H SSI_D0_P H SSI_D0_P H SSI_D0_N H SSI_D0_N VSSAM M VDDL M VDDL M VDDA M VDDA VD DAM VD DR VSSR VR EF CP 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 EXTP C SP EXTN C SN VD DB VSSB C 11P C 11P C 11N C 11N C 12P C 12P C 12N C 12N C 13P C 13P C 13N C 13N C 14P C 14P C 14N C 14N AVDD AVSS AVEE C 21P C 21P C 21N C 21N C 22P C 22P C 22N C 22N C 23P C 23P C 23N C 23N 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 C 24P C 24P C 24N C 24N VD DB VC L AVSS VSSB C 31P C 31P C 31N C 31N C 32P C 32P C 32N C 32N D VDD D VSS C 41P C 41P C 41N C 41N VGH C 51P C 51P C 51N C 51N VGL_R EG VGLO VGL VC OMOU T DUMMY DUMMY 4. IVO Panel J1 ILI9806_IVO GLASS(4.63") G046SWN1 ILI9806 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 4.1 IVO 4.63 Initial Code void ILI9806_Initial_IVO(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0x68); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x6E); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 88 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0XF2); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x6A); LCD_ILI9806_INDEX(0xBC); LCD_ILI9806_INDEX(0xD8); LCD_ILI9806_INDEX(0x92); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x56); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0A); // EN_volt_reg LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 LCD_ILI9806_CMD(0xFC); // LVGL LCD_ILI9806_INDEX(0x08); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 89 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0xD2); LCD_ILI9806_INDEX(0x50); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0X85); LCD_ILI9806_INDEX(0x85); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x0D); //P2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 90 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x20); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x1C); LCD_ILI9806_INDEX(0xC8); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x32); LCD_ILI9806_INDEX(0x2E); LCD_ILI9806_INDEX(0x00); //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x79); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0x19); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); //Exit Sleep Delayms(120); LCD_ILI9806_CMD(0x29); // Display On The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 91 of 138 V0.3 5. TM Panel a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 5.1 TM 3.97” Initial Code ILI9806 void ILI9806_Initial_TM(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x35); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // GIP 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 92 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x50); LCD_ILI9806_INDEX(0x52); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC2); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xAB); LCD_ILI9806_INDEX(0x62); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x77); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 93 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0C); // Power Control 1 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0xAD); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 94 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x70); LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0xC9); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x34); LCD_ILI9806_INDEX(0x30); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x01); //P2 LCD_ILI9806_INDEX(0x04); //P3 LCD_ILI9806_INDEX(0x09); //P4 LCD_ILI9806_INDEX(0x0F); //P5 LCD_ILI9806_INDEX(0x11); //P6 LCD_ILI9806_INDEX(0x7A); //P7 LCD_ILI9806_INDEX(0x08); //P8 LCD_ILI9806_INDEX(0x05); //P9 LCD_ILI9806_INDEX(0x09); //P10 LCD_ILI9806_INDEX(0x08); //P11 LCD_ILI9806_INDEX(0x0D); //P12 LCD_ILI9806_INDEX(0x0C); //P13 LCD_ILI9806_INDEX(0x2F); //P14 LCD_ILI9806_INDEX(0x29); //P15 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 95 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 96 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 5.2 TM 4.5” Initial Code(RGB mode) void ILI9806_Initial_TM(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x6D); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 97 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0x53); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0xAB); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x32); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 98 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x2A); //Panel Timing Control LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x20); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 99 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x2E); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x16); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x2E); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xB6); // Display Function Control LCD_ILI9806_INDEX(0xA0); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 100 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0xB5); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); / } // Blanking Porch Control //Exit Sleep / Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 101 of 138 V0.3 V0.3 Page 102 of 138 whole or in part without prior written permission of ILI Technology Corp. The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in Note: 1. Please make sure the same named pin is connected by FPC. (Ex.Pin3~4 VCOM must be linked to Pin188~189 VCOM) Connector 60 J2 D1_P D1_N D1_P D1_N D1_N D1_P Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N 0 CLK_P CLK_N D0_P D0_N 0 1 CLK_N CLK_P D0_N D0_P CLK_N 60 HSSI_D1_P 59 HSSI_D1_N CLK_P Data_1N 58 HSSI_CLK_P Data_1P 57 HSSI_CLK_N Data_2N 56 HSSI_D0_P Data_2P 55 HSSI_D0_N Data_3N 54 GND Data_3P 53 GND VGH 52 VGH 51 Hardware pin 5 Hardware pin 4 50 Hardware pin 3 49 Hardware pin 2 48 LEDON Hardware pin 1 47 LEDPWM VCORE 46 DVDD IOVCC 45 IOVCC 44 IOVCC I OVC C VCI 43 VCI VCI 42 VCI VCI 41 VCI DB23 40 DB23 DB22 39 DB22 DB21 38 DB21 37 DB20 D B20 36 DB19 D B19 DB18 35 DB18 DB17 34 DB17 DB16 33 DB16 32 DB15 D B15 31 DB14 D B14 DB13 30 DB13 29 DB12 D B12 DB11 28 DB11 DB10 27 DB10 DB9 26 DB9 DB8 25 DB8 24 DB7 DB7 DB6 23 DB6 DB5 22 DB5 DB4 21 DB4 DB3 20 DB3 DB2 19 DB2 DB1 18 DB1 17 DB0 DB0 IM3 16 IM3 IM2 15 IM2 RESX 14 RESX 74245_OUT3 13 WRX 12 WRX RDX 11 RDX DCX 10 DCX 9 CSX CSX IM1 8 IM1 IM0 7 IM0 SDA 6 SDI SD0 5 SDO 4 PCLK D OT CLK ENABLE 3 DE 2 HSYNC H SYN C VSYNC 1 VSYNC 0 R7 IM0 2 3 1 IOVCC R4 0 IM1 2 3 1 IOVCC R5 0 IM2 2 3 1 IOVCC R6 0 IM3 2 3 1 IOVCC 0 MDDI 1 1 0 For MDDI interface D1_N D1_N D1_P D0_N D0_P D1_P D1_P D1_N D0_P D0_N 1 CLK_N CLK_P D1_N D1_P 1 0 CLK_P CLK_N D1_P D1_N 1 CLK_N CLK_P D0_N D0_P 0 0 CLK_P CLK_N D0_P D0_N Pins DSWAP PSWAP CLK_P CLK_N D0_P D0_N V0 > V1 >…> V254 > V255, normally white V255 > V254 >…> V1 > V0, normally black 1 data lane 2 data lane 0 NBWSEL 1 0 LANSEL 1 1 MIPI DSI 0 1 0 1 Type C 3-line 1 0 X Bus Interface Pins DPI Type 3 with DBI For MIPI interface 1 DBI Type B 18-bit 0 1 1 0 DBI Type B 9-bit 0 1 1 0 DBI Type B 24-bit 1 0 0 T1 T2 T5 T6 T7 T8 T9 1 1 11 11 11 11 1 1 11 0 0 0 C25 2.2UF/6.3V 2 1 HSC226 D1 C26 2.2UF/25V VCOM GOU T799 GOUT1 GND VCOM VGL VGLO C 51N VGMP VGMN OT P GOUT 800 GOUT 2 GOUT 799 GOUT 1 C1 1UF/16V C2 2.2UF/25V C3 1UF/16V C4 1UF/6.3V C5 1UF/10V C6 1UF/6.3V C7 2.2UF/6.3V C8 2.2UF/6.3V C9 1UF/16V C10 1UF/10V C11 1UF/16V C12 1UF/10V C13 1UF/10V C14 1UF/6.3V C15 1UF/10V C16 1UF/6.3V C 51P VRGH VGH C 41N C 41P GND D VD D C 32P C 32N C 31N C 31P GND GND VCL VCI C 24N C 24P C 23N C 23P C 22N C 22P C 21N C 21P AVEE GND AVD D C 14N C 14P C 13P C 13N C 12N C 12P C 11N C 11P GND VCI IM3 IM2 IM1 IM0 Interface 0 0 0 0 DBI Type B 8-bit 1 DBI Type B 16-bit R2 2 0 R1 2 0 LAN SEL 3 1 IOVCC N BWSEL 3 1 IOVCC C17 1UF/10V C18 1UF/6.3V C19 1UF/6.3V C20 1UF/6.3V C21 4.7UF/10V C22 4.7UF/10V C23 1UF/6.3V 先兩L兩a兩y這兩這兩這兩這兩,兩 VRGH NDVDD GND T E_R VCI M VD DA M VD DL GND H SSI _D 0_N H SSI _D 0_P GND H SSI _C LK_N H SSI _C LK_P GND H SSI _D 1_N H SSI _D 1_P GND D VD D GND VCI AVEE GND AVD D GND I OVCC ERR LED ON LED PW M VSYNC H SYNC PCLK DE D B0 D B1 D B2 D B3 D B4 D B5 D B6 D B7 D B8 D B9 D B10 D B11 D B12 D B13 D B14 D B15 D B16 D B17 D B18 D B19 D B20 D B21 D B22 D B23 I OVCC GND R ESX C SX RDX WRX DCX SDI SDO T E_L EXB1T 0 R9 DSWAP 2 3 1 IOVCC R8 0 PSWAP 2 3 1 IOVCC I M0 I M1 I M2 I M3 GND N BW SEL PSWAP D SW AP LAN SEL GND VCL VCI D VD D GND VGMP VGMN C24 2.2UF/6.3V VCI GND VCI GND VREF_PWR VCL VRGH VGLO VGL OTP VCOM GND GOU T2 GOU T800 VCOM 1 2 3 DUMMY NULL 4 5 6 7 VCOM VCOM G799 G001 8 9 10 11 12 GND GND GND VCOM VCOM 13 14 15 16 17 VGL VGLO VGLO C 51N C 51N 18 19 20 21 C 51P C 51P C 51P VRGH 22 23 24 25 26 VGH C 41N C 41N C 41P C 41P 27 28 29 30 31 D VSS D VD D C 32N C 32N C 32P 32 33 34 35 36 37 38 39 40 41 42 C 31N C 31P VSSB AVSS VCL VCL VDDB VDDB C 24N C 24N C 24P 43 44 45 46 47 C 24P C 23N C 23N C 23P C 23P 48 49 50 51 52 C 22N C 22P C 21N C 21P AVEE 53 54 55 56 AVSS AVD D AVD D C 14N 57 58 59 60 61 C 14N C 14P C 14P C 13N C 13P 62 63 64 65 66 C 12N C 12P C 11N C 11N C 11P 67 68 69 70 VSSB VDDB C SN EXTN 71 72 73 74 75 C SP EXTP VRGH VREFCP VSSR 76 77 TE VDDR 78 79 80 VDD AM M VD DA M VD DL 81 82 VSSAM VSSAM 83 84 85 H SSI _D 0_N H SSI _D 0_P VSSAM 86 87 VSSAM H SSI _C LK_N 88 89 90 91 H SSI _C LK_P VSSAM H SSI _D 1_N H SSI _D 1_P 92 93 94 95 96 VSSAM D VD D D VSS VDDA AVEE 97 98 99 100 101 AVEE AVSS AVD D AVD D VSSI 102 103 104 105 106 107 108 109 110 VDDI ERR LEDON LEDPWM VS HS PCLK DE D0 111 112 113 114 115 D1 D2 D3 D4 D5 116 117 118 119 120 D6 D7 D8 D9 D 10 121 122 123 124 125 126 127 128 129 130 131 D 11 D 12 D 13 D 14 D 15 D 16 D 17 D 18 D 19 D 20 D 21 132 133 134 135 136 D 22 D 23 VDDI VSSI R ESX 137 138 139 140 141 C SX RDX WRX DCX SDI 142 143 144 145 SDO VSEL TE EXB1T 146 147 148 149 150 GP0 GP1 GP2 GP3 IM0 151 152 153 154 155 IM1 IM2 IM3 I2C_SA0 R GBBP 156 157 158 159 160 161 162 163 164 165 166 N BW SEL D ST B_SEL PSWAP D SW AP LANSEL AVSS VCL VDDB VDDB D VD D D VD D 167 168 169 170 171 D VSS VGMP VGMN VGSP VGSN 172 173 174 175 176 D I OPW R VDD _D ET VSSR VDDR VDDA 177 178 179 180 VSSA VREF VCL VRGH 181 182 183 184 185 VGLO VGLX MTP VCOM GND 186 187 188 189 190 GND G002 G800 VCOM VCOM 191 NULL DUMMY 6. BOE Panel J1 ILI9806_BOE GLASS ILI9806 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 6.1 BOE 3.97 Initial Code ILI9806 void ILI9806_Initial_BOE(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x12); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x33); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x04); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 103 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0x53); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0xAB); LCD_ILI9806_INDEX(0x60); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x47); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xB6); LCD_ILI9806_INDEX(0x22); // Display Function Control The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 104 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0x3A); LCD_ILI9806_INDEX(0x66); // Interface Pixel Format LCD_ILI9806_CMD(0XB5); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x18); // Porch Setting LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 105 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x5B); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); // CR/EQ/PC LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x9F); LCD_ILI9806_INDEX(0x71); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0xC9); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x00); //Gamma //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); //Gamma LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x05); //P2 LCD_ILI9806_INDEX(0x0D); //P3 LCD_ILI9806_INDEX(0x0B); //P4 LCD_ILI9806_INDEX(0x0D); //P5 LCD_ILI9806_INDEX(0x0B); //P6 LCD_ILI9806_INDEX(0x75); //P7 LCD_ILI9806_INDEX(0x03); //P8 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 106 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x00); //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 107 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 6.2 BOE 4.95_FW Initial Code ILI9806 void ILI9806_Initial_BOE(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x30); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x03); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 108 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x42); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0xAB); LCD_ILI9806_INDEX(0x60); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x47); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 109 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); // CR/EQ/PC LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x9F); LCD_ILI9806_INDEX(0x71); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 110 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0xC9); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x00); //Gamma //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x00); //Gamma //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); //Tearing Effect ON The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 111 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 112 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 6.3 BOE 4.95_BW Initial Code void ILI9806_Initial_BOE(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x32); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 113 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x42); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x21); LCD_ILI9806_INDEX(0xAB); LCD_ILI9806_INDEX(0x60); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x47); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0x36); LCD_ILI9806_INDEX(0x03); // MADCTL LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 114 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x02); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x81); // 480x854 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); // CR/EQ/PC LCD_ILI9806_CMD(0xC1); // Power Control 2 LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x9F); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 115 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x71); LCD_ILI9806_INDEX(0x20); LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0xC9); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x18); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x00); //Gamma //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0xE1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x09); LCD_ILI9806_INDEX(0x00); //Gamma //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 116 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Tearing Effect ON //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 117 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 7. CTC Panel 7.1 CTC 3.97_FW Initial Code ILI9806 void ILI9806_Initial_CTC(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); // GIP 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 118 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0xD0); LCD_ILI9806_INDEX(0X01); LCD_ILI9806_INDEX(0X00); LCD_ILI9806_INDEX(0X40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x2D); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xA2); LCD_ILI9806_INDEX(0x62); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0xE2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x83); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 119 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xF9); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFD); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0xC0); // EBBG CLK LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); // CR/EQ/PC LCD_ILI9806_INDEX(0x80); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 120 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x86); LCD_ILI9806_INDEX(0xA0); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0xCD); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x2E); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 //Gamma LCD_ILI9806_CMD(0xE1); //Gamma LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x06); //P2 LCD_ILI9806_INDEX(0x0F); //P3 LCD_ILI9806_INDEX(0x13); //P4 LCD_ILI9806_INDEX(0x14); //P5 LCD_ILI9806_INDEX(0x1A); //P6 LCD_ILI9806_INDEX(0x78); //P7 LCD_ILI9806_INDEX(0x07); //P8 LCD_ILI9806_INDEX(0x04); //P9 LCD_ILI9806_INDEX(0x0B); //P10 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 121 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x00); //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); //Exit Sleep Delayms(120); LCD_ILI9806_CMD(0x29); } // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 122 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 7.2 CTC 3.97_BW Initial Code ILI9806 void ILI9806_Initial_CTC(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 123 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0xD0); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x2D); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xA2); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0xE2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x83); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0x36); LCD_ILI9806_INDEX(0x03); // MADCTL The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 124 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xF9); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFD); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0xC0); // EBBG CLK LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); // CR/EQ/PC The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 125 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x86); LCD_ILI9806_INDEX(0xA0); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x14); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x1D); LCD_ILI9806_INDEX(0xCD); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x04); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x2E); LCD_ILI9806_INDEX(0x27); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 //Gamma LCD_ILI9806_CMD(0xE1); //Gamma LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x06); //P2 LCD_ILI9806_INDEX(0x0F); //P3 LCD_ILI9806_INDEX(0x13); //P4 LCD_ILI9806_INDEX(0x14); //P5 LCD_ILI9806_INDEX(0x1A); //P6 LCD_ILI9806_INDEX(0x78); //P7 LCD_ILI9806_INDEX(0x07); //P8 LCD_ILI9806_INDEX(0x04); //P9 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 126 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x05); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x00); //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); Delayms(120); LCD_ILI9806_CMD(0x29); } //Exit Sleep // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 127 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 7.3 CTC 4.3_FW Initial Code ILI9806 void ILI9806_Initial_CTC(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 128 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0xD0); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x2D); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xA2); LCD_ILI9806_INDEX(0x26); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0xE2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x8D); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0xC0); // Power Control 1 LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 129 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xF9); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFD); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0xC0); // EBBG CLK LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); // CR/EQ/PC LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x40); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 130 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x28); LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0xC2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x24); LCD_ILI9806_INDEX(0x1C); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 //Gamma LCD_ILI9806_CMD(0xE1); //Gamma LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x08); //P2 LCD_ILI9806_INDEX(0x12); //P3 LCD_ILI9806_INDEX(0x0E); //P4 LCD_ILI9806_INDEX(0x11); //P5 LCD_ILI9806_INDEX(0x09); //P6 LCD_ILI9806_INDEX(0x7A); //P7 LCD_ILI9806_INDEX(0x09); //P8 LCD_ILI9806_INDEX(0x03); //P9 LCD_ILI9806_INDEX(0x06); //P10 LCD_ILI9806_INDEX(0x11); //P11 LCD_ILI9806_INDEX(0x0D); //P12 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 131 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x00); //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); //Exit Sleep Delayms(120); LCD_ILI9806_CMD(0x29); } // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 132 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 7.4 CTC 4.3_BW Initial Code ILI9806 void ILI9806_Initial_CTC(void) { // VCI=2.8V //************* 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_ILI9806_CMD(0xFF); // EXTC Command Set enable register LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x98); LCD_ILI9806_INDEX(0x06); LCD_ILI9806_CMD(0xBA); LCD_ILI9806_INDEX(0x60); // SPI Interface Setting LCD_ILI9806_CMD(0xBC); // GIP 1 LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x61); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x1B); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x37); LCD_ILI9806_INDEX(0x63); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0xFF); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 133 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x55); LCD_ILI9806_INDEX(0xD0); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_CMD(0xBD); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x23); LCD_ILI9806_INDEX(0x45); LCD_ILI9806_INDEX(0x67); // GIP 2 LCD_ILI9806_CMD(0xBE); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x2D); LCD_ILI9806_INDEX(0xCB); LCD_ILI9806_INDEX(0xA2); LCD_ILI9806_INDEX(0x62); LCD_ILI9806_INDEX(0xF2); LCD_ILI9806_INDEX(0xE2); LCD_ILI9806_INDEX(0x22); LCD_ILI9806_INDEX(0x22); // GIP 3 LCD_ILI9806_CMD(0xC7); LCD_ILI9806_INDEX(0x8D); // Vcom LCD_ILI9806_CMD(0xED); LCD_ILI9806_INDEX(0x7F); LCD_ILI9806_INDEX(0x0F); LCD_ILI9806_INDEX(0x00); // EN_volt_reg LCD_ILI9806_CMD(0x36); LCD_ILI9806_INDEX(0x03); // MADCTL The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 134 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_CMD(0xC0); LCD_ILI9806_INDEX(0x03); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x00); // Power Control 1 LCD_ILI9806_CMD(0xFC); LCD_ILI9806_INDEX(0x08); // LVGL LCD_ILI9806_CMD(0xDF); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x20); // Engineering Setting LCD_ILI9806_CMD(0xF3); LCD_ILI9806_INDEX(0x74); // DVDD Voltage Setting LCD_ILI9806_CMD(0xF9); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0xFD); LCD_ILI9806_INDEX(0x80); LCD_ILI9806_INDEX(0xC0); // EBBG CLK LCD_ILI9806_CMD(0xB4); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x00); // Display Inversion Control LCD_ILI9806_CMD(0xF7); LCD_ILI9806_INDEX(0x82); // 480x800 LCD_ILI9806_CMD(0xB1); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x13); LCD_ILI9806_INDEX(0x13); // Frame Rate LCD_ILI9806_CMD(0xF2); // CR/EQ/PC The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 135 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color ILI9806 LCD_ILI9806_INDEX(0xC0); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x40); LCD_ILI9806_INDEX(0x28); LCD_ILI9806_CMD(0xC1); LCD_ILI9806_INDEX(0x17); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x75); LCD_ILI9806_INDEX(0x20); // Power Control 2 LCD_ILI9806_CMD(0xE0); LCD_ILI9806_INDEX(0x00); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x02); LCD_ILI9806_INDEX(0x08); LCD_ILI9806_INDEX(0x0A); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0xC2); LCD_ILI9806_INDEX(0x01); LCD_ILI9806_INDEX(0x0C); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x10); LCD_ILI9806_INDEX(0x24); LCD_ILI9806_INDEX(0x1C); LCD_ILI9806_INDEX(0x00); //P1 //P2 //P3 //P4 //P5 //P6 //P7 //P8 //P9 //P10 //P11 //P12 //P13 //P14 //P15 //P16 //Gamma LCD_ILI9806_CMD(0xE1); //Gamma LCD_ILI9806_INDEX(0x00); //P1 LCD_ILI9806_INDEX(0x08); //P2 LCD_ILI9806_INDEX(0x12); //P3 LCD_ILI9806_INDEX(0x0E); //P4 LCD_ILI9806_INDEX(0x11); //P5 LCD_ILI9806_INDEX(0x09); //P6 LCD_ILI9806_INDEX(0x7A); //P7 LCD_ILI9806_INDEX(0x09); //P8 LCD_ILI9806_INDEX(0x03); //P9 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 136 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color LCD_ILI9806_INDEX(0x06); LCD_ILI9806_INDEX(0x11); LCD_ILI9806_INDEX(0x0D); LCD_ILI9806_INDEX(0x0B); LCD_ILI9806_INDEX(0x0E); LCD_ILI9806_INDEX(0x07); LCD_ILI9806_INDEX(0x00); //P10 //P11 //P12 //P13 //P14 //P15 //P16 LCD_ILI9806_CMD(0x35); LCD_ILI9806_INDEX(0x00); //Tearing Effect ON LCD_ILI9806_CMD(0x11); //Exit Sleep Delayms(120); LCD_ILI9806_CMD(0x29); } // Display On ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 137 of 138 V0.3 a-Si TFT LCD Single Chip Driver 480RGBx1024 Resolution and 16.7M color 8. Revision History Version No. Date V0.1 20121106 V02. 20121211 V03 20121224 Page 118 118 138 Description New Add new code 修正 CR/PC/GPM, Add new code ILI9806 The information contained herein is the exclusive property of ILI Technology Corp. and shall not be distributed, reproduced, or disclosed in whole or in part without prior written permission of ILI Technology Corp. Page 138 of 138 V0.3

    Top_arrow
    回到顶部
    EEWORLD下载中心所有资源均来自网友分享,如有侵权,请发送举报邮件到客服邮箱bbs_service@eeworld.com.cn 或通过站内短信息或QQ:273568022联系管理员 高进,我们会尽快处理。