我把這個程序下到
單片機中怎么沒反應呀?
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.raoushi.com/bbs/) | Powered by Discuz! X3.1 |