PIC16F871 Microchip Technology Inc., PIC16F871 Datasheet - Page 34

no-image

PIC16F871

Manufacturer Part Number
PIC16F871
Description
28/40-pin, 8-bit Cmos Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F871-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-I/P
Manufacturer:
Microchip Technology
Quantity:
1 984
Part Number:
PIC16F871-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871T-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F870/871
3.10
The configuration word contains a bit that write protects
the FLASH program memory, called WRT. This bit can
only
PIC16F870/871 devices via ICSP. Once write protec-
tion is enabled, only an erase of the entire device will
disable it. When enabled, write protection prevents any
writes to FLASH program memory. Write protection
does not affect program memory reads.
TABLE 3-1:
TABLE 3-2:
DS30569B-page 32
0Bh, 8Bh,
10Bh, 18Bh
10Dh
10Fh
10Ch
10Eh
18Ch
18Dh
Legend:
Note 1:
Address
CP1
0
0
0
0
0
1
1
1
1
1
1
Configuration Bits
be
FLASH Program Memory Write
Protection
Shaded cells are not used during FLASH/EEPROM access.
These bits are reserved; always maintain these bits clear.
x = unknown, u = unchanged, r = reserved, - = unimplemented, read as '0'.
INTCON
EEADR
EEADRH
EEDATA
EEDATH
EECON1
EECON2 EEPROM Control Register2 (not a physical register)
accessed
CP0
Name
0
1
1
1
1
0
0
0
0
1
1
READ/WRITE STATE OF INTERNAL FLASH PROGRAM MEMORY
REGISTERS ASSOCIATED WITH DATA EEPROM/PROGRAM FLASH
EEPROM Address Register, Low Byte
EEPROM Data Register, Low Byte
EEPGD
WRT
Bit 7
GIE
when
x
0
0
1
1
0
0
1
1
0
1
PEIE
Bit 6
programming
All program memory
All program memory
All program memory
Memory Location
Unprotected areas
Unprotected areas
Unprotected areas
Unprotected areas
Protected areas
Protected areas
Protected areas
Protected areas
EEPROM Data Register, High Byte
Bit 5
T0IE
EEPROM Address, High Byte
INTE
Bit 4
the
WRERR
RBIE
Bit 3
Internal
WREN
Read
Bit 2
T0IF
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
INTF
Bit 1
WR
Internal
Write
Yes
Yes
Yes
No
No
No
No
No
No
No
No
RBIF
Bit 0
RD
 2003 Microchip Technology Inc.
ICSP Read ICSP Write
0000 000x 0000 000u
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
x--- x000 x--- u000
POR, BOR
Value on:
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
Value on
RESETS
all other
Yes
Yes
No
No
No
No
No
No
No
No
No

Related parts for PIC16F871