Opens in a new tab

PIC16F877A-I/P

8-bit PIC MCU, 20MHz, 14KB Flash, 368B RAM, 8ch 10-bit ADC, 40-PDIP

7262

Effective Inventory

Image for reference only

Manufacturer Part:

PIC16F877A-I/P

Package:

40-PDIP

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Other recommendations you may be interested in.

Description

Product Overview

The PIC16F877A-I/P from Microchip Technology is a 40-pin 8-bit PIC microcontroller with 14KB Flash, 368B RAM, 256B EEPROM, 8-channel 10-bit ADC, and extensive peripheral set. As one of the most popular PIC MCU for education and embedded projects, it is packaged in a 40-pin PDIP.

Key Specifications

Architecture 8-bit PIC (PIC16 mid-range)
CPU Speed 20MHz (200ns instruction cycle)
Flash Program Memory 14KB (8192 words x 14-bit)
SRAM 368 bytes
EEPROM 256 bytes
I/O Pins 33
ADC 8 channels, 10-bit
Timers 2x 8-bit, 1x 16-bit
Communication USART, MSSP (SPI/I2C)
Supply Voltage 2.0V to 5.5V
Package 40-PDIP
Operating Temperature -40 to +85 C

Features

  • 14KB Flash with 100000 erase/write cycles
  • 8-channel 10-bit ADC
  • MSSP module for SPI and I2C
  • USART for serial communication
  • 2 comparators with internal reference
  • CCP modules (Capture/Compare/PWM)
  • ICSP programming and debugging

Applications

  • Embedded control systems
  • Educational microcontroller labs
  • Industrial automation
  • Motor control and instrumentation
Product Introduction: PIC16F877A-I/P Product Introduction

The PIC16F877A-I/P from Microchip Technology is a 40-pin 8-bit PIC mid-range microcontroller that has become one of the most widely used MCUs in embedded systems education and development. It features 14KB Flash program memory, 368 bytes SRAM, 256 bytes EEPROM, 33 I/O pins, 8-channel 10-bit ADC, 2 comparators, and multiple communication interfaces (USART, SPI, I2C). The 40-pin PDIP package makes it ideal for through-hole prototyping and educational lab boards. Two CCP (Capture/Compare/PWM) modules enable motor control and pulse generation. In-Circuit Serial Programming (ICSP) allows firmware updates without removing the device from the circuit.

Working Principle: PIC16F877A-I/P Working Principle

The PIC16F877A uses Microchip’s mid-range 14-bit instruction word RISC architecture. Most instructions execute in a single cycle (200ns at 20MHz). The Harvard architecture separates program and data memory buses, allowing simultaneous access. The 14KB Flash stores up to 8192 14-bit instructions. The ALU operates on data from the W register (accumulator) and file registers (SRAM-mapped SFRs and GPRs). The MSSP module implements SPI (master/slave) and I2C (master/slave) protocols through shift registers and baud rate generators. The 10-bit successive approximation ADC uses a capacitor DAC and comparator, converting in approximately 20us. The CCP modules combine timer resources for capture input, compare output, and PWM generation.

Pin Description: PIC16F877A-I/P Pin Definition and Functions
Pin Name Function
1 OSC1/CLKI Oscillator crystal input / external clock
2 OSC2/CLKO Oscillator crystal output / clock output
3 RA0/AN0 Port A bit 0 / ADC channel 0
4 RA1/AN1 Port A bit 1 / ADC channel 1
5 RA2/AN2/VREF- Port A bit 2 / ADC channel 2 / VREF-
6 RA3/AN3/VREF+ Port A bit 3 / ADC channel 3 / VREF+
7 RA4/T0CKI Port A bit 4 / Timer0 clock input
8 RA5/AN4/SS Port A bit 5 / ADC channel 4 / SPI slave select
11 VDD Positive supply (2.0-5.5V)
12 VSS Ground
13-14 RB0-RB1 Port B (interrupt-on-change, I2C)
39 RB7/PGD Port B bit 7 / ICSP data
40 RB6/PGC Port B bit 6 / ICSP clock
Application Scenarios: In which products and applications is PIC16F877A-I/P used
  • Educational microcontroller labs with 40-pin DIP for breadboard prototyping
  • Industrial automation controllers using USART, SPI, and I2C peripherals
  • Motor control applications using dual CCP PWM modules
  • Multi-channel data acquisition with 8-channel 10-bit ADC and 256B EEPROM
Alternative Models: What chips are recommended as replacements for PIC16F877A-I/P
Model Manufacturer Key Difference
PIC16F887 Microchip Newer, enhanced mid-range, nanowatt
PIC18F4550 Microchip 16-bit instruction, USB 2.0, 48MHz
ATmega32A Microchip AVR, 32KB Flash, 40-DIP
PIC16F877A-I/PT Microchip TQFP-44 surface mount version

Recommend Parts

IRFS4310ZTRLPBF

IRFS4310ZTRLPBF – 100V N-Channel HEXFET Power MOSFET, 7 mΩ RDS(on), D2PAK (TO-263AB)

Brand: infineon

Package: D2PAK (TO-263AB)

IN STOCK: 11137pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MSASJ105BB5475MFNA01

4.7uF 6.3V X5R MLCC, 0402, Taiyo Yuden

Brand: gigadevice

Package: 0402 (1005 Metric, 1.0 x 0.5 x 0.5 mm)

IN STOCK: 9701pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRF3415PBF

150V N-channel power MOSFET, 43A, 41mΩ RDS(on), TO-220AB package

Brand: infineon

Package: TO-220AB

IN STOCK: 2940pcs

Cargo cycle: 3-7 Days

The minimum order is 1

105017-1001

USB Type-C receptacle connector, 24-pin, SMD

Brand: Amphenol

Package: SMD (8.9 x 7.3 x 3.2 mm, right angle)

IN STOCK: 5335pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRLB3034PBF

IRLB3034PBF – 40V N-Channel StrongIRFET Power MOSFET (Logic Level), 1.7 mΩ (max) @ 10V; 2.0 mΩ @ 4.5V RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 9724pcs

Cargo cycle: 3-7 Days

The minimum order is 1

XC6SLX75-2FGG484I

Spartan-6 LX75 FPGA, 74637 logic cells, 132 DSP, 3096KB BRAM, 408 I/O, FBGA-484 23x23mm, -2 speed, industrial -40~100C, AMD Xilinx

Brand: xilinx

Package: FGG484 (484-ball fine-pitch BGA, 23x23mm body, 1.0mm ball pitch, 22×22 ball array, 6 I/O banks, lead-free)

IN STOCK: 890pcs

Cargo cycle: 3-7 Days

The minimum order is 1