RELAY BIT P1.0
ORG 0000H
LOOP0:
SETB RELAY
LCALL DELAY
CLR RELAY
LCALL DELAY
SJMP LOOP0
DELAY: ;延时1S
SETB RS1
MOV R2,#04H
DELAY2:
MOV R1,#150
DELAY1:
MOV R0,#250
DELAY0:
NOP
NOP
DJNZ R0,DELAY0
DJNZ R1,DELAY1
DJNZ R2,DELAY2
CLR RS1
RET
END
51单片机STC89C52 继电器
最新推荐文章于 2023-06-09 22:52:15 发布