发表于:2004/10/29 12:55:00
#0楼
(1)
LD C0003
OR P-FIRST-CYCLE
MOV #0001
201
LD 0.01
ANDNOT T0005
TIM 0005
#10
LD 0.01
OUT TR0
AND T0005
ROL 201
LD TR0
AND C0003
CNT 0003
#6
LD 201.00
OUT 5.01
LD 201.01
OUT 5.02
LD 201.02
OUT 5.03
LD 201.03
OUT 5.04
LD 201.04
OUT 5.05
LD 201.05
OUT 5.06
END
(2)
LD C0003
OR P-FIRST-CYCLE
MOV #0001
201
LD 0.01
OUT TR0
AND P_1S
ROL 201
LD TR0
AND C0003
CNT 0003
#6
LD 201.00
OUT 5.01
LD 201.01
OUT 5.02
LD 201.02
OUT 5.03
LD 201.03
OUT 5.04
LD 201.04
OUT 5.05
LD 201.05
OUT 5.06
END
六个灯轮显1秒,不断循环.那个正确?错的怎么改?谢谢!
LD C0003
OR P-FIRST-CYCLE
MOV #0001
201
LD 0.01
ANDNOT T0005
TIM 0005
#10
LD 0.01
OUT TR0
AND T0005
ROL 201
LD TR0
AND C0003
CNT 0003
#6
LD 201.00
OUT 5.01
LD 201.01
OUT 5.02
LD 201.02
OUT 5.03
LD 201.03
OUT 5.04
LD 201.04
OUT 5.05
LD 201.05
OUT 5.06
END
(2)
LD C0003
OR P-FIRST-CYCLE
MOV #0001
201
LD 0.01
OUT TR0
AND P_1S
ROL 201
LD TR0
AND C0003
CNT 0003
#6
LD 201.00
OUT 5.01
LD 201.01
OUT 5.02
LD 201.02
OUT 5.03
LD 201.03
OUT 5.04
LD 201.04
OUT 5.05
LD 201.05
OUT 5.06
END
六个灯轮显1秒,不断循环.那个正确?错的怎么改?谢谢!
[此贴子已经被作者于2004-10-29 13:16:25编辑过]