|
#pragma config <setting>=<named value>
|
|---|
For example:// Watchdog Timer : Enabled |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Watchdog Timer : Enabled |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Watchdog Timer : Enabled |
|
config "<setting>"="<named value>"
|
|---|
For example:; Watchdog Timer : Enabled |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Watchdog Timer : Enabled |
|
config "<register>"=<literal constant>
|
|---|
For example:; Watchdog Timer : Enabled |
|
Register: CONFIG1L @ 0x3FF8
|
|
|---|---|
| WDTEN | Watchdog Timer |
| ON | Enabled |
| OFF | Disabled - Controlled by SWDTEN bit |
| PLLDIV | PLL Prescaler Selection bits |
| 1 | No prescale (4 MHz oscillator input drives PLL directly) |
| 2 | Divide by 2 (8 MHz oscillator input) |
| 3 | Divide by 3 (12 MHz oscillator input) |
| 4 | Divide by 4 (16 MHz oscillator input) |
| 5 | Divide by 5 (20 MHz oscillator input) |
| 6 | Divide by 6 (24 MHz oscillator input) |
| 10 | Divide by 10 (40 MHz oscillator input) |
| 12 | Divide by 12 (48 MHz oscillator input) |
| STVREN | Stack Overflow/Underflow Reset |
| ON | Enabled |
| OFF | Disabled |
| XINST | Extended Instruction Set |
| ON | Enabled |
| OFF | Disabled |
|
Register: CONFIG1H @ 0x3FF9
|
|
|---|---|
| CPUDIV | CPU System Clock Postscaler |
| OSC1 | No CPU system clock divide |
| OSC2_PLL2 | CPU system clock divide by 2 |
| OSC3_PLL3 | CPU system clock divide by 3 |
| OSC4_PLL6 | CPU system clock divide by 6 |
| CP0 | Code Protect |
| OFF | Program memory is not code-protected |
| ON | Program memory is code-protected |
|
Register: CONFIG2L @ 0x3FFA
|
|
|---|---|
| OSC | Oscillator |
| ECPLL | EC+PLL (CLKO-RA6), USB-EC+PLL |
| EC | EC (CLKO-RA6), USB-EC |
| HSPLL | HS+PLL, USB-HS+PLL |
| HS | HS, USB-HS |
| INTOSCPLLO | INTOSCPLLO (CLKO-RA6) |
| INTOSCPLL | INTOSCPLL |
| INTOSCO | INTOSCO (CLKO-RA6) |
| INTOSC | INTOSC |
| T1DIG | T1OSCEN Enforcement |
| ON | Secondary Oscillator clock source may be selected |
| OFF | Secondary Oscillator clock source may not be selected |
| LPT1OSC | Low-Power Timer1 Oscillator |
| OFF | High-power operation |
| ON | Low-power operation |
| FCMEN | Fail-Safe Clock Monitor |
| OFF | Disabled |
| ON | Enabled |
| IESO | Internal External Oscillator Switch Over Mode |
| OFF | Disabled |
| ON | Enabled |
|
Register: CONFIG2H @ 0x3FFB
|
|
|---|---|
| WDTPS | Watchdog Postscaler |
| 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: CONFIG3L @ 0x3FFC
|
|
|---|---|
| DSWDTOSC | DSWDT Clock Select |
| INTOSCREF | DSWDT uses INTRC |
| T1OSCREF | DSWDT uses T1OSC/T1CKI |
| RTCOSC | RTCC Clock Select |
| T1OSCREF | RTCC uses T1OSC/T1CKI |
| INTOSCREF | RTCC uses INTRC |
| DSBOREN | Deep Sleep BOR |
| ON | Enabled |
| OFF | Disabled |
| DSWDTEN | Deep Sleep Watchdog Timer |
| ON | Enabled |
| OFF | Disabled |
| DSWDTPS | Deep Sleep Watchdog Postscaler |
| G2 | 1:2,147,483,648 (25.7 days) |
| M536 | 1:536,870,912 (6.4 days) |
| M134 | 1:134,217,728 (38.5 hours) |
| M33 | 1:33,554,432 (9.6 hours) |
| M8 | 1:8,388,608 (2.4 hours) |
| M2 | 1:2,097,152 (36 minutes) |
| K524 | 1:524,288 (9 minutes) |
| K131 | 1:131,072 (135 seconds) |
| K32 | 1:32,768 (34 seconds) |
| 8192 | 1:8,192 (8.5 seconds) |
| 2048 | 1:2,048 (2.1 seconds) |
| 512 | 1:512 (528 ms) |
| 128 | 1:128 (132 ms) |
| 32 | 1:32 (33 ms) |
| 8 | 1:8 (8.3 ms) |
| 2 | 1:2 (2.1 ms) |
|
Register: CONFIG3H @ 0x3FFD
|
|
|---|---|
| IOL1WAY | IOLOCK One-Way Set Enable bit |
| ON | The IOLOCK bit (PPSCON<0>) can be set once |
| OFF | The IOLOCK bit (PPSCON<0>) can be set and cleared as needed |
| MSSP7B_EN | MSSP address masking |
| MSK7 | 7 Bit address masking mode |
| MSK5 | 5 Bit address masking mode |
|
Register: CONFIG4L @ 0x3FFE
|
|
|---|---|
| WPFP | Write/Erase Protect Page Start/End Location |
| PAGE_0 | Write Protect Program Flash Page 0 |
| PAGE_1 | Write Protect Program Flash Page 1 |
| PAGE_2 | Write Protect Program Flash Page 2 |
| PAGE_3 | Write Protect Program Flash Page 3 |
| PAGE_4 | Write Protect Program Flash Page 4 |
| PAGE_5 | Write Protect Program Flash Page 5 |
| PAGE_6 | Write Protect Program Flash Page 6 |
| PAGE_7 | Write Protect Program Flash Page 7 |
| PAGE_8 | Write Protect Program Flash Page 8 |
| PAGE_9 | Write Protect Program Flash Page 9 |
| PAGE_10 | Write Protect Program Flash Page 10 |
| PAGE_11 | Write Protect Program Flash Page 11 |
| PAGE_12 | Write Protect Program Flash Page 12 |
| PAGE_13 | Write Protect Program Flash Page 13 |
| PAGE_14 | Write Protect Program Flash Page 14 |
| PAGE_15 | Write Protect Program Flash Page 15 |
| WPEND | Write/Erase Protect Region Select (valid when WPDIS = 0) |
| PAGE_WPFP | Page WPFP<5:0> through Configuration Words erase/write protected |
| PAGE_0 | Page 0 through WPFP<5:0> erase/write protected |
| WPCFG | Write/Erase Protect Configuration Region |
| OFF | Configuration Words page not erase/write-protected |
| ON | Configuration Words page erase/write-protected |
|
Register: CONFIG4H @ 0x3FFF
|
|
|---|---|
| WPDIS | Write Protect Disable bit |
| OFF | WPFP<5:0>/WPEND region ignored |
| ON | WPFP<5:0>/WPEND region erase/write protected |