Chinaunix首页 | 论坛 | 博客
  • 博客访问: 140453
  • 博文数量: 27
  • 博客积分: 1405
  • 博客等级: 上尉
  • 技术积分: 362
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-10 15:48
文章存档

2013年(3)

2011年(1)

2010年(1)

2008年(22)

我的朋友

分类:

2008-04-09 11:25:42

/*
DJN LCD CO.,LTD.
Driver IC: S6D0164+HTT22QC2_D00
Author: ALL
Date:2008/03/14
void LCD_INIT_S6D0164(void){
     RESET=1;
     Delayms(1);
     RESET=0;
     Delayms(10);
     RESET=1
      /*Power up sequence*/
     LCD_WRITE_CMD(0x0011);LCD_WRITE_DATA(0x001A);
     LCD_WRITE_CMD(0x0012);LCD_WRITE_DATA(0x3121);
     LCD_WRITE_CMD(0x0013);LCD_WRITE_DATA(0x006C);
     LCD_WRITE_CMD(0x0014);LCD_WRITE_DATA(0x4249);
     LCD_WRITE_CMD(0x0010);LCD_WRITE_DATA(0x0800);
     Delayms(10);
     LCD_WRITE_CMD(0x0011);LCD_WRITE_DATA(0x011A);
     Delayms(10);
     LCD_WRITE_CMD(0x0011);LCD_WRITE_DATA(0x031A);
     Delayms(10);
     LCD_WRITE_CMD(0x0011);LCD_WRITE_DATA(0x071A);
     Delayms(10);
     LCD_WRITE_CMD(0x0011);LCD_WRITE_DATA(0x0F1A);
     Delayms(20);
     LCD_WRITE_CMD(0x0011);LCD_WRITE_DATA(0x0F3A);
     Delayms(30);
     /*Initialization set sequence*/
     LCD_WRITE_CMD(0x0001);LCD_WRITE_DATA(0x011C);
     LCD_WRITE_CMD(0x0002);LCD_WRITE_DATA(0x0100);
     LCD_WRITE_CMD(0x0003);LCD_WRITE_DATA(0x1030);
     LCD_WRITE_CMD(0x0007);LCD_WRITE_DATA(0x0000);
     LCD_WRITE_CMD(0x0008);LCD_WRITE_DATA(0x0808);
     LCD_WRITE_CMD(0x000B);LCD_WRITE_DATA(0x1100);
     LCD_WRITE_CMD(0x000C);LCD_WRITE_DATA(0x0000);
     LCD_WRITE_CMD(0x000F);LCD_WRITE_DATA(0x1401);
     LCD_WRITE_CMD(0x0015);LCD_WRITE_DATA(0x0000);
     LCD_WRITE_CMD(0x0020);LCD_WRITE_DATA(0x0000);//RAM Address Register AD7-AD0
     LCD_WRITE_CMD(0x0021);LCD_WRITE_DATA(0x0000);//RAM Address Register AD15-AD8

     LCD_WRITE_CMD(0x0038);LCD_WRITE_DATA(0x00DB);
     LCD_WRITE_CMD(0x0039);LCD_WRITE_DATA(0x0000);
     LCD_WRITE_CMD(0x0050);LCD_WRITE_DATA(0x0001);//Gamma
     LCD_WRITE_CMD(0x0051);LCD_WRITE_DATA(0x020B);
     LCD_WRITE_CMD(0x0052);LCD_WRITE_DATA(0x0805);
     LCD_WRITE_CMD(0x0053);LCD_WRITE_DATA(0x0404);
     LCD_WRITE_CMD(0x0054);LCD_WRITE_DATA(0x0C0C);
     LCD_WRITE_CMD(0x0055);LCD_WRITE_DATA(0x000C);
     LCD_WRITE_CMD(0x0056);LCD_WRITE_DATA(0x0101);
     LCD_WRITE_CMD(0x0057);LCD_WRITE_DATA(0x0400);
     LCD_WRITE_CMD(0x0058);LCD_WRITE_DATA(0x1108);
     LCD_WRITE_CMD(0x0059);LCD_WRITE_DATA(0x050C);
    
     LCD_WRITE_CMD(0x0036);LCD_WRITE_DATA(0x00AF);//H end
     LCD_WRITE_CMD(0x0037);LCD_WRITE_DATA(0x0000);//H start
     LCD_WRITE_CMD(0x0038);LCD_WRITE_DATA(0x00DB);//V end
     LCD_WRITE_CMD(0x0039);LCD_WRITE_DATA(0x0000);//V start
    
     LCD_WRITE_CMD(0x000F);LCD_WRITE_DATA(0x0B01);
     LCD_WRITE_CMD(0x0007);LCD_WRITE_DATA(0x0016);
     Delayms(2);
     LCD_WRITE_CMD(0x0007);LCD_WRITE_DATA(0x0017);
     LCD_WRITE_CMD(0x0022);
     Delayms(10);
 
     }
