OSCON setting for 18F4520
Hi all
Just a quick question regarding the OSCON setting in an 18F4520 PIC
Here are my settings currently
Code:
'Ocsillator selections here
OSCCON = $70 'Int CLK 8MHz
OSCTUNE.6 = 1 'PLL 4x
ADCON1= %00001111 '$0F = disable A/D converter
cmcon = 7
INTCON2.7 = 0 'switch pull-ups ON
'END of oscillator selections
'timer/oscillator defines
DEFINE OSC 32 '4x 8MHz
'END of timer/oscillator defines
I have read through the datasheet and undertstand how the internal clock works and the various clock settings and so forth...BUT ... what I can't make sense of or remember is why my OSCON value is $70 ..is this REVERSED HEX 70 as per the required register setting ?
So binary would be 1110000 ?
And if I wanted 4 MHz the setting would be $60 or 0110000 not so ?
In the datasheet there is a bit to set internal clock as stable or not, ie 0 or 1 ..does anyone have a recommendation for that one ?
Kind regards
Dennis