PIC16F877-04/P Microchip Technology Inc., PIC16F877-04/P Datasheet - Page 9
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16F877-04/P
Manufacturer Part Number
PIC16F877-04/P
Description
40 PIN, 7 KB FLASH, 368 RAM, 33 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F877-04P.pdf
(218 pages)
Specifications of PIC16F877-04/P
A/d Inputs
8-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
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
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-04/P
Manufacturer:
MIC
Quantity:
11 200
Company:
Part Number:
PIC16F877-04/PQ
Manufacturer:
Microchip Technology
Quantity:
135
Company:
Part Number:
PIC16F877-04/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC16F877-04/PT
Manufacturer:
MIC
Quantity:
12
Company:
Part Number:
PIC16F877-04/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F877-04/PT
Manufacturer:
MIC
Quantity:
20 000
TABLE 1-1:
OSC1/CLKIN
OSC2/CLKOUT
MCLR/V
RA0/AN0
RA1/AN1
RA2/AN2/V
RA3/AN3/V
RA4/T0CKI
RA5/SS/AN4
RB0/INT
RB1
RB2
RB3/PGM
RB4
RB5
RB6/PGC
RB7/PGD
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
RC7/RX/DT
V
V
Legend: I = input
Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt.
SS
DD
2001 Microchip Technology Inc.
Pin Name
2: This buffer is a Schmitt Trigger input when used in Serial Programming mode.
3: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.
PP
REF
REF
-
+
PIC16F873 AND PIC16F876 PINOUT DESCRIPTION
O = output
— = Not used
8, 19
Pin#
DIP
10
21
22
23
24
25
26
27
28
12
13
14
15
16
17
18
20
11
9
1
2
3
4
5
6
7
SOIC
8, 19
Pin#
10
21
22
23
24
25
26
27
28
12
13
14
15
16
17
18
20
11
9
1
2
3
4
5
6
7
I/O/P
Type
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/P
O
P
P
I
I/O = input/output
TTL = TTL input
ST/CMOS
TTL/ST
TTL/ST
TTL/ST
Buffer
Type
TTL
TTL
TTL
TTL
TTL
TTL
TTL
TTL
TTL
TTL
ST
ST
ST
ST
ST
ST
ST
ST
ST
ST
—
—
—
(1)
(2)
(2)
(3)
Oscillator crystal input/external clock source input.
Oscillator crystal output. Connects to crystal or resonator in
crystal oscillator mode. In RC mode, the OSC2 pin outputs
CLKOUT which has 1/4 the frequency of OSC1, and denotes
the instruction cycle rate.
Master Clear (Reset) input or programming voltage input. This
pin is an active low RESET to the device.
PORTA is a bi-directional I/O port.
PORTB is a bi-directional I/O port. PORTB can be software
programmed for internal weak pull-up on all inputs.
PORTC is a bi-directional I/O port.
Ground reference for logic and I/O pins.
Positive supply for logic and I/O pins.
RA0 can also be analog input0.
RA1 can also be analog input1.
RA2 can also be analog input2 or negative analog
reference voltage.
RA3 can also be analog input3 or positive analog
reference voltage.
RA4 can also be the clock input to the Timer0
module. Output is open drain type.
RA5 can also be analog input4 or the slave select
for the synchronous serial port.
RB0 can also be the external interrupt pin.
RB3 can also be the low voltage programming input.
Interrupt-on-change pin.
Interrupt-on-change pin.
Interrupt-on-change pin or In-Circuit Debugger pin. Serial
programming clock.
Interrupt-on-change pin or In-Circuit Debugger pin. Serial
programming data.
RC0 can also be the Timer1 oscillator output or Timer1
clock input.
RC1 can also be the Timer1 oscillator input or Capture2
input/Compare2 output/PWM2 output.
RC2 can also be the Capture1 input/Compare1 output/
PWM1 output.
RC3 can also be the synchronous serial clock input/output
for both SPI and I
RC4 can also be the SPI Data In (SPI mode) or
data I/O (I
RC5 can also be the SPI Data Out (SPI mode).
RC6 can also be the USART Asynchronous Transmit or
Synchronous Clock.
RC7 can also be the USART Asynchronous Receive or
Synchronous Data.
P = power
ST = Schmitt Trigger input
2
C mode).
2
C modes.
Description
PIC16F87X
DS30292C-page 7