⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r61505.c

📁 台湾Renesas公司的TFT彩屏控制器R61505U的初始化代码.
💻 C
字号:
     /* second release on 3/5  ,luminance is acceptable,water wave appear during camera preview*/
        LCM_ID = LPL_R61505U;
        LCD_set_reg_IC(0x0007,0x0000);
        LCD_Delay(5);
        LCD_set_reg_IC(0x0012,0x011C);//0x011A   why need to set several times?
        LCD_set_reg_IC(0x00A4,0x0001);//NVM
    /**/
        LCD_set_reg_IC(0x0008,0x000F);
        LCD_set_reg_IC(0x000A,0x0008);
        LCD_set_reg_IC(0x000D,0x0008);
       
  /************GAMMA CONTROL*************/
        LCD_set_reg_IC(0x0030,0x0707);
        LCD_set_reg_IC(0x0031,0x0007); //0x0707
        LCD_set_reg_IC(0x0032,0x0603); 
        LCD_set_reg_IC(0x0033,0x0700); 
        LCD_set_reg_IC(0x0034,0x0202); 
        LCD_set_reg_IC(0x0035,0x0002); //?0x0606
        LCD_set_reg_IC(0x0036,0x1F0F);
        LCD_set_reg_IC(0x0037,0x0707); //0x0f0f  0x0105
        LCD_set_reg_IC(0x0038,0x0000); 
        LCD_set_reg_IC(0x0039,0x0000); 
        LCD_set_reg_IC(0x003A,0x0707); 
        LCD_set_reg_IC(0x003B,0x0000); //0x0303
        LCD_set_reg_IC(0x003C,0x0007); //?0x0707
        LCD_set_reg_IC(0x003D,0x0000); //0x1313//0x1f08
        LCD_Delay(5);
        LCD_set_reg_IC(0x0007,0x0001);
        LCD_set_reg_IC(0x0017,0x0001);   //Power supply startup enable
        LCD_Delay(5);
  
  /*power control*/
        LCD_set_reg_IC(0x0010,0x17A0); 
        LCD_set_reg_IC(0x0011,0x0217); //reference voltage VC[2:0]   Vciout = 1.00*Vcivl
        LCD_set_reg_IC(0x0012,0x011E);//0x011c  //Vreg1out = Vcilvl*1.80   is it the same as Vgama1out ?
        LCD_set_reg_IC(0x0013,0x0F00); //VDV[4:0]-->VCOM Amplitude VcomL = VcomH - Vcom Ampl
        LCD_set_reg_IC(0x002A,0x0000);  
        LCD_set_reg_IC(0x0029,0x000A); //0x0001F  Vcomh = VCM1[4:0]*Vreg1out    gate source voltage??
        LCD_set_reg_IC(0x0012,0x013E); // 0x013C  power supply on
           /*Coordinates Control*/
        LCD_set_reg_IC(0x0050,0x0000);//0x0e00
        LCD_set_reg_IC(0x0051,0x00EF); 
        LCD_set_reg_IC(0x0052,0x0000); 
        LCD_set_reg_IC(0x0053,0x013F); 
    /*Pannel Image Control*/
        LCD_set_reg_IC(0x0060,0x2700); 
        LCD_set_reg_IC(0x0061,0x0001); 
        LCD_set_reg_IC(0x006A,0x0000); 
        LCD_set_reg_IC(0x0080,0x0000); 
    /*Partial Image Control*/
        LCD_set_reg_IC(0x0081,0x0000); 
        LCD_set_reg_IC(0x0082,0x0000); 
        LCD_set_reg_IC(0x0083,0x0000); 
        LCD_set_reg_IC(0x0084,0x0000); 
        LCD_set_reg_IC(0x0085,0x0000); 
  /*Panel Interface Control*/
        LCD_set_reg_IC(0x0090,0x0013); //0x0010 frenqucy
        LCD_set_reg_IC(0x0092,0x0300); 
        LCD_set_reg_IC(0x0093,0x0005); 
        LCD_set_reg_IC(0x0095,0x0000); 
        LCD_set_reg_IC(0x0097,0x0000); 
        LCD_set_reg_IC(0x0098,0x0000); 
  
        LCD_set_reg_IC(0x0001,0x0100); 
        LCD_set_reg_IC(0x0002,0x0700); 
        LCD_set_reg_IC(0x0003,0x1030); 
        LCD_set_reg_IC(0x0004,0x0000); 
        LCD_set_reg_IC(0x000C,0x0000); 
        LCD_set_reg_IC(0x000F,0x0000); 
        LCD_set_reg_IC(0x0020,0x0000); 
        LCD_set_reg_IC(0x0021,0x0000); 
        LCD_set_reg_IC(0x0007,0x0021); 
        LCD_Delay(20);
        LCD_set_reg_IC(0x0007,0x0061); 
        LCD_Delay(20);
        LCD_set_reg_IC(0x0007,0x0173); 
        LCD_Delay(20);
    }
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -