zoukankan      html  css  js  c++  java
  • 【原创】R61509/SPFD5420A驱动调试总结

     
    这贴为了回应上一次在WINCE区被转走的一个帖子。调试了半个月终于把屏完全调好了。
    呵呵。累啊。

    環境:wince5.0
    cpu:ARM920T Anyka7802
    玻璃:LG liquid crystal panel
    Driver IC:R61509/SPFD5420A 可以互相替代
    通讯:并行16bit命令 并行18bit数据
    其他:i80SYSTEM 18BIT-262


    下面给出初始化的code

    C/C++ 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}




    有调试这个屏IC的朋友可以参考下。呵呵。
    注意R400H寄存器。另外我这里旋转了270度。屏旋转注意R003H寄存器。

    有关于基于WINCE+屏调试的问题大家可以互相沟通。


    关键的寄存器 R003H R400H R401H R402H.

  • 相关阅读:
    HTTP断点续传 规格严格
    Java Shutdown 规格严格
    linux 命令源码 规格严格
    JTable调整列宽 规格严格
    linux 多CPU 规格严格
    Hello can not find git path 规格严格
    Kill 规格严格
    拜拜牛人 规格严格
    Swing 规格严格
    Debugging hangs in JVM (on AIX but methodology applicable to other platforms) 规格严格
  • 原文地址:https://www.cnblogs.com/mercuryxu/p/1611786.html
Copyright © 2011-2022 走看看