欢迎访问ic37.com |
会员登录 免费注册
发布采购

NHD-0420DZ-FL-YBW 参数 Datasheet PDF下载

NHD-0420DZ-FL-YBW图片预览
型号: NHD-0420DZ-FL-YBW
PDF下载: 下载PDF文件 查看货源
内容描述: 字符液晶显示模块 [Character Liquid Crystal Display Module]
分类和应用:
文件页数/大小: 12 页 / 679 K
品牌: NEWHAVEN [ NEWHAVEN DISPLAY INTERNATIONAL, INC. ]
 浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第4页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第5页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第6页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第7页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第8页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第9页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第11页浏览型号NHD-0420DZ-FL-YBW的Datasheet PDF文件第12页  
Example Initialization Program  
8-bit Initialization:  
/**********************************************************/  
void command(char i)  
{
P1 = i;  
D_I =0;  
R_W =0;  
//put data on output Port  
//D/I=LOW : send instruction  
//R/W=LOW : Write  
E
= 1;  
Delay(1);  
= 0;  
//enable pulse width >= 300ns  
//Clock enable: falling edge  
E
}
/**********************************************************/  
void write(char i)  
{
P1 = i;  
D_I =1;  
R_W =0;  
//put data on output Port  
//D/I=LOW : send data  
//R/W=LOW : Write  
E
= 1;  
Delay(1);  
= 0;  
//enable pulse width >= 300ns  
//Clock enable: falling edge  
E
}
/**********************************************************/  
void init()  
{
E = 0;  
Delay(100);  
command(0x30);  
//Wait >15 msec after power is applied  
//command 0x30 = Wake up  
Delay(30);  
command(0x30);  
Delay(10);  
command(0x30);  
Delay(10);  
command(0x38);  
command(0x10);  
command(0x0c);  
command(0x06);  
//must wait 5ms, busy flag not available  
//command 0x30 = Wake up #2  
//must wait 160us, busy flag not available  
//command 0x30 = Wake up #3  
//must wait 160us, busy flag not available  
//Function set: 8-bit/2-line  
//Set cursor  
//Display ON; Cursor ON  
//Entry mode set  
}
/**********************************************************/  
[10]