282
© 2005 Microchip Technology Inc. DS51537A PIC18 CONFIGURATION SETTINGS ADDENDUM

#pragma config

Embed Size (px)

DESCRIPTION

mplab c18 configration file

Citation preview

Page 1: #pragma config

© 2005 Microchip Technology Inc. DS51537A

PIC18 CONFIGURATIONSETTINGS ADDENDUM

Page 2: #pragma config

Note the following details of the code protection feature on Microchip devices:

• Microchip products meet the specification contained in their particular Microchip Data Sheet.

• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions.

• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property.

• Microchip is willing to work with the customer who is concerned about the integrity of their code.

• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”

Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of ourproducts. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.

Information contained in this publication regarding deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your specifications.MICROCHIP MAKES NO REPRESENTATIONS OR WAR-RANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED,WRITTEN OR ORAL, STATUTORY OR OTHERWISE,RELATED TO THE INFORMATION, INCLUDING BUT NOTLIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,MERCHANTABILITY OR FITNESS FOR PURPOSE.Microchip disclaims all liability arising from this information andits use. Use of Microchip’s products as critical components inlife support systems is not authorized except with expresswritten approval by Microchip. No licenses are conveyed,implicitly or otherwise, under any Microchip intellectual propertyrights.

DS51537A-page ii

Trademarks

The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, PowerSmart, rfPIC, and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.

Analog-for-the-Digital Age, Application Maestro, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel, Total Endurance and WiperLock are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.

All other trademarks mentioned herein are property of their respective companies.

© 2005, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.

Printed on recycled paper.

© 2005 Microchip Technology Inc.

Microchip received ISO/TS-16949:2002 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona and Mountain View, California in October 2003. The Company’s quality system processes and procedures are for its PICmicro® 8-bit MCUs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.

Page 3: #pragma config

PIC18 CONFIGURATIONSETTINGS ADDENDUM

Table of Contents

Configuration Settings ............................................................................................................... 1

PIC18C242............................................................................................................ 1

PIC18C252............................................................................................................ 2

PIC18C442............................................................................................................ 3

PIC18C452............................................................................................................ 4

PIC18C601............................................................................................................ 5

PIC18C658............................................................................................................ 6

PIC18C801............................................................................................................ 7

PIC18C858............................................................................................................ 8

PIC18F1220 .......................................................................................................... 9

PIC18F1320 ........................................................................................................ 11

PIC18F2220 ........................................................................................................ 14

PIC18F2320 ........................................................................................................ 17

PIC18F2331 ........................................................................................................ 20

PIC18F2410 ........................................................................................................ 23

PIC18F242 .......................................................................................................... 26

PIC18F2420 ........................................................................................................ 28

PIC18F2431 ........................................................................................................ 31

PIC18F2439 ........................................................................................................ 34

PIC18F2455 ........................................................................................................ 36

PIC18F248 .......................................................................................................... 40

PIC18F2480 ........................................................................................................ 42

PIC18F24J10 ...................................................................................................... 45

PIC18F2510 ........................................................................................................ 46

PIC18F2515 ........................................................................................................ 49

PIC18F252 .......................................................................................................... 52

PIC18F2520 ........................................................................................................ 55

PIC18F2525 ........................................................................................................ 58

PIC18F2539 ........................................................................................................ 61

PIC18F2550 ........................................................................................................ 63

PIC18F258 .......................................................................................................... 67

PIC18F2580 ........................................................................................................ 70

PIC18F2585 ........................................................................................................ 73

© 2005 Microchip Technology Inc. DS51537A-page iii

Page 4: #pragma config

PIC18 Configuration Settings Addendum

PIC18F25J10 ...................................................................................................... 76

PIC18F2610 ........................................................................................................ 78

PIC18F2620 ........................................................................................................ 81

PIC18F2680 ........................................................................................................ 84

PIC18F4220 ........................................................................................................ 88

PIC18F4320 ........................................................................................................ 91

PIC18F4331 ........................................................................................................ 94

PIC18F4410 ........................................................................................................ 98

PIC18F442 ........................................................................................................ 100

PIC18F4420 ...................................................................................................... 103

PIC18F4431 ...................................................................................................... 106

PIC18F4439 ...................................................................................................... 109

PIC18F4455 ...................................................................................................... 111

PIC18F448 ........................................................................................................ 115

PIC18F4480 ...................................................................................................... 117

PIC18F44J10 .................................................................................................... 121

PIC18F4510 ...................................................................................................... 122

PIC18F4515 ...................................................................................................... 125

PIC18F452 ........................................................................................................ 128

PIC18F4520 ...................................................................................................... 131

PIC18F4525 ...................................................................................................... 134

PIC18F4539 ...................................................................................................... 137

PIC18F4550 ...................................................................................................... 139

PIC18F458 ........................................................................................................ 143

PIC18F4580 ...................................................................................................... 146

PIC18F4585 ...................................................................................................... 149

PIC18F45J10 .................................................................................................... 152

PIC18F4610 ...................................................................................................... 154

PIC18F4620 ...................................................................................................... 157

PIC18F4680 ...................................................................................................... 160

PIC18F6310 ...................................................................................................... 164

PIC18F6390 ...................................................................................................... 166

PIC18F6410 ...................................................................................................... 168

PIC18F6490 ...................................................................................................... 170

PIC18F64J15 .................................................................................................... 172

PIC18F6520 ...................................................................................................... 174

PIC18F6525 ...................................................................................................... 176

PIC18F6527 ...................................................................................................... 179

PIC18F6585 ...................................................................................................... 182

DS51537A-page iv © 2005 Microchip Technology Inc.

Page 5: #pragma config

Table of Contents

PIC18F65J10 .................................................................................................... 185

PIC18F65J15 .................................................................................................... 187

PIC18F6620 ...................................................................................................... 189

PIC18F6621 ...................................................................................................... 191

PIC18F6622 ...................................................................................................... 194

PIC18F6627 ...................................................................................................... 197

PIC18F6680 ...................................................................................................... 201

PIC18F66J10 .................................................................................................... 204

PIC18F66J15 .................................................................................................... 206

PIC18F6720 ...................................................................................................... 208

PIC18F6722 ...................................................................................................... 211

PIC18F67J10 .................................................................................................... 215

PIC18F8310 ...................................................................................................... 217

PIC18F8390 ...................................................................................................... 219

PIC18F8410 ...................................................................................................... 221

PIC18F8490 ...................................................................................................... 223

PIC18F84J15 .................................................................................................... 225

PIC18F8520 ...................................................................................................... 227

PIC18F8525 ...................................................................................................... 230

PIC18F8527 ...................................................................................................... 233

PIC18F8585 ...................................................................................................... 236

PIC18F85J10 .................................................................................................... 239

PIC18F85J15 .................................................................................................... 241

PIC18F8620 ...................................................................................................... 243

PIC18F8621 ...................................................................................................... 246

PIC18F8622 ...................................................................................................... 249

PIC18F8627 ...................................................................................................... 253

PIC18F8680 ...................................................................................................... 257

PIC18F86J10 .................................................................................................... 260

PIC18F86J15 .................................................................................................... 262

PIC18F8720 ...................................................................................................... 264

PIC18F8722 ...................................................................................................... 268

PIC18F87J10 .................................................................................................... 272

Worldwide Sales and Service ................................................................................................ 276

© 2005 Microchip Technology Inc. DS51537A-page v

Page 6: #pragma config

PIC18 Configuration Settings Addendum

NOTES:

DS51537A-page vi © 2005 Microchip Technology Inc.

Page 7: #pragma config

PIC18 CONFIGURATIONSETTINGS ADDENDUM

Configuration Settings

This addendum lists the configuration settings available for each of the PIC18 devices for use with MPLAB C18's #pragma config directive and MPASM's CONFIG direc-tive.

PIC18C242

Code Protect:

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

CP = ON Enabled

CP = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 1

Page 8: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

PIC18C252

Code Protect:

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

CP = ON Enabled

CP = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

DS51537A-page 2 © 2005 Microchip Technology Inc.

Page 9: #pragma config

Configuration Settings

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

PIC18C442

Code Protect:

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

CP = ON Enabled

CP = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 3

Page 10: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

PIC18C452

Code Protect:

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

CP = ON Enabled

CP = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

DS51537A-page 4 © 2005 Microchip Technology Inc.

Page 11: #pragma config

Configuration Settings

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

PIC18C601

Oscillator Selection:

Power-up Timer:

External Bus Data Width:

Watchdog Timer:

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

OSC = LP LP Oscillator

OSC = EC EC Oscillator

OSC = HS HS Oscillator

OSC = RC RC Oscillator

PWRT = ON Enable

PWRT = OFF Disable

BW = 8 8-bit external bus mode

BW = 16 16-bit external bus mode

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 5

Page 12: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Timer Postscale Selection:

Stack Full/Underflow RESET:

PIC18C658

Code Protect:

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

CP = ON Enabled

CP = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 6 © 2005 Microchip Technology Inc.

Page 13: #pragma config

Configuration Settings

Watchdog Postscaler:

Stack Overflow Reset:

PIC18C801

Oscillator Selection:

Power-up Timer:

External Bus Data Width:

Watchdog Timer:

Watchdog Timer Postscale Selection:

Stack Full/Underflow RESET:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

OSC = LP LP Oscillator

OSC = EC EC Oscillator

OSC = HS HS Oscillator

OSC = RC RC Oscillator

PWRT = ON Enable

PWRT = OFF Disable

BW = 8 8-bit external bus mode

BW = 16 16-bit external bus mode

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 7

Page 14: #pragma config

PIC18 Configuration Settings Addendum

PIC18C858

Code Protect:

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Stack Overflow Reset:

CP = ON Enabled

CP = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

DS51537A-page 8 © 2005 Microchip Technology Inc.

Page 15: #pragma config

Configuration Settings

PIC18F1220

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Switch Over mode:

Power-Up Timer:

Brown-Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP Oscillator

OSC = XT XT Oscillator

OSC = HS HS Oscillator

OSC = EC External Clock on OSC1, OSC2 as Fosc/4

OSC = ECIO External Clock on OSC1, OSC2 as RA6

OSC = HSPLL HS + PLL

OSC = RCIO External RC on OSC1, OSC2 as RA6

OSC = INTIO2 Internal RC, OSC1 as RA7, OSC2 as RA6

OSC = INTIO1 Internal RC, OSC1 as RA7, OSC2 as Fosc/4

OSC = RC External RC on OSC1, OSC2 as Fosc/4

FSCM = OFF Fail Safe Clock Monitor disabled

FSCM = ON Fail Safe Clock Monitor enabled

IESO = OFF Internal External Switch Over mode disabled

IESO = ON Internal External Switch Over mode enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 9

Page 16: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

Stack Full/Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

DS51537A-page 10 © 2005 Microchip Technology Inc.

Page 17: #pragma config

Configuration Settings

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F1320

Oscillator Selection:

Fail Safe Clock Monitor:

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP Oscillator

OSC = XT XT Oscillator

OSC = HS HS Oscillator

OSC = EC External Clock on OSC1, OSC2 as Fosc/4

OSC = ECIO External Clock on OSC1, OSC2 as RA6

OSC = HSPLL HS + PLL

OSC = RCIO External RC on OSC1, OSC2 as RA6

OSC = INTIO2 Internal RC, OSC1 as RA7, OSC2 as RA6

OSC = INTIO1 Internal RC, OSC1 as RA7, OSC2 as Fosc/4

OSC = RC External RC on OSC1, OSC2 as Fosc/4

FSCM = OFF Fail Safe Clock Monitor disabled

FSCM = ON Fail Safe Clock Monitor enabled

© 2005 Microchip Technology Inc. DS51537A-page 11

