|
#pragma config <setting>=<named value>
|
|---|
For example:// External Oscillator Selection bits : EC (external clock) above 16 MHz |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// External Oscillator Selection bits : EC (external clock) above 16 MHz |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// External Oscillator Selection bits : EC (external clock) above 16 MHz |
For example:// IDLOC @ 0x8000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; External Oscillator Selection bits : EC (external clock) above 16 MHz |
|
config "<setting>"=<literal constant>
|
|---|
For example:; External Oscillator Selection bits : EC (external clock) above 16 MHz |
|
config "<register>"=<literal constant>
|
|---|
For example:; External Oscillator Selection bits : EC (external clock) above 16 MHz |
For example:; IDLOC @ 0x8000 |
|
Register: CONFIG1 @ 0x8007
|
|
|---|---|
| FEXTOSC | External Oscillator Selection bits |
| ECH | EC (external clock) above 16 MHz |
| ECL | EC (external clock) below 16 MHz |
| OFF | Oscillator not enabled |
| RSTOSC | Reset Oscillator Selection bits |
| EXTOSC | EXTOSC operating per FEXTOSC bits |
| HFINTOSC_1MHz | HFINTOSC (1MHz) |
| LFINTOSC | LFINTOSC |
| SOSC | SOSC |
| HFINTOSC_32MHz | HFINTOSC (32 MHz) |
| CLKOUTEN | Clock Out Enable bit |
| ON | CLKOUT function is enabled; FOSC/4 clock appears at OSC2 |
| OFF | CLKOUT function is disabled; i/o or oscillator function on OSC2 |
| VDDAR | VDD Range Analog Calibration Selection bit |
| HI | Internal analog systems are calibrated for operation between VDD = 2.3 - 5.5V |
| LO | Internal analog systems are calibrated for operation between VDD = 1.8 - 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 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 when 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 |
| DACAUTOEN | DAC Buffer Automatic Range Select Enable bit |
| OFF | DAC Buffer reference range is determined by the REFRNG bit |
| ON | DAC Buffer reference range is automatically determined by module hardware |
| 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 |
| ZCD | ZCD Disable bit |
| OFF | ZCD module is disabled; ZCD can be enabled by setting the ZCDSEN bit of ZCDCON |
| ON | ZCD module is always enabled; ZCDMD and ZCDSEN bits are ignored |
| PPS1WAY | PPSLOCKED One-Way Set Enable bit |
| ON | The PPSLOCKED bit can be cleared and set only 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 word boot block size |
| BB8K | 8192 word boot block size |
| BB16K | 16384 word boot block size |
| BB32K | * half of user program memory |
| BB64K | * half of user program memory |
| BBEN | Boot Block Enable bit |
| OFF | Boot Block disabled |
| ON | Boot Block enabled |
| SAFEN | Storage Area Flash (SAF) Enable bit |
| OFF | SAF disabled |
| ON | SAF 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 Register Write Protection bit |
| OFF | Configuration Register is NOT write protected |
| ON | Configuration Register is write protected |
| WRTD | Data EEPROM Write-Protection bit |
| OFF | Data EEPROM is NOT write-protected |
| ON | Data EEPROM is 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 | Program Flash Memory Code Protection bit |
| OFF | Program Flash Memory code protection is disabled |
| ON | Program Flash Memory code protection is enabled |
| CPD | Data EEPROM Code Protection bit |
| OFF | EEPROM code protection is disabled |
| ON | EEPROM code protection is enabled |
|
Register: IDLOC0 @ 0x8000
|
|---|
|
Register: IDLOC1 @ 0x8001
|
|---|
|
Register: IDLOC2 @ 0x8002
|
|---|
|
Register: IDLOC3 @ 0x8003
|
|---|