English
Language : 

PIC16LF18854 Datasheet, PDF (120/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
6.5 Register Definitions: Oscillator Control
REGISTER 6-1: OSCCON1: OSCILLATOR CONTROL REGISTER1
U-0
—
bit 7
R/W-f/f(1)
R/W-f/f(1)
R/W-f/f(1)
NOSC<2:0>(2,3)
R/W-q/q
R/W-q/q
R/W-q/q
NDIV<3:0>(2,3,4)
R/W-q/q
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
f = determined by fuse setting
bit 7
bit 6-4
bit 3-0
Unimplemented: Read as ‘0’
NOSC<2:0>: New Oscillator Source Request bits
The setting requests a source oscillator and PLL combination per Table 6-1.
POR value = RSTOSC (Register 4-1).
NDIV<3:0>: New Divider Selection Request bits
The setting determines the new postscaler division ratio per Table 6-1.
Note 1:
2:
3:
4:
The default value (f/f) is set equal to the RSTOSC Configuration bits.
If NOSC is written with a reserved value (Table 6-1), the operation is ignored and neither NOSC nor NDIV
is written.
When CSWEN = 0, this register is read-only and cannot be changed from the POR value.
When NOSC = 110 (HFINTOSC 4 MHz), the NDIV bits will default to ‘0010’ upon Reset; for all other
NOSC settings the NDIV bits will default to ‘0000’ upon Reset.
REGISTER 6-2: OSCCON2: OSCILLATOR CONTROL REGISTER 2
U-0
—
bit 7
R-n/n(2)
R-n/n(2)
COSC<2:0>
R-n/n(2)
R-n/n(2)
R-n/n(2)
R-n/n(2)
CDIV<3:0>
R-n/n(2)
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7
bit 6-4
bit 3-0
Unimplemented: Read as ‘0’
COSC<2:0>: Current Oscillator Source Select bits (read-only)
Indicates the current source oscillator and PLL combination per Table 6-1.
CDIV<3:0>: Current Divider Select bits (read-only)
Indicates the current postscaler division ratio per Table 6-1.
Note 1: The POR value is the value present when user code execution begins.
2: The reset value (n/n) is the same as the NOSC/NDIV bits.
DS40001824A-page 120
Preliminary
 2016 Microchip Technology Inc.