Page 18: #pragma config

PIC18 Configuration Settings Addendum

Internal External Switch Over mode:

Power-Up Timer:

Brown-Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Stack Full/Overflow Reset:

Low Voltage ICSP:

IESO = OFF Internal External Switch Over mode disabled

IESO = ON Internal External Switch Over mode enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DS51537A-page 12 © 2005 Microchip Technology Inc.

Page 19: #pragma config

Configuration Settings

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 13

Page 20: #pragma config

PIC18 Configuration Settings Addendum

PIC18F2220

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Switch Over mode:

Power-Up Timer:

Brown-Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP Oscillator

OSC = XT XT Oscillator

OSC = HS HS Oscillator

OSC = EC External Clock on OSC1, OSC2 as Fosc/4

OSC = ECIO External Clock on OSC1, OSC2 as RA6

OSC = HSPLL HS + PLL

OSC = RCIO External RC on OSC1, OSC2 as RA6

OSC = INTIO2 Internal RC, OSC1 as RA7, OSC2 as RA6

OSC = INTIO1 Internal RC, OSC1 as RA7, OSC2 as Fosc/4

OSC = RC External RC on OSC1, OSC2 as Fosc/4

FSCM = OFF Fail Safe Clock Monitor disabled

FSCM = ON Fail Safe Clock Monitor enabled

IESO = OFF Internal External Switch Over mode disabled

IESO = ON Internal External Switch Over mode enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 14 © 2005 Microchip Technology Inc.

Page 21: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

PORTB A/D Enable:

CCP2 Pin Function:

Stack Full/Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBAD = DIG Digital

PBAD = ANA Analog

CCP2MX = B3 RB3

CCP2MX = OFF RB3

CCP2MX = C1 RC1

CCP2MX = ON RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 15

Page 22: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DS51537A-page 16 © 2005 Microchip Technology Inc.

Page 23: #pragma config

Configuration Settings

PIC18F2320

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Switch Over mode:

Power-Up Timer:

Brown-Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP Oscillator

OSC = XT XT Oscillator

OSC = HS HS Oscillator

OSC = EC External Clock on OSC1, OSC2 as Fosc/4

OSC = ECIO External Clock on OSC1, OSC2 as RA6

OSC = HSPLL HS + PLL

OSC = RCIO External RC on OSC1, OSC2 as RA6

OSC = INTIO2 Internal RC, OSC1 as RA7, OSC2 as RA6

OSC = INTIO1 Internal RC, OSC1 as RA7, OSC2 as Fosc/4

OSC = RC External RC on OSC1, OSC2 as Fosc/4

FSCM = OFF Fail Safe Clock Monitor disabled

FSCM = ON Fail Safe Clock Monitor enabled

IESO = OFF Internal External Switch Over mode disabled

IESO = ON Internal External Switch Over mode enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 17

Page 24: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

PORTB A/D Enable:

CCP2 Pin Function:

Stack Full/Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBAD = DIG Digital

PBAD = ANA Analog

CCP2MX = B3 RB3

CCP2MX = OFF RB3

CCP2MX = C1 RC1

CCP2MX = ON RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

DS51537A-page 18 © 2005 Microchip Technology Inc.

Page 25: #pragma config

Configuration Settings

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 19

Page 26: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2331

Oscillator Selection:

Fail Safe Clock Monitor Enable:

Internal/External Switch-Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC2 External RC, RA6 is CLKOUT

OSC = EC EC, RA6 is CLKOUT

OSC = ECIO EC, RA6 is I/O

OSC = HSPLL HS-PLL Enabled

OSC = RCIO External RC, RA6 is I/O

OSC = IRCIO Internal RC, RA6 & RA7 are I/O

OSC = IRC Internal RC, RA6 is CLKOUT, RA7 is I/O

OSC = RC1 External RC, RA6 is CLKOUT

OSC = RC External RC, RA6 is CLKOUT

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRTEN = ON Enabled

PWRTEN = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

DS51537A-page 20 © 2005 Microchip Technology Inc.

Page 27: #pragma config

Configuration Settings

Watchdog Timer:

Watchdog Timer Enable Window:

Watchdog Postscaler:

Timer1 Oscillator Mux:

High-Side Transistors Polarity:

Low-Side Transistors Polarity:

PWM output pins RESET state control:

MCLR Enable:

Stack Overflow Reset:

WDTEN = OFF Disabled

WDTEN = ON Enabled

WINEN = ON Enabled

WINEN = OFF Disabled

WDPS = 1 1:1

WDPS = 2 1:2

WDPS = 4 1:4

WDPS = 8 1:8

WDPS = 16 1:16

WDPS = 32 1:32

WDPS = 64 1:64

WDPS = 128 1:128

WDPS = 256 1:256

WDPS = 512 1:512

WDPS = 1024 1:1024

WDPS = 2048 1:2048

WDPS = 4096 1:4096

WDPS = 8192 1:8192

WDPS = 16384 1:16384

WDPS = 32768 1:32768

T1OSCMX = OFF Active

T1OSCMX = ON Inactive

HPOL = LOW Active low

HPOL = HIGH Active high

LPOL = LOW Active low

LPOL = HIGH Active high

PWMPIN = ON Enabled

PWMPIN = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 21

Page 28: #pragma config

PIC18 Configuration Settings Addendum

Low Voltage Programming:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

DS51537A-page 22 © 2005 Microchip Technology Inc.

Page 29: #pragma config

Configuration Settings

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2410

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 23

Page 30: #pragma config

PIC18 Configuration Settings Addendum

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

DS51537A-page 24 © 2005 Microchip Technology Inc.

Page 31: #pragma config

Configuration Settings

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 25

Page 32: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Table Read Protection:

PIC18F242

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

DS51537A-page 26 © 2005 Microchip Technology Inc.

Page 33: #pragma config

Configuration Settings

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 27

Page 34: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F2420

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 28 © 2005 Microchip Technology Inc.

Page 35: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 29

Page 36: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DS51537A-page 30 © 2005 Microchip Technology Inc.

Page 37: #pragma config

Configuration Settings

PIC18F2431

Oscillator Selection:

Fail Safe Clock Monitor Enable:

Internal/External Switch-Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Timer Enable Window:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC2 External RC, RA6 is CLKOUT

OSC = EC EC, RA6 is CLKOUT

OSC = ECIO EC, RA6 is I/O

OSC = HSPLL HS-PLL Enabled

OSC = RCIO External RC, RA6 is I/O

OSC = IRCIO Internal RC, RA6 & RA7 are I/O

OSC = IRC Internal RC, RA6 is CLKOUT, RA7 is I/O

OSC = RC1 External RC, RA6 is CLKOUT

OSC = RC External RC, RA6 is CLKOUT

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRTEN = ON Enabled

PWRTEN = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDTEN = OFF Disabled

WDTEN = ON Enabled

WINEN = ON Enabled

WINEN = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 31

Page 38: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

Timer1 Oscillator Mux:

High-Side Transistors Polarity:

Low-Side Transistors Polarity:

PWM output pins RESET state control:

MCLR Enable:

Stack Overflow Reset:

Low Voltage Programming:

Background Debugger Enable:

WDPS = 1 1:1

WDPS = 2 1:2

WDPS = 4 1:4

WDPS = 8 1:8

WDPS = 16 1:16

WDPS = 32 1:32

WDPS = 64 1:64

WDPS = 128 1:128

WDPS = 256 1:256

WDPS = 512 1:512

WDPS = 1024 1:1024

WDPS = 2048 1:2048

WDPS = 4096 1:4096

WDPS = 8192 1:8192

WDPS = 16384 1:16384

WDPS = 32768 1:32768

T1OSCMX = OFF Active

T1OSCMX = ON Inactive

HPOL = LOW Active low

HPOL = HIGH Active high

LPOL = LOW Active low

LPOL = HIGH Active high

PWMPIN = ON Enabled

PWMPIN = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

DS51537A-page 32 © 2005 Microchip Technology Inc.

Page 39: #pragma config

Configuration Settings

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 33

Page 40: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2439

Oscillator Selection:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 34 © 2005 Microchip Technology Inc.

Page 41: #pragma config

Configuration Settings

Watchdog Postscaler:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 35

Page 42: #pragma config

PIC18 Configuration Settings Addendum

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F2455

96MHz PLL Prescaler:

CPU System Clock Postscaler:

Full-Speed USB Clock Source Selection:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

PLLDIV = 1 No divide (4MHz input)

PLLDIV = 2 Divide by 2 (8MHz input)

PLLDIV = 3 Divide by 3 (12MHz input)

PLLDIV = 4 Divide by 4 (16MHz input)

PLLDIV = 5 Divide by 5 (20MHz input)

PLLDIV = 6 Divide by 6 (24MHz input)

PLLDIV = 10 Divide by 10 (40MHz input)

PLLDIV = 12 Divide by 12 (48MHz input)

CPUDIV = OSC1_PLL2 [OSC1/OSC2 Src: /1][96MHz PLL Src: /2]

CPUDIV = OSC2_PLL3 [OSC1/OSC2 Src: /2][96MHz PLL Src: /3]

CPUDIV = OSC3_PLL4 [OSC1/OSC2 Src: /3][96MHz PLL Src: /4]

CPUDIV = OSC4_PLL6 [OSC1/OSC2 Src: /4][96MHz PLL Src: /6]

USBDIV = 1 Clock source from OSC1/OSC2

USBDIV = 2 Clock source from 96MHz PLL/2

DS51537A-page 36 © 2005 Microchip Technology Inc.

Page 43: #pragma config

Configuration Settings

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

USB Voltage Regulator Enable:

Watchdog Timer:

FOSC = XT_XT XT oscillator, XT used by USB

FOSC = XTPLL_XT XT oscillator, PLL enabled, XT used by USB

FOSC = ECIO_EC External clock, port function on RA6, EC used by USB

FOSC = EC_EC External clock, CLKOUT on RA6, EC used by USB

FOSC = ECPLLIO_EC External clock, PLL enabled, port function on RA6, EC used by USB

FOSC = ECPLL_EC External clock, PLL enabled, CLKOUT on RA6, EC used by USB

FOSC = INTOSCIO_EC Internal oscillator, port function on RA6, EC used by USB

FOSC = INTOSC_EC Internal oscillator, CLKOUT on RA6, EC used by USB

FOSC = INTOSC_XT Internal oscillator, XT used by USB

FOSC = INTOSC_HS Internal oscillator, HS used by USB

FOSC = HS HS oscillator, HS used by USB

FOSC = HSPLL_HS HS oscillator, PLL enabled, HS used by USB

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SOFT Controlled by SBOREN

BOR = ON_ACTIVE Enabled when the device is not in SLEEP, SBOREN bit is disabled

BOR = ON Enabled, SBOREN bit is disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

VREGEN = OFF Disabled

VREGEN = ON Enabled

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

© 2005 Microchip Technology Inc. DS51537A-page 37

Page 44: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Dedicated In-Circuit Debug/Programming Enable:

Extended Instruction Set Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 oscillator configured for high power

LPT1OSC = ON Timer1 oscillator configured for low power

PBADEN = OFF PortB<4:0> pins are configured as digital I/O on RESET

PBADEN = ON PortB<4:0> pins are configured as analog input on RESET

CCP2MX = OFF CCP2 input/output is multiplexed with RB3

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ICPRT = OFF Disabled

ICPRT = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DS51537A-page 38 © 2005 Microchip Technology Inc.

Page 45: #pragma config

Configuration Settings

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 39

Page 46: #pragma config

PIC18 Configuration Settings Addendum

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F248

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

DS51537A-page 40 © 2005 Microchip Technology Inc.

Page 47: #pragma config

Configuration Settings

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 41

Page 48: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F2480

Oscillator Selection bits:

