|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
For example:// IDLOC @ 0x2000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
For example:; IDLOC @ 0x2000 |
|
Register: CONFIG1 @ 0x2007
|
|
|---|---|
| FOSC | Oscillator Selection bits |
| EXTRCCLK | EXTRC oscillator; CLKO function on OSC2/CLKO/RA6 |
| EXTRCIO | EXTRC oscillator; port I/O function on OSC2/CLKO/RA6 |
| INTOSCCLK | INTRC oscillator; CLKO function on OSC2/CLKO/RA6 and port I/O function on OSC1/CLKI/RA7 |
| INTOSCIO | INTRC oscillator; port I/O function on OSC1/CLKI/RA7 and OSC2/CLKO/RA6 |
| EC | EXTCLK; port I/O function on OSC2/CLKO/RA6 |
| HS | HS oscillator |
| XT | XT oscillator |
| LP | LP oscillator |
| WDTE | Watchdog Timer Enable bit |
| ON | WDT enabled |
| OFF | WDT disabled |
| PWRTE | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| MCLRE | MCLR/VPP/RE3 Pin Function Select bit |
| ON | MCLR/VPP/RE3 pin function is MCLR |
| OFF | MCLR/VPP/RE3 pin function is digital input only, MCLR gated to '1' |
| BOREN | Brown-out Reset Enable bit |
| ON | Enabled |
| OFF | Disabled |
| BORV | Brown-out Reset Voltage bits |
| 20 | VBOR set to 2.0V |
| 27 | VBOR set to 2.7V |
| 42 | VBOR set to 4.2V |
| 45 | VBOR set to 4.5V |
| DEBUG | In-Circuit Debugger Mode bit |
| OFF | In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins |
| ON | In-Circuit Debugger enabled, RB6 and RB7 are dedicated to the debugger |
| CCP2MX | CCP2 Multiplex bit |
| RC1 | CCP2 is on RC1 |
| RB3 | CCP2 is on RB3 |
| CP | Flash Program Memory Code Protection bits |
| OFF | Code protection off |
| ON | 0000h to 1FFFh code-protected |
|
Register: CONFIG2 @ 0x2008
|
|
|---|---|
| FCMEN | Fail-Safe Clock Monitor Enable bit |
| ON | Fail-Safe Clock Monitor enabled |
| OFF | Fail-Safe Clock Monitor disabled |
| IESO | Internal External Switchover bit |
| ON | Internal External Switchover mode enabled |
| OFF | Internal External Switchover mode disabled |
| BORSEN | Brown-out Reset Software Enable bit |
| ON | Enabled |
| OFF | Disabled |
|
Register: IDLOC0 @ 0x2000
|
|---|
|
Register: IDLOC1 @ 0x2001
|
|---|
|
Register: IDLOC2 @ 0x2002
|
|---|
|
Register: IDLOC3 @ 0x2003
|
|---|