|
#pragma config <setting>=<named value>
|
|---|
For example:// VREG Sleep Enable bit : Enabled |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// VREG Sleep Enable bit : Enabled |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// VREG Sleep Enable bit : Enabled |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; VREG Sleep Enable bit : Enabled |
|
config "<setting>"=<literal constant>
|
|---|
For example:; VREG Sleep Enable bit : Enabled |
|
config "<register>"=<literal constant>
|
|---|
For example:; VREG Sleep Enable bit : Enabled |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1L @ 0x300000
|
|
|---|---|
| RETEN | VREG Sleep Enable bit |
| ON | Enabled |
| OFF | Disabled - Controlled by SRETEN bit |
| INTOSCSEL | LF-INTOSC Low-power Enable bit |
| HIGH | LF-INTOSC in High-power mode during Sleep |
| LOW | LF-INTOSC in Low-power mode during Sleep |
| SOSCSEL | SOSC Power Selection and mode Configuration bits |
| HIGH | High Power SOSC circuit selected |
| LOW | Low Power SOSC circuit selected |
| DIG | Digital (SCLKI) mode |
| XINST | Extended Instruction Set |
| ON | Enabled |
| OFF | Disabled |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| FOSC | Oscillator |
| RCIO | External RC oscillator |
| RC | External RC oscillator, CLKOUT function on OSC2 |
| EC1 | EC oscillator (Low power, DC - 160 kHz) |
| EC1IO | EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz) |
| EC2 | EC oscillator (Medium power, 160 kHz - 16 MHz) |
| EC2IO | EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 16 MHz) |
| INTIO1 | Internal RC oscillator, CLKOUT function on OSC2 |
| INTIO2 | Internal RC oscillator |
| EC3 | EC oscillator (High power, 16 MHz - 64 MHz) |
| EC3IO | EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz) |
| HS1 | HS oscillator (Medium power, 4 MHz - 16 MHz) |
| HS2 | HS oscillator (High power, 16 MHz - 25 MHz) |
| XT | XT oscillator |
| LP | LP oscillator |
| PLLCFG | PLL x4 Enable bit |
| ON | Enabled |
| OFF | Disabled |
| FCMEN | Fail-Safe Clock Monitor |
| OFF | Disabled |
| ON | Enabled |
| IESO | Internal External Oscillator Switch Over Mode |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| PWRTEN | Power Up Timer |
| OFF | Disabled |
| ON | Enabled |
| BOREN | Brown Out Detect |
| SBORDIS | Enabled in hardware, SBOREN disabled |
| NOSLP | Enabled while active, disabled in SLEEP, SBOREN disabled |
| ON | Controlled with SBOREN bit |
| OFF | Disabled in hardware, SBOREN disabled |
| BORV | Brown-out Reset Voltage bits |
| 3 | 1.8V |
| 2 | 2.0V |
| 1 | 2.7V |
| 0 | 3.0V |
| BORPWR | BORMV Power level |
| ZPBORMV | ZPBORMV instead of BORMV is selected |
| HIGH | BORMV set to high power level |
| MEDIUM | BORMV set to medium power level |
| LOW | BORMV set to low power level |
|
Register: CONFIG2H @ 0x300003
|
|
|---|---|
| WDTEN | Watchdog Timer |
| SWDTDIS | WDT enabled in hardware; SWDTEN bit disabled |
| ON | WDT controlled by SWDTEN bit setting |
| NOSLP | WDT enabled only while device is active and disabled in Sleep mode; SWDTEN bit disabled |
| OFF | WDT disabled in hardware; SWDTEN bit disabled |
| WDTPS | Watchdog Postscaler |
| 1048576 | 1:1048576 |
| 524288 | 1:524288 |
| 262144 | 1:262144 |
| 131072 | 1:131072 |
| 65536 | 1:65536 |
| 32768 | 1:32768 |
| 16384 | 1:16384 |
| 8192 | 1:8192 |
| 4096 | 1:4096 |
| 2048 | 1:2048 |
| 1024 | 1:1024 |
| 512 | 1:512 |
| 256 | 1:256 |
| 128 | 1:128 |
| 64 | 1:64 |
| 32 | 1:32 |
| 16 | 1:16 |
| 8 | 1:8 |
| 4 | 1:4 |
| 2 | 1:2 |
| 1 | 1:1 |
|
Register: CONFIG3L @ 0x300004
|
|
|---|---|
| RTCOSC | RTCC Clock Select |
| SOSCREF | RTCC uses SOSC |
| INTOSCREF | RTCC uses INTRC |
| EASHFT | External Address Shift bit |
| ON | Address shifting enabled |
| OFF | Address shifting disabled |
| ABW | Address Bus Width Select bits |
| XM20 | 20-bit address bus |
| XM16 | 16-bit address bus |
| XM12 | 12-bit address bus |
| MM | 8-bit address bus |
| BW | Data Bus Width |
| 16 | 16-bit external bus mode |
| 8 | 8-bit external bus mode |
| WAIT | External Bus Wait |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG3H @ 0x300005
|
|
|---|---|
| CCP2MX | CCP2 Mux |
| PORTC | RC1 |
| PORTBE | RE7-Microcontroller Mode/RB3-All other modes |
| ECCPMX | ECCP Mux |
| PORTE | Enhanced CCP1/3 [P1B/P1C/P3B/P3C] muxed with RE6/RE5/RE4/RE3 |
| PORTH | Enhanced CCP1/3 [P1B/P1C/P3B/P3C] muxed with RH7/RH6/RH5/RH4 |
| MSSPMSK | MSSP address masking |
| MSK7 | 7 Bit address masking mode |
| MSK5 | 5 bit address masking mode |
| MCLRE | Master Clear Enable |
| ON | MCLR Enabled, RG5 Disabled |
| OFF | MCLR Disabled, RG5 Enabled |
|
Register: CONFIG4L @ 0x300006
|
|
|---|---|
| STVREN | Stack Overflow Reset |
| ON | Enabled |
| OFF | Disabled |
| BBSIZ | Boot Block Size |
| BB2K | 2K word Boot Block size |
| BB1K | 1K word Boot Block size |
| DEBUG | Background Debug |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG5L @ 0x300008
|
|
|---|---|
| CP0 | Code Protect 00800-01FFF |
| OFF | Disabled |
| ON | Enabled |
| CP1 | Code Protect 02000-03FFF |
| OFF | Disabled |
| ON | Enabled |
| CP2 | Code Protect 04000-05FFF |
| OFF | Disabled |
| ON | Enabled |
| CP3 | Code Protect 06000-07FFF |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG5H @ 0x300009
|
|
|---|---|
| CPB | Code Protect Boot |
| OFF | Disabled |
| ON | Enabled |
| CPD | Data EE Read Protect |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG6L @ 0x30000A
|
|
|---|---|
| WRT0 | Table Write Protect 00800-017FF |
| OFF | Disabled |
| ON | Enabled |
| WRT1 | Table Write Protect 01800-03FFF |
| OFF | Disabled |
| ON | Enabled |
| WRT2 | Table Write Protect 04000-05FFF |
| OFF | Disabled |
| ON | Enabled |
| WRT3 | Table Write Protect 06000-07FFF |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG6H @ 0x30000B
|
|
|---|---|
| WRTC | Config. Write Protect |
| OFF | Disabled |
| ON | Enabled |
| WRTB | Table Write Protect Boot |
| OFF | Disabled |
| ON | Enabled |
| WRTD | Data EE Write Protect |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG7L @ 0x30000C
|
|
|---|---|
| EBRT0 | Table Read Protect 00800-017FF |
| OFF | Disabled |
| ON | Enabled |
| EBRT1 | Table Read Protect 01800-03FFF |
| OFF | Disabled |
| ON | Enabled |
| EBRT2 | Table Read Protect 04000-05FFF |
| OFF | Disabled |
| ON | Enabled |
| EBRT3 | Table Read Protect 06000-07FFF |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG7H @ 0x30000D
|
|
|---|---|
| EBRTB | Table Read Protect Boot |
| OFF | Disabled |
| ON | Enabled |
|
Register: IDLOC0 @ 0x200000
|
|---|
|
Register: IDLOC1 @ 0x200001
|
|---|
|
Register: IDLOC2 @ 0x200002
|
|---|
|
Register: IDLOC3 @ 0x200003
|
|---|
|
Register: IDLOC4 @ 0x200004
|
|---|
|
Register: IDLOC5 @ 0x200005
|
|---|
|
Register: IDLOC6 @ 0x200006
|
|---|
|
Register: IDLOC7 @ 0x200007
|
|---|