首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 单片机 >

求SPFD5420A液晶控制器的init code解决办法

2012-03-22 
求SPFD5420A液晶控制器的init code求SPFD5420A液晶控制器的init code,请有代码的大侠们贴一份吧,不胜感激!

求SPFD5420A液晶控制器的init code
求SPFD5420A液晶控制器的init code,请有代码的大侠们贴一份吧,不胜感激!

[解决办法]
//(1).reset first//(2).init normal reg{0x0001,0x0000},{0x0002,0x0700},{0x0003,0x0008},//here we modify @ 091124 14:20{0x0006,0x0000},{0x0008,0x0503},{0x0009,0x0001},{0x000b,0x0010},{0x000C,0x0000},//here we modify @ 20091123{0x000F,0x0000},{0x0010,0x0012},{0x0011,0x0202},{0x0012,0x0300},{0x0020,0x001E},{0x0021,0x0202},{0x0022,0x0100},{0x0090,0x0000},{DELAY_FLAG, 110},//################# void Gamma_Set(void) ####################////(3).init gamma reg {0x0300,0x0101}, //0101 {0x0301,0x0B27}, //0b26 {0x0302,0x152a}, //1329 {0x0303,0x2a15}, //2913 {0x0304,0x270B}, //260b {0x0305,0x0101}, // {0x0306,0x1205}, //1804 {0x0307,0x0512}, //0418 {0x0308,0x0005}, //0205 {0x0309,0x0003},//0303 {0x030A,0x0804}, //0e05 {0x030B,0x0800}, //0d01 {0x030C,0x0005}, //010d {0x030D,0x0405}, //050e {DELAY_FLAG, 110},//(4).init base image reg {0x0400,/*0x1D00*/0x3100},//here we modify @ 091126 16:20 {0x0401,0x0000}, {0x0404,0x0000}, {0x0606,0x0000}, {0x06F0,0x0001}, {DELAY_FLAG, 110}, {0x0007,0x0173}, {DELAY_FLAG, 110},//(5).set a base address reg {END_FLAG, END_FLAG}

这个是网上的SPFD5420A驱动初始化代码,我是以前保存下来的,呵呵,你可以参考一下。

热点排行