SSD1963 低功耗应用

Posted on 2011-11-23 16:33  蓝色星宇  阅读(743)  评论(0编辑  收藏  举报

SSD1963  低功耗应用。背光调节除了duty 还有一个系数:DBC manual brightness:duty*00%,
已经调试通过。

void LcdEnterSleep(void)
{
 //set PWM 
  WriteCommand(0xBE); //
  WriteData(0x0E); //PLL(120M)/(256*Value)/256=120Hz
 // WriteData(0xFF); //duty=X/256 
  WriteData(0x50); //duty=X/256  
  WriteData(0x09); //DBC disable PWM enable
//close backlight  
  WriteData(0x00); //DBC manual brightness:duty*00%
  WriteData(0x00); //DBC minimum brightness
  WriteData(0x00); //Brightness prescaler :off(system frequency / Divcode / 32768)
 //end of PWM 

 WriteCommand(0x10);
}

void LcdExitSleep(void)
{

 WriteCommand(0x11);
//set PWM 
 WriteCommand(0xBE); //
 WriteData(0x0E); //PLL(120M)/(256*Value)/256=120Hz
// WriteData(0xFF); //duty=X/256 
 WriteData(0x50); //duty=X/256  
 WriteData(0x09); //DBC enable PWM enable 
 WriteData(0x80); //DBC manual brightness:duty*50%
 WriteData(0x00); //DBC minimum brightness
 WriteData(0x00); //Brightness prescaler :off(system frequency / Divcode / 32768)

//end of PWM  
}

Copyright © 2024 蓝色星宇
Powered by .NET 9.0 on Kubernetes

跟小D每日学口语 跟小D每日学口语