观海微GH8555BL+Boe6.98(GV070HDU-N1)搭配原理及代码

电子说

1.3w人已加入

描述

观海微GH8555BL+Boe6.98(GV070HDU-N1)搭配原理请参考如下AN:

代码

 

 

 

 

 

 

 

 

 

 

 

 

观海微GH8555BL+Boe6.98(GV070HDU-N1)搭配代码参考如下:

    Generic_Short_Write_1P(0xee,0x50);        // ENTER PAGE1
    Generic_Long_Write_2P(0xea,0x85,0x55);    // write enable
    Generic_Short_Write_1P(0x30,0x00);      // bist=1
    Generic_Short_Write_1P(0x31,0x00);      // bist=1     
     Generic_Long_Write_2P(0x90,0x50,0x05);   // ss_tp location
    Generic_Short_Write_1P(0x24,0x20);        //    mirror te
    Generic_Short_Write_1P(0x99,0x00);        // ss_tp de ndg
    Generic_Short_Write_1P(0x79,0x08);        // zigzag
    Generic_Short_Write_1P(0x95,0x74);        // column invertion
     Generic_Short_Write_1P(0x7a,0x20);        // 
    Generic_Short_Write_1P(0x93,0x67);
    Generic_Short_Write_1P(0x97,0x08);
    Generic_Short_Write_1P(0x7d,0x08);
    Generic_Short_Write_1P(0x56,0x83); 

    //enter page2 
    Generic_Short_Write_1P(0xee,0x60);     // enter page2
    Generic_Short_Write_1P(0x21,0x01);     // OSC
    Generic_Short_Write_1P(0x27,0x22);       //vddd
    Generic_Short_Write_1P(0x29,0x8f);//iset
    Generic_Short_Write_1P(0x2a,0x26);//s-trim
    Generic_Short_Write_1P(0x30,0x01);     // 4 LANE
    Generic_Short_Write_1P(0x34,0x2f);       //dsi_ihrs<1:0>
    Generic_Short_Write_1P(0x3c,0x40);       //VCOM SET
    Generic_Short_Write_1P(0x3b,0x00);
    Generic_Short_Write_1P(0x3d,0x11);       //vgl
    Generic_Short_Write_1P(0x3e,0x93);      //vgh
    Generic_Short_Write_1P(0x42,0x79);       //vspr   
    Generic_Short_Write_1P(0x43,0x79);       //vsnr
    Generic_Short_Write_1P(0x86,0x20);        // 
    Generic_Short_Write_1P(0x89,0x00);        // blkh,1
    Generic_Short_Write_1P(0x8b,0x90);        // blkh,1
    Generic_Short_Write_1P(0x8d,0x45);        //
    //Generic_Short_Write_1P(0x90,0x01);        // pm10
    Generic_Short_Write_1P(0x91,0x11);        // frq_vgh_clk frq_vgl_clk/ 
    Generic_Short_Write_1P(0x92,0x11);    //    frq_cp1_clk[2:0]
    Generic_Short_Write_1P(0x93,0x9f);    //   fp7721 power 

    Generic_Short_Write_1P(0x9a,0x05);           //   s_out=720
    Generic_Short_Write_1P(0x9c,0x80);           //  vlength=1280


    // gamma 2.2  2020/09/14
    /*
     Generic_Long_Write_5P(0x5a,0x12,0x30,0x3e,0x45,0x3f);    //gamma n 0.4.8.12.20
     Generic_Long_Write_5P(0x47,0x12,0x30,0x3e,0x45,0x3f);  ///gamma P0.4.8.12.20

     Generic_Long_Write_5P(0x4c,0x45,0x3e,0x49,0x24,0x20);  //28.44.64.96.128. 
     Generic_Long_Write_5P(0x5f,0x45,0x3e,0x49,0x24,0x20); //28.44.64.96.128. 

    Generic_Long_Write_5P(0x64,0x1f,0x03,0x17,0x11,0x23);//159.191.211.227.235  
     Generic_Long_Write_5P(0x51,0x1f,0x03,0x17,0x11,0x23);  //159.191.211.227.235 

    Generic_Long_Write_4P(0x69,0x26,0x36,0x45,0x7f);  //243.247.251.255
     Generic_Long_Write_4P(0x56,0x26,0x36,0x45,0x7f);  //243.247.251.255
    */
    // gamma 2.5  2020/09/28
     Generic_Long_Write_5P(0x5a,0x12,0x30,0x3e,0x43,0x3f);    //gamma n 0.4.8.12.20
     Generic_Long_Write_5P(0x47,0x12,0x30,0x3e,0x43,0x3f);  ///gamma P0.4.8.12.20

     Generic_Long_Write_5P(0x4c,0x45,0x37,0x46,0x24,0x22);  //28.44.64.96.128. 
     Generic_Long_Write_5P(0x5f,0x45,0x37,0x46,0x24,0x22); //28.44.64.96.128. 

    Generic_Long_Write_5P(0x64,0x21,0x06,0x1a,0x14,0x22);//159.191.211.227.235  
     Generic_Long_Write_5P(0x51,0x21,0x06,0x1a,0x14,0x22);  //159.191.211.227.235 

    Generic_Long_Write_4P(0x69,0x27,0x33,0x45,0x7f);  //243.247.251.255
     Generic_Long_Write_4P(0x56,0x27,0x33,0x45,0x7f);  //243.247.251.255


    Generic_Short_Write_1P(0xee,0x70);  
    // STV0
    Generic_Long_Write_5P(0x00,0x07,0x0a,0x00,0x01,0x09);  //
    Generic_Long_Write_5P(0x05,0x0c,0x55,0x01,0x00,0x00);  //
     Generic_Long_Write_2P(0x0C,0x05,0x5d);
   // CYC0
      Generic_Long_Write_5P(0x10,0x08,0x09,0x00,0x00,0x09); 
     Generic_Long_Write_5P(0x15,0x0c,0x07,0x0d,0x08,0x00);  
    Generic_Long_Write_2P(0x29,0x05,0x5d);

     //gip0-gip21=gipL1-gipL22 (UPscan)
    Generic_Long_Write_5P(0x80,0x12,0x12,0x10,0x10,0x16);  
     Generic_Long_Write_5P(0x85,0x16,0x14,0x14,0x00,0x3c);  
    Generic_Long_Write_5P(0x8a,0x3c,0x3c,0x3c,0x3c,0x3c);  
    Generic_Long_Write_5P(0x8f,0x02,0x3c,0x3c,0x3C,0x3C);
    Generic_Long_Write_2P(0x94,0x3C,0x3c);

    //gip22-gip43=gipR1-gipR22 (UPscan)
    Generic_Long_Write_5P(0x60,0x13,0x13,0x11,0x11,0x17);  
     Generic_Long_Write_5P(0x65,0x17,0x15,0x15,0x01,0x3c);  
    Generic_Long_Write_5P(0x6a,0x3c,0x3c,0x3c,0x3c,0x3c);  
    Generic_Long_Write_5P(0x6f,0x04,0x3c,0x3c,0x3C,0x3C);
    Generic_Long_Write_2P(0x74,0x3C,0x3c);

