|
#pragma config <setting>=<named value>
|
|---|
For example:// External Oscillator mode Selection bits : EC (external clock) above 8 MHz; PFM set to high power |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// External Oscillator mode Selection bits : EC (external clock) above 8 MHz; PFM set to high power |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// External Oscillator mode Selection bits : EC (external clock) above 8 MHz; PFM set to high power |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; External Oscillator mode Selection bits : EC (external clock) above 8 MHz; PFM set to high power |
|
config "<setting>"=<literal constant>
|
|---|
For example:; External Oscillator mode Selection bits : EC (external clock) above 8 MHz; PFM set to high power |
|
config "<register>"=<literal constant>
|
|---|
For example:; External Oscillator mode Selection bits : EC (external clock) above 8 MHz; PFM set to high power |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1L @ 0x300000
|
|
|---|---|
| FEXTOSC | External Oscillator mode Selection bits |
| LP | LP (crystal oscillator) optimized for 32.768 kHz; PFM set to low power |
| XT | XT (crystal oscillator) above 100 kHz, below 8 MHz; PFM set to medium power |
| HS | HS (crystal oscillator) above 8 MHz; PFM set to high power |
| OFF | Oscillator not enabled |
| ECL | EC (external clock) below 100 kHz; PFM set to low power |
| ECM | EC (external clock) for 500 kHz to 8 MHz; PFM set to medium power |
| ECH | EC (external clock) above 8 MHz; PFM set to high power |
| RSTOSC | Power-up default value for COSC bits |
| HFINTOSC_64MHZ | HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1 |
| RESERVED_1 | Reserved (DO NOT USE) |
| EXTOSC_4PLL | EXTOSC with 4x PLL, with EXTOSC operating per FEXTOSC bits |
| SOSC | Secondary Oscillator |
| LFINTOSC | Low-Frequency Oscillator |
| HFINTOSC_1MHZ | HFINTOSC with HFFRQ = 4 MHz and CDIV = 4:1 |
| EXTOSC | EXTOSC operating per FEXTOSC bits (device manufacturing default) |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| CLKOUTEN | Clock Out Enable bit |
| OFF | CLKOUT function is disabled |
| ON | CLKOUT function is enabled |
| CSWEN | Clock Switch Enable bit |
| OFF | The NOSC and NDIV bits cannot be changed by user software |
| ON | Writing to NOSC and NDIV is allowed |
| FCMEN | Fail-Safe Clock Monitor Enable bit |
| OFF | Fail-Safe Clock Monitor disabled |
| ON | Fail-Safe Clock Monitor enabled |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| MCLRE | Master Clear Enable bit |
| EXTMCLR | MCLR pin (RE3) is MCLR |
| INTMCLR | If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR |
| PWRTE | Power-up Timer Enable bit |
| ON | Power up timer enabled |
| OFF | Power up timer disabled |
| LPBOREN | Low-power BOR enable bit |
| OFF | Low power BOR is disabled |
| ON | Low power BOR is enabled |
| BOREN | Brown-out Reset Enable bits |
| SBORDIS | Brown-out Reset enabled , SBOREN bit is ignored |
| NOSLP | Brown-out Reset enabled while running, disabled in Sleep; SBOREN is ignored |
| ON | Brown-out Reset enabled according to SBOREN |
| OFF | Brown-out Reset disabled |
|
Register: CONFIG2H @ 0x300003
|
|
|---|---|
| BORV | Brown Out Reset Voltage selection bits |
| VBOR_190 | Brown-out Reset Voltage (VBOR) set to 1.90V |
| VBOR_245 | Brown-out Reset Voltage (VBOR) set to 2.45V |
| VBOR_270 | Brown-out Reset Voltage (VBOR) set to 2.70V |
| VBOR_285 | Brown-out Reset Voltage (VBOR) set to 2.85V |
| ZCD | ZCD Disable bit |
| OFF | ZCD disabled. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON |
| ON | ZCD always enabled |
| PPS1WAY | PPSLOCK bit One-Way Set Enable bit |
| ON | PPSLOCK bit can be cleared and set only once; PPS registers remain locked after one clear/set cycle |
| OFF | PPSLOCK bit can be set and cleared repeatedly (subject to the unlock sequence) |
| STVREN | Stack Full/Underflow Reset Enable bit |
| ON | Stack full/underflow will cause Reset |
| OFF | Stack full/underflow will not cause Reset |
| XINST | Extended Instruction Set Enable bit |
| OFF | Extended Instruction Set and Indexed Addressing Mode disabled |
| ON | Extended Instruction Set and Indexed Addressing Mode enabled |
|
Register: CONFIG3L @ 0x300004
|
|
|---|---|
| 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 | WDT enabled/disabled by SWDTEN bit |
| NSLEEP | WDT disabled in sleep, enabled when not in sleep |
| ON | WDT always enabled |
|
Register: CONFIG3H @ 0x300005
|
|
|---|---|
| WDTCWS | WDT Window Select bits |
| WDTCWS_0 | window delay = 87.5 % of time; no software control; keyed access required |
| WDTCWS_1 | window delay = 75 % of time; no software control; keyed access required |
| WDTCWS_2 | window delay = 62.5 % of time; no software control; keyed access required |
| WDTCWS_3 | window delay = 50 % of time; no software control; keyed access required |
| WDTCWS_4 | window delay = 37.5 % of time; no software control; keyed access required |
| WDTCWS_5 | window delay = 25 % 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 |
| HFINTOSC | WDT reference clock is the 31.25 kHz MFINTOSC output |
| LFINTOSC | WDT reference clock is the 31.0 kHz LFINTOSC |
| SC | Software Control |
|
Register: CONFIG4L @ 0x300006
|
|
|---|---|
| WRT0 | Write Protection Block 0 |
| OFF | Block 0 (000800-003FFFh) not write-protected |
| ON | Block 0 (000800-003FFFh) write-protected |
| WRT1 | Write Protection Block 1 |
| OFF | Block 1 (004000-007FFFh) not write-protected |
| ON | Block 1 (004000-007FFFh) write-protected |
| WRT2 | Write Protection Block 2 |
| OFF | Block 2 (008000-00BFFFh) not write-protected |
| ON | Block 2 (008000-00BFFFh) write-protected |
| WRT3 | Write Protection Block 3 |
| OFF | Block 3 (00C000-00FFFFh) not write-protected |
| ON | Block 3 (00C000-00FFFFh) write-protected |
| WRT4 | Write Protection Block 4 |
| OFF | Block 4 (010000-013FFFh) not write-protected |
| ON | Block 4 (010000-013FFFh) not write-protected |
| WRT5 | Write Protection Block 5 |
| OFF | Block 5 (014000-017FFFh) not write-protected |
| ON | Block 5 (014000-017FFFh) write-protected |
| WRT6 | Write Protection Block 6 |
| OFF | Block 6 (018000-01BFFFh) not write-protected |
| ON | Block 6 (018000-01BFFFh) write-protected |
| WRT7 | Write Protection Block 7 |
| OFF | Block 7 (01C000-01FFFFh) not write-protected |
| ON | Block 7 (01C000-01FFFFh) write-protected |
|
Register: CONFIG4H @ 0x300007
|
|
|---|---|
| WRTC | Configuration Register Write Protection bit |
| OFF | Configuration registers (300000-30000Bh) not write-protected |
| ON | Configuration registers (300000-30000Bh) write-protected |
| WRTB | Boot Block Write Protection bit |
| OFF | Boot Block (000000-0007FFh) not write-protected |
| ON | Boot Block (000000-0007FFh) write-protected |
| WRTD | Data EEPROM Write Protection bit |
| OFF | Data EEPROM not write-protected |
| ON | Data EEPROM write-protected |
| SCANE | Scanner Enable bit |
| OFF | Scanner module is NOT available for use, SCANMD bit is ignored |
| ON | Scanner module is available for use, SCANMD bit can control the module |
| LVP | Low Voltage Programming Enable bit |
| OFF | HV on MCLR/VPP must be used for programming |
| ON | Low voltage programming enabled. MCLR/VPP pin function is MCLR. MCLRE configuration bit is ignored |
|
Register: CONFIG5L @ 0x300008
|
|
|---|---|
| CP | UserNVM Program Memory Code Protection bit |
| OFF | UserNVM code protection disabled |
| ON | UserNVM code protection enabled |
| CPD | DataNVM Memory Code Protection bit |
| OFF | DataNVM code protection disabled |
| ON | DataNVM code protection enabled |
|
Register: CONFIG5H @ 0x300009
|
|---|
|
Register: CONFIG6L @ 0x30000A
|
|
|---|---|
| EBTR0 | Table Read Protection Block 0 |
| OFF | Block 0 (000800-003FFFh) not protected from table reads executed in other blocks |
| ON | Block 0 (000800-003FFFh) protected from table reads executed in other blocks |
| EBTR1 | Table Read Protection Block 1 |
| OFF | Block 1 (004000-007FFFh) not protected from table reads executed in other blocks |
| ON | Block 1 (004000-007FFFh) protected from table reads executed in other blocks |
| EBTR2 | Table Read Protection Block 2 |
| OFF | Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks |
| ON | Block 2 (008000-00BFFFh) protected from table reads executed in other blocks |
| EBTR3 | Table Read Protection Block 3 |
| OFF | Block 3 (00C000-00FFFFh) not protected from table reads executed in other blocks |
| ON | Block 3 (00C000-00FFFFh) protected from table reads executed in other blocks |
| EBTR4 | Table Read Protection Block 4 |
| OFF | Block 4 (010000-013FFFh) not protected from table reads executed in other blocks |
| ON | Block 4 (010000-013FFFh) protected from table reads executed in other blocks |
| EBTR5 | Table Read Protection Block 5 |
| OFF | Block 5 (014000-017FFFh) not protected from table reads executed in other blocks |
| ON | Block 5 (014000-017FFFh) protected from table reads executed in other blocks |
| EBTR6 | Table Read Protection Block 6 |
| OFF | Block 6 (018000-01BFFFh) not protected from table reads executed in other blocks |
| ON | Block 6 (018000-01BFFFh) protected from table reads executed in other blocks |
| EBTR7 | Table Read Protection Block 7 |
| OFF | Block 7 (01C000-01FFFFh) not protected from table reads executed in other blocks |
| ON | Block 7 (01C000-01FFFFh) protected from table reads executed in other blocks |
|
Register: CONFIG6H @ 0x30000B
|
|
|---|---|
| EBTRB | Boot Block Table Read Protection bit |
| OFF | Boot Block (000000-0007FFh) not protected from table reads executed in other blocks |
| ON | Boot Block (000000-0007FFh) protected from table reads executed in other blocks |
|
Register: IDLOC0 @ 0x200000
|
|---|
|
Register: IDLOC1 @ 0x200002
|
|---|
|
Register: IDLOC2 @ 0x200004
|
|---|
|
Register: IDLOC3 @ 0x200006
|
|---|
|
Register: IDLOC4 @ 0x200008
|
|---|
|
Register: IDLOC5 @ 0x20000A
|
|---|
|
Register: IDLOC6 @ 0x20000C
|
|---|
|
Register: IDLOC7 @ 0x20000E
|
|---|
|
Register: IDLOC8 @ 0x200010
|
|---|
|
Register: IDLOC9 @ 0x200012
|
|---|
|
Register: IDLOC10 @ 0x200014
|
|---|
|
Register: IDLOC11 @ 0x200016
|
|---|
|
Register: IDLOC12 @ 0x200018
|
|---|
|
Register: IDLOC13 @ 0x20001A
|
|---|
|
Register: IDLOC14 @ 0x20001C
|
|---|
|
Register: IDLOC15 @ 0x20001E
|
|---|
|
Register: IDLOC16 @ 0x200020
|
|---|
|
Register: IDLOC17 @ 0x200022
|
|---|
|
Register: IDLOC18 @ 0x200024
|
|---|
|
Register: IDLOC19 @ 0x200026
|
|---|
|
Register: IDLOC20 @ 0x200028
|
|---|
|
Register: IDLOC21 @ 0x20002A
|
|---|
|
Register: IDLOC22 @ 0x20002C
|
|---|
|
Register: IDLOC23 @ 0x20002E
|
|---|
|
Register: IDLOC24 @ 0x200030
|
|---|
|
Register: IDLOC25 @ 0x200032
|
|---|
|
Register: IDLOC26 @ 0x200034
|
|---|
|
Register: IDLOC27 @ 0x200036
|
|---|
|
Register: IDLOC28 @ 0x200038
|
|---|
|
Register: IDLOC29 @ 0x20003A
|
|---|
|
Register: IDLOC30 @ 0x20003C
|
|---|
|
Register: IDLOC31 @ 0x20003E
|
|---|
|
Register: IDLOC32 @ 0x200040
|
|---|
|
Register: IDLOC33 @ 0x200042
|
|---|
|
Register: IDLOC34 @ 0x200044
|
|---|
|
Register: IDLOC35 @ 0x200046
|
|---|
|
Register: IDLOC36 @ 0x200048
|
|---|
|
Register: IDLOC37 @ 0x20004A
|
|---|
|
Register: IDLOC38 @ 0x20004C
|
|---|
|
Register: IDLOC39 @ 0x20004E
|
|---|
|
Register: IDLOC40 @ 0x200050
|
|---|
|
Register: IDLOC41 @ 0x200052
|
|---|
|
Register: IDLOC42 @ 0x200054
|
|---|
|
Register: IDLOC43 @ 0x200056
|
|---|
|
Register: IDLOC44 @ 0x200058
|
|---|
|
Register: IDLOC45 @ 0x20005A
|
|---|
|
Register: IDLOC46 @ 0x20005C
|
|---|
|
Register: IDLOC47 @ 0x20005E
|
|---|
|
Register: IDLOC48 @ 0x200060
|
|---|
|
Register: IDLOC49 @ 0x200062
|
|---|
|
Register: IDLOC50 @ 0x200064
|
|---|
|
Register: IDLOC51 @ 0x200066
|
|---|
|
Register: IDLOC52 @ 0x200068
|
|---|
|
Register: IDLOC53 @ 0x20006A
|
|---|
|
Register: IDLOC54 @ 0x20006C
|
|---|
|
Register: IDLOC55 @ 0x20006E
|
|---|
|
Register: IDLOC56 @ 0x200070
|
|---|
|
Register: IDLOC57 @ 0x200072
|
|---|
|
Register: IDLOC58 @ 0x200074
|
|---|
|
Register: IDLOC59 @ 0x200076
|
|---|
|
Register: IDLOC60 @ 0x200078
|
|---|
|
Register: IDLOC61 @ 0x20007A
|
|---|
|
Register: IDLOC62 @ 0x20007C
|
|---|
|
Register: IDLOC63 @ 0x20007E
|
|---|
|
Register: IDLOC64 @ 0x200080
|
|---|
|
Register: IDLOC65 @ 0x200082
|
|---|
|
Register: IDLOC66 @ 0x200084
|
|---|
|
Register: IDLOC67 @ 0x200086
|
|---|
|
Register: IDLOC68 @ 0x200088
|
|---|
|
Register: IDLOC69 @ 0x20008A
|
|---|
|
Register: IDLOC70 @ 0x20008C
|
|---|
|
Register: IDLOC71 @ 0x20008E
|
|---|
|
Register: IDLOC72 @ 0x200090
|
|---|
|
Register: IDLOC73 @ 0x200092
|
|---|
|
Register: IDLOC74 @ 0x200094
|
|---|
|
Register: IDLOC75 @ 0x200096
|
|---|
|
Register: IDLOC76 @ 0x200098
|
|---|
|
Register: IDLOC77 @ 0x20009A
|
|---|
|
Register: IDLOC78 @ 0x20009C
|
|---|
|
Register: IDLOC79 @ 0x20009E
|
|---|
|
Register: IDLOC80 @ 0x2000A0
|
|---|
|
Register: IDLOC81 @ 0x2000A2
|
|---|
|
Register: IDLOC82 @ 0x2000A4
|
|---|
|
Register: IDLOC83 @ 0x2000A6
|
|---|
|
Register: IDLOC84 @ 0x2000A8
|
|---|
|
Register: IDLOC85 @ 0x2000AA
|
|---|
|
Register: IDLOC86 @ 0x2000AC
|
|---|
|
Register: IDLOC87 @ 0x2000AE
|
|---|
|
Register: IDLOC88 @ 0x2000B0
|
|---|
|
Register: IDLOC89 @ 0x2000B2
|
|---|
|
Register: IDLOC90 @ 0x2000B4
|
|---|
|
Register: IDLOC91 @ 0x2000B6
|
|---|
|
Register: IDLOC92 @ 0x2000B8
|
|---|
|
Register: IDLOC93 @ 0x2000BA
|
|---|
|
Register: IDLOC94 @ 0x2000BC
|
|---|
|
Register: IDLOC95 @ 0x2000BE
|
|---|
|
Register: IDLOC96 @ 0x2000C0
|
|---|
|
Register: IDLOC97 @ 0x2000C2
|
|---|
|
Register: IDLOC98 @ 0x2000C4
|
|---|
|
Register: IDLOC99 @ 0x2000C6
|
|---|
|
Register: IDLOC100 @ 0x2000C8
|
|---|
|
Register: IDLOC101 @ 0x2000CA
|
|---|
|
Register: IDLOC102 @ 0x2000CC
|
|---|
|
Register: IDLOC103 @ 0x2000CE
|
|---|
|
Register: IDLOC104 @ 0x2000D0
|
|---|
|
Register: IDLOC105 @ 0x2000D2
|
|---|
|
Register: IDLOC106 @ 0x2000D4
|
|---|
|
Register: IDLOC107 @ 0x2000D6
|
|---|
|
Register: IDLOC108 @ 0x2000D8
|
|---|
|
Register: IDLOC109 @ 0x2000DA
|
|---|
|
Register: IDLOC110 @ 0x2000DC
|
|---|
|
Register: IDLOC111 @ 0x2000DE
|
|---|
|
Register: IDLOC112 @ 0x2000E0
|
|---|
|
Register: IDLOC113 @ 0x2000E2
|
|---|
|
Register: IDLOC114 @ 0x2000E4
|
|---|
|
Register: IDLOC115 @ 0x2000E6
|
|---|
|
Register: IDLOC116 @ 0x2000E8
|
|---|
|
Register: IDLOC117 @ 0x2000EA
|
|---|
|
Register: IDLOC118 @ 0x2000EC
|
|---|
|
Register: IDLOC119 @ 0x2000EE
|
|---|
|
Register: IDLOC120 @ 0x2000F0
|
|---|
|
Register: IDLOC121 @ 0x2000F2
|
|---|
|
Register: IDLOC122 @ 0x2000F4
|
|---|
|
Register: IDLOC123 @ 0x2000F6
|
|---|
|
Register: IDLOC124 @ 0x2000F8
|
|---|
|
Register: IDLOC125 @ 0x2000FA
|
|---|
|
Register: IDLOC126 @ 0x2000FC
|
|---|
|
Register: IDLOC127 @ 0x2000FE
|
|---|