johnny01hk
Junior Member level 1
I can build it to hex file.
But can not burn it on IC.
The Program just have same bin be in line to get Logic high and have some time to delay.
-------------------------------
ORG 00H
JMP START
ORG 100h
START:
SETB P2.0
LCALL Delay
SETB P2.1
LCALL Delay
SETB P2.2
LCALL Delay
SETB P2.3
LCALL Delay
SETB P2.4
LCALL Delay
SETB P2.5
LCALL Delay
JMP START
; = = = = = = = = = = = = = =
Delay:
MOV R2, #50 ;~1s
S1:
MOV R3, #200
S2:
MOV R4, #200
DJNZ R4, $
DJNZ R3, S2
DJNZ R2, S1
RET
END
But can not burn it on IC.
The Program just have same bin be in line to get Logic high and have some time to delay.
-------------------------------
ORG 00H
JMP START
ORG 100h
START:
SETB P2.0
LCALL Delay
SETB P2.1
LCALL Delay
SETB P2.2
LCALL Delay
SETB P2.3
LCALL Delay
SETB P2.4
LCALL Delay
SETB P2.5
LCALL Delay
JMP START
; = = = = = = = = = = = = = =
Delay:
MOV R2, #50 ;~1s
S1:
MOV R3, #200
S2:
MOV R4, #200
DJNZ R4, $
DJNZ R3, S2
DJNZ R2, S1
RET
END