/*
    //gip0-gip21=gipL1-gipL22 (downscan)
    Generic_Long_Write_5P(0x60,0x15,0x15,0x17,0x17,0x11);  
     Generic_Long_Write_5P(0x65,0x11,0x13,0x13,0x03,0x3c);  
    Generic_Long_Write_5P(0x6a,0x3c,0x3c,0x3c,0x3c,0x3c);  
    Generic_Long_Write_5P(0x6f,0x01,0x3c,0x3c,0x3C,0x3C);
    Generic_Long_Write_2P(0x74,0x3C,0x3c);

    //gip22-gip43=gipR1-gipR22 (downscan)
    Generic_Long_Write_5P(0x80,0x14,0x14,0x16,0x16,0x10);  
     Generic_Long_Write_5P(0x85,0x10,0x12,0x12,0x02,0x3c);  
    Generic_Long_Write_5P(0x8a,0x3c,0x3c,0x3c,0x3c,0x3c);  
    Generic_Long_Write_5P(0x8f,0x00,0x3c,0x3c,0x3C,0x3C);
    Generic_Long_Write_2P(0x94,0x3C,0x3c);
    
    Generic_Long_Write_2P(0xea,0x00,0x00); 
    Generic_Short_Write_1P(0xee,0x00);

    DCS_Short_Write_NP(0x11);       // sleep out
    Delay (120);
    DCS_Short_Write_NP(0x29);      // display on
    Delay (10);

 

 

 

 

 

  审核编辑:汤梓红
 

 

 

 

打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分