我把这个程序下到
单片机中怎么没反应呀?
LOOP:SETB P1.0;
LCALL DELAY;
CLR R1.0;
LCALL SELAY;
AJMP LOOP;
DELAY:MOV R7,#250;
D1:MOV R6,#250;
D2:DJNZ R6 D2;
DJNZ R7 D1;
RET
END
这个程序没问题,可用于老的学习板,使发光管点亮,5型板要在前面加上:clr p1.4; p1改为p0,结果一样.
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |