ORG 0000H SJMP MAIN ORG 000BH SJMP T0_ISR ORG 0030H MAIN:CLR A
MOV PTRD , #TABLE MOVC A ,@A+DPTR MOV P0 , A MOV TMOR,#01H MOV TH 0,#0D8H MOV Tl0,#0EFH SETB ET0 SETB EA SETB TR0 PD: CJNE R0,#100,$ INC DPTR CLR A
MOVC A ,@A+DPTR CJNE A ,#00H,AAA
MOVDPTR,#TABLE ; 如果花样数据完应重新循环 CLR A
MOVC A,@A+DPTR AAA: MOV P0,A MOV R0,#00H SJMP PD T0_ISR: CLR TR0
MOV TH0,#0D8H MOV TL0,#0EFH INC R0 SETB TR0 RETI
TABLE:DB 3FH,06H,5BH 4FH,66H,6DH 7DH 07h,7FH,6FH,00H
END
|