图片
全站搜索
下载搜索
 
 
下载详情
 
图片
下载详情
文件名称:ft1509初始化代码
下载分类:初始化代码
浏览次数:431 次
下载次数:70 次
上传时间:2015-10-09 07:41:44
更新时间:2015-10-09 07:42:03
简介:ft1509

void Initial_FT1509( void )
{
  RESET=1;
  delay_ms(20);
  RESET=0;
  delay_ms(20);
  RESET=1;
  delay_ms(100);
 send_host_reg_command(0x0000,0x0001);
  send_host_reg_command(0x002B,0x0001);     //0x0001
  delay_ms(20);
  send_host_reg_command(0x0007,0x0000);
  send_host_reg_command(0x0012,0x0000);
  delay_ms(20);
 
  send_host_reg_command(0x0060,0x3500);
  delay_ms(20);
  send_host_reg_command(0x0008,0x0405);
  send_host_reg_command(0x0091,0x0000);    //0x0600
  send_host_reg_command(0x0092,0x0700);
  send_host_reg_command(0x0098,0x0747);
  send_host_reg_command(0x0001,0x0000);

send_host_reg_command(0x0030, 0x0001);
send_host_reg_command(0x0031, 0x0302);
send_host_reg_command(0x0032, 0x0203);
send_host_reg_command(0x0035, 0x0200);
send_host_reg_command(0x0036, 0x1c10);
send_host_reg_command(0x0037, 0x0204);
send_host_reg_command(0x0038, 0x0301);
send_host_reg_command(0x0039, 0x0706);
send_host_reg_command(0x003c, 0x0101);
send_host_reg_command(0x003d, 0x0814);
    
  send_host_reg_command(0x0010,0x5aC0);
  send_host_reg_command(0x0011,0x0011);      //apply for 3V
  delay_ms(50);            
  send_host_reg_command(0x0012,0x1118);
  send_host_reg_command(0x0013, 0x0c03);
  send_host_reg_command(0x0029, 0x002e);
                            
  delay_ms(50);             
  send_host_reg_command(0x0001,0x0000);
  send_host_reg_command(0x0002,0x0700);
  send_host_reg_command(0x0003,0x1030);   
  send_host_reg_command(0x0061,0x0001);
                            
  send_host_reg_command(0x0090,0x0010);   //0x0010     
  send_host_reg_command(0x0092,0x0000);
                            
  send_host_reg_command(0x0080,0x0000);
  send_host_reg_command(0x0081,0x0000);
  send_host_reg_command(0x0082,0x018F);
  send_host_reg_command(0x0083,0x0000);
  send_host_reg_command(0x0084,0x0000);
  send_host_reg_command(0x0085,0x018F);
                            
                            
  send_host_reg_command(0x0050,0x0000);
  send_host_reg_command(0x0051,0x00EF);
  send_host_reg_command(0x0052,0x0000);
  send_host_reg_command(0x0053,0x018F);
  send_host_reg_command(0x0010,0x5DC0);
  send_host_reg_command(0x00A2,0x0002);  
  delay_ms(50);                    
  send_host_reg_command(0x0007,0x0133);
 
 }


2.void FT1509_sleep_stb_dstb_mode enter(void)
{
//=============display off ====================
//****DBL mode/manual backlight control*******/
//control_out(0x00c0, 0x0010);//turn off the LED backlight
//*****************************************************/
control_out(0x0007, 0x0101);
delayms(20);
control_out(0x0007, 0x0100);
delayms(20);
//==============power supply off===============
control_out(0x0010, 0x5D00);
control_out(0x0011, 0x0777);
control_out(0x0012, 0x0105);
delayms(20);
control_out(0x0010,0x4D00);
//=============================================

//#ifdef sleep
//control_out(0x0010, 0x4DC2);
//#endif

#ifdef standby
control_out(0x0010, 0x4DC1);
#endif
}

/////////////////////////////////////////////////////////////////////////

3.void FT1509_seelp_stb_mode_exit(void)
{

Initial_FT1509();
}

图片
脚注信息
此站有漏洞,请迅速修复 by:smoker QQ157411076            版权所有 Copyright(C)2009-2010 深圳市德沃洛浦科技有限公司
图片