|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : RC oscillator |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : RC oscillator |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : RC oscillator |
For example:// IDLOC @ 0x2000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : RC oscillator |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : RC oscillator |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : RC oscillator |
For example:; IDLOC @ 0x2000 |
|
Register: CONFIG @ 0x2007
|
|
|---|---|
| FOSC | Oscillator Selection bits |
| EXTRC | RC oscillator |
| 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 |
| CP | FLASH Program Memory Code Protection bits |
| OFF | Code protection off |
| ON | All memory code protected |
| BOREN | Brown-out Reset Enable bit |
| ON | BOR enabled |
| OFF | BOR disabled |
| LVP | Low Voltage In-Circuit Serial Programming Enable bit |
| ON | RB3/PGM pin has PGM function; low-voltage programming enabled |
| OFF | RB3 is digital I/O, HV on MCLR must be used for programming |
| CPD | Data EE Memory Code Protection |
| OFF | Code Protection off |
| ON | Data EEPROM memory code-protected |
| WRT | FLASH Program Memory Write Enable |
| ALL | Unprotected program memory may be written to by EECON control |
| OFF | Unprotected program memory may not be written to 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 |
|
Register: IDLOC0 @ 0x2000
|
|---|
|
Register: IDLOC1 @ 0x2001
|
|---|
|
Register: IDLOC2 @ 0x2002
|
|---|
|
Register: IDLOC3 @ 0x2003
|
|---|