|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : External RC oscillator |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : External RC oscillator |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : External RC oscillator |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : External RC oscillator |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : External RC oscillator |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : External RC oscillator |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| FOSC | Oscillator Selection bits |
| ECL | EC (low) |
| ECCLKOUTL | EC, CLKOUT function on OSC2 (low) |
| ECM | EC (medium) |
| ECCLKOUTM | EC, CLKOUT function on OSC2 (medium) |
| IRCCLKOUT | Internal RC oscillator, CLKOUT function on OSC2 |
| IRC | Internal RC oscillator |
| ERC | External RC oscillator |
| ECH | EC (high) |
| ECCLKOUTH | EC, CLKOUT function on OSC2 (high) |
| ERCCLKOUT | External RC oscillator, CLKOUT function on OSC2 |
| HS | HS oscillator |
| XT | XT oscillator |
| LP | LP oscillator |
| PLLEN | 4 X PLL Enable bit |
| ON | Oscillator multiplied by 4 |
| OFF | PLL is under software control |
| PCLKEN | Primary Clock Enable bit |
| ON | Primary clock enabled |
| OFF | Primary clock is under software control |
| FCMEN | Fail-Safe Clock Monitor Enable |
| ON | Fail-Safe Clock Monitor enabled |
| OFF | Fail-Safe Clock Monitor disabled |
| IESO | Internal/External Oscillator Switchover bit |
| ON | Oscillator Switchover mode enabled |
| OFF | Oscillator Switchover mode disabled |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| PWRTEN | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| BOREN | Brown-out Reset Enable bits |
| SBORDIS | Brown-out Reset enabled in hardware only (SBOREN is disabled) |
| NOSLP | Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled) |
| ON | Brown-out Reset enabled and controlled by software (SBOREN is enabled) |
| OFF | Brown-out Reset disabled in hardware and software |
| BORV | Brown Out Reset Voltage bits |
| 19 | VBOR set to 1.9 V nominal |
| 22 | VBOR set to 2.2 V nominal |
| 27 | VBOR set to 2.7 V nominal |
| 30 | VBOR set to 3.0 V nominal |
|
Register: CONFIG2H @ 0x300003
|
|
|---|---|
| WDTEN | Watchdog Timer Enable bit |
| ON | WDT is always enabled. SWDTEN bit has no effect. |
| OFF | WDT is controlled by SWDTEN bit of the WDTCON register |
| WDTPS | Watchdog Timer Postscale Select bits |
| 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: CONFIG3H @ 0x300005
|
|
|---|---|
| HFOFST | HFINTOSC Fast Start-up bit |
| ON | HFINTOSC starts clocking the CPU without waiting for the oscillator to stablize. |
| OFF | The system clock is held off until the HFINTOSC is stable. |
| MCLRE | MCLR Pin Enable bit |
| ON | MCLR pin enabled, RA3 input pin disabled |
| OFF | RA3 input pin enabled; MCLR disabled |
|
Register: CONFIG4L @ 0x300006
|
|
|---|---|
| STVREN | Stack Full/Underflow Reset Enable bit |
| ON | Stack full/underflow will cause Reset |
| OFF | Stack full/underflow will not cause Reset |
| LVP | Single-Supply ICSP Enable bit |
| ON | Single-Supply ICSP enabled |
| OFF | Single-Supply ICSP disabled |
| BBSIZ | Boot Block Size Select bit |
| ON | 2kW boot block size |
| OFF | 1kW boot block size |
| XINST | Extended Instruction Set Enable bit |
| ON | Instruction set extension and Indexed Addressing mode enabled |
| OFF | Instruction set extension and Indexed Addressing mode disabled (Legacy mode) |
| DEBUG | Background Debugger Enable bit |
| OFF | Background debugger disabled, RA0 and RA1 configured as general purpose I/O pins |
| ON | Background debugger enabled, RA0 and RA1 are dedicated to In-Circuit Debug |
|
Register: CONFIG5L @ 0x300008
|
|
|---|---|
| CP0 | Code Protection bit |
| OFF | Block 0 not code-protected |
| ON | Block 0 code-protected |
| CP1 | Code Protection bit |
| OFF | Block 1 not code-protected |
| ON | Block 1 code-protected |
|
Register: CONFIG5H @ 0x300009
|
|
|---|---|
| CPB | Boot Block Code Protection bit |
| OFF | Boot block not code-protected |
| ON | Boot block code-protected |
| CPD | Data EEPROM Code Protection bit |
| OFF | Data EEPROM not code-protected |
| ON | Data EEPROM code-protected |
|
Register: CONFIG6L @ 0x30000A
|
|
|---|---|
| WRT0 | Write Protection bit |
| OFF | Block 0 not write-protected |
| ON | Block 0 write-protected |
| WRT1 | Write Protection bit |
| OFF | Block 1 not write-protected |
| ON | Block 1 write-protected |
|
Register: CONFIG6H @ 0x30000B
|
|
|---|---|
| WRTC | Configuration Register Write Protection bit |
| OFF | Configuration registers not write-protected |
| ON | Configuration registers write-protected |
| WRTB | Boot Block Write Protection bit |
| OFF | Boot block not write-protected |
| ON | Boot block write-protected |
| WRTD | Data EEPROM Write Protection bit |
| OFF | Data EEPROM not write-protected |
| ON | Data EEPROM write-protected |
|
Register: CONFIG7L @ 0x30000C
|
|
|---|---|
| EBTR0 | Table Read Protection bit |
| OFF | Block 0 not protected from table reads executed in other blocks |
| ON | Block 0 protected from table reads executed in other blocks |
| EBTR1 | Table Read Protection bit |
| OFF | Block 1 not protected from table reads executed in other blocks |
| ON | Block 1 protected from table reads executed in other blocks |
|
Register: CONFIG7H @ 0x30000D
|
|
|---|---|
| EBTRB | Boot Block Table Read Protection bit |
| OFF | Boot block not protected from table reads executed in other blocks |
| ON | Boot block protected from table reads executed in other blocks |
|
Register: IDLOC0 @ 0x200000
|
|---|
|
Register: IDLOC1 @ 0x200001
|
|---|
|
Register: IDLOC2 @ 0x200002
|
|---|
|
Register: IDLOC3 @ 0x200003
|
|---|
|
Register: IDLOC4 @ 0x200004
|
|---|
|
Register: IDLOC5 @ 0x200005
|
|---|
|
Register: IDLOC6 @ 0x200006
|
|---|
|
Register: IDLOC7 @ 0x200007
|
|---|