Opens in a new tab

PIC16F877A-I/P

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

10847

Effective Inventory

Image for reference only

Manufacturer Part:

PIC16F877A-I/P

Package:

DIP-40 (52.6 x 13.7 x 3.7 mm)

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 14-bit 8-bit CMOS flash microcontroller from the PIC16F87XA family featuring 14 KB flash program memory, 368 bytes of RAM, 256 bytes of EEPROM, 8-channel 10-bit ADC, two comparators, and multiple serial communication interfaces in a 40-pin DIP package.

Key Specifications

Architecture PIC 14-bit (8-bit data)
Max Frequency 20 MHz
Flash Memory 14 KB (8192 words x 14-bit)
RAM 368 bytes
EEPROM 256 bytes
I/O Pins 33
ADC 8-channel, 10-bit
Timers 3 (Timer0, Timer1, Timer2)
CCP Modules 2
Communication USART, MSSP (SPI/I2C)
Comparators 2
Operating Voltage 2.0 V to 5.5 V
Package DIP-40 (52.6 x 13.7 mm)
Operating Temperature -40°C to 85°C

Features

  • High-performance RISC CPU with 35 single-word instructions
  • 14 KB flash with 100,000 erase/write cycles
  • 256 bytes EEPROM data memory with 1,000,000 erase/write cycles
  • 8-channel 10-bit Analog-to-Digital Converter
  • Two Capture/Compare/PWM (CCP) modules
  • Master Synchronous Serial Port (MSSP) for SPI and I2C
  • USART with 9-bit address detection
  • Two analog comparators with programmable reference
  • Self-programming capability via ICSP
  • In-Circuit Debugger (ICD) support

Applications

  • Embedded control and automation systems
  • Motor control and power conversion
  • Sensor data acquisition and processing
  • Consumer appliances and white goods
  • Educational and hobbyist projects
Product Introduction: PIC16F877A-I/P Product Introduction

The PIC16F877A-I/P from Microchip Technology is one of the most popular members of the PIC16F87XA family of 8-bit flash microcontrollers. It features 14 KB of flash program memory, 368 bytes of RAM, and 256 bytes of EEPROM data memory. The device integrates a rich peripheral set including an 8-channel 10-bit ADC, two CCP modules, USART, MSSP (SPI/I2C), and two analog comparators. The 40-pin DIP package makes it ideal for prototyping and educational applications. The PIC16F877A supports In-Circuit Serial Programming (ICSP) and In-Circuit Debugging (ICD), enabling firmware development without removing the device from the target board.

Working Principle: PIC16F877A-I/P Working Principle

The PIC16F877A uses a Harvard architecture with separate 14-bit program memory and 8-bit data memory spaces. The CPU executes instructions from a 35-instruction RISC set, with most instructions executing in a single cycle (200 ns at 20 MHz). The program counter addresses the 14-bit wide flash memory. Data memory (RAM) is organized as banked registers including Special Function Registers (SFRs) for peripheral control and General Purpose Registers (GPRs). The 10-bit ADC uses a successive approximation register (SAR) architecture with selectable reference voltages. CCP modules provide capture (input), compare (output match), and PWM generation. The MSSP supports both SPI (4-wire) and I2C (2-wire) master/slave modes. The USART supports asynchronous and synchronous serial communication.

Pin Description: PIC16F877A-I/P Pin Definition and Functions
Pin Name Type Function
1 MCLR/VPP Input Master clear reset / programming voltage
2-3 RA0/AN0-RA1/AN1 I/O Port A, ADC channels 0-1
4-5 RA2/AN2-RA3/AN3 I/O Port A, ADC channels 2-3, comparator
6-7 RA4/TOCKI-RA5/AN4 I/O Port A, Timer0 clock, ADC ch4
8-12 RE0-RE2 I/O Port E, ADC ch5-7, MSSP control
13-14 VSS-VDD Power Ground and power supply
15-19 RB0/INT-RB4 I/O Port B, external interrupt, LCD data
20-22 RB5-RB7 I/O Port B, ICSP programming pins
23-30 RC0-RC7 I/O Port C, T1OSO/T1OSI, CCP, USART, MSSP
31-32 VSS-VDD Power Ground and power supply
33-40 RD0-RD7 I/O Port D, parallel slave port
Application Scenarios: In which products and applications is PIC16F877A-I/P used
  • Embedded control and industrial automation systems
  • Motor speed control and power conversion applications
  • Multi-channel sensor data acquisition systems
  • Consumer appliance controllers with analog sensing
  • Educational platforms and hobbyist prototyping
Alternative Models: What chips are recommended as replacements for PIC16F877A-I/P
Manufacturer Part Number Package Notes
Microchip PIC18F4550-I/P DIP-40 USB 2.0, 16-bit instruction, 32KB Flash
Microchip PIC16F887-I/P DIP-40 Pin-compatible, 14KB Flash, enhanced
Microchip PIC18F45K20-I/P DIP-40 Enhanced PIC18, 32KB Flash, nanoWatt
Atmel/Microchip ATmega328P-PU DIP-28 32KB Flash, 2KB RAM, Arduino compatible
STMicroelectronics STM32F103C8T6 LQFP-48 ARM Cortex-M3, 64KB Flash, 72MHz

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