|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection Bits : ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection Bits : ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection Bits : ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
For example:// IDLOC @ 0x8000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection Bits : ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection Bits : ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection Bits : ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
For example:; IDLOC @ 0x8000 |
|
Register: CONFIG1 @ 0x8007
|
|
|---|---|
| FOSC | Oscillator Selection Bits |
| ECH | ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins |
| ECM | ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins |
| ECL | ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins |
| INTOSC | INTOSC oscillator: I/O function on CLKIN pin |
| PWRTE | Power-up Timer Enable |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| MCLRE | MCLR Pin Function Select |
| ON | MCLR/VPP pin function is MCLR |
| OFF | MCLR/VPP pin function is digital input |
| CP | Flash Program Memory Code Protection |
| OFF | Program memory code protection is disabled |
| ON | Program memory code protection is enabled |
| BOREN | Brown-out Reset Enable |
| ON | Brown-out Reset enabled |
| NSLEEP | Brown-out Reset enabled while running and disabled in Sleep |
| SBODEN | Brown-out Reset controlled by the SBOREN bit in the BORCON register |
| OFF | Brown-out Reset disabled |
| CLKOUTEN | Clock Out Enable |
| OFF | CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin |
| ON | CLKOUT function is enabled on the CLKOUT pin |
|
Register: CONFIG2 @ 0x8008
|
|
|---|---|
| WRT | Flash Memory Self-Write Protection |
| OFF | Write protection off |
| BOOT | 000h to 1FFh write protected, 200h to 1FFFh may be modified by PMCON control |
| HALF | 000h to FFFh write protected, 1000h to 1FFFh may be modified by PMCON control |
| ALL | 000h to 1FFFh write protected, no addresses may be modified by PMCON control |
| PPS1WAY | Peripheral Pin Select one-way control |
| ON | The PPSLOCK bit cannot be cleared once it is set by software |
| OFF | The PPSLOCK bit can be set and cleared repeatedly by software |
| ZCD | Zero Cross Detect Disable Bit |
| OFF | ZCD disable. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON |
| ON | ZCD always enabled |
| PLLEN | PLL Enable Bit |
| ON | 4x PLL is always enabled |
| OFF | 4x PLL is enabled when software sets the SPLLEN bit |
| STVREN | Stack Overflow/Underflow Reset Enable |
| ON | Stack Overflow or Underflow will cause a Reset |
| OFF | Stack Overflow or Underflow will not cause a Reset |
| BORV | Brown-out Reset Voltage Selection |
| LO | Brown-out Reset Voltage (Vbor), low trip point selected. |
| HI | Brown-out Reset Voltage (Vbor), high trip point selected. |
| LPBOR | Low-Power Brown Out Reset |
| OFF | Low-Power BOR is disabled |
| ON | Low-Power BOR is enabled |
| DEBUG | In-Circuit Debugger Mode |
| OFF | In-Circuit Debugger disabled, ICSPCLK and ICSPDAT are general purpose I/O pins |
| ON | In-Circuit Debugger enabled, ICSPCLK and ICSPDAT are dedicated to the debugger |
| LVP | Low-Voltage Programming Enable |
| ON | Low-voltage programming enabled |
| OFF | High-voltage on MCLR/VPP must be used for programming |
|
Register: CONFIG3 @ 0x8009
|
|
|---|---|
| WDTCPS | WDT Period Select |
| WDTCPS0 | 1:32 (1 ms period) |
| WDTCPS1 | 1:64 (2 ms period) |
| WDTCPS2 | 1:128 (4 ms period) |
| WDTCPS3 | 1:256 (8 ms period) |
| WDTCPS4 | 1:512 (16 ms period) |
| WDTCPS5 | 1:1024 (32 ms period) |
| WDTCPS6 | 1:2048 (64 ms period) |
| WDTCPS7 | 1:4096 (128 ms period) |
| WDTCPS8 | 1:8192 (256 ms period) |
| WDTCPS9 | 1:16384 (512 ms period) |
| WDTCPSA | 1:32768 (1 s period) |
| WDTCPSB | 1:65536 (2 s period) |
| WDTCPSC | 1:131072 (4 s period) |
| WDTCPSD | 1:262144 (8 s period) |
| WDTCPSE | 1:524299 (16 s period) |
| WDTCPSF | 1:1048576 (32 s period) |
| WDTCPS10 | 1:2097152 (64 s period) |
| WDTCPS11 | 1:4194304 (128 s period) |
| WDTCPS12 | 1:8388608 (256 s period) |
| WDTCPS1F | Software Control (WDTPS) |
| WDTE | Watchdog Timer Enable |
| ON | WDT enabled |
| NSLEEP | WDT enabled while running and disabled in Sleep |
| SWDTEN | WDT controlled by the SWDTEN bit in the WDTCON register |
| OFF | WDT disabled |
| WDTCWS | WDT Window Select |
| WDTCWS125 | 12.5 percent window open time |
| WDTCWS25 | 25 percent window open time |
| WDTCWS375 | 37.5 percent window open time |
| WDTCWS50 | 50 percent window open time |
| WDTCWS625 | 62.5 percent window open time |
| WDTCWS75 | 75 percent window open time |
| WDTCWS100 | 100 percent window open time (Legacy WDT) |
| WDTCWSSW | Software WDT window size control (WDTWS bits) |
| WDTCCS | WDT Input Clock Selector |
| LFINTOSC | 31.0kHz LFINTOSC |
| MFINTOSC | 31.25 kHz HFINTOSC (MFINTOSC) |
| SWC | Software control, controlled by WDTCS bits |
|
Register: IDLOC0 @ 0x8000
|
|---|
|
Register: IDLOC1 @ 0x8001
|
|---|
|
Register: IDLOC2 @ 0x8002
|
|---|
|
Register: IDLOC3 @ 0x8003
|
|---|