DELAY: D1:
TABLE:
LCALL DELAY SETB P1.1 MOV A,LED_3
MOVC A,@A+DPTR CLR P1.0 MOV P0,A
LCALL DELAY SETB P1.0 RET
MOV R6,#10 MOV R7,#250 DJNZ R7,$ DJNZ R6,D1 RET
;延时5ms
DB 3FH,06H,5BH,4FH,66H ;共阴数码管7段值 DB 6DH,7DH,07H,7FH,6FH END