Microchip Technology DV164136 Data Sheet

Page of 466
 2007-2012 Microchip Technology Inc.
 
DS39778E-page 45
PIC18F87J11 FAMILY
REGISTER 3-3:
REFOCON: REFERENCE OSCILLATOR CONTROL REGISTER
R/W-0 U-0
R/W-0 
R/W-0 
R/W-0 
R/W-0 
R/W-0 
R/W-0 
ROON
ROSSLP
ROSEL
(
)
RODIV3
RODIV2
RODIV1
RODIV0
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
ROON:
 Reference Oscillator Output Enable bit
1
 = Reference oscillator output is available on REFO pin
0
 = Reference oscillator output is disabled
bit 6
Unimplemented:
 Read as ‘0’
bit 5
ROSSLP:
 Reference Oscillator Output Stop in Sleep bit
1
 = Reference oscillator continues to run in Sleep
0
 = Reference oscillator is disabled in Sleep
bit 4
ROSEL:
 Reference Oscillator Source Select bit
1
 = Primary oscillator (EC or HS) is used as the base clock
0
 = System clock is used as the base clock; base clock reflects any clock switching of the device 
bit 3-0
RODIV<3:0>:
 Reference Oscillator Divisor Select bits
1111
 = Base clock value divided by 32,768
1110
 = Base clock value divided by 16,384
1101
 = Base clock value divided by 8,192
1100
 = Base clock value divided by 4,096
1011
 = Base clock value divided by 2,048
1010
 = Base clock value divided by 1,024
1001
 = Base clock value divided by 512
1000
 = Base clock value divided by 256
0111
 = Base clock value divided by 128
0110
 = Base clock value divided by 64
0101
 = Base clock value divided by 32
0100
 = Base clock value divided by 16
0011
 = Base clock value divided by 8
0010
 = Base clock value divided by 4
0001
 = Base clock value divided by 2
0000
 = Base clock value
Note 1:
If ROSEL = 1, an EC or HS oscillator must be configured as the default oscillator with the FOSCx 
Configuration bits to maintain clock output during Sleep mode.