|
#pragma config <setting>=<named value>
|
|---|
For example:// Oscillator Selection bits : External RC oscillator, CLKO function on RA6 |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : External RC oscillator, CLKO function on RA6 |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Oscillator Selection bits : External RC oscillator, CLKO function on RA6 |
For example:// IDLOC @ 0x200000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Oscillator Selection bits : External RC oscillator, CLKO function on RA6 |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : External RC oscillator, CLKO function on RA6 |
|
config "<register>"=<literal constant>
|
|---|
For example:; Oscillator Selection bits : External RC oscillator, CLKO function on RA6 |
For example:; IDLOC @ 0x200000 |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| OSC | Oscillator Selection bits |
| RC | External RC oscillator, CLKO function on RA6 |
| INTIO1 | Internal RC oscillator, CLKO function on RA6 and port function on RA7 |
| INTIO2 | Internal RC oscillator, port function on RA6 and port function on RA7 |
| RCIO | External RC oscillator, port function on RA6 |
| HSPLL | HS oscillator, PLL enabled (clock frequency = 4 x FOSC1) |
| ECIO | EC oscillator, port function on RA6 |
| EC | EC oscillator, CLKO function on RA6 |
| HS | HS Oscillator |
| XT | XT Oscillator |
| LP | LP Oscillator |
| FSCM | Fail-Safe Clock Monitor Enable bit |
| ON | Fail-Safe Clock Monitor enabled |
| OFF | Fail-Safe Clock Monitor disabled |
| IESO | Internal/External Switchover bit |
| ON | Internal/External Switchover mode enabled |
| OFF | Internal/External Switchover mode disabled |
|
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 |
| 20 | VBOR set to 2.0V |
| 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 |
| 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 |
| ON | CCP2 input/output is multiplexed with RC1 |
| OFF | CCP2 input/output is multiplexed with RB3 |
| PBAD | PORTB A/D Enable bit |
| ANA | PORTB<4:0> pins are configured as analog input channels on Reset |
| DIG | PORTB<4:0> pins are configured as digital I/O on Reset |
| MCLRE | MCLR Pin Enable bit |
| ON | MCLR pin enabled; RE3 input pin disabled |
| OFF | MCLR disabled; RE3 input is enabled in 40-pin devices only (PIC18F4X20) |
|
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 | Single-Supply ICSP Enable bit |
| ON | Single-Supply ICSP enabled |
| OFF | Single-Supply 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-0007FFh) not code-protected |
| ON | Block 0 (000200-0007FFh) code-protected |
| CP1 | Code Protection bit |
| OFF | Block 1 (000800-000FFFh) not code-protected |
| ON | Block 1 (000800-000FFFh) code-protected |
|
Register: CONFIG5H @ 0x300009
|
|
|---|---|
| CPB | Boot Block Code Protection bit |
| OFF | Boot block (000000-0001FFh) is not code-protected |
| ON | Boot block (000000-0001FFh) is code-protected |
| CPD | Data EEPROM Code Protection bit |
| OFF | Data EEPROM is not code-protected |
| ON | Data EEPROM is code-protected |
|
Register: CONFIG6L @ 0x30000A
|
|
|---|---|
| WRT0 | Write Protection bit |
| OFF | Block 0 (000200-0007FFh) not write-protected |
| ON | Block 0 (000200-0007FFh) write-protected |
| WRT1 | Write Protection bit |
| OFF | Block 1 (000800-000FFFh) not write-protected |
| ON | Block 1 (000800-000FFFh) write-protected |
|
Register: CONFIG6H @ 0x30000B
|
|
|---|---|
| WRTC | Configuration Register Write Protection bit |
| OFF | Configuration registers (300000-3000FFh) are not write-protected |
| ON | Configuration registers (300000-3000FFh) are write-protected |
| WRTB | Boot Block Write Protection bit |
| OFF | Boot block (000000-0001FFh) is not write-protected |
| ON | Boot block (000000-0001FFh) is write-protected |
| WRTD | Data EEPROM Write Protection bit |
| OFF | Data EEPROM is not write-protected |
| ON | Data EEPROM is write-protected |
|
Register: CONFIG7L @ 0x30000C
|
|
|---|---|
| EBTR0 | Table Read Protection bit |
| OFF | Block 0 (000200-0007FFh) not protected from table reads executed in other blocks |
| ON | Block 0 (000200-0007FFh) protected from table reads executed in other blocks |
| EBTR1 | Table Read Protection bit |
| OFF | Block 1 (000800-000FFFh) not protected from table reads executed in other blocks |
| ON | Block 1 (000800-000FFFh) protected from table reads executed in other blocks |
|
Register: CONFIG7H @ 0x30000D
|
|
|---|---|
| EBTRB | Boot Block Table Read Protection bit |
| OFF | Boot block (000000-0001FFh) is not protected from table reads executed in other blocks |
| ON | Boot block (000000-0001FFh) is 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
|
|---|