gnupic: gpsim 0.20.14 TMR1H strangeness


Previous by date: 8 Aug 2002 17:27:46 -0000 Re: Gpsim CVS, Scott Dattalo
Next by date: 8 Aug 2002 17:27:46 -0000 GPSIM 0.20.14 and PIC18C452, Scott Gordon
Previous in thread:
Next in thread:

Subject: gpsim 0.20.14 TMR1H strangeness
From: James Carter ####@####.####
Date: 8 Aug 2002 17:27:46 -0000
Message-Id: <1028826427.1029.129.camel@pc004>

hi,

i'm using gpsim to simulate a pic16f627, and i'm getting strange
behaviour when trying to write to TMR1H from both my program code and
the command line.

i can write to TMR1L at all times, but i can only write to TMR1H when
the timer is enabled in T1CON:

gpsim> x T1CON
T1CON [0x10] = 0x0
gpsim> x TMR1H
TMR1H [0xf] = 0x0
gpsim> x TMR1H 0xff
gpsim> x TMR1H
TMR1H [0xf] = 0x0
gpsim> x T1CON 0x1
gpsim> x TMR1H
TMR1H [0xf] = 0x0
gpsim> x TMR1H 0xff
gpsim> x TMR1H
TMR1H [0xf] = 0xff

is this correct behaviour? the f627 datasheet does not seem to indicate
so.

thanks.


-- 
 J.F.Carter                       http://www.jfc.org.uk/


Previous by date: 8 Aug 2002 17:27:46 -0000 Re: Gpsim CVS, Scott Dattalo
Next by date: 8 Aug 2002 17:27:46 -0000 GPSIM 0.20.14 and PIC18C452, Scott Gordon
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.