CS25 BIT P1.0
DO BIT P1.3
DI BIT P1.2
CLK BIT P1.1
CALL ADCJ
SJMP $
ADCJ: MOV R0,#40H
MOV R1,#41H
MOV R3,#5H
DCCZ25:MOV A,#80H
LCALL RD_AD
LCALL RD_AD
INC R0
INC R0
INC R1
INC R1
DJNZ R3,DCCZ25
RET
RD_AD:MOV @R0,#00H
MOV @R1,#00H
CLR CLK
SETB CS25
CLR CS25
MOV R2,#08H
LOP1: MOV C,DO
RLC A
MOV DI,C
SETB CLK
CLR CLK
DJNZ R2,LOP1
SWAP A
XCHD A,@R0
SWAP A
MOV R2,#04H
LOP2: MOV C,D0
RLC A
SETB CLK
CLR CLK
DJNZ R2,LOP2
MOV @R1,A
SETB CS25
RET
其中两遍 LCALL RD_AD什么意思?
一周热门 更多>