gnupic: Re: [gnupic] gpsim / TMR0


Previous by date: 7 Feb 2005 16:09:13 +0000 Re: [gnupic] dsPIC support?, Major A
Next by date: 7 Feb 2005 16:09:13 +0000 Re: [gnupic] gplink segmentation fault, George M. Gallant
Previous in thread: 7 Feb 2005 16:09:13 +0000 Re: [gnupic] gpsim / TMR0, Scott Dattalo
Next in thread:

Subject: Re: [gnupic] gpsim / TMR0
From: Tobias Schlottke ####@####.####
Date: 7 Feb 2005 16:09:13 +0000
Message-Id: <Pine.LNX.4.58.0502071705510.3577@ws-toby.Netzwert.AG>

On Mon, 7 Feb 2005, Scott Dattalo wrote:

> Tobias,
>
> You need to set PSA to 1 in the OPTION register in order to get TMR0 to
> count instruction cycles. With it set to 0, TMR0 counts every other
> instruction. Also, remember that goto and skips are 2-cycle
> instructions.
>

Ahhhh... you're absolutely right. I missed the
different meaning of PS2..PS0 if using the prescaler
for TMR0 or WDT. In WDT mode it's 1:1.

Thank you very much!


Toby


Previous by date: 7 Feb 2005 16:09:13 +0000 Re: [gnupic] dsPIC support?, Major A
Next by date: 7 Feb 2005 16:09:13 +0000 Re: [gnupic] gplink segmentation fault, George M. Gallant
Previous in thread: 7 Feb 2005 16:09:13 +0000 Re: [gnupic] gpsim / TMR0, Scott Dattalo
Next in thread:


Powered by ezmlm-browse 0.20.