PIC18F2331/2431/4331/4431
TABLE 23-1: CONFIGURATION BITS AND DEVICE IDs
Default/
Unprogrammed
Value
File Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
300000h CONFIG1L
300001h CONFIG1H
300002h CONFIG2L
300003h CONFIG2H
300004h CONFIG3L
—
IESO
—
—
FCMEN
—
—
—
—
—
—
—
—
—
---- ----
11-- 1111
---- 1111
--11 1111
--11 11--
1--1 11-1
1--- -1-1
---- ----
---- 1111
11-- ----
---- 1111
111- ----
---- 1111
-1-- ----
FOSC3
BORV1
FOSC2 FOSC1
FOSC0
—
—
BORV0 BOREN PWRTEN
—
—
WINEN
T1OSCMX
—
WDTPS3
HPOL
WDTPS2 WDTPS1 WDTPS0 WDTEN
—
—
LPOL
PWMPIN
—
—
—
(1)
(1)
(1)
(1)
(1)
300005h CONFIG3H MCLRE
300006h CONFIG4L DEBUG
—
EXCLKMX
PWM4MX SSPMX
FLTAMX
—
—
—
—
—
—
LVP
—
—
STVREN
—
300007h CONFIG4H
300008h CONFIG5L
300009h CONFIG5H
30000Ah CONFIG6L
—
—
—
—
—
(1)
(1)
—
—
—
CP3
—
CP2
—
CP1
—
CP0
—
CPD
—
CPB
—
—
—
(1)
(1)
(1)
(1)
—
—
WRT3
—
WRT2
—
WRT1
—
WRT0
—
30000Bh CONFIG6H WRTD
WRTB
—
WRTC
—
—
30000Ch CONFIG7L
30000Dh CONFIG7H
—
—
—
EBTR3
—
EBTR2
—
EBTR1
—
EBTR0
—
EBTRB
DEV1
DEV9
—
—
(2)
(2)
3FFFFEh DEVID1
DEV2
DEV10
DEV0
DEV8
REV4
DEV7
REV3
DEV6
REV2
DEV5
REV1
DEV4
REV0
DEV3
xxxx xxxx
(2)
3FFFFFh DEVID2
0000 0101
Legend:
x= unknown, u= unchanged, -= unimplemented. Shaded cells are unimplemented, read as ‘0’.
Note 1: Unimplemented in PIC18F2331/4331 devices; maintain this bit set.
2: See Register 23-13 for DEVID1 values. DEVID registers are read-only and cannot be programmed by the user.
REGISTER 23-1: CONFIG1H: CONFIGURATION REGISTER 1 HIGH (BYTE ADDRESS 300001h)
R/P-1
IESO
R/P-1
U-0
—
U-0
—
R/P-1
R/P-1
R/P-1
R/P-1
FCMEN
FOSC3
FOSC2
FOSC1
FOSC0
bit 7
bit 0
Legend:
R = Readable bit
P = Programmable bit
U = Unimplemented bit, read as ‘0’
-n = Value when device is unprogrammed
U = Unchanged from programmed state
bit 7
bit 6
IESO: Internal External Switchover bit
1= Internal External Switchover mode enabled
0= Internal External Switchover mode disabled
FCMEN: Fail-Safe Clock Monitor Enable bit
1= Fail-Safe Clock Monitor enabled
0= Fail-Safe Clock Monitor disabled
bit 5-4
bit 3-0
Unimplemented: Read as ‘0’
FOSC<3:0>: Oscillator Selection bits
11xx= External RC oscillator, CLKO function on RA6
1001= Internal oscillator block, CLKO function on RA6 and port function on RA7 (INTIO1)
1000= Internal oscillator block, port function on RA6 and port function on RA7 (INTIO2)
0111= External RC oscillator, port function on RA6
0110= HS oscillator, PLL enabled (clock frequency = 4 x FOSC1)
0101= EC oscillator, port function on RA6 (ECIO)
0100= EC oscillator, CLKO function on RA6 (EC)
0010= HS oscillator
0001= XT oscillator
0000= LP oscillator
DS39616D-page 264
2010 Microchip Technology Inc.