PIC16F874 |
|
CONFIG (address:0x2007, mask:0xFFFF) |
|
FOSC -- Oscillator Selection bits |
|
FOSC = LP |
0x3FFC |
LP oscillator. |
|
|
FOSC = XT |
0x3FFD |
XT oscillator. |
|
|
FOSC = HS |
0x3FFE |
HS oscillator. |
|
|
FOSC = EXTRC |
0x3FFF |
RC oscillator. |
|
|
WDTE -- Watchdog Timer Enable bit |
|
WDTE = OFF |
0x3FFB |
WDT disabled. |
|
|
WDTE = ON |
0x3FFF |
WDT enabled. |
|
|
PWRTE -- Power-up Timer Enable bit |
|
PWRTE = ON |
0x3FF7 |
PWRT enabled. |
|
|
PWRTE = OFF |
0x3FFF |
PWRT disabled. |
|
|
CP -- FLASH Program Memory Code Protection bits |
|
CP = ALL |
0x0FCF |
0000h to 0FFFh code protected. |
|
|
CP = HALF |
0x1FDF |
0800h to 0FFFh code protected. |
|
|
CP = UPPER_256 |
0x2FEF |
0F00h to 0FFFh code protected. |
|
|
CP = OFF |
0x3FFF |
Code protection off. |
|
|
BOREN -- Brown-out Reset Enable bit |
|
BOREN = OFF |
0x3FBF |
BOR disabled. |
|
|
BOREN = ON |
0x3FFF |
BOR enabled. |
|
|
LVP -- Low Voltage In-Circuit Serial Programming Enable bit |
|
LVP = OFF |
0x3F7F |
RB3 is digital I/O, HV on MCLR must be used for programming. |
|
|
LVP = ON |
0x3FFF |
RB3/PGM pin has PGM function; low-voltage programming enabled. |
|
|
CPD -- Data EE Memory Code Protection |
|
CPD = ON |
0x3EFF |
Data EEPROM memory code-protected. |
|
|
CPD = OFF |
0x3FFF |
Code Protection off. |
|
|
WRT -- FLASH Program Memory Write Enable |
|
WRT = OFF |
0x3DFF |
Unprotected program memory may not be written to by EECON control. |
|
|
WRT = ON |
0x3FFF |
Unprotected program memory may be written to by EECON control. |
|
|
DEBUG -- In-Circuit Debugger Mode bit |
|
DEBUG = ON |
0x37FF |
In-Circuit Debugger enabled, RB6 and RB7 are dedicated to the debugger. |
|
|
DEBUG = OFF |
0x3FFF |
In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins. |
|