ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2024/11/13 3:53:29ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£
DJNZ R5,DELAY1 RET
;**********************************************8 INT:
PUSH ACC PUSH DPH PUSH DPL PUSH PSW SJMP $ CLR IE0 POP PSW POP DPL POP DPH POP ACC
RETI
;***************************************************** MAIN:
MOV SP,#20H MOV P3,#0FFH SETB EA SETB EX0 SETB IT0
MOV COMMAND,#90H LCALL WRITE_COMMAND LCALL MS40
MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA
MOV COMMAND,#40H ;Îı¾ÏÔʾÇøÊ×µØÖ·ÉèÖà LCALL WRITE_COMMAND ; MOV DATA2,#20H MOV DATA2,#10H LCALL WRITE_DATA MOV DATA2,#00H
LCALL WRITE_DATA
MOV COMMAND,#41H ;Îı¾ÏÔʾÇø¿í¶ÈÉèÖà LCALL WRITE_COMMAND
MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#08H LCALL WRITE_DATA
MOV COMMAND,#42H ;ͼÐÎÏÔʾÇøÊ×µØÖ·ÉèÖà LCALL WRITE_COMMAND
MOV DATA2,#10H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA
MOV COMMAND,#43H ;ͼÐÎÏÔʾ¿í¶ÈÉèÖà LCALL WRITE_COMMAND
; MOV COMMAND,#0A1H ;¹â±êÐÎ×´ ; LCALL WRITE_COMMAND
MOV COMMAND,#80H ;Âß¼»ò,ÓÃCGROM LCALL WRITE_COMMAND
MOV COMMAND,#9CH ; Æô¶¯Îı¾.ͼÐÎ.¹â±êÏÔʾ LCALL WRITE_COMMAND
;***************************************888 ;ÏÔʾȫÆÁ
MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA MOV COMMAND,#24H LCALL WRITE_COMMAND MOV R3,#00H
MOV COMMAND,#0B0H LCALL WRITE_COMMAND MOV R4,#20H YY1:
NOP
YY: MOV A,#0FFH MOV DATA2,A
LCALL WRITE_DATA DJNZ R3,YY DJNZ R4,YY1
MOV COMMAND,#0B2H LCALL WRITE_COMMAND LCALL MS40
;******************************************* CLEAR1:
MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA
MOV COMMAND,#24H ;ÏÔʾµØÖ·ÉèÖà LCALL WRITE_COMMAND MOV R3,#00H MOV R4,#20H
MOV COMMAND,#0B0H ;×Ô¶¯Ð´Èë LCALL WRITE_COMMAND M1:
NOP
M: MOV A,#00H MOV DATA2,A
LCALL WRITE_DATA DJNZ R3,M DJNZ R4,M1
MOV COMMAND,#0B2H ;ÍƳö×Ô¶¯Ð´Èë LCALL WRITE_COMMAND
; ****************************************
MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA
MOV COMMAND,#24H ;ÏÔʾµØÖ·ÉèÖà LCALL WRITE_COMMAND
MOV COMMAND,#9CH LCALL WRITE_COMMAND MOV DATA2,#05H LCALL WRITE_DATA MOV DATA2,#03H LCALL WRITE_DATA MOV COMMAND,#21H LCALL WRITE_COMMAND
;ÏÔʾ×Ö¿â
MOV R3,#00H MOV R4,#7FH
MOV COMMAND,#0B0H ;×Ô¶¯Ð´Èë LCALL WRITE_COMMAND
MOV A,#0FFH ;дÈëÓ¢ÎÄ×Ö¿â L: INC A
MOV DATA2,A
LCALL WRITE_DATA DJNZ R4,L
MOV COMMAND,#0B2H ;Í˳ö×Ô¶¯Ð´Èë LCALL WRITE_COMMAND LCALL DELAY
;###########################################
; дCGROM 80H
MOV DATA2,#03H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA MOV COMMAND,#22H LCALL WRITE_COMMAND
MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#1CH LCALL WRITE_DATA MOV COMMAND,#24H LCALL WRITE_COMMAND
MOV R2,#2 MOV R0,#0FFH
MOV COMMAND,#0B0H LCALL WRITE_COMMAND MOV DPTR,#TEST LL2: NOP
LL: CLR A
MOVC A, @A+DPTR MOV DATA2,A
LCALL WRITE_DATA INC DPTR SETB P1.5 DJNZ R0,LL
DJNZ R2,LL2
MOV DATA2,#0B2H LCALL WRITE_DATA
;############################################# MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA
MOV COMMAND,#24H LCALL WRITE_COMMAND
MOV COMMAND,#0B0H LCALL WRITE_COMMAND MOV R2,#2 TIAO1: MOV R1,#255
MMM: MOV DATA2,#80H LCALL WRITE_DATA DJNZ R1,MMM DJNZ R2,TIAO1
MOV COMMAND,#0B2H LCALL WRITE_COMMAND LCALL DELAY
MOV COMMAND,#0B0H LCALL WRITE_COMMAND MOV DATA2,#00H LCALL WRITE_DATA MOV DATA2,#00H LCALL WRITE_DATA
MOV COMMAND,#24H LCALL WRITE_COMMAND MOV R2,#2 TIAO2: MOV R1,#255
MMM1: MOV DATA2,#81H LCALL WRITE_DATA DJNZ R1,MMM1 DJNZ R2,TIAO2
MOV COMMAND,#0B2H LCALL WRITE_COMMAND
;ÏÔʾµØÖ·ÉèÖÀ;ÏÔʾµØÖ·ÉèÖÀ