如何利用mcs-51单片机的中断定时程序设计一个倒计时程序答:Second EQU 30H ORG 0 START: MOV Second,#60H NEXT: MOV A,Second MOV B,#10 DIV AB MOV DPTR,#TABLE MOVC A,@A+DPTR MOV P0,A MOV A,B MOVC A,@A+DPTR MOV P2,A LCALL DELY1S DEC Second MOV A,Second CJNE A,#00,NEXT LJMP START DELY1S: MOV R5,#100 D2: MOV R6,#...
用单片机p1口控制8个发光二极管,采用共阳极链接方式,先编程实现下列功能...答:ORG0000H LJMPMAIN MAIN:MOVp1,#0FEH MOVR7,#0FEH LCALLDELAY MOVA,R7 RLA MOVR7,A MOV80h,A JMPMAIN_LP ;=== DELAY:MOVR0,#0FFH MOVR1,#0FFH DLY_LP:NOP NOP DJNZR0,DLY_LP MOVR0,#0FFH DJNZR1,DLY_LP RET END