|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
For example:// IDLOC @ 0x2000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
For example:; IDLOC @ 0x2000 |
|
Register: CONFIG @ 0x2007
|
|
|---|---|
| FOSC | Oscillator Selection bits |
| EXTRCCLK | EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin |
| EXTRCIO | EXTRC oscillator; port I/O function on RA6/OSC2/CLKO pin |
| INTOSCCLK | INTRC oscillator; CLKO function on RA6/OSC2/CLKO pin and port I/O function on RA7/OSC1/CLKI pin |
| INTOSCIO | INTRC oscillator; port I/O function on both RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin |
| EC | EXTCLK; port I/O function on RA6/OSC2/CLKO pin |
| 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 | RA5/MCLR/VPP Pin Function Select bit |
| ON | RA5/MCLR/VPP pin function is MCLR |
| OFF | RA5/MCLR/VPP pin function is digital I/O, MCLR internally tied to VDD |
| BOREN | Brown-out Reset Enable bit |
| ON | BOR enabled |
| OFF | BOR disabled |
| LVP | Low-Voltage Programming Enable bit |
| ON | RB3/PGM pin has PGM function, Low-Voltage Programming enabled |
| OFF | RB3/PGM pin has digital I/O function, HV on MCLR must be used for programming |
| CPD | Data EE Memory Code Protection bit |
| OFF | Code protection off |
| ON | Data EE memory locations code-protected |
| WRT | Flash Program Memory Write Enable bits |
| OFF | Write protection off |
| 512 | 0000h to 01FFh write-protected, 0200h to 07FFh may be modified by EECON control |
| 1024 | 0000h to 03FFh write-protected, 0400h to 07FFh may be modified by EECON control |
| 1536 | 0000h to 05FFh write-protected, 0600h to 07FFh may be modified by EECON control |
| 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 |
| CCPMX | CCP1 Pin Selection bit |
| RB2 | CCP1 function on RB2 |
| RB3 | CCP1 function on RB3 |
| CP | Flash Program Memory Code Protection bit |
| OFF | Code protection off |
| ON | All memory locations code-protected |
|
Register: IDLOC0 @ 0x2000
|
|---|
|
Register: IDLOC1 @ 0x2001
|
|---|
|
Register: IDLOC2 @ 0x2002
|
|---|
|
Register: IDLOC3 @ 0x2003
|
|---|