gnupic: Question regarding gpsim
Subject:
Question regarding gpsim
From:
Tobias Schlottke ####@####.####
Date:
20 Oct 2002 08:49:17 -0000
Message-Id: <Pine.LNX.4.31.0210201038410.25247-100000@lemorio.netcs.com>
Hi,
I am using gpsim 0.20.14. I have some problems
with understanding of stimuli.
I do the following:
Startup gpsim with command file:
gpsim -c prog.stc
prog.stc contains the following:
#------------------------------------------
processor pic16f84 fred
load s prog.cod
node n1
stimulus asy initial_state 1 name m_in end
attach n1 m_in porta0 porta1 porta2
#-----------------------------------------
Then I do a dump.
What I expect is portb equal 07,
because the lower three bits are set.
But I get 00.
The same if I load the instruction file
from the cli with
load c prog.stc
If I execute every instruction manually
into the cli, I get the expected result.
What do I do wrong?
Thanks a lot,
Toby