IO EQU P1.0 SCLK EQU P1.1 RST EQU P1.2 RW BIT P1.6 RS BIT P1.7 E BIT P1.5 ORG 0000H JMP MAIN ORG 0030H MAIN: CALL INIT ;对LCD进行初始化 MOV A,#83H ;DDRAM的地址进行设置,选择从哪里开始显示 CALL WRC MOV A,#54H ;T的ASCII码 CALL WRD MOV A,#49H ;I的ASCII码 CALL WRD MOV A,#4DH ;M的ASCII码 CALL WRD MOV A,#45H ;E的ASCII码 CALL WRD MOV A,#3AH ;:的ASCII码 CALL WRD MOV A,#097H ;DDRAM的地址进行设置,选择从哪里开始显示 CALL WRC MOV A,#30H CALL WRD MOV A,#38H CALL WRD MOV A,#32H CALL WRD MOV A,#3AH CALL WRD MOV A,#4CH ;L的ASCII码 CALL WRD MOV A,#49H ;I的ASCII码
2022-06-19 18:03:20
6KB
文档资料