Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Data Sheet

Product codes
PIC18F87K22-I/PTRSL
Page of 550
PIC18F87K22 FAMILY
DS39960D-page 46
 2009-2011 Microchip Technology Inc.
  
bit 2
HFIOFS:
 INTOSC Frequency Stable bit 
1
 = HF-INTOSC oscillator frequency is stable
0
 = HF-INTOSC oscillator frequency is not stable
bit 1-0
SCS<1:0>:
 System Clock Select bits
(
1x
 = Internal oscillator block (LF-INTOSC, MF-INTOSC or HF-INTOSC)
01
 = SOSC oscillator
00
 = Default primary oscillator (OSC1/OSC2 or HF-INTOSC with or without PLL; defined by the
FOSC<3:0> Configuration bits, CONFIG1H<3:0>.)
REGISTER 3-1:
OSCCON: OSCILLATOR CONTROL REGISTER
(
1
)
 (CONTINUED)
Note 1:
The Reset state depends on the state of the IESO Configuration bit (CONFIG1H<7>).
2:
Modifying these bits will cause an immediate clock frequency switch if the internal oscillator is providing 
the device clocks.
3:
Source selected by the INTSRC bit (OSCTUNE<7>).
4:
Modifying these bits will cause an immediate clock source switch.
5:
INTSRC = OSCTUNE<7> and MFIOSEL = OSCCON2<0>.
6:
Lowest power option for an internal source.
REGISTER 3-2:
OSCCON2: OSCILLATOR CONTROL REGISTER 2
U-0
R-0
U-0
U-0
R/W-0
U-0
R-x
R/W-0
SOSCRUN
SOSCGO
MFIOFS
MFIOSEL
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
Unimplemented: 
Read as ‘0’
bit 6
SOSCRUN:
 SOSC Run Status bit
1
 = System clock comes from a secondary SOSC
0
 = System clock comes from an oscillator other than SOSC
bit 5-4
Unimplemented: 
Read as ‘0’
bit 3
SOSCGO:
 Oscillator Start Control bit
1
 = Oscillator is running, even if no other sources are requesting it
0
 = Oscillator is shut off if no other sources are requesting it (When the SOSC is selected to run from
a digital clock input, rather than an external crystal, this bit has no effect.)
bit 2
Unimplemented: 
Read as ‘0’
bit 1
MFIOFS:
 MF-INTOSC Frequency Stable bit
1
 = MF-INTOSC is stable
0
 = MF-INTOSC is not stable
bit 0
MFIOSEL:
 MF-INTOSC Select bit
1
 = MF-INTOSC is used in place of HF-INTOSC frequencies of 500 kHz, 250 kHz and 31.25 kHz
0
 = MF-INTOSC is not used