PIC18F65K40 OSCILLATOR registers The 15 registers of OSCILLATOR (Oscillator, power control and watchdog), from 0xE3D, with their reset value and every field. The PIC18F65K40 has 524 registers in 49 peripherals, one page each.
OSCILLATOR Oscillator, power control and watchdog 7 – 6 – 5 WDTPS4 4 WDTPS3 3 WDTPS2 2 WDTPS1 1 WDTPS0 0 SEN 2 fields
Field Bits What it does WDTPS 5:1 SEN 0
7 – 6 WDTCS2 5 WDTCS1 4 WDTCS0 3 – 2 WINDOW2 1 WINDOW1 0 WINDOW0 2 fields
Field Bits What it does WDTCS 6:4 WINDOW 2:0
CPUDOZE
Address 0xE42
Reset 0x00
Access read/write 7 IDLEN 6 DOZEN 5 ROI 4 DOE 3 – 2 DOZE2 1 DOZE1 0 DOZE0 5 fields
Field Bits What it does IDLEN 7 DOZEN 6 ROI 5 DOE 4 DOZE 2:0
7 – 6 NOSC2 5 NOSC1 4 NOSC0 3 NDIV3 2 NDIV2 1 NDIV1 0 NDIV0 2 fields
Field Bits What it does NOSC 6:4 NDIV 3:0
7 – 6 COSC2 5 COSC1 4 COSC0 3 CDIV3 2 CDIV2 1 CDIV1 0 CDIV0 2 fields
Field Bits What it does COSC 6:4 CDIV 3:0
OSCCON3
Address 0xE45
Reset 0x00
Access read/write 7 CSWHOLD 6 SOSCPWR 5 – 4 ORDY 3 NOSCR 2 – 1 – 0 – 4 fields
Field Bits What it does CSWHOLD 7 SOSCPWR 6 ORDY 4 NOSCR 3
7 EXTOR 6 HFOR 5 MFOR 4 LFOR 3 SOR 2 ADOR 1 – 0 PLLR 7 fields
Field Bits What it does EXTOR 7 HFOR 6 MFOR 5 LFOR 4 SOR 3 ADOR 2 PLLR 0
OSCEN
Address 0xE47
Reset 0x00
Access read/write 7 EXTOEN 6 HFOEN 5 MFOEN 4 LFOEN 3 SOSCEN 2 ADOEN 1 – 0 – 6 fields
Field Bits What it does EXTOEN 7 HFOEN 6 MFOEN 5 LFOEN 4 SOSCEN 3 ADOEN 2
OSCTUNE
Address 0xE48
Reset 0x00
Access read/write 7 – 6 – 5 TUN5 4 TUN4 3 TUN3 2 TUN2 1 TUN1 0 TUN0 1 field
Field Bits What it does TUN 5:0
7 – 6 – 5 – 4 – 3 HFFRQ3 2 HFFRQ2 1 HFFRQ1 0 HFFRQ0 1 field
Field Bits What it does HFFRQ 3:0
VREGCON
Address 0xE4A
Reset 0x01
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 VREGPM 0 – 1 field
Field Bits What it does VREGPM 1
7 SBOREN 6 – 5 – 4 – 3 – 2 – 1 – 0 BORRDY 2 fields
Field Bits What it does SBOREN 7 BORRDY 0
CLKRCON
Address 0xF34
Reset 0x10
Access read/write 7 EN 6 – 5 – 4 DC1 3 DC0 2 DIV2 1 DIV1 0 DIV0 3 fields
Field Bits What it does EN 7 DC 4:3 DIV 2:0
CLKRCLK
Address 0xF35
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 CLK2 1 CLK1 0 CLK0 1 field
Field Bits What it does CLK 2:0
7 STKOVF 6 STKUNF 5 nWDTWV 4 nRWDT 3 nRMCLR 2 nRI 1 nPOR 0 nBOR 8 fields
Field Bits What it does STKOVF 7 STKUNF 6 nWDTWV 5 nRWDT 4 nRMCLR 3 nRI 2 nPOR 1 nBOR 0