|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : EC oscillator (high power, >16 MHz) |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : EC oscillator (high power, >16 MHz) |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : EC oscillator (high power, >16 MHz) |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : EC oscillator (high power, >16 MHz) |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : EC oscillator (high power, >16 MHz) |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : EC oscillator (high power, >16 MHz) |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| FOSC | Oscillator Selection bits |
| ECLPIO6 | EC oscillator (low power, <500 kHz) |
| ECLP | EC oscillator, CLKOUT function on OSC2 (low power, <500 kHz) |
| ECMPIO6 | EC oscillator (medium power, 500 kHz-16 MHz) |
| ECMP | EC oscillator, CLKOUT function on OSC2 (medium power, 500 kHz-16 MHz) |
| INTIO7 | Internal oscillator block, CLKOUT function on OSC2 |
| INTIO67 | Internal oscillator block |
| RCIO6 | External RC oscillator |
| RC | External RC oscillator, CLKOUT function on OSC2 |
| ECHPIO6 | EC oscillator (high power, >16 MHz) |
| ECHP | EC oscillator, CLKOUT function on OSC2 (high power, >16 MHz) |
| HSMP | HS oscillator (medium power 4-16 MHz) |
| HSHP | HS oscillator (high power > 16 MHz) |
| XT | XT oscillator |
| LP | LP oscillator |
| PLLCFG | 4X PLL Enable |
| OFF | Oscillator used directly |
| ON | Oscillator multiplied by 4 |
| PRICLKEN | Primary clock enable bit |
| OFF | Primary clock can be disabled by software |
| ON | Primary clock enabled |
| FCMEN | Fail-Safe Clock Monitor Enable bit |
| OFF | Fail-Safe Clock Monitor disabled |
| ON | Fail-Safe Clock Monitor enabled |
| IESO | Internal/External Oscillator Switchover bit |
| OFF | Oscillator Switchover mode disabled |
| ON | Oscillator Switchover mode enabled |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| PWRTEN | Power-up Timer Enable bit |
| OFF | Power up timer disabled |
| ON | Power up timer enabled |
| BOREN | Brown-out Reset Enable bits |
| SBORDIS | Brown-out Reset enabled in hardware only (SBOREN is disabled) |
| NOSLP | Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled) |
| ON | Brown-out Reset enabled and controlled by software (SBOREN is enabled) |
| OFF | Brown-out Reset disabled in hardware and software |
| BORV | Brown Out Reset Voltage bits |
| 190 | VBOR set to 1.90 V nominal |
| 220 | VBOR set to 2.20 V nominal |
| 250 | VBOR set to 2.50 V nominal |
| 285 | VBOR set to 2.85 V nominal |
|
Register: CONFIG2H @ 0x300003
|
|
|---|---|
| WDTEN | Watchdog Timer Enable bits |
| ON | WDT is always enabled. SWDTEN bit has no effect |
| SWON | WDT is controlled by SWDTEN bit of the WDTCON register |
| NOSLP | WDT is disabled in sleep, otherwise enabled. SWDTEN bit has no effect |
| OFF | Watch dog timer is always disabled. SWDTEN has no effect. |
| WDTPS | Watchdog Timer Postscale Select bits |
| 32768 | 1:32768 |
| 16384 | 1:16384 |
| 8192 | 1:8192 |
| 4096 | 1:4096 |
| 2048 | 1:2048 |
| 1024 | 1:1024 |
| 512 | 1:512 |
| 256 | 1:256 |
| 128 | 1:128 |
| 64 | 1:64 |
| 32 | 1:32 |
| 16 | 1:16 |
| 8 | 1:8 |
| 4 | 1:4 |
| 2 | 1:2 |
| 1 | 1:1 |
|
Register: CONFIG3H @ 0x300005
|
|
|---|---|
| CCP2MX | CCP2 MUX bit |
| PORTC1 | CCP2 input/output is multiplexed with RC1 |
| PORTB3 | CCP2 input/output is multiplexed with RB3 |
| PBADEN | PORTB A/D Enable bit |
| ON | PORTB<5:0> pins are configured as analog input channels on Reset |
| OFF | PORTB<5:0> pins are configured as digital I/O on Reset |
| CCP3MX | P3A/CCP3 Mux bit |
| PORTB5 | P3A/CCP3 input/output is multiplexed with RB5 |
| PORTC6 | P3A/CCP3 input/output is mulitplexed with RC6 |
| HFOFST | HFINTOSC Fast Start-up |
| ON | HFINTOSC output and ready status are not delayed by the oscillator stable status |
| OFF | HFINTOSC output and ready status are delayed by the oscillator stable status |
| T3CMX | Timer3 Clock input mux bit |
| PORTC0 | T3CKI is on RC0 |
| PORTB5 | T3CKI is on RB5 |
| P2BMX | ECCP2 B output mux bit |
| PORTB5 | P2B is on RB5 |
| PORTC0 | P2B is on RC0 |
| MCLRE | MCLR Pin Enable bit |
| EXTMCLR | MCLR pin enabled, RE3 input pin disabled |
| INTMCLR | RE3 input pin enabled; MCLR disabled |
|
Register: CONFIG4L @ 0x300006
|
|
|---|---|
| STVREN | Stack Full/Underflow Reset Enable bit |
| ON | Stack full/underflow will cause Reset |
| OFF | Stack full/underflow will not cause Reset |
| LVP | Single-Supply ICSP Enable bit |
| ON | Single-Supply ICSP enabled if MCLRE is also 1 |
| OFF | Single-Supply ICSP disabled |
| XINST | Extended Instruction Set Enable bit |
| ON | Instruction set extension and Indexed Addressing mode enabled |
| OFF | Instruction set extension and Indexed Addressing mode disabled (Legacy mode) |
| DEBUG | Background Debug |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG5L @ 0x300008
|
|
|---|---|
| CP0 | Code Protection Block 0 |
| OFF | Block 0 (000800-001FFFh) not code-protected |
| ON | Block 0 (000800-001FFFh) code-protected |
| CP1 | Code Protection Block 1 |
| OFF | Block 1 (002000-003FFFh) not code-protected |
| ON | Block 1 (002000-003FFFh) code-protected |
| CP2 | Code Protection Block 2 |
| OFF | Block 2 (004000-005FFFh) not code-protected |
| ON | Block 2 (004000-005FFFh) code-protected |
| CP3 | Code Protection Block 3 |
| OFF | Block 3 (006000-007FFFh) not code-protected |
| ON | Block 3 (006000-007FFFh) code-protected |
|
Register: CONFIG5H @ 0x300009
|
|
|---|---|
| CPB | Boot Block Code Protection bit |
| OFF | Boot block (000000-0007FFh) not code-protected |
| ON | Boot block (000000-0007FFh) code-protected |
| CPD | Data EEPROM Code Protection bit |
| OFF | Data EEPROM not code-protected |
| ON | Data EEPROM code-protected |
|
Register: CONFIG6L @ 0x30000A
|
|
|---|---|
| WRT0 | Write Protection Block 0 |
| OFF | Block 0 (000800-001FFFh) not write-protected |
| ON | Block 0 (000800-001FFFh) write-protected |
| WRT1 | Write Protection Block 1 |
| OFF | Block 1 (002000-003FFFh) not write-protected |
| ON | Block 1 (002000-003FFFh) write-protected |
| WRT2 | Write Protection Block 2 |
| OFF | Block 2 (004000-005FFFh) not write-protected |
| ON | Block 2 (004000-005FFFh) write-protected |
| WRT3 | Write Protection Block 3 |
| OFF | Block 3 (006000-007FFFh) not write-protected |
| ON | Block 3 (006000-007FFFh) write-protected |
|
Register: CONFIG6H @ 0x30000B
|
|
|---|---|
| WRTC | Configuration Register Write Protection bit |
| OFF | Configuration registers (300000-3000FFh) not write-protected |
| ON | Configuration registers (300000-3000FFh) 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 |
|
Register: CONFIG7L @ 0x30000C
|
|
|---|---|
| EBTR0 | Table Read Protection Block 0 |
| OFF | Block 0 (000800-001FFFh) not protected from table reads executed in other blocks |
| ON | Block 0 (000800-001FFFh) protected from table reads executed in other blocks |
| EBTR1 | Table Read Protection Block 1 |
| OFF | Block 1 (002000-003FFFh) not protected from table reads executed in other blocks |
| ON | Block 1 (002000-003FFFh) protected from table reads executed in other blocks |
| EBTR2 | Table Read Protection Block 2 |
| OFF | Block 2 (004000-005FFFh) not protected from table reads executed in other blocks |
| ON | Block 2 (004000-005FFFh) protected from table reads executed in other blocks |
| EBTR3 | Table Read Protection Block 3 |
| OFF | Block 3 (006000-007FFFh) not protected from table reads executed in other blocks |
| ON | Block 3 (006000-007FFFh) protected from table reads executed in other blocks |
|
Register: CONFIG7H @ 0x30000D
|
|
|---|---|
| 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 @ 0x200001
|
|---|
|
Register: IDLOC2 @ 0x200002
|
|---|
|
Register: IDLOC3 @ 0x200003
|
|---|
|
Register: IDLOC4 @ 0x200004
|
|---|
|
Register: IDLOC5 @ 0x200005
|
|---|
|
Register: IDLOC6 @ 0x200006
|
|---|
|
Register: IDLOC7 @ 0x200007
|
|---|