欢迎来到天天文库
浏览记录
ID:50811786
大小:51.00 KB
页数:3页
时间:2020-03-14
《LCD1602汇编显示程序.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、;1602显示ABCLCD_RSEQUP2.5LCD_RWEQUP2.6LCD_ENEQUP2.7LCD_DATAEQUP3;-----------------ORG0000HJMPSTARTORG0030H;-----------------LCD:CALLLCD_INITMOVA,#80HCALLLCD_WCMDMOVA,#'A'CALLLCD_WDATAMOVA,#'B'CALLLCD_WDATAMOVA,#'C'CALLLCD_WDATAAJMP$;----------------DELAY5MS:MOVR6,#10DL1:DJNZR7,$DJNZR6,DL1RET;--
2、--------------LCD_INIT:CALLDELAY5MSMOVA,#38HCALLLCD_WCMDCALLDELAY5MSCALLDELAY5MSMOVA,#06HCALLLCD_WCMDMOVA,#01HCALLLCD_WCMDMOVA,#0CHCALLLCD_WCMDRET;=====================================LCD_WCMD:CALLCHECKBUSYCLRLCD_RSJMPW_LCD;----------------LCD_WDATA:CALLCHECKBUSYSETBLCD_RSW_LCD:CLRLCD_RWMOVLC
3、D_DATA,ASETBLCD_ENNOPCLRLCD_ENRET;----------------CHECKBUSY:PUSHACCMOVLCD_DATA,#255CLRLCD_RSSETBLCD_RWBUSYLOOP:SETBLCD_ENNOPMOVA,LCD_DATACLRLCD_ENJBACC.7,BUSYLOOPPOPACCRET;=====================================END
此文档下载收益归作者所有