DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

JHD164A 데이터 시트보기 (PDF) - Unspecified

부품명
상세내역
제조사
JHD164A Datasheet PDF : 10 Pages
1 2 3 4 5 6 7 8 9 10
}
void soft_20ms()/***********12MHZ 提供20MS 软件延时************/
{ Soft_10ms();
soft_10ms();
}
void hard_10ms(unsigned int delaytime) /*基于10MS 的硬件延时*/
{ sys10mscounter=delaytime;
while(sys10mscounter);
}
unsigned char data lcdcounter;
bit lcdusing1,lcdusing2;
bit lcd_checkbusy()/*检查LCD 忙*/
{ register lcdstate;
dc=0;
/*dc=1为数据,=0 为命令.*/
rw=1;
/*rw=1为读,=0 为写.*/
cs=1;
/*cs=1选通.*/
soft_nop();
Lcdstate=lcdbus;
cs=0;
return((bit)(lcdstate&0x80));
}
void lcd_wrcmd(unsigned char lcdcmd) /*写LCD 命令*/
{ lcdusing1=1;
while(lcd_checkbusy());
lcdbus=lcdcmd;
Dc=0;
/*dc=1为数据,=0 为命令.*/
Rw=0;
/*rw=1为读,=0 为写.*/
Cs=1;
/*cs=1选通.*/
soft_nop();
cs=0;
lcdbus=0xff;
lcdusing1=0;
}
void lcd_moveto(char position) /*移动光标到指定位.0-79*/
{ register cmd=0x80;
lcdcounter=position;
if (position > 59)
position += 0x18;
else

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]