跪求大神们指点51单片机点阵动态显示编程。

2019-07-16 05:41发布

SJJS EQU 30H
HJS  EQU 31H
PYL  EQU 32H
ORG 0000H
LJMP START
ORG 000BH
LJMP tiME_INT
ORG 0100H
START:
MOV  TMOD,#01H
MOV  TH0,#0F0H
MOV  TL0,#60H
SETB ET0
CLR  PT0
SETB EA
SETB TR0
SJMP $
ORG 0200H
TIME_INT:
MOV  TH0,#0F0H
MOV  TL0,#60H
MOV  DPTR,#TAB1
MOV  A,HJS
MOVC A,@A+DPTR
MOV  P2,A
MOV  A,PYL
MOV  B,#8
MUL  AB
ADD  A,HJS
MOV  DPTR,#TAB
MOVC A,@A+DPTR
MOV  P1,A
INC  HJS
MOV  A,HJS
CJNE A,#8,NEXT
MOV  HJS,#00H
NEXT: INC SJJS
MOV  A,SJJS
CJNE A,#100,LP
MOV SJJS,#00H
INC  PYL
MOV  A,PYL
CJNE A,128,LP
MOV  PYL,#00H
LP:RETI
ORG 0300H

TAB1:DB 0FEH,0FDH,0FBH,0F7H,0EFH,0DFH,0BFH,07FH
TAB:
DB 0C3H,0BDH,04H,3CH,20H,3CH,81H,0C3H
DB 0C3H,85H,04H,3CH,44H,44H,81H,0C3H
DB 0C3H,0BDH,04H,3CH,04H,3CH,81H,0C3H
DB 0C3H,0BDH,20H,3CH,04H,3CH,81H,0C3H
DB 0C3H,99H,18H,18H,18H,18H,81H,0C3H
DB 00H,00H,0F7H,95H,0B5H,85H,0F7H,00H
DB 3CH,18H,18H,18H,18H,18H,18H,3CH
DB 18H,24H,42H,81H,81H,99H,66H,00H
DB 3CH,42H,42H,42H,42H,42H,42H,42H

DB 3CH,00H,00H,00H,00H,00H,00H,00H
DB 24H,3CH,00H,00H,00H,00H,00H,00H
DB 3CH,24H,3CH,00H,00H,00H,00H,00H
DB 24H,3CH,24H,3CH,00H,00H,00H,00H
DB 24H,24H,3CH,24H,3CH,00H,00H,00H
DB 0FFH,24H,3CH,24H,3CH,00H,00H,00H
DB 24H,0FFH,24H,3CH,24H,3CH,00H,00H
DB 24H,24H,0FFH,24H,3CH,24H,3CH,00H
DB 44H,24H,24H,0FFH,24H,3CH,24H,3CH

DB 00H,00H,00H,01H,00H,00H,00H,00H  
DB 01H,00H,00H,03H,00H,00H,00H,00H
DB 02H,01H,01H,07H,01H,01H,01H,01H
DB 04H,02H,02H,00FH,02H,03H,02H,03H
DB 08H,04H,04H,1FH,04H,07H,04H,07H
DB 11H,09H,09H,3FH,09H,0FH,09H,0FH
DB 22H,12H,12H,7FH,12H,1EH,12H,1EH
DB 84H,24H,24H,0FFH,24H,3CH,24H,3CH

DB 00H,00H,00H,00H,00H,00H,00H,44H
DB 00H,00H,00H,00H,00H,00H,44H,24H
DB 00H,00H,00H,00H,00H,44H,24H,24H
DB 00H,00H,00H,00H,44H,24H,24H,0FFH
DB 00H,00H,00H,44H,24H,24H,0FFH,24H
DB 00H,00H,44H,24H,24H,0FFH,24H,3CH
DB 00H,44H,24H,24H,0FFH,24H,3CH,24H
DB 44H,24H,24H,0FFH,24H,3CH,24H,3CH

DB 00H,00H,00H,80H,00H,00H,00H,00H
DB 00H,00H,00H,0C0H,00H,00H,00H,00H
DB 80H,80H,80H,0E0H,80H,80H,80H,80H
DB 40H,40H,40H,0F0H,40H,0C0H,40H,40H
DB 20H,20H,20H,0F8H,20H,0E0H,20H,0E0H
DB 10H,90H,90H,0FCH,90H,0F0H,90H,0F0H
DB 88H,48H,48H,0FEH,48H,78H,48H,78H
DB 44H,24H,24H,0FFH,24H,3CH,24H,3CH
END
为什么最后两个字没显示出来。又跳回第一个字重新循环了?是不是程序有问题么?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。