【文件属性】:
文件名称:液晶驱动源程序
文件大小:5KB
文件格式:C
更新时间:2016-03-22 05:20:46
液晶驱动
//LCD moudle is LM6020CW
//the crystal is 8M, Fosc=8.0Mhz
#include
#include
#include "LCD_Driver.h"
#include "16P1Y_Driver.h"
unsigned char ContrastLevel;
void Delayms(unsigned int delaytime)
{
unsigned int j=0;
for(;delaytime>0;delaytime--)
{
for(j=0;j<272;j++)
;
}
}
void LCDM_Init(void) //initial LCDM by the serial transferring mode
{
LCD_RES_SET(); // hardware reset LCD module
LCD_RES_CLR();
Delayms(100);
LCD_RES_SET();
Delayms(800);
ContrastLevel=0x1a; // default Contrast Level