求解,单片机编程题。谢谢
1个回答
展开全部
2.
ORG 0000H
JNB P1.0, GUAN
JNB P1.1, GUAN
CLR P3.0 ;点亮LED
SJMP 0000H
GUAN:
SETB P3.0 ;关闭LED
SJMP 0000
END
================================
3.
ORG 0000H
MOV PCON, #00H
MOV SCON, #50H
MOV TMOD, #20H
MOV TH1, #0FDH
MOV TL1, #0FDH
SETB TR1
MOV R0, #30H
MOV R2, #10
LP:
MOV SBUF, @R0
JNB TI, $
CLR TI
INC R0
DJNZ R2, LP
SJMP $
END
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询