|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
For example:// IDLOC @ 0x2000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
For example:; IDLOC @ 0x2000 |
|
Register: CONFIG1 @ 0x2007
|
|
|---|---|
| FOSC | Oscillator Selection bits |
| EXTRC_CLKOUT | RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
| EXTRC_NOCLKOUT | RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN |
| INTRC_CLKOUT | INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN |
| INTRC_NOCLKOUT | INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN |
| EC | EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN |
| HS | HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN |
| XT | XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN |
| LP | LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN |
| WDTE | Watchdog Timer Enable bit |
| ON | WDT enabled |
| OFF | WDT disabled and can be enabled by SWDTEN bit of the WDTCON register |
| PWRTE | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| MCLRE | RE3/MCLR pin function select bit |
| ON | RE3/MCLR pin function is MCLR |
| OFF | RE3/MCLR pin function is digital input, MCLR internally tied to VDD |
| CP | Code Protection bit |
| OFF | Program memory code protection is disabled |
| ON | Program memory code protection is enabled |
| CPD | Data Code Protection bit |
| OFF | Data memory code protection is disabled |
| ON | Data memory code protection is enabled |
| BOREN | Brown Out Reset Selection bits |
| ON | BOR enabled |
| NSLEEP | BOR enabled during operation and disabled in Sleep |
| SBODEN | BOR controlled by SBOREN bit of the PCON register |
| OFF | BOR disabled |
| IESO | Internal External Switchover bit |
| ON | Internal/External Switchover mode is enabled |
| OFF | Internal/External Switchover mode is disabled |
| FCMEN | Fail-Safe Clock Monitor Enabled bit |
| ON | Fail-Safe Clock Monitor is enabled |
| OFF | Fail-Safe Clock Monitor is disabled |
| LVP | Low Voltage Programming Enable bit |
| ON | RB3/PGM pin has PGM function, low voltage programming enabled |
| OFF | RB3 pin has digital I/O, HV on MCLR must be used for programming |
| DEBUG | In-Circuit Debugger Mode bit |
| OFF | In-Circuit Debugger disabled, RB6/ICSPCLK and RB7/ICSPDAT are general purpose I/O pins |
| ON | In_Circuit Debugger enabled, RB6/ICSPCLK and RB7/ICSPDAT are dedicated to the debugger |
|
Register: CONFIG2 @ 0x2008
|
|
|---|---|
| BOR4V | Brown-out Reset Selection bit |
| BOR21V | Brown-out Reset set to 2.1V |
| BOR40V | Brown-out Reset set to 4.0V |
| WRT | Flash Program Memory Self Write Enable bits |
| HALF | 0000h to 07FFh write protected, 0800h to 0FFFh may be modified by EECON control |
| 1FOURTH | 0000h to 03FFh write protected, 0400h to 0FFFh may be modified by EECON control |
| 256 | 0000h to 00FFh write protected, 0100h to 0FFFh may be modified by EECON control |
| OFF | Write protection off |
|
Register: IDLOC0 @ 0x2000
|
|---|
|
Register: IDLOC1 @ 0x2001
|
|---|
|
Register: IDLOC2 @ 0x2002
|
|---|
|
Register: IDLOC3 @ 0x2003
|
|---|