> Hi all,
>
> [SOME SNIPPED]
>
> I am now starting to program pics, and I have a series of doubts that I
> would like to resolve. If you know the answer, good. If you don't, fine,
> but if you would, please transfer this to the list translated to english.
>
> In Spain, I found two books about this topic, en them there appears a line
> which says:
> "when TMR0 is set by loading it with a value, two clock cycles are lost for
> synchronization."
>
> If I want to make a clock with a 1 MHz crystal, the frequency of
> instruction execution is 250,000 per second. To obtain a frequency of 1
> tenth of a second (sic), I should adjust the prescaler to 5(count up to
> 250) a later add a counter to count up to 100.
>
> The question is:
>
> Does one need to load TMR0 with 4 every two times to compensate for the two
> lost cycles?
> If ones adds (maybe he meant changes) the prescaler too are two cycles lost?
> Does the prescaler get reset (when changing TMR0, I presume)?
> Can you suggest to me more resources (about PICs)?
>
> I wrote to the authors of those books and they told me that they don't know!
>
> [CLOSING SNIPPED]
>
> > Jose Antonio Gracia
> >
> >
jgrane
spam_OUTcolon.net
> >
http://www.geocities.com/SiliconValley/Pines/7097
>