发表于:2008/9/16 17:50:00
#0楼
我遇到了AT89C51和串行EPPROM AT24C02B程序问题,不知它的意义,请高手指点。我的信箱是ad9988@sxbctv.com 多谢了!
程序是这样的:
ORG 0000H
L0: ADDC A, R4
XRL A, R0
MOV A, #6DH
XRL A, R4
ADDC A, R6
INC R5
INC R2
ADDC A, R4
XRL A, R0
XRL A, 61H
XRL A, #3EH
INC R5
INC R2
ADDC A, R4
XRL A, R5
XRL A, 74H
AJMP L7
DB 68H, 74H, 74H, 70H, 2DH
L4: XRL A, 71H
MOV 69H, #76H
ADDC A, R5
RET
DB 43H
L5: XRL A, R7
XRL A, R6
MOV A, #65H
XRL A, R6
MOV A, #2DH
ANL A, #79H
END
程序是这样的:
ORG 0000H
L0: ADDC A, R4
XRL A, R0
MOV A, #6DH
XRL A, R4
ADDC A, R6
INC R5
INC R2
ADDC A, R4
XRL A, R0
XRL A, 61H
XRL A, #3EH
INC R5
INC R2
ADDC A, R4
XRL A, R5
XRL A, 74H
AJMP L7
DB 68H, 74H, 74H, 70H, 2DH
L4: XRL A, 71H
MOV 69H, #76H
ADDC A, R5
RET
DB 43H
L5: XRL A, R7
XRL A, R6
MOV A, #65H
XRL A, R6
MOV A, #2DH
ANL A, #79H
END