Looking through the 16F690 datasheet for anything I might have missed, I found this little nugget:
The output of the 8 MHz HFINTOSC and 31 kHz
LFINTOSC connects to a postscaler and multiplexer
(see Figure 3-1). The Internal Oscillator Frequency
select bits, IRCF<2:0> (OSCCON<6:4>), select the
frequency output of the internal oscillators. One of eight
frequencies can be selected via software.
So, it seems like in order to make sure that the PIC is running at 8MHz, I should be telling it to use HFINTOSC and not LFINTOSC, and according to the diagram mentioned I should be setting the frequency select bits to 111.
How do I go about doing that in PicBasic? Is it actually necessary to do so, or does the "intrc_osc_noclkout" that's in the include file for this chip have me covered already? I've also found mentions of putting "OSCCON = $70" in the code to set 8MHz, but I can't seem to find any real documentation on it. Is this controlling the frequency select bits? If so, do I still need to specify HFINTOSC somewhere?
Sorry for the deluge of questions...
Bookmarks