Fail Safe Clock Monitor:

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

DS51537A-page 42 © 2005 Microchip Technology Inc.

Page 49: #pragma config

Configuration Settings

Internal External Osc. Switch:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

© 2005 Microchip Technology Inc. DS51537A-page 43

Page 50: #pragma config

PIC18 Configuration Settings Addendum

Port B Pins Configured for A/D:

BackGround Debug:

Extended Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

DS51537A-page 44 © 2005 Microchip Technology Inc.

Page 51: #pragma config

Configuration Settings

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F24J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Watchdog Timer:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 45

Page 52: #pragma config

PIC18 Configuration Settings Addendum

Default/Reset System Clock Select bit:

FOSC0: Oscillator Selection bit:

Watchdog Postscaler:

CCP2 Mux:

PIC18F2510

Oscillator Selection:

Fail Safe Clock Monitor:

FOSC1 = INTRC INTRC enabled as system clock

FOSC1 = FOSC Clock selected by FOSC0

FOSC0 = HS HS oscillator

FOSC0 = EC External Clock

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

CCP2MUX = OFF CCP2 Multiplexed with RB3

CCP2MUX = ON CCP2 Multiplexed with RC1

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

DS51537A-page 46 © 2005 Microchip Technology Inc.

Page 53: #pragma config

Configuration Settings

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 47

Page 54: #pragma config

PIC18 Configuration Settings Addendum

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

DS51537A-page 48 © 2005 Microchip Technology Inc.

Page 55: #pragma config

Configuration Settings

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2515

Oscillator Selection:

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

© 2005 Microchip Technology Inc. DS51537A-page 49

Page 56: #pragma config

PIC18 Configuration Settings Addendum

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

DS51537A-page 50 © 2005 Microchip Technology Inc.

Page 57: #pragma config

Configuration Settings

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 51

Page 58: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F252

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

DS51537A-page 52 © 2005 Microchip Technology Inc.

Page 59: #pragma config

Configuration Settings

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 53

Page 60: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

DS51537A-page 54 © 2005 Microchip Technology Inc.

Page 61: #pragma config

Configuration Settings

Boot Block Table Read Protection:

PIC18F2520

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 55

Page 62: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

XINST Enable:

Background Debugger Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

DS51537A-page 56 © 2005 Microchip Technology Inc.

Page 63: #pragma config

Configuration Settings

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 57

Page 64: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2525

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

DS51537A-page 58 © 2005 Microchip Technology Inc.

Page 65: #pragma config

Configuration Settings

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 59

Page 66: #pragma config

PIC18 Configuration Settings Addendum

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

DS51537A-page 60 © 2005 Microchip Technology Inc.

Page 67: #pragma config

Configuration Settings

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F2539

Oscillator Selection:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

© 2005 Microchip Technology Inc. DS51537A-page 61

Page 68: #pragma config

PIC18 Configuration Settings Addendum

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

DS51537A-page 62 © 2005 Microchip Technology Inc.

Page 69: #pragma config

Configuration Settings

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F2550

96MHz PLL Prescaler:

CPU System Clock Postscaler:

Full-Speed USB Clock Source Selection:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

PLLDIV = 1 No divide (4MHz input)

PLLDIV = 2 Divide by 2 (8MHz input)

PLLDIV = 3 Divide by 3 (12MHz input)

PLLDIV = 4 Divide by 4 (16MHz input)

PLLDIV = 5 Divide by 5 (20MHz input)

PLLDIV = 6 Divide by 6 (24MHz input)

PLLDIV = 10 Divide by 10 (40MHz input)

PLLDIV = 12 Divide by 12 (48MHz input)

CPUDIV = OSC1_PLL2 [OSC1/OSC2 Src: /1][96MHz PLL Src: /2]

CPUDIV = OSC2_PLL3 [OSC1/OSC2 Src: /2][96MHz PLL Src: /3]

CPUDIV = OSC3_PLL4 [OSC1/OSC2 Src: /3][96MHz PLL Src: /4]

CPUDIV = OSC4_PLL6 [OSC1/OSC2 Src: /4][96MHz PLL Src: /6]

USBDIV = 1 Clock source from OSC1/OSC2

USBDIV = 2 Clock source from 96MHz PLL/2

© 2005 Microchip Technology Inc. DS51537A-page 63

Page 70: #pragma config

PIC18 Configuration Settings Addendum

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

USB Voltage Regulator Enable:

Watchdog Timer:

FOSC = XT_XT XT oscillator, XT used by USB

FOSC = XTPLL_XT XT oscillator, PLL enabled, XT used by USB

FOSC = ECIO_EC External clock, port function on RA6, EC used by USB

FOSC = EC_EC External clock, CLKOUT on RA6, EC used by USB

FOSC = ECPLLIO_EC External clock, PLL enabled, port function on RA6, EC used by USB

FOSC = ECPLL_EC External clock, PLL enabled, CLKOUT on RA6, EC used by USB

FOSC = INTOSCIO_EC Internal oscillator, port function on RA6, EC used by USB

FOSC = INTOSC_EC Internal oscillator, CLKOUT on RA6, EC used by USB

FOSC = INTOSC_XT Internal oscillator, XT used by USB

FOSC = INTOSC_HS Internal oscillator, HS used by USB

FOSC = HS HS oscillator, HS used by USB

FOSC = HSPLL_HS HS oscillator, PLL enabled, HS used by USB

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SOFT Controlled by SBOREN

BOR = ON_ACTIVE Enabled when the device is not in SLEEP, SBOREN bit is disabled

BOR = ON Enabled, SBOREN bit is disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

VREGEN = OFF Disabled

VREGEN = ON Enabled

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

DS51537A-page 64 © 2005 Microchip Technology Inc.

Page 71: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Dedicated In-Circuit Debug/Programming Enable:

Extended Instruction Set Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 oscillator configured for high power

LPT1OSC = ON Timer1 oscillator configured for low power

PBADEN = OFF PortB<4:0> pins are configured as digital I/O on RESET

PBADEN = ON PortB<4:0> pins are configured as analog input on RESET

CCP2MX = OFF CCP2 input/output is multiplexed with RB3

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ICPRT = OFF Disabled

ICPRT = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 65

Page 72: #pragma config

PIC18 Configuration Settings Addendum

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

DS51537A-page 66 © 2005 Microchip Technology Inc.

Page 73: #pragma config

Configuration Settings

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F258

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 67

Page 74: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

DS51537A-page 68 © 2005 Microchip Technology Inc.

Page 75: #pragma config

Configuration Settings

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 69

Page 76: #pragma config

PIC18 Configuration Settings Addendum

PIC18F2580

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal External Osc. Switch:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

DS51537A-page 70 © 2005 Microchip Technology Inc.

Page 77: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

Port B Pins Configured for A/D:

BackGround Debug:

Extended Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 71

Page 78: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

DS51537A-page 72 © 2005 Microchip Technology Inc.

Page 79: #pragma config

Configuration Settings

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2585

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal External Osc. Switch:

Power Up Timer:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 73

Page 80: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

Port B Pins Configured for A/D:

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

DS51537A-page 74 © 2005 Microchip Technology Inc.

Page 81: #pragma config

Configuration Settings

BackGround Debug:

Extended Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

