Firefly开源社区

打印 上一主题 下一主题

小白一个,请教如何基于rk3288平台 添加mipi接口4lane lcd驱动

76

积分

0

威望

0

贡献

技术小白

积分
76

小白一个,请教如何基于rk3288平台 添加mipi接口4lane lcd驱动

发表于 2017-6-13 20:40:19      浏览:8916 | 回复:1        打印      只看该作者   [复制链接] 楼主
如题,公司需要添加个lcd屏幕驱动,打算让我点亮,我现在有点不知道怎么入手。
供应商只给了简单的初始化代码。规格书 时序都没有。请问,我该如何入手。麻烦请教
TFT7201280-48-E(4.99D)v1.0.pdf (795.48 KB, 下载次数: 7)





  1. #if  1

  2.                    /**********initial code**********/
  3.                 // Set EXTC
  4.                 {0x39, 0, 0, 0, 0, 4,{0xB9,0xFF,0x83,0x94}},

  5.                 // Set Power  VSPR=VSNR=5.0  VGH=16V,VGL=-10V
  6.                 {0x39, 0, 0, 0, 0, 11,{0xB1,0x48,0x14,0x74,0x09,0x33,0x54,0x71,0x31,0x57,0x2F}},

  7.                 // Set MIPI
  8.                 {0x39, 0, 0, 0, 0, 7,{0xBA,0x63,0x03,0x68,0x6B,0xB2,0xC0}},

  9.                 // Set Display
  10.                 {0x39, 0, 0, 0, 0, 7,{0xB2,0x00,0x80,0x64,0x06,0x0E,0x2F}},

  11.                 // Set CYC
  12.                 {0x39, 0, 0, 0, 0, 22,{0xB4,0x01,0x78,0x01,0x78,0x01,0x78,0x01,0x0C,0x86,0x35,0x00,0x3F,0x1C,0x78,0x1C,0x78,0x1C,0x78,0x01,0x0C,0x86}},

  13.                 //Modified By GRG For Line Imagesticking
  14.                 {0x39, 0, 0, 0, 0, 22,{0xB4,0x01,0x70,0x01,0x70,0x01,0x70,0x01,0x05,0x86,0x35,0x00,0x3F,0x1C,0x70,0x01,0x70,0x01,0x70,0x01,0x05,0x86}},

  15.                 // Set D3H
  16.                 {0x39, 0, 0, 0, 0, 34,{0xD3,0x00,0x00,0x00,0x00,0x08,0x08,0x10,0x10,0x32,0x10,0x03,0x00,0x03,0x32,0x15,0x07,0x05,0x07,0x32,0x10,0x08,0x00,0x00,0x17,0x01,0x07,0x07,0x17,0x05,0x05,0x17,0x06,0x40}},

  17.                 // Set GIP
  18.                 {0x39, 0, 0, 0, 0, 45,{0xD5,0x18,0x18,0x18,0x18,0x26,0x27,0x24,0x25,0x06,0x07,0x04,0x05,0x02,0x03,0x00,0x01,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x20,0x21,0x22,0x23,0x18,0x18,0x18,0x18}},

  19.                 // Set GIP
  20.                 {0x39, 0, 0, 0, 0, 45,{0xD6,0x18,0x18,0x18,0x18,0x21,0x20,0x23,0x22,0x01,0x00,0x03,0x02,0x05,0x04,0x07,0x06,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x27,0x26,0x25,0x24,0x18,0x18,0x18,0x18}},

  21.                 // Set Gamma
  22.                 {0x39, 0, 0, 0, 0, 59,{0xE0,0x00,0x05,0x0B,0x11,0x12,0x16,0x19,0x17,0x30,0x40,0x50,0x4F,0x58,0x69,0x6F,0x71,0x7F,0x82,0x7E,0x8D,0x9E,0x4F,0x4F,0x53,0x58,0x5D,0x67,0x74,0x7F,0x00,0x05,0x0B,0x11,0x12,0x16,0x19,0x17,0x30,0x40,0x50,0x4F,0x58,0x69,0x6F,0x71,0x7F,0x82,0x7E,0x8D,0x9E,0x4F,0x4F,0x53,0x58,0x5D,0x67,0x74,0x7F}},

  23.                 // Set Panel
  24.                 {0x15, 0, 0, 0, 0, 2,{0xCC,0x0b}},

  25.                 // Set C0H
  26.                 {0x39, 0, 0, 0, 0, 3,{0xC0,0x1F,0x73}},

  27.                 // Set VCOM
  28.                 {0x39, 0, 0, 0, 0, 3,{0xB6,0x43,0x43}},

  29.                 // Set D4h
  30.                 {0x15, 0, 0, 0, 0, 2,{0xD4,0x02}},

  31.                 // Set BDH
  32.                 {0x15, 0, 0, 0, 0, 2,{0xBD,0x01}},

  33.                 {0x15, 0, 0, 0, 0, 2,{0x36,0x00}},

  34.                 // Set GAS
  35.                 {0x15, 0, 0, 0, 0, 2,{0xB1,0x00}},

  36.                 // Set BD
  37.                 {0x15, 0, 0, 0, 0, 2,{0xBD,0x00}},

  38.                 {0x15, 0, 0, 0, 0, 2,{0xC6,0xEF}},

  39.                 // Sleep Out
  40.                 {0x05, 0, 0, 0, 150, 1,{0x11}},

  41.                 // Display ON
  42.                 {0x05, 0, 0, 0, 50, 1,{0x29}},


  43. #endif



  44. ///////////////////////////////////////////////

  45. #define LCD_WIDTH           24           
  46. #define LCD_XSIZE           720         
  47. #define LCD_YSIZE           1280         

  48. #define VBPD                27
  49. #define VFPD                20
  50. #define VSPW                4
  51. #define HBPD                60
  52. #define HFPD                70
  53. #define HSPW                20
















复制代码



回复

使用道具 举报

76

积分

0

威望

0

贡献

技术小白

积分
76
发表于 2017-6-13 20:41:11        只看该作者  沙发
麻烦知道的朋友 指点下 方向。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表