|
#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 |
|
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 |
|
Register: CONFIG1H @ 0x300001
|
|
|---|---|
| OSC | Oscillator Selection bits |
| RC | RC Oscillator |
| HS | HS Oscillator |
| EC | EC Oscillator |
| LP | LP Oscillator |
|
Register: CONFIG2L @ 0x300002
|
|
|---|---|
| PWRT | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| BW | External Bus Data Width bit |
| 16 | 16-bit External Bus mode |
| 8 | 8-bit External Bus mode |
|
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 |