BBSIZ = 4096 4K words (8K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 75

Page 82: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F25J10

Background Debugger Enable:

Extended Instruction Set Enable:

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

DS51537A-page 76 © 2005 Microchip Technology Inc.

Page 83: #pragma config

Configuration Settings

Stack Overflow Reset:

Watchdog Timer:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Default/Reset System Clock Select bit:

FOSC0: Oscillator Selection bit:

Watchdog Postscaler:

CCP2 Mux:

STVR = OFF Disabled

STVR = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC1 = INTRC INTRC enabled as system clock

FOSC1 = FOSC Clock selected by FOSC0

FOSC0 = HS HS oscillator

FOSC0 = EC External Clock

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

CCP2MUX = OFF CCP2 Multiplexed with RB3

CCP2MUX = ON CCP2 Multiplexed with RC1

© 2005 Microchip Technology Inc. DS51537A-page 77

Page 84: #pragma config

PIC18 Configuration Settings Addendum

PIC18F2610

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 78 © 2005 Microchip Technology Inc.

Page 85: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 79

Page 86: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

DS51537A-page 80 © 2005 Microchip Technology Inc.

Page 87: #pragma config

Configuration Settings

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2620

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 81

Page 88: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

XINST Enable:

Background Debugger Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

DS51537A-page 82 © 2005 Microchip Technology Inc.

Page 89: #pragma config

Configuration Settings

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 83

Page 90: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F2680

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal External Osc. Switch:

Power Up Timer:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

DS51537A-page 84 © 2005 Microchip Technology Inc.

Page 91: #pragma config

Configuration Settings

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

Port B Pins Configured for A/D:

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

© 2005 Microchip Technology Inc. DS51537A-page 85

Page 92: #pragma config

PIC18 Configuration Settings Addendum

BackGround Debug:

Extended Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

BBSIZ = 4096 4K words (8K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

DS51537A-page 86 © 2005 Microchip Technology Inc.

Page 93: #pragma config

Configuration Settings

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 87

Page 94: #pragma config

PIC18 Configuration Settings Addendum

PIC18F4220

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Switch Over mode:

Power-Up Timer:

Brown-Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP Oscillator

OSC = XT XT Oscillator

OSC = HS HS Oscillator

OSC = EC External Clock on OSC1, OSC2 as Fosc/4

OSC = ECIO External Clock on OSC1, OSC2 as RA6

OSC = HSPLL HS + PLL

OSC = RCIO External RC on OSC1, OSC2 as RA6

OSC = INTIO2 Internal RC, OSC1 as RA7, OSC2 as RA6

OSC = INTIO1 Internal RC, OSC1 as RA7, OSC2 as Fosc/4

OSC = RC External RC on OSC1, OSC2 as Fosc/4

FSCM = OFF Fail Safe Clock Monitor disabled

FSCM = ON Fail Safe Clock Monitor enabled

IESO = OFF Internal External Switch Over mode disabled

IESO = ON Internal External Switch Over mode enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 88 © 2005 Microchip Technology Inc.

Page 95: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

PORTB A/D Enable:

CCP2 Pin Function:

Stack Full/Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBAD = DIG Digital

PBAD = ANA Analog

CCP2MX = B3 RB3

CCP2MX = OFF RB3

CCP2MX = C1 RC1

CCP2MX = ON RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 89

Page 96: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DS51537A-page 90 © 2005 Microchip Technology Inc.

Page 97: #pragma config

Configuration Settings

PIC18F4320

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Switch Over mode:

Power-Up Timer:

Brown-Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP Oscillator

OSC = XT XT Oscillator

OSC = HS HS Oscillator

OSC = EC External Clock on OSC1, OSC2 as Fosc/4

OSC = ECIO External Clock on OSC1, OSC2 as RA6

OSC = HSPLL HS + PLL

OSC = RCIO External RC on OSC1, OSC2 as RA6

OSC = INTIO2 Internal RC, OSC1 as RA7, OSC2 as RA6

OSC = INTIO1 Internal RC, OSC1 as RA7, OSC2 as Fosc/4

OSC = RC External RC on OSC1, OSC2 as Fosc/4

FSCM = OFF Fail Safe Clock Monitor disabled

FSCM = ON Fail Safe Clock Monitor enabled

IESO = OFF Internal External Switch Over mode disabled

IESO = ON Internal External Switch Over mode enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 91

Page 98: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

PORTB A/D Enable:

CCP2 Pin Function:

Stack Full/Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBAD = DIG Digital

PBAD = ANA Analog

CCP2MX = B3 RB3

CCP2MX = OFF RB3

CCP2MX = C1 RC1

CCP2MX = ON RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

DS51537A-page 92 © 2005 Microchip Technology Inc.

Page 99: #pragma config

Configuration Settings

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 93

Page 100: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4331

Oscillator Selection:

Fail Safe Clock Monitor Enable:

Internal/External Switch-Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC2 External RC, RA6 is CLKOUT

OSC = EC EC, RA6 is CLKOUT

OSC = ECIO EC, RA6 is I/O

OSC = HSPLL HS-PLL Enabled

OSC = RCIO External RC, RA6 is I/O

OSC = IRCIO Internal RC, RA6 & RA7 are I/O

OSC = IRC Internal RC, RA6 is CLKOUT, RA7 is I/O

OSC = RC1 External RC, RA6 is CLKOUT

OSC = RC External RC, RA6 is CLKOUT

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRTEN = ON Enabled

PWRTEN = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

DS51537A-page 94 © 2005 Microchip Technology Inc.

Page 101: #pragma config

Configuration Settings

Watchdog Timer:

Watchdog Timer Enable Window:

Watchdog Postscaler:

Timer1 Oscillator Mux:

High-Side Transistors Polarity:

Low-Side Transistors Polarity:

PWM output pins RESET state control:

MCLR Enable:

External clock MUX bit:

WDTEN = OFF Disabled

WDTEN = ON Enabled

WINEN = ON Enabled

WINEN = OFF Disabled

WDPS = 1 1:1

WDPS = 2 1:2

WDPS = 4 1:4

WDPS = 8 1:8

WDPS = 16 1:16

WDPS = 32 1:32

WDPS = 64 1:64

WDPS = 128 1:128

WDPS = 256 1:256

WDPS = 512 1:512

WDPS = 1024 1:1024

WDPS = 2048 1:2048

WDPS = 4096 1:4096

WDPS = 8192 1:8192

WDPS = 16384 1:16384

WDPS = 32768 1:32768

T1OSCMX = OFF Active

T1OSCMX = ON Inactive

HPOL = LOW Active low

HPOL = HIGH Active high

LPOL = LOW Active low

LPOL = HIGH Active high

PWMPIN = ON Enabled

PWMPIN = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

EXCLKMX = RD0 MUXed with RD0

EXCLKMX = RC3 MUXed with RC3

© 2005 Microchip Technology Inc. DS51537A-page 95

Page 102: #pragma config

PIC18 Configuration Settings Addendum

PWM4 MUX bit:

SSP I/O MUX bit:

FLTA MUX bit:

Stack Overflow Reset:

Low Voltage Programming:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

PWM4MX = RD5 MUXed with RD5

PWM4MX = RB5 MUXed with RB5

SSPMX = RD1 SDO output muxed with RD1

SSPMX = RC7 SD0 output muxed with RC7

FLTAMX = RD4 MUXed with RD4

FLTAMX = RC1 MUXed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

DS51537A-page 96 © 2005 Microchip Technology Inc.

Page 103: #pragma config

Configuration Settings

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 97

Page 104: #pragma config

PIC18 Configuration Settings Addendum

PIC18F4410

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 98 © 2005 Microchip Technology Inc.

Page 105: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 99

Page 106: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 1:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F442

Oscillator Selection:

Osc. Switch Enable:

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

DS51537A-page 100 © 2005 Microchip Technology Inc.

Page 107: #pragma config

Configuration Settings

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 101

Page 108: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DS51537A-page 102 © 2005 Microchip Technology Inc.

Page 109: #pragma config

Configuration Settings

PIC18F4420

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 103

Page 110: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

DS51537A-page 104 © 2005 Microchip Technology Inc.

Page 111: #pragma config

Configuration Settings

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 105

Page 112: #pragma config

PIC18 Configuration Settings Addendum

PIC18F4431

Oscillator Selection:

Fail Safe Clock Monitor Enable:

Internal/External Switch-Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Timer Enable Window:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC2 External RC, RA6 is CLKOUT

OSC = EC EC, RA6 is CLKOUT

OSC = ECIO EC, RA6 is I/O

OSC = HSPLL HS-PLL Enabled

OSC = RCIO External RC, RA6 is I/O

OSC = IRCIO Internal RC, RA6 & RA7 are I/O

OSC = IRC Internal RC, RA6 is CLKOUT, RA7 is I/O

OSC = RC1 External RC, RA6 is CLKOUT

OSC = RC External RC, RA6 is CLKOUT

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRTEN = ON Enabled

PWRTEN = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDTEN = OFF Disabled

WDTEN = ON Enabled

WINEN = ON Enabled

WINEN = OFF Disabled

DS51537A-page 106 © 2005 Microchip Technology Inc.

Page 113: #pragma config

Configuration Settings

Watchdog Postscaler:

Timer1 Oscillator Mux:

High-Side Transistors Polarity:

Low-Side Transistors Polarity:

PWM output pins RESET state control:

MCLR Enable:

External clock MUX bit:

PWM4 MUX bit:

SSP I/O MUX bit:

WDPS = 1 1:1

WDPS = 2 1:2

WDPS = 4 1:4

WDPS = 8 1:8

WDPS = 16 1:16

WDPS = 32 1:32

WDPS = 64 1:64

WDPS = 128 1:128

WDPS = 256 1:256

WDPS = 512 1:512

WDPS = 1024 1:1024

WDPS = 2048 1:2048

WDPS = 4096 1:4096

WDPS = 8192 1:8192

WDPS = 16384 1:16384

WDPS = 32768 1:32768

T1OSCMX = OFF Active

T1OSCMX = ON Inactive

HPOL = LOW Active low

HPOL = HIGH Active high

LPOL = LOW Active low

LPOL = HIGH Active high

PWMPIN = ON Enabled

PWMPIN = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

EXCLKMX = RD0 MUXed with RD0

EXCLKMX = RC3 MUXed with RC3

PWM4MX = RD5 MUXed with RD5

PWM4MX = RB5 MUXed with RB5

SSPMX = RD1 SDO output muxed with RD1

SSPMX = RC7 SD0 output muxed with RC7

© 2005 Microchip Technology Inc. DS51537A-page 107

Page 114: #pragma config

PIC18 Configuration Settings Addendum

FLTA MUX bit:

Stack Overflow Reset:

Low Voltage Programming:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

FLTAMX = RD4 MUXed with RD4

FLTAMX = RC1 MUXed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

DS51537A-page 108 © 2005 Microchip Technology Inc.

Page 115: #pragma config

Configuration Settings

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4439

Oscillator Selection:

Power Up Timer:

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 109

Page 116: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

DS51537A-page 110 © 2005 Microchip Technology Inc.

Page 117: #pragma config

Configuration Settings

Write Protection Block 0:

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F4455

96MHz PLL Prescaler:

CPU System Clock Postscaler:

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

PLLDIV = 1 No divide (4MHz input)

PLLDIV = 2 Divide by 2 (8MHz input)

PLLDIV = 3 Divide by 3 (12MHz input)

PLLDIV = 4 Divide by 4 (16MHz input)

PLLDIV = 5 Divide by 5 (20MHz input)

PLLDIV = 6 Divide by 6 (24MHz input)

PLLDIV = 10 Divide by 10 (40MHz input)

PLLDIV = 12 Divide by 12 (48MHz input)

CPUDIV = OSC1_PLL2 [OSC1/OSC2 Src: /1][96MHz PLL Src: /2]

CPUDIV = OSC2_PLL3 [OSC1/OSC2 Src: /2][96MHz PLL Src: /3]

CPUDIV = OSC3_PLL4 [OSC1/OSC2 Src: /3][96MHz PLL Src: /4]

CPUDIV = OSC4_PLL6 [OSC1/OSC2 Src: /4][96MHz PLL Src: /6]

© 2005 Microchip Technology Inc. DS51537A-page 111

Page 118: #pragma config

PIC18 Configuration Settings Addendum

Full-Speed USB Clock Source Selection:

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

USB Voltage Regulator Enable:

USBDIV = 1 Clock source from OSC1/OSC2

USBDIV = 2 Clock source from 96MHz PLL/2

FOSC = XT_XT XT oscillator, XT used by USB

FOSC = XTPLL_XT XT oscillator, PLL enabled, XT used by USB

FOSC = ECIO_EC External clock, port function on RA6, EC used by USB

FOSC = EC_EC External clock, CLKOUT on RA6, EC used by USB

FOSC = ECPLLIO_EC External clock, PLL enabled, port function on RA6, EC used by USB

FOSC = ECPLL_EC External clock, PLL enabled, CLKOUT on RA6, EC used by USB

FOSC = INTOSCIO_EC Internal oscillator, port function on RA6, EC used by USB

FOSC = INTOSC_EC Internal oscillator, CLKOUT on RA6, EC used by USB

FOSC = INTOSC_XT Internal oscillator, XT used by USB

FOSC = INTOSC_HS Internal oscillator, HS used by USB

FOSC = HS HS oscillator, HS used by USB

FOSC = HSPLL_HS HS oscillator, PLL enabled, HS used by USB

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SOFT Controlled by SBOREN

BOR = ON_ACTIVE Enabled when the device is not in SLEEP, SBOREN bit is disabled

BOR = ON Enabled, SBOREN bit is disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

VREGEN = OFF Disabled

VREGEN = ON Enabled

DS51537A-page 112 © 2005 Microchip Technology Inc.

Page 119: #pragma config

Configuration Settings

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Dedicated In-Circuit Debug/Programming Enable:

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 oscillator configured for high power

LPT1OSC = ON Timer1 oscillator configured for low power

PBADEN = OFF PortB<4:0> pins are configured as digital I/O on RESET

PBADEN = ON PortB<4:0> pins are configured as analog input on RESET

CCP2MX = OFF CCP2 input/output is multiplexed with RB3

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ICPRT = OFF Disabled

ICPRT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 113

Page 120: #pragma config

PIC18 Configuration Settings Addendum

Extended Instruction Set Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

DS51537A-page 114 © 2005 Microchip Technology Inc.

Page 121: #pragma config

Configuration Settings

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F448

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 115

Page 122: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

DS51537A-page 116 © 2005 Microchip Technology Inc.

Page 123: #pragma config

Configuration Settings

Write Protection Block 1:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Boot Block Table Read Protection:

PIC18F4480

Oscillator Selection bits:

Fail Safe Clock Monitor:

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 117

Page 124: #pragma config

PIC18 Configuration Settings Addendum

Internal External Osc. Switch:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

DS51537A-page 118 © 2005 Microchip Technology Inc.

Page 125: #pragma config

Configuration Settings

Port B Pins Configured for A/D:

BackGround Debug:

Extended Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 119

Page 126: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DS51537A-page 120 © 2005 Microchip Technology Inc.

Page 127: #pragma config

Configuration Settings

PIC18F44J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Watchdog Timer:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Default/Reset System Clock Select bit:

FOSC0: Oscillator Selection bit:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC1 = INTRC INTRC enabled as system clock

FOSC1 = FOSC Clock selected by FOSC0

FOSC0 = HS HS oscillator

FOSC0 = EC External Clock

© 2005 Microchip Technology Inc. DS51537A-page 121

Page 128: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

CCP2 Mux:

PIC18F4510

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

CCP2MUX = OFF CCP2 Multiplexed with RB3

CCP2MUX = ON CCP2 Multiplexed with RC1

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

DS51537A-page 122 © 2005 Microchip Technology Inc.

Page 129: #pragma config

Configuration Settings

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux:

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

© 2005 Microchip Technology Inc. DS51537A-page 123

Page 130: #pragma config

PIC18 Configuration Settings Addendum

Stack Overflow Reset:

Low Voltage ICSP:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

DS51537A-page 124 © 2005 Microchip Technology Inc.

Page 131: #pragma config

Configuration Settings

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4515

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 125

Page 132: #pragma config

PIC18 Configuration Settings Addendum

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

DS51537A-page 126 © 2005 Microchip Technology Inc.

Page 133: #pragma config

Configuration Settings

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 127

Page 134: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F452

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 128 © 2005 Microchip Technology Inc.

Page 135: #pragma config

Configuration Settings

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disable (RB3)

CCP2MUX = ON Enable (RC1)

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 129

Page 136: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DS51537A-page 130 © 2005 Microchip Technology Inc.

Page 137: #pragma config

Configuration Settings

PIC18F4520

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 131

Page 138: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

XINST Enable:

Background Debugger Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

DS51537A-page 132 © 2005 Microchip Technology Inc.

Page 139: #pragma config

Configuration Settings

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 133

Page 140: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4525

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

DS51537A-page 134 © 2005 Microchip Technology Inc.

Page 141: #pragma config

Configuration Settings

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 135

Page 142: #pragma config

PIC18 Configuration Settings Addendum

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

DS51537A-page 136 © 2005 Microchip Technology Inc.

Page 143: #pragma config

Configuration Settings

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F4539

Oscillator Selection:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

© 2005 Microchip Technology Inc. DS51537A-page 137

Page 144: #pragma config

PIC18 Configuration Settings Addendum

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

DS51537A-page 138 © 2005 Microchip Technology Inc.

Page 145: #pragma config

Configuration Settings

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F4550

96MHz PLL Prescaler:

CPU System Clock Postscaler:

Full-Speed USB Clock Source Selection:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

PLLDIV = 1 No divide (4MHz input)

PLLDIV = 2 Divide by 2 (8MHz input)

PLLDIV = 3 Divide by 3 (12MHz input)

PLLDIV = 4 Divide by 4 (16MHz input)

PLLDIV = 5 Divide by 5 (20MHz input)

PLLDIV = 6 Divide by 6 (24MHz input)

PLLDIV = 10 Divide by 10 (40MHz input)

PLLDIV = 12 Divide by 12 (48MHz input)

CPUDIV = OSC1_PLL2 [OSC1/OSC2 Src: /1][96MHz PLL Src: /2]

CPUDIV = OSC2_PLL3 [OSC1/OSC2 Src: /2][96MHz PLL Src: /3]

CPUDIV = OSC3_PLL4 [OSC1/OSC2 Src: /3][96MHz PLL Src: /4]

CPUDIV = OSC4_PLL6 [OSC1/OSC2 Src: /4][96MHz PLL Src: /6]

USBDIV = 1 Clock source from OSC1/OSC2

USBDIV = 2 Clock source from 96MHz PLL/2

© 2005 Microchip Technology Inc. DS51537A-page 139

Page 146: #pragma config

PIC18 Configuration Settings Addendum

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

USB Voltage Regulator Enable:

Watchdog Timer:

FOSC = XT_XT XT oscillator, XT used by USB

FOSC = XTPLL_XT XT oscillator, PLL enabled, XT used by USB

FOSC = ECIO_EC External clock, port function on RA6, EC used by USB

FOSC = EC_EC External clock, CLKOUT on RA6, EC used by USB

FOSC = ECPLLIO_EC External clock, PLL enabled, port function on RA6, EC used by USB

FOSC = ECPLL_EC External clock, PLL enabled, CLKOUT on RA6, EC used by USB

FOSC = INTOSCIO_EC Internal oscillator, port function on RA6, EC used by USB

FOSC = INTOSC_EC Internal oscillator, CLKOUT on RA6, EC used by USB

FOSC = INTOSC_XT Internal oscillator, XT used by USB

FOSC = INTOSC_HS Internal oscillator, HS used by USB

FOSC = HS HS oscillator, HS used by USB

FOSC = HSPLL_HS HS oscillator, PLL enabled, HS used by USB

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SOFT Controlled by SBOREN

BOR = ON_ACTIVE Enabled when the device is not in SLEEP, SBOREN bit is disabled

BOR = ON Enabled, SBOREN bit is disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

VREGEN = OFF Disabled

VREGEN = ON Enabled

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

DS51537A-page 140 © 2005 Microchip Technology Inc.

Page 147: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Dedicated In-Circuit Debug/Programming Enable:

Extended Instruction Set Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 oscillator configured for high power

LPT1OSC = ON Timer1 oscillator configured for low power

PBADEN = OFF PortB<4:0> pins are configured as digital I/O on RESET

PBADEN = ON PortB<4:0> pins are configured as analog input on RESET

CCP2MX = OFF CCP2 input/output is multiplexed with RB3

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ICPRT = OFF Disabled

ICPRT = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 141

Page 148: #pragma config

PIC18 Configuration Settings Addendum

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

DS51537A-page 142 © 2005 Microchip Technology Inc.

Page 149: #pragma config

Configuration Settings

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F458

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 143

Page 150: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

DS51537A-page 144 © 2005 Microchip Technology Inc.

Page 151: #pragma config

Configuration Settings

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 145

Page 152: #pragma config

PIC18 Configuration Settings Addendum

PIC18F4580

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal External Osc. Switch:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

DS51537A-page 146 © 2005 Microchip Technology Inc.

Page 153: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

Port B Pins Configured for A/D:

BackGround Debug:

Extended Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 147

Page 154: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

DS51537A-page 148 © 2005 Microchip Technology Inc.

Page 155: #pragma config

Configuration Settings

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4585

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal External Osc. Switch:

Power Up Timer:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 149

Page 156: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

Port B Pins Configured for A/D:

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

DS51537A-page 150 © 2005 Microchip Technology Inc.

Page 157: #pragma config

Configuration Settings

BackGround Debug:

Enhanced Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

BBSIZ = 4096 4K words (8K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 151

Page 158: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F45J10

Background Debugger Enable:

Extended Instruction Set Enable:

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

DS51537A-page 152 © 2005 Microchip Technology Inc.

Page 159: #pragma config

Configuration Settings

Stack Overflow Reset:

Watchdog Timer:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Default/Reset System Clock Select bit:

FOSC0: Oscillator Selection bit:

Watchdog Postscaler:

CCP2 Mux:

STVR = OFF Disabled

STVR = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC1 = INTRC INTRC enabled as system clock

FOSC1 = FOSC Clock selected by FOSC0

FOSC0 = HS HS oscillator

FOSC0 = EC External Clock

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

CCP2MUX = OFF CCP2 Multiplexed with RB3

CCP2MUX = ON CCP2 Multiplexed with RC1

© 2005 Microchip Technology Inc. DS51537A-page 153

Page 160: #pragma config

PIC18 Configuration Settings Addendum

PIC18F4610

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 154 © 2005 Microchip Technology Inc.

Page 161: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Enhanced CPU Enable:

Background Debugger Enable:

Code Protection Block 0:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

ENHCPU = OFF Disabled

ENHCPU = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 155

Page 162: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

DS51537A-page 156 © 2005 Microchip Technology Inc.

Page 163: #pragma config

Configuration Settings

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4620

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.6V

BORV = 43 4.3V

BORV = 28 2.8V

BORV = 21 2.1V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 157

Page 164: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

Port B A/D Enable:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

XINST Enable:

Background Debugger Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

PBADEN = OFF Port B<4:0> digital on RESET

PBADEN = ON Port B<4:0> analog on RESET

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

DS51537A-page 158 © 2005 Microchip Technology Inc.

Page 165: #pragma config

Configuration Settings

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 159

Page 166: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F4680

Oscillator Selection bits:

Fail Safe Clock Monitor:

Internal External Osc. Switch:

Power Up Timer:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC External RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO External RC with OSC2 as RA6

OSC = IRCIO67 Internal RC with OSC2 as RA6 and OSC1 as RA7

OSC = IRCIO7 Internal RC with OSC1 as RA7 and OSC2 as divide by 4 clock out

OSC = ERC1 External RC with OSC2 as divide by 4 clock out

OSC = ERC External RC with OSC2 as divide by 4 clock out

FCMENB = OFF Disabled

FCMENB = ON Enabled

IESOB = OFF Disabled

IESOB = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

DS51537A-page 160 © 2005 Microchip Technology Inc.

Page 167: #pragma config

Configuration Settings

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Oscillator:

Port B Pins Configured for A/D:

BOR = OFF Disabled

BOR = SBORENCTRL Controlled by SBOREN

BOR = BOACTIVE Enabled whenever Part is Active - SBOREN Dis-abled

BOR = BOHW Enabled in HW, SBOREN disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Timer1 Low Power Oscillator disabled

LPT1OSC = ON Timer1 Low Power Oscillator Active

PBADEN = OFF Port B<4> and Port B<1:0> Configured as Digital I/O Pins on Reset

PBADEN = ON Port B<4> and Port B<1:0> Configured as Analog Pins on Reset

© 2005 Microchip Technology Inc. DS51537A-page 161

Page 168: #pragma config

PIC18 Configuration Settings Addendum

BackGround Debug:

Enhanced Instruction Set CPU:

Boot Block Size:

Low Voltage Programming:

Stack Overflow/Underflow Reset:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

BBSIZ = 1024 1K words (2K bytes) Boot Block

BBSIZ = 2048 2K words (4K bytes) Boot Block

BBSIZ = 4096 4K words (8K bytes) Boot Block

LVP = OFF Disabled

LVP = ON Enabled

STVREN = OFF Disabled

STVREN = ON Enabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

DS51537A-page 162 © 2005 Microchip Technology Inc.

Page 169: #pragma config

Configuration Settings

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 163

Page 170: #pragma config

PIC18 Configuration Settings Addendum

PIC18F6310

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 164 © 2005 Microchip Technology Inc.

Page 171: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Selection:

CCP2 Mux:

Stack Overflow Reset:

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 165

Page 172: #pragma config

PIC18 Configuration Settings Addendum

PIC18F6390

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 166 © 2005 Microchip Technology Inc.

Page 173: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Selection:

CCP2 Mux:

Stack Overflow Reset:

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 167

Page 174: #pragma config

PIC18 Configuration Settings Addendum

PIC18F6410

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 168 © 2005 Microchip Technology Inc.

Page 175: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Selection:

CCP2 Mux:

Stack Overflow Reset:

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 169

Page 176: #pragma config

PIC18 Configuration Settings Addendum

PIC18F6490

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 170 © 2005 Microchip Technology Inc.

Page 177: #pragma config

Configuration Settings

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Selection:

CCP2 Mux:

Stack Overflow Reset:

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 171

Page 178: #pragma config

PIC18 Configuration Settings Addendum

PIC18F64J15

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

DS51537A-page 172 © 2005 Microchip Technology Inc.

Page 179: #pragma config

Configuration Settings

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

CCP2 Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 173

Page 180: #pragma config

PIC18 Configuration Settings Addendum

PIC18F6520

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Uses RE7

CCP2MUX = RE7 Uses RE7

CCP2MUX = ON Uses RC1

CCP2MUX = RC1 Uses RC1

DS51537A-page 174 © 2005 Microchip Technology Inc.

Page 181: #pragma config

Configuration Settings

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 175

Page 182: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F6525

Oscillator Selection:

Osc. Switch Enable:

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = ECIOPLL EC-OSC2 as RA6 and PLL

OSC = ECIOSWPLL EC-OSC2 as RA6 and SW PLL

OSC = HSSWPLL HS with SW PLL

OSCS = ON Enabled

OSCS = OFF Disabled

DS51537A-page 176 © 2005 Microchip Technology Inc.

Page 183: #pragma config

Configuration Settings

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

ECCP Mux:

CCP2 Mux:

Stack Overflow Reset:

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

CCP2MX = PORTBE Muxed with RB3 or RE7

CCP2MX = PORTC Muxed with RC1

STVR = OFF Disabled

STVR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 177

Page 184: #pragma config

PIC18 Configuration Settings Addendum

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

DS51537A-page 178 © 2005 Microchip Technology Inc.

Page 185: #pragma config

Configuration Settings

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F6527

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

© 2005 Microchip Technology Inc. DS51537A-page 179

Page 186: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

ECCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

CCP2MX = PORTB Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DS51537A-page 180 © 2005 Microchip Technology Inc.

Page 187: #pragma config

Configuration Settings

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 181

Page 188: #pragma config

PIC18 Configuration Settings Addendum

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F6585

Oscillator Selection bits:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO RC with OSC2 as RA6

OSC = ECIOPLL EC with OSC2 as RA6 and HW enabled 4xPLL

OSC = ECIOSWPLL EC with OSC2 as RA6 and SW enabled 4xPLL

OSC = HSSWPLL HS with SW enabled 4xPLL

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

DS51537A-page 182 © 2005 Microchip Technology Inc.

Page 189: #pragma config

Configuration Settings

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

CCP2MX = OFF CCP2 input/output is multiplexed with RE7

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 183

Page 190: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

DS51537A-page 184 © 2005 Microchip Technology Inc.

Page 191: #pragma config

Configuration Settings

Boot Block Table Read Protection:

PIC18F65J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

© 2005 Microchip Technology Inc. DS51537A-page 185

Page 192: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

CCP2 Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

DS51537A-page 186 © 2005 Microchip Technology Inc.

Page 193: #pragma config

Configuration Settings

PIC18F65J15

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

© 2005 Microchip Technology Inc. DS51537A-page 187

Page 194: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

CCP2 Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

DS51537A-page 188 © 2005 Microchip Technology Inc.

Page 195: #pragma config

Configuration Settings

PIC18F6620

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 189

Page 196: #pragma config

PIC18 Configuration Settings Addendum

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

DS51537A-page 190 © 2005 Microchip Technology Inc.

Page 197: #pragma config

Configuration Settings

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F6621

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = ECIOPLL EC-OSC2 as RA6 and PLL

OSC = ECIOSWPLL EC-OSC2 as RA6 and SW PLL

OSC = HSSWPLL HS with SW PLL

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 191

Page 198: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

ECCP Mux:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

CCP2MX = PORTBE Muxed with RB3 or RE7

CCP2MX = PORTC Muxed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DS51537A-page 192 © 2005 Microchip Technology Inc.

Page 199: #pragma config

Configuration Settings

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 193

Page 200: #pragma config

PIC18 Configuration Settings Addendum

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F6622

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

DS51537A-page 194 © 2005 Microchip Technology Inc.

Page 201: #pragma config

Configuration Settings

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

ECCP2 Mux:

Stack Overflow Reset:

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

CCP2MX = PORTB Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 195

Page 202: #pragma config

PIC18 Configuration Settings Addendum

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

DS51537A-page 196 © 2005 Microchip Technology Inc.

Page 203: #pragma config

Configuration Settings

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F6627

Oscillator Selection:

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

© 2005 Microchip Technology Inc. DS51537A-page 197

Page 204: #pragma config

PIC18 Configuration Settings Addendum

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

DS51537A-page 198 © 2005 Microchip Technology Inc.

Page 205: #pragma config

Configuration Settings

T1 Oscillator Enable:

ECCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Code Protection Block 4:

Code Protection Block 5:

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CP4 = ON Enabled

CP4 = OFF Disabled

CP5 = ON Enabled

CP5 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 199

Page 206: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Write Protection Block 4:

Write Protection Block 5:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRT4 = ON Enabled

WRT4 = OFF Disabled

WRT5 = ON Enabled

WRT5 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

DS51537A-page 200 © 2005 Microchip Technology Inc.

Page 207: #pragma config

Configuration Settings

Table Read Protection Block 2:

Table Read Protection Block 3:

Table Read Protection Block 4:

Table Read Protection Block 5:

Boot Block Table Read Protection:

PIC18F6680

Oscillator Selection bits:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTR4 = ON Enabled

EBTR4 = OFF Disabled

EBTR5 = ON Enabled

EBTR5 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO RC with OSC2 as RA6

OSC = ECIOPLL EC with OSC2 as RA6 and HW enabled 4xPLL

OSC = ECIOSWPLL EC with OSC2 as RA6 and SW enabled 4xPLL

OSC = HSSWPLL HS with SW enabled 4xPLL

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 201

Page 208: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

CCP2MX = OFF CCP2 input/output is multiplexed with RE7

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

DS51537A-page 202 © 2005 Microchip Technology Inc.

Page 209: #pragma config

Configuration Settings

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 203

Page 210: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F66J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

DS51537A-page 204 © 2005 Microchip Technology Inc.

Page 211: #pragma config

Configuration Settings

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

© 2005 Microchip Technology Inc. DS51537A-page 205

Page 212: #pragma config

PIC18 Configuration Settings Addendum

CCP2 Mux:

PIC18F66J15

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

DS51537A-page 206 © 2005 Microchip Technology Inc.

Page 213: #pragma config

Configuration Settings

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

CCP2 Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 207

Page 214: #pragma config

PIC18 Configuration Settings Addendum

PIC18F6720

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2 Mux:

Stack Overflow Reset:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

DS51537A-page 208 © 2005 Microchip Technology Inc.

Page 215: #pragma config

Configuration Settings

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Code Protection Block 4:

Code Protection Block 5:

Code Protection Block 6:

Code Protection Block 7:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CP4 = ON Enabled

CP4 = OFF Disabled

CP5 = ON Enabled

CP5 = OFF Disabled

CP6 = ON Enabled

CP6 = OFF Disabled

CP7 = ON Enabled

CP7 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 209

Page 216: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Write Protection Block 4:

Write Protection Block 5:

Write Protection Block 6:

Write Protection Block 7:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRT4 = ON Enabled

WRT4 = OFF Disabled

WRT5 = ON Enabled

WRT5 = OFF Disabled

WRT6 = ON Enabled

WRT6 = OFF Disabled

WRT7 = ON Enabled

WRT7 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

DS51537A-page 210 © 2005 Microchip Technology Inc.

Page 217: #pragma config

Configuration Settings

Table Read Protection Block 3:

Table Read Protection Block 4:

Table Read Protection Block 5:

Table Read Protection Block 6:

Table Read Protection Block 7:

Boot Block Table Read Protection:

PIC18F6722

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTR4 = ON Enabled

EBTR4 = OFF Disabled

EBTR5 = ON Enabled

EBTR5 = OFF Disabled

EBTR6 = ON Enabled

EBTR6 = OFF Disabled

EBTR7 = ON Enabled

EBTR7 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 211

Page 218: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

T1 Oscillator Enable:

ECCP2 Mux:

Stack Overflow Reset:

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

DS51537A-page 212 © 2005 Microchip Technology Inc.

Page 219: #pragma config

Configuration Settings

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Code Protection Block 4:

Code Protection Block 5:

Code Protection Block 6:

Code Protection Block 7:

Boot Block Code Protection:

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CP4 = ON Enabled

CP4 = OFF Disabled

CP5 = ON Enabled

CP5 = OFF Disabled

CP6 = ON Enabled

CP6 = OFF Disabled

CP7 = ON Enabled

CP7 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 213

Page 220: #pragma config

PIC18 Configuration Settings Addendum

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Write Protection Block 4:

Write Protection Block 5:

Write Protection Block 6:

Write Protection Block 7:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRT4 = ON Enabled

WRT4 = OFF Disabled

WRT5 = ON Enabled

WRT5 = OFF Disabled

WRT6 = ON Enabled

WRT6 = OFF Disabled

WRT7 = ON Enabled

WRT7 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

DS51537A-page 214 © 2005 Microchip Technology Inc.

Page 221: #pragma config

Configuration Settings

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Table Read Protection Block 4:

Table Read Protection Block 5:

Table Read Protection Block 6:

Table Read Protection Block 7:

Boot Block Table Read Protection:

PIC18F67J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTR4 = ON Enabled

EBTR4 = OFF Disabled

EBTR5 = ON Enabled

EBTR5 = OFF Disabled

EBTR6 = ON Enabled

EBTR6 = OFF Disabled

EBTR7 = ON Enabled

EBTR7 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 215

Page 222: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

DS51537A-page 216 © 2005 Microchip Technology Inc.

Page 223: #pragma config

Configuration Settings

Processor Mode Selection:

External Address Bus Shift Enable:

CCP2 Mux:

PIC18F8310

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

© 2005 Microchip Technology Inc. DS51537A-page 217

Page 224: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Processor Mode Selection:

External Data Bus Width:

External Bus Data Wait:

MCLR Enable:

Low Power Timer1 Selection:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

PM = EM Extended Microcontroller Mode

PM = MPB Microprocessor with Boot Block Mode

PM = MP Microprocessor Mode

PM = MC Microcontroller Mode

BW = 8 8-Bit External Data Bus Width

BW = 16 16-Bit External Data Bus Width

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

DS51537A-page 218 © 2005 Microchip Technology Inc.

Page 225: #pragma config

Configuration Settings

CCP2 Mux:

Stack Overflow Reset:

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

PIC18F8390

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 219

Page 226: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Selection:

CCP2 Mux:

Stack Overflow Reset:

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

DS51537A-page 220 © 2005 Microchip Technology Inc.

Page 227: #pragma config

Configuration Settings

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

PIC18F8410

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

© 2005 Microchip Technology Inc. DS51537A-page 221

Page 228: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Processor Mode Selection:

External Data Bus Width:

External Bus Data Wait:

MCLR Enable:

Low Power Timer1 Selection:

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

PM = EM Extended Microcontroller Mode

PM = MPB Microprocessor with Boot Block Mode

PM = MP Microprocessor Mode

PM = MC Microcontroller Mode

BW = 8 8-Bit External Data Bus Width

BW = 16 16-Bit External Data Bus Width

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

DS51537A-page 222 © 2005 Microchip Technology Inc.

Page 229: #pragma config

Configuration Settings

CCP2 Mux:

Stack Overflow Reset:

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

PIC18F8490

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 223

Page 230: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

MCLR Enable:

Low Power Timer1 Selection:

CCP2 Mux:

Stack Overflow Reset:

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF High Power, High noise immunity T1OSC selected

LPT1OSC = ON Low Power, Low noise immunity T1OSC selected

CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7/RB3

CCP2MX = PORTC CCP2 input/output is multiplexed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

DS51537A-page 224 © 2005 Microchip Technology Inc.

Page 231: #pragma config

Configuration Settings

Extended Instruction set Enable:

Background Debugger Enable:

Code Protection:

Table Read Protection Internal Memory:

PIC18F84J15

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP = ON Enabled

CP = OFF Disabled

EBTR = ON Enabled

EBTR = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 225

Page 232: #pragma config

PIC18 Configuration Settings Addendum

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

DS51537A-page 226 © 2005 Microchip Technology Inc.

Page 233: #pragma config

Configuration Settings

ECCP Mux:

CCP2 Mux:

PIC18F8520

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

ECCPMUX = OFF Disabled

ECCPMUX = ON Enabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC-OSC2 as Clock Out

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

© 2005 Microchip Technology Inc. DS51537A-page 227

Page 234: #pragma config

PIC18 Configuration Settings Addendum

Processor Mode Selection:

External Bus Data Wait:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

CCP2MUX = OFF Uses RE7

CCP2MUX = RE7 Uses RE7

CCP2MUX = ON Uses RC1

CCP2MUX = RC1 Uses RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

DS51537A-page 228 © 2005 Microchip Technology Inc.

Page 235: #pragma config

Configuration Settings

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 229

Page 236: #pragma config

PIC18 Configuration Settings Addendum

PIC18F8525

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = ECIOPLL EC-OSC2 as RA6 and PLL

OSC = ECIOSWPLL EC-OSC2 as RA6 and SW PLL

OSC = HSSWPLL HS with SW PLL

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 230 © 2005 Microchip Technology Inc.

Page 237: #pragma config

Configuration Settings

Watchdog Postscaler:

Processor Mode Selection:

External Bus Data Wait:

MCLR Enable:

ECCP Mux:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

CCP2MX = PORTBE Muxed with RB3 or RE7

CCP2MX = PORTC Muxed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 231

Page 238: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

DS51537A-page 232 © 2005 Microchip Technology Inc.

Page 239: #pragma config

Configuration Settings

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F8527

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 233

Page 240: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

Processor Mode Selection:

External Bus Address Width:

External Bus Data Width:

External Bus Data Wait:

MCLR Enable:

T1 Oscillator Enable:

ECCP Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

ADDRBW = ADDR8BIT 8 Bit Address Bus

ADDRBW = ADDR12BIT 12 Bit Address Bus

ADDRBW = ADDR16BIT 16 Bit Address Bus

ADDRBW = ADDR20BIT 20 Bit Address Bus

DATABW = DATA8BIT 8 Bit Data Bus

DATABW = DATA16BIT 16 Bit Data Bus

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

DS51537A-page 234 © 2005 Microchip Technology Inc.

Page 241: #pragma config

Configuration Settings

ECCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

CCP2MX = PORTB Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 235

Page 242: #pragma config

PIC18 Configuration Settings Addendum

Write Protection Block 2:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F8585

Oscillator Selection bits:

Osc. Switch Enable:

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO RC with OSC2 as RA6

OSC = ECIOPLL EC with OSC2 as RA6 and HW enabled 4xPLL

OSC = ECIOSWPLL EC with OSC2 as RA6 and SW enabled 4xPLL

OSC = HSSWPLL HS with SW enabled 4xPLL

OSCS = ON Enabled

OSCS = OFF Disabled

DS51537A-page 236 © 2005 Microchip Technology Inc.

Page 243: #pragma config

Configuration Settings

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Processor Mode Selection:

External Bus Data Wait:

MCLR Enable:

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 237

Page 244: #pragma config

PIC18 Configuration Settings Addendum

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Boot Block Write Protection:

CCP2MX = OFF CCP2 input/output is multiplexed with RE7

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

DS51537A-page 238 © 2005 Microchip Technology Inc.

Page 245: #pragma config

Configuration Settings

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Boot Block Table Read Protection:

PIC18F85J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

© 2005 Microchip Technology Inc. DS51537A-page 239

Page 246: #pragma config

PIC18 Configuration Settings Addendum

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

DS51537A-page 240 © 2005 Microchip Technology Inc.

Page 247: #pragma config

Configuration Settings

Processor Mode Selection:

External Address Bus Shift Enable:

ECCP Mux:

CCP2 Mux:

PIC18F85J15

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

ECCPMUX = OFF Disabled

ECCPMUX = ON Enabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 241

Page 248: #pragma config

PIC18 Configuration Settings Addendum

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

DS51537A-page 242 © 2005 Microchip Technology Inc.

Page 249: #pragma config

Configuration Settings

External Address Bus Shift Enable:

ECCP Mux:

CCP2 Mux:

PIC18F8620

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

ECCPMUX = OFF Disabled

ECCPMUX = ON Enabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 243

Page 250: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

Processor Mode Selection:

External Bus Data Wait:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

DS51537A-page 244 © 2005 Microchip Technology Inc.

Page 251: #pragma config

Configuration Settings

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 245

Page 252: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Table Read Protection:

PIC18F8621

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSC = ECIOPLL EC-OSC2 as RA6 and PLL

OSC = ECIOSWPLL EC-OSC2 as RA6 and SW PLL

OSC = HSSWPLL HS with SW PLL

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 246 © 2005 Microchip Technology Inc.

Page 253: #pragma config

Configuration Settings

Watchdog Postscaler:

Processor Mode Selection:

External Bus Data Wait:

MCLR Enable:

ECCP Mux:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

CCP2MX = PORTBE Muxed with RB3 or RE7

CCP2MX = PORTC Muxed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 247

Page 254: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

DS51537A-page 248 © 2005 Microchip Technology Inc.

Page 255: #pragma config

Configuration Settings

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F8622

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

© 2005 Microchip Technology Inc. DS51537A-page 249

Page 256: #pragma config

PIC18 Configuration Settings Addendum

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

Processor Mode Selection:

External Bus Address Width:

External Bus Data Width:

External Bus Data Wait:

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

ADDRBW = ADDR8BIT 8 Bit Address Bus

ADDRBW = ADDR12BIT 12 Bit Address Bus

ADDRBW = ADDR16BIT 16 Bit Address Bus

ADDRBW = ADDR20BIT 20 Bit Address Bus

DATABW = DATA8BIT 8 Bit Data Bus

DATABW = DATA16BIT 16 Bit Data Bus

WAIT = ON Enabled

WAIT = OFF Disabled

DS51537A-page 250 © 2005 Microchip Technology Inc.

Page 257: #pragma config

Configuration Settings

MCLR Enable:

T1 Oscillator Enable:

ECCP Mux:

ECCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

CCP2MX = PORTB Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 251

Page 258: #pragma config

PIC18 Configuration Settings Addendum

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

DS51537A-page 252 © 2005 Microchip Technology Inc.

Page 259: #pragma config

Configuration Settings

Boot Block Table Read Protection:

PIC18F8627

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 253

Page 260: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Postscaler:

Processor Mode Selection:

External Bus Address Width:

External Bus Data Width:

External Bus Data Wait:

MCLR Enable:

T1 Oscillator Enable:

ECCP Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

ADDRBW = ADDR8BIT 8 Bit Address Bus

ADDRBW = ADDR12BIT 12 Bit Address Bus

ADDRBW = ADDR16BIT 16 Bit Address Bus

ADDRBW = ADDR20BIT 20 Bit Address Bus

DATABW = DATA8BIT 8 Bit Data Bus

DATABW = DATA16BIT 16 Bit Data Bus

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

DS51537A-page 254 © 2005 Microchip Technology Inc.

Page 261: #pragma config

Configuration Settings

ECCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Code Protection Block 4:

Code Protection Block 5:

Boot Block Code Protection:

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CP4 = ON Enabled

CP4 = OFF Disabled

CP5 = ON Enabled

CP5 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 255

Page 262: #pragma config

PIC18 Configuration Settings Addendum

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Write Protection Block 4:

Write Protection Block 5:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRT4 = ON Enabled

WRT4 = OFF Disabled

WRT5 = ON Enabled

WRT5 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

DS51537A-page 256 © 2005 Microchip Technology Inc.

Page 263: #pragma config

Configuration Settings

Table Read Protection Block 3:

Table Read Protection Block 4:

Table Read Protection Block 5:

Boot Block Table Read Protection:

PIC18F8680

Oscillator Selection bits:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTR4 = ON Enabled

EBTR4 = OFF Disabled

EBTR5 = ON Enabled

EBTR5 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC with OSC2 as divide by 4 clock out

OSC = EC EC with OSC2 as divide by 4 clock out

OSC = ECIO EC with OSC2 as RA6

OSC = HSPLL HS with HW enabled 4xPLL

OSC = RCIO RC with OSC2 as RA6

OSC = ECIOPLL EC with OSC2 as RA6 and HW enabled 4xPLL

OSC = ECIOSWPLL EC with OSC2 as RA6 and SW enabled 4xPLL

OSC = HSSWPLL HS with SW enabled 4xPLL

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 20 2.0V

© 2005 Microchip Technology Inc. DS51537A-page 257

Page 264: #pragma config

PIC18 Configuration Settings Addendum

Watchdog Timer:

Watchdog Postscaler:

Processor Mode Selection:

External Bus Data Wait:

MCLR Enable:

CCP2 Mux bit:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

WDT = OFF HW Disabled - SW Controlled

WDT = ON HW Enabled - SW Disabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

CCP2MX = OFF CCP2 input/output is multiplexed with RE7

CCP2MX = ON CCP2 input/output is multiplexed with RC1

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

DS51537A-page 258 © 2005 Microchip Technology Inc.

Page 265: #pragma config

Configuration Settings

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Boot Block Write Protection:

Configuration Register Write Protection:

Data EEPROM Write Protection:

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 259

Page 266: #pragma config

PIC18 Configuration Settings Addendum

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Boot Block Table Read Protection:

PIC18F86J10

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

DS51537A-page 260 © 2005 Microchip Technology Inc.

Page 267: #pragma config

Configuration Settings

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

© 2005 Microchip Technology Inc. DS51537A-page 261

Page 268: #pragma config

PIC18 Configuration Settings Addendum

External Address Bus Shift Enable:

ECCP Mux:

CCP2 Mux:

PIC18F86J15

Background Debugger Enable:

Extended Instruction Set Enable:

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

ECCPMUX = OFF Disabled

ECCPMUX = ON Enabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

DS51537A-page 262 © 2005 Microchip Technology Inc.

Page 269: #pragma config

Configuration Settings

Oscillator Selection bits:

Watchdog Postscaler:

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

ECCP Mux:

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

ECCPMUX = OFF Disabled

ECCPMUX = ON Enabled

© 2005 Microchip Technology Inc. DS51537A-page 263

Page 270: #pragma config

PIC18 Configuration Settings Addendum

CCP2 Mux:

PIC18F8720

Oscillator Selection:

Osc. Switch Enable:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

Watchdog Postscaler:

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO RC-OSC2 as RA6

OSCS = ON Enabled

OSCS = OFF Disabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOR = OFF Disabled

BOR = ON Enabled

BORV = 45 4.5V

BORV = 42 4.2V

BORV = 27 2.7V

BORV = 25 2.5V

WDT = OFF Disabled

WDT = ON Enabled

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

DS51537A-page 264 © 2005 Microchip Technology Inc.

Page 271: #pragma config

Configuration Settings

Processor Mode Selection:

External Bus Data Wait:

CCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Code Protection Block 4:

Code Protection Block 5:

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

WAIT = ON Enabled

WAIT = OFF Disabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CP4 = ON Enabled

CP4 = OFF Disabled

CP5 = ON Enabled

CP5 = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 265

Page 272: #pragma config

PIC18 Configuration Settings Addendum

Code Protection Block 6:

Code Protection Block 7:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Write Protection Block 4:

Write Protection Block 5:

Write Protection Block 6:

Write Protection Block 7:

Boot Block Write Protection:

CP6 = ON Enabled

CP6 = OFF Disabled

CP7 = ON Enabled

CP7 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRT4 = ON Enabled

WRT4 = OFF Disabled

WRT5 = ON Enabled

WRT5 = OFF Disabled

WRT6 = ON Enabled

WRT6 = OFF Disabled

WRT7 = ON Enabled

WRT7 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

DS51537A-page 266 © 2005 Microchip Technology Inc.

Page 273: #pragma config

Configuration Settings

Configuration Register Write Protection:

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Table Read Protection Block 4:

Table Read Protection Block 5:

Table Read Protection Block 6:

Table Read Protection Block 7:

Boot Block Table Read Protection:

WRTC = ON Enabled

WRTC = OFF Disabled

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTR4 = ON Enabled

EBTR4 = OFF Disabled

EBTR5 = ON Enabled

EBTR5 = OFF Disabled

EBTR6 = ON Enabled

EBTR6 = OFF Disabled

EBTR7 = ON Enabled

EBTR7 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 267

Page 274: #pragma config

PIC18 Configuration Settings Addendum

PIC18F8722

Oscillator Selection:

Fail Safe Clock Monitor:

Internal External Osc. Switch Over:

Power Up Timer:

Brown Out Reset:

Brown Out Voltage:

Watchdog Timer:

OSC = LP LP

OSC = XT XT

OSC = HS HS

OSC = RC RC

OSC = EC EC-OSC2 as Clock Out

OSC = ECIO6 EC-OSC2 as RA6

OSC = HSPLL HS-PLL Enabled

OSC = RCIO6 RC-OSC2 as RA6

OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7

OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7

FCMEN = OFF Disabled

FCMEN = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

PWRT = ON Enabled

PWRT = OFF Disabled

BOREN = OFF Disabled

BOREN = ON SBOREN Enabled

BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled

BOREN = SBORDIS Enabled, SBOREN Disabled

BORV = 46 4.5V

BORV = 43 4.2V

BORV = 28 2.7V

BORV = 21 2.0V

WDT = OFF Disabled

WDT = ON Enabled

DS51537A-page 268 © 2005 Microchip Technology Inc.

Page 275: #pragma config

Configuration Settings

Watchdog Postscaler:

Processor Mode Selection:

External Bus Address Width:

External Bus Data Width:

External Bus Data Wait:

MCLR Enable:

T1 Oscillator Enable:

ECCP Mux:

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

MODE = EM Extended Microcontroller Mode

MODE = MPB Microprocessor with Boot Block Mode

MODE = MP Microprocessor Mode

MODE = MC Microcontroller Mode

ADDRBW = ADDR8BIT 8 Bit Address Bus

ADDRBW = ADDR12BIT 12 Bit Address Bus

ADDRBW = ADDR16BIT 16 Bit Address Bus

ADDRBW = ADDR20BIT 20 Bit Address Bus

DATABW = DATA8BIT 8 Bit Data Bus

DATABW = DATA16BIT 16 Bit Data Bus

WAIT = ON Enabled

WAIT = OFF Disabled

MCLRE = OFF Disabled

MCLRE = ON Enabled

LPT1OSC = OFF Disabled

LPT1OSC = ON Enabled

ECCPMX = PORTH Muxed with RH7:4

ECCPMX = PORTE Muxed with RE6:3

© 2005 Microchip Technology Inc. DS51537A-page 269

Page 276: #pragma config

PIC18 Configuration Settings Addendum

ECCP2 Mux:

Stack Overflow Reset:

Low Voltage ICSP:

Boot Block Size:

XINST Enable:

Background Debugger Enable:

Code Protection Block 0:

Code Protection Block 1:

Code Protection Block 2:

Code Protection Block 3:

Code Protection Block 4:

Code Protection Block 5:

Code Protection Block 6:

CCP2MX = PORTBE Muxed with RB3

CCP2MX = PORTC Muxed with RC1

STVREN = OFF Disabled

STVREN = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

BBSIZ = BB2K 2Kb Boot Block

BBSIZ = BB4K 4Kb Boot Block

BBSIZ = BB8K 8Kb Boot Block

XINST = OFF Disabled

XINST = ON Enabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

CP0 = ON Enabled

CP0 = OFF Disabled

CP1 = ON Enabled

CP1 = OFF Disabled

CP2 = ON Enabled

CP2 = OFF Disabled

CP3 = ON Enabled

CP3 = OFF Disabled

CP4 = ON Enabled

CP4 = OFF Disabled

CP5 = ON Enabled

CP5 = OFF Disabled

CP6 = ON Enabled

CP6 = OFF Disabled

DS51537A-page 270 © 2005 Microchip Technology Inc.

Page 277: #pragma config

Configuration Settings

Code Protection Block 7:

Boot Block Code Protection:

Data EEPROM Code Protection:

Write Protection Block 0:

Write Protection Block 1:

Write Protection Block 2:

Write Protection Block 3:

Write Protection Block 4:

Write Protection Block 5:

Write Protection Block 6:

Write Protection Block 7:

Boot Block Write Protection:

Configuration Register Write Protection:

CP7 = ON Enabled

CP7 = OFF Disabled

CPB = ON Enabled

CPB = OFF Disabled

CPD = ON Enabled

CPD = OFF Disabled

WRT0 = ON Enabled

WRT0 = OFF Disabled

WRT1 = ON Enabled

WRT1 = OFF Disabled

WRT2 = ON Enabled

WRT2 = OFF Disabled

WRT3 = ON Enabled

WRT3 = OFF Disabled

WRT4 = ON Enabled

WRT4 = OFF Disabled

WRT5 = ON Enabled

WRT5 = OFF Disabled

WRT6 = ON Enabled

WRT6 = OFF Disabled

WRT7 = ON Enabled

WRT7 = OFF Disabled

WRTB = ON Enabled

WRTB = OFF Disabled

WRTC = ON Enabled

WRTC = OFF Disabled

© 2005 Microchip Technology Inc. DS51537A-page 271

Page 278: #pragma config

PIC18 Configuration Settings Addendum

Data EEPROM Write Protection:

Table Read Protection Block 0:

Table Read Protection Block 1:

Table Read Protection Block 2:

Table Read Protection Block 3:

Table Read Protection Block 4:

Table Read Protection Block 5:

Table Read Protection Block 6:

Table Read Protection Block 7:

Boot Block Table Read Protection:

PIC18F87J10

Background Debugger Enable:

Extended Instruction Set Enable:

WRTD = ON Enabled

WRTD = OFF Disabled

EBTR0 = ON Enabled

EBTR0 = OFF Disabled

EBTR1 = ON Enabled

EBTR1 = OFF Disabled

EBTR2 = ON Enabled

EBTR2 = OFF Disabled

EBTR3 = ON Enabled

EBTR3 = OFF Disabled

EBTR4 = ON Enabled

EBTR4 = OFF Disabled

EBTR5 = ON Enabled

EBTR5 = OFF Disabled

EBTR6 = ON Enabled

EBTR6 = OFF Disabled

EBTR7 = ON Enabled

EBTR7 = OFF Disabled

EBTRB = ON Enabled

EBTRB = OFF Disabled

DEBUG = ON Enabled

DEBUG = OFF Disabled

XINST = OFF Disabled

XINST = ON Enabled

DS51537A-page 272 © 2005 Microchip Technology Inc.

Page 279: #pragma config

Configuration Settings

Stack Overflow Reset:

Low Voltage ICSP:

Watchdog Timer:

Configuration Word Signature:

Code Protection:

Fail Safe Clock Monitor:

Internal/External Switch Over:

Oscillator Selection bits:

Watchdog Postscaler:

STVR = OFF Disabled

STVR = ON Enabled

LVP = OFF Disabled

LVP = ON Enabled

WDT = OFF Disabled

WDT = ON Enabled

SIGN = CLR Clear

SIGN = SET Set

CP0 = ON Enabled

CP0 = OFF Disabled

FCMEM = OFF Disabled

FCMEM = ON Enabled

IESO = OFF Disabled

IESO = ON Enabled

FOSC = HS HS oscillator

FOSC = HSPLL HS oscillator, Software Controlled PLL

FOSC = EC External Clock

FOSC = ECPLL External Clock, Software Controlled PLL

WDTPS = 1 1:1

WDTPS = 2 1:2

WDTPS = 4 1:4

WDTPS = 8 1:8

WDTPS = 16 1:16

WDTPS = 32 1:32

WDTPS = 64 1:64

WDTPS = 128 1:128

WDTPS = 256 1:256

WDTPS = 512 1:512

WDTPS = 1024 1:1024

WDTPS = 2048 1:2048

WDTPS = 4096 1:4096

WDTPS = 8192 1:8192

WDTPS = 16384 1:16384

WDTPS = 32768 1:32768

© 2005 Microchip Technology Inc. DS51537A-page 273

Page 280: #pragma config

PIC18 Configuration Settings Addendum

External Bus Data Wait:

Data Bus Width Select:

Processor Mode Selection:

External Address Bus Shift Enable:

ECCP Mux:

CCP2 Mux:

WAIT = ON Enabled

WAIT = OFF Disabled

BW = 8 8-bit external bus

BW = 16 16-bit external bus

MODE = MM Microcontroller Mode - External bus disabled

MODE = XM12 Extended Microcontroller Mode - 12-bit address mode

MODE = XM16 Extended Microcontroller Mode - 16-bit address mode

MODE = XM20 Extended Microcontroller Mode - 20-bit address mode

EASHIFT = OFF External bus reflects PC value

EASHIFT = ON External bus starts at 000000h

ECCPMUX = OFF Disabled

ECCPMUX = ON Enabled

CCP2MUX = OFF Disabled

CCP2MUX = ON Enabled

DS51537A-page 274 © 2005 Microchip Technology Inc.

Page 281: #pragma config

© 2005 Microchip Technology Inc. DS51537A-page 275

Configuration Settings

NOTES:

Page 282: #pragma config

DS51537A-page 276 © 2005 Microchip Technology Inc.

AMERICASCorporate Office2355 West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7200 Fax: 480-792-7277Technical Support: http:\\support.microchip.comWeb Address: www.microchip.com

AtlantaAlpharetta, GA Tel: 770-640-0034 Fax: 770-640-0307

BostonWestford, MA Tel: 978-692-3848 Fax: 978-692-3821

ChicagoItasca, IL Tel: 630-285-0071 Fax: 630-285-0075

DallasAddison, TX Tel: 972-818-7423 Fax: 972-818-2924

DetroitFarmington Hills, MI Tel: 248-538-2250Fax: 248-538-2260

KokomoKokomo, IN Tel: 765-864-8360Fax: 765-864-8387

Los AngelesMission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608

San JoseMountain View, CA Tel: 650-215-1444Fax: 650-961-0286

TorontoMississauga, Ontario, CanadaTel: 905-673-0699 Fax: 905-673-6509

ASIA/PACIFICAustralia - SydneyTel: 61-2-9868-6733 Fax: 61-2-9868-6755

China - BeijingTel: 86-10-8528-2100 Fax: 86-10-8528-2104

China - ChengduTel: 86-28-8676-6200 Fax: 86-28-8676-6599

China - FuzhouTel: 86-591-8750-3506Fax: 86-591-8750-3521

China - Hong Kong SARTel: 852-2401-1200 Fax: 852-2401-3431

China - ShanghaiTel: 86-21-5407-5533 Fax: 86-21-5407-5066China - ShenyangTel: 86-24-2334-2829Fax: 86-24-2334-2393

China - ShenzhenTel: 86-755-8203-2660 Fax: 86-755-8203-1760

China - ShundeTel: 86-757-2839-5507 Fax: 86-757-2839-5571

China - QingdaoTel: 86-532-502-7355 Fax: 86-532-502-7205

ASIA/PACIFICIndia - BangaloreTel: 91-80-2229-0061 Fax: 91-80-2229-0062

India - New DelhiTel: 91-11-5160-8632Fax: 91-11-5160-8632

Japan - KanagawaTel: 81-45-471- 6166 Fax: 81-45-471-6122

Korea - SeoulTel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934

SingaporeTel: 65-6334-8870 Fax: 65-6334-8850

Taiwan - KaohsiungTel: 886-7-536-4818Fax: 886-7-536-4803

Taiwan - TaipeiTel: 886-2-2500-6610 Fax: 886-2-2508-0102

Taiwan - HsinchuTel: 886-3-572-9526Fax: 886-3-572-6459

EUROPEAustria - WeisTel: 43-7242-2244-399Fax: 43-7242-2244-393Denmark - BallerupTel: 45-4420-9895 Fax: 45-4420-9910

France - MassyTel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79

Germany - IsmaningTel: 49-89-627-144-0 Fax: 49-89-627-144-44

Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781

Netherlands - DrunenTel: 31-416-690399 Fax: 31-416-690340

England - BerkshireTel: 44-118-921-5869Fax: 44-118-921-5820

WORLDWIDE SALES AND SERVICE

10/20/04