PIC16F877-04I/P Microchip Technology Inc., PIC16F877-04I/P Datasheet - Page 48
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16F877-04I/P
Manufacturer Part Number
PIC16F877-04I/P
Description
40 PIN, 7 KB FLASH, 368 RAM, 33 I/O, PDIP
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F877-04IP.pdf
(218 pages)
Specifications of PIC16F877-04I/P
A/d Inputs
8-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Frequency
20 MHz
Input Output
33
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
14K Bytes
Ram Size
368 Bytes
Serial Interface
MSSP, USART
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F877-04I/P
Manufacturer:
MICROCHIP
Quantity:
3 000
Company:
Part Number:
PIC16F877-04I/PQ
Manufacturer:
MICROCHIP
Quantity:
1 000
Company:
Part Number:
PIC16F877-04I/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC16F877-04I/PT
Manufacturer:
BROADCOM
Quantity:
50
Company:
Part Number:
PIC16F877-04I/PT
Manufacturer:
MIC
Quantity:
36
Company:
Part Number:
PIC16F877-04I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F87X
4.9
The configuration word contains a bit that write protects
the FLASH program memory, called WRT. This bit can
only be accessed when programming the PIC16F87X
device via ICSP. Once write protection 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 pro-
gram memory reads.
TABLE 4-1:
TABLE 4-2:
DS30292C-page 46
0Bh, 8Bh,
10Bh, 18Bh
10Dh
10Fh
10Ch
10Eh
18Ch
18Dh
8Dh
0Dh
Legend:
Note 1: These bits are reserved; always maintain these bits clear.
Address
CP1
0
0
0
0
0
1
1
1
1
1
1
Configuration Bits
FLASH Program Memory Write
Protection
Shaded cells are not used during FLASH/EEPROM access.
x = unknown, u = unchanged, r = reserved, - = unimplemented, read as '0'.
INTCON
EEADR
EEADRH
EEDATA
EEDATH
EECON1 EEPGD
EECON2 EEPROM Control Register2 (not a physical register)
PIE2
PIR2
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
WRT
Bit 7
GIE
—
—
—
—
x
0
0
1
1
0
0
1
1
0
1
PEIE
Bit 6
(1)
(1)
—
—
—
All program memory
All program memory
All program memory
Memory Location
Unprotected areas
Unprotected areas
Unprotected areas
Unprotected areas
EEPROM Data Register, High Byte
Protected areas
Protected areas
Protected areas
Protected areas
Bit 5
T0IE
—
—
—
—
EEPROM Address, High Byte
Bit 4
INTE
EEIE
EEIF
—
WRERR
BCLIE
BCLIF
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
CCP2IE -r-0 0--0 -r-0 0--0
CCP2IF -r-0 0--0 -r-0 0--0
RBIF
Bit 0
RD
2001 Microchip Technology Inc.
ICSP Read
0000 000x 0000 000u
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
x--- x000 x--- u000
Value on:
Yes
Yes
Yes
Yes
Yes
Yes
POR,
BOR
No
No
No
No
No
—
ICSP Write
Value on
RESETS
all other
Yes
Yes
No
No
No
No
No
No
No
No
No
—