ORG 0000H LJMP START ORG 0040H START: MOV R7,#04H ; MOV R6,#0FEH ; MOV DPTR, #TAB ;
LOOP: MOV A,R7 MOVC A,@A+DPTR; MOV P2,#48H ; MOVX @R0,A; MOV A,R6; MOV P2,#88H; MOVX @R0,A; RL A; MOV R6,A; LCALL DELAY; DELAY: MOV R5,#0AH; DJNZ R5,$ DJNZ R7,LOOP; SJMP START
TAB:DB 00H,66H,4FH,5BH,06H;
P0接的是2个74HC573,他们的LE分别接P2.7,P2.6;为什么不能把74hc573当作外部RAM而进行数据赋值呢?????? |