51单片机,用一个开光控制一个小灯泡,小灯泡在亮之后30S熄灭。求个程序...答:LED EQU P1.1 ORG 0000H LJMP MAIN ORG 0030H MAIN:JB KEY,JNB KEY,CLR LED LCALL DELAY SETB LED SJMP MAIN DELAY:MOV R2,#30 DELAY1S:MOV R3,#20 DELAYMS:MOV R4,#100 DELAY1:MOV R5,#250 DJNZ R5,DJNZ R4,DELAY1 DJNZ R3,DELAYMS DJNZ R2,DELAY1S RET END ...