|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator : External RC oscillator, port function on RA6 |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator : External RC oscillator, port function on RA6 |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator : External RC oscillator, port function on RA6 |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator : External RC oscillator, port function on RA6 |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator : External RC oscillator, port function on RA6 |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator : External RC oscillator, port function on RA6 |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| OSC | Oscillator |
| INTIO7 | Internal oscillator block, CLKO function on RA6, port function on RA7 |
| INTIO67 | Internal oscillator block, port function on RA6 and RA7 |
| RCIO | External RC oscillator, port function on RA6 |
| HSPLL | HS oscillator, PLL enabled (clock frequency = 4 x FOSC1) |
| ECIO | EC oscillator, port function on RA6 |
| EC | EC oscillator, CLKO function on RA6 |
| RC | External RC oscillator, CLKO function on RA6 |
| HS | HS oscillator |
| XT | XT oscillator |
| LP | LP oscillator |
| FCMEN | Fail-Safe Clock Monitor Enable |
| OFF | Fail-Safe Clock Monitor disabled |
| ON | Fail-Safe Clock Monitor enabled |
| IESO | Internal External Switch Over Mode |
| OFF | Oscillator Switchover mode disabled |
| ON | Oscillator Switchover mode enabled |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| PWRT | Power Up Timer |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| BOREN | Brown Out Detect |
| 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 Voltage |
| 3 | VBOR set to 2.1V |
| 2 | VBOR set to 2.8V |
| 1 | VBOR set to 4.3V |
| 0 | VBOR set to 4.6V |
|
Register: CONFIG2H @ 0x300003
|
|
|---|---|
| WDT | Watchdog Timer |
| ON | WDT enabled |
| OFF | WDT disabled (control is placed on the SWDTEN bit) |
| WDTPS | Watchdog Postscaler |
| 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
|
|---|
|
Register: CONFIG3H @ 0x300005
|
|
|---|---|
| CCP2MX | CCP2 Mux |
| PORTC | CCP2 input/output is multiplexed with RC1 |
| PORTE | CCP2 input/output is multiplexed with RE7 |
| LPT1OSC | Low Power Timer1 Osc enable |
| ON | Timer1 configured for low-power operation |
| OFF | Timer1 configured for higher power operation |
| MCLRE | Master Clear Enable |
| ON | MCLR pin enabled; RG5 input pin disabled |
| OFF | RG5 input pin enabled; MCLR disabled |
|
Register: CONFIG4L @ 0x300006
|
|
|---|---|
| STVREN | Stack Overflow Reset |
| ON | Stack full/underflow will cause Reset |
| OFF | Stack full/underflow will not cause Reset |
| 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, RB6 and RB7 configured as general purpose I/O pins |
| ON | Background debugger enabled, RB6 and RB7 are dedicated to In-Circuit Debug |
|
Register: CONFIG5L @ 0x300008
|
|
|---|---|
| CP | Code Protect 00000-03FFF |
| OFF | Program memory block not code-protected |
| ON | Program memory block code-protected |
|
Register: CONFIG7L @ 0x30000C
|
|---|
|
Register: IDLOC0 @ 0x200000
|
|---|
|
Register: IDLOC1 @ 0x200002
|
|---|
|
Register: IDLOC2 @ 0x200004
|
|---|
|
Register: IDLOC3 @ 0x200006
|
|---|