大家好,有没有哪位亲帮我解释一下程序,是关于PCF8576液晶显示的
SDA BIT P1.7
SCL BIT P1.6
MTD EQU 40H
MRD EQU 49H
PCF8576 EQU
72H
ACK
BIT
10H
SLA
DATA
50H
SUBA
DATA
51H
NUMBYTE
DATA
52H
ORG 0000H
LJMP MAIN
ORG 0100H
MAIN:
MOV SP,#70H
LCALL DELAY
MOV SLA,#PCF8576
MOV A,#48H
LCALL IWRBYTE
MOV SLA,#PCF8576
MOV A,#70H
LCALL IWRBYTE
MOV MTD,#0EDH
MOV MTD+1,#60H
MOV MTD+2,#0A7H
MOV MTD+3,#0E3H
MOV MTD+4,#0FEH
MOV MTD+5,#0F0H
MOV SLA,#PCF8576
MOV SUBA,#00H
MOV NUMBYTE,#06H
LCALL IWRNBYTE
LCALL DELAY
SJMP MAIN
DELAY:
MOV R7,#10
D0:MOV R6,#0
D1:MOV R5,#0
DJNZ R5,$
DJNZ R6,D1
DJNZ R7,D0
RET
$INCLUDE(VI2C_ASM.INC)
END |