PIC18F04Q20 OSCILLATOR registers

The 18 registers of OSCILLATOR (Oscillator, power control and watchdog), from 0x73, with their reset value and every field. The PIC18F04Q20 has 544 registers in 38 peripherals, one page each.

OSCILLATOR Oscillator, power control and watchdog

BORCON

Address
0x73
Reset
x (not fixed at power-on)
Access
read/write
  1. 7SBOREN
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0BORRDY
2 fields
FieldBitsWhat it does
SBOREN7
BORRDY0

WDTCON0

Address
0x74
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5PS4
  4. 4PS3
  5. 3PS2
  6. 2PS1
  7. 1PS0
  8. 0SEN
2 fields
FieldBitsWhat it does
PS5:1
SEN0

WDTCON1

Address
0x75
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6CS2
  3. 5CS1
  4. 4CS0
  5. 3–
  6. 2WINDOW2
  7. 1WINDOW1
  8. 0WINDOW0
2 fields
FieldBitsWhat it does
CS6:4
WINDOW2:0

VREGCON

Address
0x79
Reset
x (not fixed at power-on)
Access
read/write
  1. 7–
  2. 6–
  3. 5PMSYS1
  4. 4PMSYS0
  5. 3–
  6. 2–
  7. 1VREGPM1
  8. 0VREGPM0
2 fields
FieldBitsWhat it does
PMSYS5:4
VREGPM1:0

OSCCON1

Address
0x7A
Reset
0x00
Access
read/write
  1. 7–
  2. 6NOSC2
  3. 5NOSC1
  4. 4NOSC0
  5. 3NDIV3
  6. 2NDIV2
  7. 1NDIV1
  8. 0NDIV0
2 fields
FieldBitsWhat it does
NOSC6:4
NDIV3:0

OSCCON2

Address
0x7B
Reset
0x00
Access
read only
  1. 7–
  2. 6COSC2
  3. 5COSC1
  4. 4COSC0
  5. 3CDIV3
  6. 2CDIV2
  7. 1CDIV1
  8. 0CDIV0
2 fields
FieldBitsWhat it does
COSC6:4
CDIV3:0

OSCCON3

Address
0x7C
Reset
0x40
Access
read/write
  1. 7CSWHOLD
  2. 6SOSCPWR
  3. 5–
  4. 4ORDY
  5. 3NOSCR
  6. 2–
  7. 1–
  8. 0–
4 fields
FieldBitsWhat it does
CSWHOLD7
SOSCPWR6
ORDY4
NOSCR3

OSCSTAT

Address
0x7D
Reset
0x00
Access
read only
  1. 7EXTOR
  2. 6HFOR
  3. 5MFOR
  4. 4LFOR
  5. 3SOR
  6. 2ADOR
  7. 1SFOR
  8. 0PLLR
8 fields
FieldBitsWhat it does
EXTOR7
HFOR6
MFOR5
LFOR4
SOR3
ADOR2
SFOR1
PLLR0

OSCEN

Address
0x7E
Reset
0x00
Access
read/write
  1. 7EXTOEN
  2. 6HFOEN
  3. 5MFOEN
  4. 4LFOEN
  5. 3SOSCEN
  6. 2ADOEN
  7. 1–
  8. 0PLLEN
7 fields
FieldBitsWhat it does
EXTOEN7
HFOEN6
MFOEN5
LFOEN4
SOSCEN3
ADOEN2
PLLEN0

OSCTUNE

Address
0x7F
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5TUN5
  4. 4TUN4
  5. 3TUN3
  6. 2TUN2
  7. 1TUN1
  8. 0TUN0
1 field
FieldBitsWhat it does
TUN5:0

OSCFRQ

Address
0x80
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3FRQ3
  6. 2FRQ2
  7. 1FRQ1
  8. 0FRQ0
1 field
FieldBitsWhat it does
FRQ3:0

ACTCON

Address
0x81
Reset
0x00
Access
read/write
  1. 7EN
  2. 6UD
  3. 5–
  4. 4–
  5. 3LOCK
  6. 2–
  7. 1ORS
  8. 0–
4 fields
FieldBitsWhat it does
EN7
UD6
LOCK3
ORS1

FSCMCON

Address
0x82
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5FSCMSFI
  4. 4FSCMSEV
  5. 3FSCMPFI
  6. 2FSCMPEV
  7. 1FSCMFFI
  8. 0FSCMFEV
6 fields
FieldBitsWhat it does
FSCMSFI5
FSCMSEV4
FSCMPFI3
FSCMPEV2
FSCMFFI1
FSCMFEV0

CLKRCON

Address
0x100
Reset
0x10
Access
read/write
  1. 7EN
  2. 6–
  3. 5–
  4. 4DC1
  5. 3DC0
  6. 2DIV2
  7. 1DIV1
  8. 0DIV0
3 fields
FieldBitsWhat it does
EN7
DC4:3
DIV2:0

CLKRCLK

Address
0x101
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3CLK3
  6. 2CLK2
  7. 1CLK1
  8. 0CLK0
1 field
FieldBitsWhat it does
CLK3:0

PCON0

Address
0x4F0
Reset
x (not fixed at power-on)
Access
read/write
  1. 7STKOVF
  2. 6STKUNF
  3. 5nWDTWV
  4. 4nRWDT
  5. 3nRMCLR
  6. 2nRI
  7. 1nPOR
  8. 0nBOR
8 fields
FieldBitsWhat it does
STKOVF7
STKUNF6
nWDTWV5
nRWDT4
nRMCLR3
nRI2
nPOR1
nBOR0

PCON1

Address
0x4F1
Reset
0x0F
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3nPORVDDIO2
  6. 2nRVREG
  7. 1nMEMV
  8. 0nRCM
4 fields
FieldBitsWhat it does
nPORVDDIO23
nRVREG2
nMEMV1
nRCM0

CPUDOZE

Address
0x4F2
Reset
0x00
Access
read/write
  1. 7IDLEN
  2. 6DOZEN
  3. 5ROI
  4. 4DOE
  5. 3–
  6. 2DOZE2
  7. 1DOZE1
  8. 0DOZE0
5 fields
FieldBitsWhat it does
IDLEN7
DOZEN6
ROI5
DOE4
DOZE2:0