English
Language : 

PIC18F2331 Datasheet, PDF (270/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
TABLE 22-1: CONFIGURATION BITS AND DEVICE IDS
File Name
Bit 7 Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Default/
Unprogrammed
Value
300000h CONFIG1L —
—
—
—
—
—
300001h CONFIG1H IESO FCMEN
—
—
FOSC3 FOSC2
300002h CONFIG2L —
—
—
—
BORV1 BORV0
300003h CONFIG2H —
—
WINEN WDPS3 WDPS2 WDPS1
300004h CONFIG3L —
— T1OSCMX HPOL
LPOL PWMPIN
300005h CONFIG3H MCLRE —
— EXCLKMX PWM4MX SSPMX
—
FOSC1
BOREN
WDPS0
—
—
—
FOSC0
PWRTEN
WDTEN
—
FLTAMX
---- ----
11-- 1111
---- 1111
---1 1111
--11 11--
1--1 1-11
300006h CONFIG4L DEBUG —
—
—
—
LVP
—
STVREN 1--- -1-1
300007h CONFIG4H —
—
—
—
—
—
—
—
---- ----
300008h CONFIG5L —
—
—
—
CP3
CP2
CP1
CP0
---- 1111
300009h CONFIG5H CPD CPB
—
—
—
—
—
—
11-- ----
30000Ah CONFIG6L —
—
—
—
WRT3 WRT2 WRT1 WRT0 ---- 1111
30000Bh CONFIG6H WRTD WRTB WRTC
—
—
—
—
—
111- ----
30000Ch CONFIG7L —
—
—
—
EBTR3 EBTR2 EBTR1 EBTR0 ---- 1111
30000Dh CONFIG7H — EBTRB
—
—
—
—
—
—
-1-- ----
3FFFFEh DEVID1(1) DEV2 DEV1
DEV0
REV4
REV3
REV2
REV1
REV0
xxxx xxxx(1)
3FFFFFh DEVID2(1) DEV10 DEV9
DEV8
DEV7
DEV6 DEV5 DEV4 DEV3 0000 0101
Legend:
Note 1:
x = unknown, u = unchanged, – = unimplemented, q = value depends on condition.
Shaded cells are unimplemented, read as ‘0’.
See Register 22-13 for DEVID1 values. DEVID registers are read-only and cannot be programmed by the user.
REGISTER 22-1:
CONFIG1H: CONFIGURATION REGISTER 1 HIGH (BYTE ADDRESS 300001h)
R/P-1
R/P-1
U-0
U-0
R/P-1
R/P-1
R/P-1
R/P-1
IESO FCMEN
—
—
FOSC3
FOSC2
FOSC1
FOSC0
bit 7
bit 0
bit 7
bit 6
bit 5-4
bit 3-0
IESO: Internal External Switch Over bit
1 = Internal External Switch Over mode enabled
0 = Internal External Switch Over mode disabled
FCMEN: Fail-Safe Clock Monitor Enable bit
1 = Fail-Safe Clock Monitor enabled
0 = Fail-Safe Clock Monitor disabled
Unimplemented: Read as ‘0’
FOSC<3:0>: Oscillator Selection bits
11xx=
1001=
1000=
0111=
0110=
0101=
0100=
0010=
0001=
0000=
External RC oscillator, CLKO function on RA6
Internal oscillator block, CLKO function on RA6, and port function on RA7
Internal oscillator block, port function on RA6, and port function on RA7
External RC oscillator, port function on RA6
HS oscillator, PLL enabled (clock frequency = 4 x FOSC1)
EC oscillator, port function on RA6
EC oscillator, CLKO function on RA6
HS oscillator
XT oscillator
LP oscillator
Legend:
R = Readable bit
P = Programmable bit
- n = Value when device is unprogrammed
U = Unimplemented bit, read as ‘0’
u = Unchanged from programmed state
DS39616B-page 268
Preliminary
 2003 Microchip Technology Inc.