文件名称:液晶屏的显示
文件大小:3KB
文件格式:TXT
更新时间:2016-11-22 07:11:20
液晶屏
Lcd_rs bit p3.5 Lcd_rw bit p3.6 Lcd_e bit p3.7 Lcd_databus equ p0 Lcd_busy bit p0.7 Lcd_databuff equ 30h Lcd_head equ 50h Lcd_last equ 6fh org 0 jmp main org 1bh jmp tclisr org 30h main:mov tmod,#00100000b mov th1,#0F3h mov tl1,#0F3h setb ea setb et1 setb tr1 mian0: mov c,p3.3 jnc lighton lcdini:mov Lcd_databuff,#38h lcall lcdwrite mov Lcd_databuff,#01h lcall lcdwrite mov Lcd_databuff,#0fh lcall lcdwrite mov Lcd_databuff,#06h lcall lcdwrite mov Lcd_databuff,#14h lcall lcdwrite jmp mian0