void LCD_Display_ON_S6D0164(void){
     LCD_WRITE_CMD(0x0F);LCD_WRITE_DATA(0x0B01);
     LCD_WRITE_CMD(0x07);LCD_WRITE_DATA(0x0016);
     delayms(2);
     LCD_WRITE_CMD(0x07);LCD_WRITE_DATA(0x0017);
     LCD_WRITE_CMD(0x22);
     }
/*
void LCD_Display_OFF_S6D0164(void){
     LCD_WRITE_CMD(0x15);LCD_WRITE_DATA(0x0000);
     LCD_WRITE_CMD(0x07);LCD_WRITE_DATA(0x0012);
     delayms(2);
     LCD_WRITE_CMD(0x07);LCD_WRITE_DATA(0x0000);
     delayms(2);
     }
*/
void LCD_Window_Set_S6D0164(int HE,int HS,int VE,int VS){
     LCD_WRITE_CMD(0x36);LCD_WRITE_DATA(HE);//H end
     LCD_WRITE_CMD(0x37);LCD_WRITE_DATA(HS);//H start
     LCD_WRITE_CMD(0x38);LCD_WRITE_DATA(VE);//V end
     LCD_WRITE_CMD(0x39);LCD_WRITE_DATA(VS);//V start
     //LCD_WRITE_CMD(0x0020);LCD_WRITE_DATA(0x0000);//RAM Address Register AD7-AD0
     //LCD_WRITE_CMD(0x0021);LCD_WRITE_DATA(0x0000);//RAM Address Register AD15-AD8
     LCD_WRITE_CMD(0x0022);

     }
/*
void LCD_Standby_Mode_S6D0164(void){
     LCD_Display_OFF_S6D0164();
     LCD_WRITE_CMD(0x10);LCD_WRITE_DATA(0x0001);
     }
void LCD_Exit_Standby_Mode_S6D0164(void){
     LCD_WRITE_CMD(0x10);LCD_WRITE_DATA(0x0000);
     delayms(10);
     LCD_INIT_S6D0164();
     LCD_Display_ON_S6D0164();
     }
void LCD_Deep_Standby_Mode_S6D0164(void){
     LCD_Display_OFF_S6D0164();
     LCD_WRITE_CMD(0x10);LCD_WRITE_DATA(0x0002);
     }
void LCD_Exit_Deep_Standby_Mode_S6D0164(void){
     //CSB=LOW;(5th Falling Edge)
     //RESETB=LOW;
      delayms(10);
      LCD_INIT_S6D0164();
      LCD_Display_ON_S6D0164();
     }
*/
阅读(2517) | 评论(3) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-03-15 17:40:09

Dear Sir or Madame, I would like to ask you, if it is possible to become a datasheet of the S6D0164 controller. Sincerely, Michael Strosche

chinaunix网友2009-03-15 17:39:59

Dear Sir or Madame, I would like to ask you, if it is possible to become a datasheet of the S6D0164 controller. Sincerely, Michael Strosche

chinaunix网友2009-03-15 17:39:52

Dear Sir or Madame, I would like to ask you, if it is possible to become a datasheet of the S6D0164 controller. Sincerely, Michael Strosche