gnupic: hiccoughs on the learning curve.


Previous by date: 28 Sep 2002 12:45:56 -0000 Re: hiccoughs on the learning curve., Declan Moriarty
Next by date: 28 Sep 2002 12:45:56 -0000 HEX file output & more, Rick Mann
Previous in thread: 28 Sep 2002 12:45:56 -0000 Re: hiccoughs on the learning curve., Declan Moriarty
Next in thread: 28 Sep 2002 12:45:56 -0000 Re: hiccoughs on the learning curve., Declan Moriarty

Subject: Re: hiccoughs on the learning curve.
From: Ralf Forsberg ####@####.####
Date: 28 Sep 2002 12:45:56 -0000
Message-Id: <20020928124320.GA1942@home.se>

On Fri, Sep 27, 2002 at 06:40:07PM +0100, Declan Moriarty wrote:
> Was it Ralf Forsberg who wrote on Friday 27 September 2002 12:34:
> > On Thu, Sep 26, 2002 at 04:24:20PM +0100, Declan Moriarty wrote:
> > > 3. I gather one should write some sort of description file for gpsim with
> > > configuration data (e.g. cpu speed, wdt settings, even maybe a
> > > configuration word). The format 'is similar to gdb' the manual says. Has
> > > anyone got a url for such a thing, or can someone send me theirs, so I
> > > can hack it to my own tastes? I'm not a programmer, and know nothing
> > > about gdb.
> > You can use the 'frequency' command to get the speed.
> > gpsim> frequency
> > Clock frequency: 4 MHz.
> >
> > (The stopwatch window (in cvs only, I believe) also displays the
> > frequency.) You can type 'help' for a list of commands, or help 'command' 
> > for more detailed help.
> 
> I opened the docs, and chased through with Acroread (for linux of course) as 
> it's search is good. I failed to find that one. Might be me.

What did you not find? I see the frequency command is not in the docs,
but try entering 'help frequency' at the gpsim prompt.

gpsim> help frequency

frequency [value]
        This command sets the clock frequency. By default gpsim uses 4 MHz
        as clock. The clock frequency is used to compute time in seconds.
        Use this command to adjust this value.
        If no value is provided this command prints the current clock.
        Note that PICs have an instruction clock that's a forth of the
        external clock. This value is the external clock.

If you want to change the frequency more permanently you can create 
a .stc file that contains the command.

> > > Put a window for the configuration on a wish list of future features.
> > I tend to lose my notes surprisingly quick. You can put feature requests
> > here: http://sourceforge.net/projects/gpsim
> > (You could add an entry for the TMR1-bug there too.)
> 
> I did. I added a few things. Although with a (seemingly immutable) watchdog 
> at 0.018 secs, a crystal speed of 32.768 khz is going to reset fairly quick 
> :-(

You can change the watchdog period by modifying the option register.

Or if you want, you can disable the watchdog in the configuration word.
	__config _wdt_off
in your .asm file.

 / Ralf


Previous by date: 28 Sep 2002 12:45:56 -0000 Re: hiccoughs on the learning curve., Declan Moriarty
Next by date: 28 Sep 2002 12:45:56 -0000 HEX file output & more, Rick Mann
Previous in thread: 28 Sep 2002 12:45:56 -0000 Re: hiccoughs on the learning curve., Declan Moriarty
Next in thread: 28 Sep 2002 12:45:56 -0000 Re: hiccoughs on the learning curve., Declan Moriarty


Powered by ezmlm-browse 0.20.