ä¸é¢æ¯åçç¨åºï¼çµè·¯æ¿æ¥éçµæºåLEDç¯ä¼äº®ä¸æ¹ï¼æäºç¯è¿æ¯ä¸äº®ï¼æ²¡æè·é©¬ç¯çææï¼ä¸ç¥éåªéæé®é¢ãããæ±æï¼ï¼ï¼
追ççµè·¯æ¿æ¥éçµæºåLEDç¯å ¨é¨äº®ï¼è¥ä¸æ¯ï¼é£çæ¥æé®é¢äº
追é®æ¥éçµæºLEDç¯æ²¡æå ¨äº®ï¼äº®ä¸é¨åï¼è¿æä¸é¨åæ¯ä¸äº®çï¼æå¤ä½å¼å ³ä¹æ²¡ååºããé«ä¸æ¸ æ¥åªéæé®é¢ãã
追çéæµçµé»å¤ªå°äºï¼æ¢æ500欧ç
ORG 0000H
LJMP SETUP
ORG 0030H
SETUP:CLR P1.0
LCALL DELAY
SETB P1.0
.
.
.
CLR P1.7
LCALL DELAY
SETB P1.7
CLR P0.0
LCALL DELAY
SETB P0.0
.
.
.
CLR P0.7
LCALL DELAY
SETB P0.7
CLR P2.0
LCALL DELAY
SETB P2.0
.
.
CLR P2.7
LCALL DELAY
SETB P2.7
DELAY:MOV R6,#80H
DEL1:MOV R7,#0
DEL:DJNZ R7,DEL
DJNZ R6,DEL1
RET
END