okfirst,you must define: sbit mybit=P2^6; second,you can write "mybit=1" in your main program,now,P2.6=1 发表时间:2001年12月10日11:14:00