457
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
观海微GH1001-F+CTO5.5”(HT055BPC01-D) 原理如下:
观海微GH1001-F+CTO5.5”(HT055BPC01-D) 代码如下:
//---------------------------------------------------------------------------
// Example:
// Model - HT055BPC-01
// IC - GH1001-F
// Width - 720
// Height - 1280
//"Vfp" value="16" />
//"Vbp" value="8" />
//"Vsync" value="2" />
//"Hfp" value="90" />
//"Hbp" value="20" />
//"Hsync" value="20" />
Generic_Short_Write_1P(0xee,0x50); // ENTER PAGE1
Generic_Long_Write_2P(0xea,0x85,0x55); // write enable
Generic_Short_Write_1P(0x24,0x20); // te en, bgr, forward backward scan a0 or b0
Generic_Short_Write_1P(0x30,0x00); // bist=1 auto run set 90
Generic_Short_Write_1P(0x31,0x50); // bist
Generic_Long_Write_2P(0x90,0x50,0x20); // ss_tp location
Generic_Short_Write_1P(0x93,0x00);
Generic_Short_Write_1P(0x95,0x70);
Generic_Short_Write_1P(0x97,0x09); //smart gip enable
Generic_Short_Write_1P(0x99,0x00);
//enter page2
Generic_Short_Write_1P(0xee,0x60); // enter page2
//Generic_Short_Write_1P(0x21,0x01); // OSC
//Generic_Short_Write_1P(0x25,0x71); // vref_apf1[2:0]
Generic_Short_Write_1P(0x27,0x62); // vddd
Generic_Short_Write_1P(0x29,0x8c); // Sd_i_set<3:0> 89
Generic_Short_Write_1P(0x2a,0x24); // Sd_trim<2:0> 20
Generic_Short_Write_1P(0x2c,0x8c); // Sd_trim<2:0> 8c
Generic_Short_Write_1P(0x30,0x01); // 4 LANE 00 = 3lane
Generic_Short_Write_1P(0x32,0xd9);
Generic_Short_Write_1P(0x33,0xc3); // dsi_rts<1:0>=10
Generic_Short_Write_1P(0x34,0x4a); // dsi_ihrs<1:0>
Generic_Short_Write_1P(0x3a,0x26); // gas value
Generic_Short_Write_1P(0x3b,0xc2); // gip s2s-s3s
Generic_Short_Write_1P(0x3c,0x3f); // vcom set -1V
Generic_Short_Write_1P(0x3d,0x11); // vgl 倍压
Generic_Short_Write_1P(0x3e,0x93); // 倍压15.2
Generic_Long_Write_2P(0x42,0x6e,0x6e); // vspr ,vsnr 5.2 +1=0.02V
Generic_Short_Write_1P(0x8a,0x11); // blank frame number 0x01
Generic_Short_Write_1P(0x8d,0x05); // blank vnum h
Generic_Short_Write_1P(0x8c,0x14); // blank vnum l
Generic_Short_Write_1P(0x8b,0x80); // blank hnum
Generic_Short_Write_1P(0x91,0x44);
Generic_Short_Write_1P(0x92,0x33);
Generic_Short_Write_1P(0x93,0x9f);
Generic_Short_Write_1P(0x9a,0x05); // 720
Generic_Long_Write_2P(0x9b,0x02,0x80); // 1280
//gamma2.2 2021/3/22 VSNR:0X6E(-5.2V) VSPR:OX6E(5.2V)
Generic_Long_Write_5P(0x5a,0x10,0x20,0x3a,0x45,0x4a); //gamma n0.4.8.12.20
Generic_Long_Write_5P(0x47,0x10,0x20,0x3a,0x45,0x4a); //gamma P0.4.8.12.20
Generic_Long_Write_5P(0x4c,0x57,0x4d,0x60,0x46,0x4a); //28.44.64.96.128.
Generic_Long_Write_5P(0x5f,0x57,0x4d,0x60,0x46,0x4a); //28.44.64.96.128.
Generic_Long_Write_5P(0x64,0x4d,0x36,0x4d,0x49,0x57); //159.191.211.227.235
Generic_Long_Write_5P(0x51,0x4d,0x36,0x4d,0x49,0x57); //159.191.211.227.235
Generic_Long_Write_4P(0x69,0x59,0x63,0x70,0x7f); //243.247.251.255
Generic_Long_Write_4P(0x56,0x59,0x63,0x70,0x7f); //243.247.251.255
Generic_Short_Write_1P(0xee,0x70); // enter page3
//STV0 stv1 stv2
Generic_Long_Write_4P(0x00,0x03,0x07,0x00,0x01);
Generic_Long_Write_4P(0x04,0x0a,0x0e,0x55,0x01);
Generic_Long_Write_4P(0x08,0x0f,0x14,0x55,0x01);
Generic_Long_Write_2P(0x0c,0x55,0x55);
// CYC0 cyc1
Generic_Long_Write_5P(0x10,0x04,0x08,0x00,0x01,0x00);
Generic_Long_Write_4P(0x15,0x00,0x09,0x0d,0x08);
Generic_Long_Write_2P(0x29,0x55,0x55);
// forward scan GIP
// gip0-gip21=gipL1-gipL22
Generic_Long_Write_5P(0x60,0x3c,0x06,0x04,0x08,0x3c);
Generic_Long_Write_5P(0x65,0x00,0x02,0x3f,0x10,0x12);
Generic_Long_Write_5P(0x6a,0x14,0x16,0x3c,0x3c,0x3c);
Generic_Long_Write_5P(0x6f,0x3c,0x3c,0x3c,0x3c,0x3c);
Generic_Long_Write_2P(0x74,0x3c,0x3c);
// gip22-gip43=gipR1-gipR22
Generic_Long_Write_5P(0x80,0x3c,0x07,0x05,0x09,0x3c);
Generic_Long_Write_5P(0x85,0x01,0x03,0x3f,0x11,0x13);
Generic_Long_Write_5P(0x8a,0x15,0x17,0x3c,0x3c,0x3c);
Generic_Long_Write_5P(0x8f,0x3c,0x3c,0x3c,0x3c,0x3c);
Generic_Long_Write_2P(0x94,0x3c,0x3c);
/*
// backward scan GIP
Generic_Long_Write_5P(0x60,0x3c,0x01,0x03,0x08,0x3c);
Generic_Long_Write_5P(0x65,0x07,0x05,0x3f,0x13,0x11);
Generic_Long_Write_5P(0x6a,0x17,0x15,0x3c,0x3c,0x3c);
Generic_Long_Write_5P(0x6f,0x3c,0x3c,0x3c,0x3c,0x3c);
Generic_Long_Write_2P(0x74,0x3c,0x3c);
//gip22-gip43=gipR1-gipR22
Generic_Long_Write_5P(0x80,0x3c,0x00,0x02,0x08,0x3c);
Generic_Long_Write_5P(0x85,0x06,0x04,0x3f,0x12,0x10);
Generic_Long_Write_5P(0x8a,0x16,0x14,0x3c,0x3c,0x3c);
Generic_Long_Write_5P(0x8f,0x3c,0x3c,0x3c,0x3c,0x3c);
Generic_Long_Write_2P(0x94,0x3c,0x3c);
*/
Generic_Long_Write_2P(0xea,0x00,0x00);
Generic_Short_Write_1P(0xee,0x00); // ENTER PAGE0
DCS_Short_Write_NP(0x11); // sleep out
Delay (100);
DCS_Short_Write_NP(0x29); // display on