|
#pragma config <setting>=<named value>
|
|---|
For example:// Watchdog Timer Enable bit : WDT enabled |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Watchdog Timer Enable bit : WDT enabled |
|
#pragma config <register>=<literal constant>
|
|---|
For example:// Watchdog Timer Enable bit : WDT enabled |
For example:// IDLOC @ 0x2000 |
|
config "<setting>"="<named value>"
|
|---|
For example:; Watchdog Timer Enable bit : WDT enabled |
|
config "<setting>"=<literal constant>
|
|---|
For example:; Watchdog Timer Enable bit : WDT enabled |
|
config "<register>"=<literal constant>
|
|---|
For example:; Watchdog Timer Enable bit : WDT enabled |
For example:; IDLOC @ 0x2000 |
|
Register: CONFIG @ 0x2007
|
|
|---|---|
| WDTE | Watchdog Timer Enable bit |
| ON | WDT enabled |
| OFF | WDT disabled and can be enabled by SWDTEN bit of the WDTCON register |
| PWRTE | Power-up Timer Enable bit |
| OFF | PWRT disabled |
| ON | PWRT enabled |
| MCLRE | MCLR Pin Function Select bit |
| ON | MCLR pin is MCLR function and weak internal pull-up is enabled |
| OFF | MCLR pin is alternate function, MCLR function is internally disabled |
| CP | Code Protection bit |
| OFF | Program memory is not code protected |
| ON | Program memory is external read and write protected |
| BOREN | Brown-out Reset Enable bit |
| ON | BOR disabled during sleep and enabled during operation |
| OFF | BOR disabled |
| WRT | Flash Program Memory Self Write Enable bits |
| OFF | Write protection off |
| BOOT | 000h to 3FFh write protected, 400h to FFFh may be modified by PMCON1 control |
| HALF | 000h to 7FFh write protected, 800h to FFFh may be modified by PMCON1 control |
| ALL | 0000h to 1FFFh write protected, entire program memory is write protected. |
|
Register: IDLOC0 @ 0x2000
|
|---|
|
Register: IDLOC1 @ 0x2001
|
|---|
|
Register: IDLOC2 @ 0x2002
|
|---|
|
Register: IDLOC3 @ 0x2003
|
|---|