Hi James,
@ device PIC16F877A,HS_OSC
Speed costs something, nearly always, in this case it is energy, the config HS, XT . . . are essentially power settings for the oscillator, Bob correctly pointed you to the DEFINE OSC 16 which is supposed to always be in UPPERCASE as he has shown. What this does mostly, is allows PBP to set the timing of it's commands to the correct value so pause 1000 really is 1 second and so serial communications are sent at the programmed value.
BTW you must be using a version of PBP prior to the latest release of 2.60 as the word "loop" is now a RESERVED word, when you upgrade you will have to use some other method, something like MyLoop or MainLoop. Might be a good idea to start now so as to get out of the habit and make your programs compatible so when Later on you decide to reuse some old code it will compile without error. IMHO
HTH
JS
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks