本文包含原理图、PCB、源代码、封装库、中英文PDF等资源
您需要 登录 才可以下载或查看,没有账号?注册会员
×
SDA EQU P1.1
SCL EQU P1.0
ORG 0000H
AJMP MAIN
MAIN: MOV 47H,#32H
ACALL WR_24C02
WR_24C02:ACALL START
MOV A,#0A0H
NOP
NOP
NOP
ACALL SENTBYTE
NOP
NOP
MOV A,#00H
NOP
NOP
ACALL SENTBYTE
NOP
NOP
NOP
MOV A,47H
NOP
NOP
NOP
ACALL SENTBYTE
NOP
NOP
ACALL STOP
RET
SENTBYTE: MOV R0,#08H
SENT:RLC A
MOV SDA ,C
NOP
NOP
SETB SCL
NOP
NOP
NOP
CLR SCL
NOP
NOP
NOP
DJNZ R0 , SENT
NOP
NOP
SETB SDA
NOP
NOP
NOP
SETB SCL
NOP
NOP
REP: MOV C,SDA
JNC REP
NOP
CLR SCL
RET
START: SETB SDA
NOP
NOP
NOP
SETB SCL
NOP
NOP
NOP
CLR SDA
NOP
NOP
NOP
CLR SCL
RET
STOP: CLR SDA
NOP
NOP
SETB SCL
NOP
NOP
SETB SDA
NOP
NOP
CLR SCL
NOP
RET
END
求各位大侠帮忙看看吧!,这问题怎么解决???? |