CP1,CP0 : Code Protection bits ( These differ from PIC16F84A or PIC16F873 )
All of the CP1:CP0 pairs have to be given the same value to enable the code protection scheme listed. |
| 11 | : | Program memory code protection off |
10 | : | 0400h-07FFh code protected |
01 | : | 0200h-07FFh code protected |
00 | : | 0000h-07FFhcode protected |
|
|
CPD : Data Code Protection bit |
| 1 | : | Data memory code protection off |
0 | : | Data memory code protected |
|
|
LVP : Low Voltage Programming Enable |
| 1 | : | RB4/PGM pin has PGM function, low voltage programming enabled |
0 | : | RB4/PGM is digital I/O, HV on MCLR must be used for programming |
|
|
BODEN : Brown-out Detect Reset Enable bit |
| 1 | : | BOD Reset enabled |
0 | : | BOD Reset disabled |
|
|
MCLRE : RA5/MCLR pin function select ( This bit is newly provided for PIC16F628 ) |
| 1 | : | RA5/MCLR pin function is MCLR |
0 | : | RA5/MCLR pin function is digital Input, MCLR internally tied to VDD |
|
|
PWRTE : Power-up Timer Enable bit |
| 1 | : | PWRT disabled |
0 | : | PWRT enabled |
|
|
WDTE : Watchdog Timer Enable bit |
| 1 | : | WDT enabled |
0 | : | WDT disabled |
|
|
FOSC2,FOSC1,FOSC0 : Oscillator Selection bits ( Functions are added ) |
| 111 | : |
ER(External Resistor) oscillator:
CLKOUT function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN |
| 110 | : |
ER(External Resistor) oscillator:
I/O function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN |
| 101 | : |
INTRC(Internal 4MHz OSC) oscillator:
CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN |
| 100 | : |
INTRC(Internal 4MHz OSC) oscillator:
I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN |
| 011 | : |
EC(External Clock In):
I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN |
| 010 | : | HS oscillator: High speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN |
| 001 | : | XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN |
| 000 | : | LP oscillator: Low power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN |
|