稍稍做了一些改動:
/******************溫度數碼顯示模組*********************/
DISP1:
MOV R1, #70H
MOV R0, #74H
MOV R5, #0FEH
PLAY:
MOV DPTR, #TAB
MOV P2, #0FFH ;原來是 P1
MOV A, @R1
MOVC A, @A+DPTR
MOV P1, A
MOV A, @R0
MOV P0, A
MOV P2, R5
MOV A, R5
JB ACC.1, LOOP1
CLR P1.7
CLR P0.7
LOOP1:
CALL DL1MS
INC R1
INC R0
JNB ACC.3, ENDOUT
RL A
MOV R5, A
MOV A, 73H
......
稍稍做了一些改動:
/******************溫度數碼顯示模組*********************/
DISP1:
MOV R1, #70H
MOV R0, #74H
MOV R5, #0FEH
PLAY:
MOV DPTR, #TAB
MOV P2, #0FFH ;原來是 P1
MOV A, @R1
MOVC A, @A+DPTR
MOV P1, A
MOV A, @R0
MOVC A, @A+DPTR
MOV P0, A
MOV P2, R5
MOV A, R5
JB ACC.1, LOOP1
CLR P1.7
CLR P0.7
LOOP1:
CALL DL1MS
INC R1
INC R0
JNB ACC.3, ENDOUT
RL A
MOV R5, A
MOV A, 73H
......