是的,今天刚试了一下。如果把无效位都改成0,就不会有问题了。
但是比较奇怪,刚写了一段测试程序,来测试编程器。程序如下:
list p=16f876
#include<p16f876a.inc>
__config 0x3f3b
org 000h
nop
goto main
main
bcf status,rp0
bcf status,rp1
clrf portb
bsf status,rp0
bcf status,rp1
clrf trisb
bcf status,rp0
bcf status,rp1
loop
bsf portb,7
nop
nop
bcf portb,7
nop
nop
goto loop
end
结果没反应,不知道是编程器问题还是我的片子有问题。