PIC18F-LF1XK50 MICROCHIP [Microchip Technology], PIC18F-LF1XK50 Datasheet - Page 292

no-image

PIC18F-LF1XK50

Manufacturer Part Number
PIC18F-LF1XK50
Description
20-Pin USB Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC18F/LF1XK50
24.1
The Configuration bits can be programmed (read as
‘0’) or left unprogrammed (read as ‘1’) to select various
device configurations. These bits are mapped starting
at program memory location 300000h.
The user will note that address 300000h is beyond the
user program memory space. In fact, it belongs to the
configuration memory space (300000h-3FFFFFh), which
can only be accessed using table reads and table writes.
Programming the Configuration registers is done in a
manner similar to programming the Flash memory. The
WR bit in the EECON1 register starts a self-timed write
to the Configuration register. In normal operation mode,
a TBLWT instruction with the TBLPTR pointing to the
Configuration register sets up the address and the data
for the Configuration register write. Setting the WR bit
starts a long write to the Configuration register. The
Configuration registers are written a byte at a time. To
write or erase a configuration cell, a TBLWT instruction
can write a ‘1’ or a ‘0’ into the cell. For additional details
on Flash programming, refer to
to Flash Program
TABLE 24-1:
DS41350E-page 292
300000h CONFIG1L
300001h CONFIG1H
300002h CONFIG2L
300003h CONFIG2H
300005h CONFIG3H
300006h CONFIG4L BKBUG
300008h CONFIG5L
300009h CONFIG5H
30000Ah CONFIG6L
30000Bh CONFIG6H
30000Ch CONFIG7L
30000Dh CONFIG7H
3FFFFEh DEVID1
3FFFFFh DEVID2
Legend:
Note 1:
File Name
2:
Configuration Bits
x = unknown, u = unchanged, – = unimplemented, q = value depends on condition.
Shaded cells are unimplemented, read as ‘0’
See
BKBUG is only used for the ICD device. Otherwise, this bit is unimplemented and reads as ‘1’.
Register 24-13
(1)
(1)
CONFIGURATION BITS AND DEVICE IDs
Memory”.
MCLRE
DEV10
WRTD
DEV2
IESO
Bit 7
CPD
(2)
for DEVID1 values. DEVID registers are read-only and cannot be programmed by the user.
ENHCPU
Section 4.5 “Writing
FCMEN PCLKEN
EBTRB
WRTB
DEV1
DEV9
Bit 6
CPB
USBDIV CPUDIV1 CPUDIV0
WRTC
DEV0
DEV8
Bit 5
Preliminary
WDTPS3
BORV1
PLLEN
REV4
DEV7
Bit 4
WDTPS2
HFOFST
BORV0
FOSC3
BBSIZ
REV3
DEV6
Bit 3
WDTPS1 WDTPS0
BOREN1 BOREN0 PWRTEN
FOSC2
REV2
DEV5
Bit 2
LVP
FOSC1
EBTR1
WRT1
REV1
DEV4
Bit 1
CP1
 2010 Microchip Technology Inc.
STVREN
WDTEN
FOSC0
EBTR0
WRT0
REV0
DEV3
Bit 0
CP0
Unprogrammed
--00 0---
0010 0111
---1 1111
---1 1111
1--- 1---
-0-- 01-1
---- --11
11-- ----
---- --11
111- ----
---- --11
-1-- ----
qqqq qqqq
0000 1100
Default/
Value
(1)

Related parts for PIC18F-LF1XK50