|
#pragma config <setting>=<named value>
|
|---|
For example:// External Oscillator Mode Selection bits : EC (external clock) 16 MHz and above |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// External Oscillator Mode Selection bits : EC (external clock) 16 MHz and above |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// External Oscillator Mode Selection bits : EC (external clock) 16 MHz and above |
For example:// IDLOC @ 0x8000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; External Oscillator Mode Selection bits : EC (external clock) 16 MHz and above |
|
config "<setting>"=<literal constant>
|
|---|
For example:; External Oscillator Mode Selection bits : EC (external clock) 16 MHz and above |
|
config "<register>"=<literal constant>
|
|---|
For example:; External Oscillator Mode Selection bits : EC (external clock) 16 MHz and above |
For example:; IDLOC @ 0x8000 |
|
Register: CONFIG1 @ 0x8007
|
|
|---|---|
| FEXTOSC | External Oscillator Mode Selection bits |
| ECH | EC (external clock) 16 MHz and above |
| ECL | EC (external clock) below 16MHz |
| OFF | Oscillator not enabled |
| RSTOSC | Power-up Default Value for COSC bits |
| EXTOSC | EXTOSC operating per FEXTOSC bits |
| HFINTOSC_1MHZ | HFINTOSC (1 MHz) |
| LFINTOSC | LFINTOSC |
| HFINTOSC_32MHZ | HFINTOSC (32 MHz) |
| CLKOUTEN | Clock Out Enable bit |
| ON | CLKOUT function is enabled; FOSC/4 clock appears on RA4 |
| OFF | CLKOUT function is disabled; I/O function on RA4 |
| VDDAR | VDD Range Analog Calibration Selection bit |
| HI | Internal analog systems are calibrated for operation between VDD = 2.3V - 5.5V |
| LO | Internal analog systems are calibrated for operation between VDD = 1.8V - 3.6V |
|
Register: CONFIG2 @ 0x8008
|
|
|---|---|
| MCLRE | Master Clear Enable bit |
| EXTMCLR | If LVP = 0, MCLR pin is MCLR; If LVP = 1, RA3 pin function is MCLR |
| INTMCLR | If LVP = 0, MCLR pin is port defined function; If LVP = 1, RA3 pin function is MCLR |
| PWRTS | Power-up Timer Selection bits |
| PWRT_OFF | PWRT is disabled |
| PWRT_64 | PWRT set at 64 ms |
| PWRT_16 | PWRT set at 16 ms |
| PWRT_1 | PWRT set at 1 ms |
| WDTE | WDT Operating Mode bits |
| ON | WDT enabled regardless of Sleep; SEN bit is ignored |
| NSLEEP | WDT enabled while Sleep = 0, suspended when Sleep = 1; SEN is ignored |
| SWDTEN | WDT enabled/disabled by SEN bit |
| OFF | WDT disabled; SEN is ignored |
| BOREN | Brown-out Reset Enable bits |
| ON | Brown-out Reset Enabled, SBOREN bit is ignored |
| NSLEEP | Brown-out Reset enabled while running, disabled in Sleep; SBOREN is ignored |
| SBOREN | Brown-out Reset enabled according to SBOREN bit |
| OFF | Brown-out Reset disabled |
| BORV | Brown-out Reset Voltage Selection bit |
| LO | Brown-out Reset Voltage (VBOR) set to 1.9V |
| HI | Brown-out Reset Voltage (VBOR) is set to 2.85V |
| PPS1WAY | PPSLOCKED One-Way Set Enable bit |
| ON | The PPSLOCKED bit can be set once after an unlocking sequence is executed; once PPSLOCKED is set, all future changes to PPS registers are prevented |
| OFF | The PPSLOCKED bit can be set and cleared as needed (unlocking sequence is required) |
| STVREN | Stack Overflow/Underflow Reset Enable bit |
| ON | Stack Overflow or Underflow will cause a reset |
| OFF | Stack Overflow or Underflow will not cause a reset |
|
Register: CONFIG3 @ 0x8009
|
|---|
|
Register: CONFIG4 @ 0x800A
|
|
|---|---|
| BBSIZE | Boot Block Size Selection bits |
| BB512 | 512 words boot block size |
| BB1K | 1024 words boot block size |
| BB2K | 2048 words boot block size |
| BB4K | 4096 words boot block size |
| BB8K | * half of user program memory |
| BB16K | * half of user program memory |
| BB32K | * half of user program memory |
| BB64K | * half of user program memory |
| BBEN | Boot Block Enable bit |
| OFF | Boot Block is disabled |
| ON | Boot Block is enabled |
| SAFEN | SAF Enable bit |
| OFF | SAF is disabled |
| ON | SAF is enabled |
| WRTAPP | Application Block Write Protection bit |
| OFF | Application Block is not write-protected |
| ON | Application Block is write-protected |
| WRTB | Boot Block Write Protection bit |
| OFF | Boot Block is not write-protected |
| ON | Boot Block is write-protected |
| WRTC | Configuration Registers Write Protection bit |
| OFF | Configuration Registers are not write-protected |
| ON | Configuration Registers are write-protected |
| WRTSAF | Storage Area Flash (SAF) Write Protection bit |
| OFF | SAF is not write-protected |
| ON | SAF is write-protected |
| LVP | Low Voltage Programming Enable bit |
| ON | Low Voltage programming enabled. MCLR/Vpp pin function is MCLR. MCLRE Configuration bit is ignored. |
| OFF | High Voltage on MCLR/Vpp must be used for programming |
|
Register: CONFIG5 @ 0x800B
|
|
|---|---|
| CP | User Program Flash Memory Code Protection bit |
| OFF | User Program Flash Memory code protection is disabled |
| ON | User Program Flash Memory code protection is enabled |
|
Register: IDLOC0 @ 0x8000
|
|---|
|
Register: IDLOC1 @ 0x8001
|
|---|
|
Register: IDLOC2 @ 0x8002
|
|---|
|
Register: IDLOC3 @ 0x8003
|
|---|