|
#pragma config <setting>=<named value>
|
|---|
For example:// Power-up Timer Enable bit : PWRT disabled |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Power-up Timer Enable bit : PWRT disabled |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Power-up Timer Enable bit : PWRT disabled |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Power-up Timer Enable bit : PWRT disabled |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Power-up Timer Enable bit : PWRT disabled |
|
config "<register>"=<literal constant>
|
|---|
For example:; Power-up Timer Enable bit : PWRT disabled |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| OSC | Oscillator |
| HSPLL | HS oscillator with PLL enabled; clock frequency = (4 x FOSC) |
| ECIO | EC oscillator w/ OSC2 configured as RA6 |
| EC | EC oscillator w/ OSC2 configured as divide-by-4 clock output |
| HS | HS oscillator |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| PWRT | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| BOR | Brown-out Reset Enable bit |
| ON | Brown-out Reset enabled |
| OFF | Brown-out Reset disabled |
| BORV | Brown-out Reset Voltage bits |
| 25 | VBOR set to 2.5V |
| 27 | VBOR set to 2.7V |
| 42 | VBOR set to 4.2V |
| 45 | VBOR set to 4.5V |
|
Register: CONFIG2H @ 0x300003
|
|
|---|---|
| WDT | Watchdog Timer Enable bit |
| ON | WDT enabled |
| OFF | WDT disabled (control is placed on the SWDTEN bit) |
| WDTPS | Watchdog Timer Postscale Select bits |
| 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: CONFIG4L @ 0x300006
|
|
|---|---|
| STVR | Stack Full/Underflow Reset Enable bit |
| ON | Stack Full/Underflow will cause RESET |
| OFF | Stack Full/Underflow will not cause RESET |
| LVP | Low Voltage ICSP Enable bit |
| ON | Low Voltage ICSP enabled |
| OFF | Low Voltage ICSP disabled |
| DEBUG | Background Debugger Enable bit |
| OFF | Background Debugger disabled. RB6 and RB7 configured as general purpose I/O pins. |
| ON | Background Debugger enabled. RB6 and RB7 are dedicated to In-Circuit Debug. |
|
Register: CONFIG5L @ 0x300008
|
|
|---|---|
| CP0 | Code Protection bit |
| OFF | Block 0 (000200-001FFFh) not code protected |
| ON | Block 0 (000200-001FFFh) code protected |
| CP1 | Code Protection bit |
| OFF | Block 1 (002000-003FFFh) not code protected |
| ON | Block 1 (002000-003FFFh) code protected |
| CP2 | Code Protection bit |
| OFF | Block 2 (004000-005FFFh) not code protected |
| ON | Block 2 (004000-005FFFh) code protected |
|
Register: CONFIG5H @ 0x300009
|
|
|---|---|
| CPB | Boot Block Code Protection bit |
| OFF | Boot block (000000-0001FFh) not code protected |
| ON | Boot block (000000-0001FFh) 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 bit |
| OFF | Block 0 (000200h-001FFFh) not write protected |
| ON | Block 0 (000200h-001FFFh) write protected |
| WRT1 | Write Protection bit |
| OFF | Block 1 (002000-003FFFh) not write protected |
| ON | Block 1 (002000-003FFFh) write protected |
| WRT2 | Write Protection bit |
| OFF | Block 2 (004000-005FFFh) not write protected |
| ON | Block 2 (004000-005FFFh) 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-0001FFh) not write protected |
| ON | Boot block (000000-0001FFh) 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 bit |
| OFF | Block 0 (000200h-001FFFh) not protected from Table Reads executed in other blocks |
| ON | Block 0 (000200h-001FFFh) protected from Table Reads executed in other blocks |
| EBTR1 | Table Read Protection bit |
| 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 bit |
| 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 |
|
Register: CONFIG7H @ 0x30000D
|
|
|---|---|
| EBTRB | Boot Block Table Read Protection bit |
| OFF | Boot block (000000-0001FFh) not protected from Table Reads executed in other blocks |
| ON | Boot block (000000-0001FFh) 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
|
|---|