Greetings Seb,

You're right of course, using the names would be more clear. When I
have some time, I will study them, re-code, and re-test, and revise
the entry in SVN. It may be a while though.

I will say, though, the configuration bits are very important, and
sometimes the poor user really should study the datasheet carefully.
But thanks for the reminder - I do get lazy now and then.

About the nop's, I will add some comments to explain that when
changing the oscillator's frequency drastically, I think it is safest
to add a little delay before trying to do any 'real work'.  In
retrospect, this might be a good place for me to use that nice inline
delay routine instead of the nops.

William


On Oct 16, 12:41 am, Sebastien Lelong <[email protected]>
wrote:
> Hi William,
>
> > +include 16f819
> > +pragma target fuses 0x3F30
>
> I think it's better to use named fuse, one by one
>
> > +pragma target clock 8_000_000
> > +
> > +OSCCON = 0x70
>
> If like 16f88, this is just about IRCF bits. You could:
>
>       OSCCON_IRCF = 0b_111   -- I don't know the correct value for you
>
> > +asm nop
> > +asm nop
>
> Why those "asm nop" ?
>
> Cheers,
> Seb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to