START: MOV TMOD,#10H;设置T1为模式1,定时器方式
PT2: SETB P1.0
CLR TR1
MOV TH1,#0F4H;赋初值;62536
MOV TL1,#48H
SETB TR1
LOOP1:JBC TF1,PT1
SJMP LOOP1
PT1: CLR P1,0
CLR TR1
MOV TH1,#0F4H;赋初值,62536
MOV TL1,#48H
SETB TR1
LOOP2:JBC TF1,PT2
SJMP LOOP2
END