gnupic@linuxhacker.org
gnupic@linuxhacker.org
Hello, I would like to test weak pull-ups in gpsim. I have the version
0.20.14.
When I run "gpsim -pp16f877", in the pin window, pins are normally
inputs in L. But, if I suppose correctly, when I set RBPU = 0, I should
see inputs in H.
Is anywhere a problem with this or did I make a mistake somewhere ?
The test program compiled in gpasm-0.11.6 follows:
list p=16f877, st=ON, x=ON, n=0, f=INHX8M
; errorlevel -302
#include <p16f877.inc>
ORG 0000h
bsf STATUS, RP0
bcf OPTION_REG, NOT_RBPU
bcf STATUS, RP0
goto $
END
Another minor point is incorrectly named register (OPTION_REG/TMR0):
gpsim>
0x0000000000000001 16F877 0x0001 0x1381 bcf tmr0,7
read: 0xff from option
wrote: 0x7f to option
Is it possible to change it somewhere or is it expected behaviour ?
Thanks in advance,
Vaclav
gnupic@linuxhacker.org