|
#pragma config <setting>=<named value>
|
|---|
For example:// External Oscillator mode selection bits : EC above 8MHz; PFM set to high power |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// External Oscillator mode selection bits : EC above 8MHz; PFM set to high power |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// External Oscillator mode selection bits : EC above 8MHz; PFM set to high power |
For example:// IDLOC @ 0x8000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; External Oscillator mode selection bits : EC above 8MHz; PFM set to high power |
|
config "<setting>"=<literal constant>
|
|---|
For example:; External Oscillator mode selection bits : EC above 8MHz; PFM set to high power |
|
config "<register>"=<literal constant>
|
|---|
For example:; External Oscillator mode selection bits : EC above 8MHz; PFM set to high power |
For example:; IDLOC @ 0x8000 |
|
Register: CONFIG1 @ 0x8007
|
|
|---|---|
| FEXTOSC | External Oscillator mode selection bits |
| ECH | EC above 8MHz; PFM set to high power |
| ECM | EC for 500kHz to 8MHz; PFM set to medium power |
| ECL | EC below 500kHz; PFM set to low power |
| OFF | Oscillator not enabled |
| HS | HS (crystal oscillator) above 4MHz; PFM set to high power |
| XT | XT (crystal oscillator) above 500kHz, below 4MHz; PFM set to medium power |
| LP | LP (crystal oscillator) optimized for 32.768kHz; PFM set to low power |
| RSTOSC | Power-up default value for COSC bits |
| EXT1X | EXTOSC operating per FEXTOSC bits |
| HFINT1 | HFINTOSC (1MHz) |
| LFINT | LFINTOSC |
| SOSC | SOSC |
| EXT4X | EXTOSC with 4x PLL, with EXTOSC operating per FEXTOSC bits |
| HFINTPLL | HFINTOSC with 2x PLL, with OSCFRQ = 16 MHz and CDIV = 1:1 (FOSC = 32 MHz) |
| HFINT32 | HFINTOSC with OSCFRQ = 32MHz and CDIV = 1:1 |
| CLKOUTEN | Clock Out Enable bit |
| OFF | CLKOUT function is disabled; i/o or oscillator function on OSC2 |
| ON | CLKOUT function is enabled; FOSC/4 clock appears at OSC2 |
| CSWEN | Clock Switch Enable bit |
| ON | Writing to NOSC and NDIV is allowed |
| OFF | The NOSC and NDIV bits cannot be changed by user software |
| FCMEN | Fail-Safe Clock Monitor Enable bit |
| ON | FSCM timer enabled |
| OFF | FSCM timer disabled |
|
Register: CONFIG2 @ 0x8008
|
|
|---|---|
| MCLRE | Master Clear Enable bit |
| ON | MCLR pin is Master Clear function |
| OFF | MCLR pin function is port defined function |
| PWRTE | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| LPBOREN | Low-Power BOR enable bit |
| OFF | ULPBOR disabled |
| ON | ULPBOR enabled |
| 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 |
| LO | Brown-out Reset Voltage (VBOR) set to 1.9V on LF, and 2.45V on F Devices |
| HI | Brown-out Reset Voltage (VBOR) is set to 2.7V |
| ZCD | Zero-cross detect disable |
| OFF | Zero-cross detect circuit is disabled at POR. |
| ON | Zero-cross detect circuit is always enabled |
| PPS1WAY | Peripheral Pin Select one-way control |
| ON | The PPSLOCK bit can be cleared and set only once in software |
| OFF | The PPSLOCK bit can be set and cleared repeatedly by software |
| 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 |
| DEBUG | Background Debugger |
| OFF | Background Debugger disabled |
| ON | background debugger enabled |
|
Register: CONFIG3 @ 0x8009
|
|
|---|---|
| WDTCPS | WDT Period Select bits |
| WDTCPS_0 | Divider ratio 1:32 |
| WDTCPS_1 | Divider ratio 1:64 |
| WDTCPS_2 | Divider ratio 1:128 |
| WDTCPS_3 | Divider ratio 1:256 |
| WDTCPS_4 | Divider ratio 1:512 |
| WDTCPS_5 | Divider ratio 1:1024 |
| WDTCPS_6 | Divider ratio 1:2048 |
| WDTCPS_7 | Divider ratio 1:4096 |
| WDTCPS_8 | Divider ratio 1:8192 |
| WDTCPS_9 | Divider ratio 1:16384 |
| WDTCPS_10 | Divider ratio 1:32768 |
| WDTCPS_11 | Divider ratio 1:65536 |
| WDTCPS_12 | Divider ratio 1:131072 |
| WDTCPS_13 | Divider ratio 1:262144 |
| WDTCPS_14 | Divider ratio 1:524299 |
| WDTCPS_15 | Divider ratio 1:1048576 |
| WDTCPS_16 | Divider ratio 1:2097152 |
| WDTCPS_17 | Divider ratio 1:4194304 |
| WDTCPS_18 | Divider ratio 1:8388608 |
| WDTCPS_19 | Divider ratio 1:32 |
| WDTCPS_20 | Divider ratio 1:32 |
| WDTCPS_21 | Divider ratio 1:32 |
| WDTCPS_22 | Divider ratio 1:32 |
| WDTCPS_23 | Divider ratio 1:32 |
| WDTCPS_24 | Divider ratio 1:32 |
| WDTCPS_25 | Divider ratio 1:32 |
| WDTCPS_26 | Divider ratio 1:32 |
| WDTCPS_27 | Divider ratio 1:32 |
| WDTCPS_28 | Divider ratio 1:32 |
| WDTCPS_29 | Divider ratio 1:32 |
| WDTCPS_30 | Divider ratio 1:32 |
| WDTCPS_31 | Divider ratio 1:65536; software control of WDTPS |
| WDTE | WDT operating mode |
| OFF | WDT Disabled, SWDTEN is ignored |
| SWDTEN | WDT enabled/disabled by SWDTEN bit in WDTCON0 |
| NSLEEP | WDT enabled while sleep=0, suspended when sleep=1; SWDTEN ignored |
| ON | WDT enabled regardless of sleep; SWDTEN ignored |
| WDTCWS | WDT Window Select bits |
| WDTCWS_0 | window delay = 87.5 percent of time; no software control; keyed access required |
| WDTCWS_1 | window delay = 75 percent of time; no software control; keyed access required |
| WDTCWS_2 | window delay = 62.5 percent of time; no software control; keyed access required |
| WDTCWS_3 | window delay = 50 percent of time; no software control; keyed access required |
| WDTCWS_4 | window delay = 37.5 percent of time; no software control; keyed access required |
| WDTCWS_5 | window delay = 25 percent of time; no software control; keyed access required |
| WDTCWS_6 | window always open (100%); no software control; keyed access required |
| WDTCWS_7 | window always open (100%); software control; keyed access not required |
| WDTCCS | WDT input clock selector |
| LFINTOSC | WDT reference clock is the 31.0kHz LFINTOSC output |
| HFINTOSC | WDT reference clock is the 31.25 kHz HFINTOSC |
| SC | Software Control |
|
Register: CONFIG4 @ 0x800A
|
|
|---|---|
| WRT | UserNVM self-write protection bits |
| OFF | Write protection off |
| WRT_upper | 0x0000 to 0x01FF write protected |
| WRT_lower | 0x0000 to x1FFF write protected |
| ON | 0x0000 to 0x3FFF write protected |
| SCANE | Scanner Enable bit |
| available | Scanner module is available for use |
| not_available | Scanner module is not available for use |
| LVP | Low Voltage Programming Enable bit |
| ON | Low Voltage programming enabled. MCLR/Vpp pin function is MCLR. |
| OFF | High Voltage on MCLR/Vpp must be used for programming |
|
Register: CONFIG5 @ 0x800B
|
|
|---|---|
| CP | UserNVM Program memory code protection bit |
| OFF | Program Memory code protection disabled |
| ON | Program Memory code protection enabled |
| CPD | DataNVM code protection bit |
| OFF | Data EEPROM code protection disabled |
| ON | Data EEPROM code protection enabled |
|
Register: IDLOC0 @ 0x8000
|
|---|
|
Register: IDLOC1 @ 0x8001
|
|---|
|
Register: IDLOC2 @ 0x8002
|
|---|
|
Register: IDLOC3 @ 0x8003
|
|---|