如:主程序中,MAIN: MOV TMOD,#10H 这“#10H” 是做什么的,这条指令是做什么?
谢谢帮忙的朋友,谢谢!
控制步进电机 正反转 程序如下:
ORG 0000H
AJMP MAIN
ORG 001BH
AJMP T1_IN
ORG 0080H
MAIN: MOV TMOD,#10H
MOV TH1,#0D8H
MOV TL1,#0F0H
MOV IE,#88H
MOV A,#00H
MOV R4,#04H
SETB TR1
L: JNB P3.0,L1
JNB P3.1,L2
SJMP L
L1: MOV DPTR,#TAB
SJMP L
L2: MOV DPTR,#TAB1
SJMP L
T1_IN: MOV TH1,#0D8H
MOV TL1,#0F0H
MOVC A,@A+DPTR
MOV P0,A
INC DPTR
CLR A
DJNZ R4,T1_END
MOV DPTR,#TAB
MOV DPTR,#TAB1
MOV R4,#04H
T1_END: RETI
TAB: DB 01H,04H,01H,04H
TAB1: DB 04H,01H,04H,01H
END