Opens in a new tab

PIC16F877-20I

8-bit PIC MCU, 14KB Flash, 368B RAM, 256B EEPROM, 8-ch 10-bit ADC, 2 CCP, 2 comparators, SPI/I2C/USART, PSP, INDUSTRIAL temp -40°C~85°C

3156

Effective Inventory

Image for reference only

Manufacturer Part:

PIC16F877-20I

Package:

40-pin PDIP / 44-pin PLCC / 44-pin TQFP

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The PIC16F877-20I is the industrial-temperature version of the classic PIC16F877 40-pin, 8-bit Flash-based CMOS microcontroller from Microchip Technology. Featuring the Mid-Range PIC architecture with 35 instructions and an 8-level deep hardware stack, this widely-used MCU offers 14KB (8K x 14 words) of Flash program memory, 368 bytes of RAM, and 256 bytes of data EEPROM. Operating at up to 20 MHz with a 200 ns instruction cycle (5 MIPS) across an industrial temperature range of -40°C to +85°C, it integrates an 8-channel 10-bit ADC, two analog comparators, two Capture/Compare/PWM (CCP) modules, a Synchronous Serial Port (SSP) for SPI/I2C, a Universal Synchronous Asynchronous Receiver Transmitter (USART), and a Parallel Slave Port (PSP). The ‘-20I’ suffix denotes 20 MHz maximum frequency with industrial temperature grade, making it suitable for harsh environments where the commercial-grade PIC16F877-20 cannot operate reliably.

Key Specifications

Core Architecture 8-bit PIC (Mid-Range Core)
Program Memory 14KB Flash (8K x 14 words)
RAM 368 bytes
Data EEPROM 256 bytes
Maximum Speed 20 MHz (5 MIPS)
Operating Voltage 2.0V to 5.5V
I/O Pins 33
ADC 10-bit, 8 channels
Comparators 2
Timers 2 x 8-bit (TMR0/TMR2) + 1 x 16-bit (TMR1)
PWM 2 x CCP (Capture/Compare/PWM), 10-bit
Communication SPI, I2C (SSP), USART
Parallel Port PSP (Parallel Slave Port), 8-bit
Oscillator External (RC, XT, HS, LP, EC options)
Stack Levels 8
Interrupt Sources Up to 14
Operating Temperature -40°C to +85°C (Industrial)
Package 40-pin PDIP / 44-pin PLCC / 44-pin TQFP

Features

  • Industrial temperature range: -40°C to +85°C
  • High-performance RISC CPU with only 35 single-word instructions
  • All single-cycle instructions except program branches (two cycles)
  • 8-level deep hardware stack
  • Direct, indirect, and relative addressing modes
  • Up to 14 interrupt sources with automatic context saving
  • 8-channel 10-bit Analog-to-Digital Converter (ADC)
  • Two analog comparators with programmable on-chip voltage reference
  • Two Capture/Compare/PWM (CCP) modules: 16-bit capture, 10-bit PWM
  • Synchronous Serial Port (SSP) with SPI (Master/Slave) and I2C (Slave)
  • Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI)
  • Parallel Slave Port (PSP) with 8-bit wide read/write interface
  • 256 bytes of data EEPROM for non-volatile storage
  • Timer0: 8-bit timer/counter with 8-bit programmable prescaler
  • Timer1: 16-bit timer/counter with prescaler, can increment during Sleep
  • Timer2: 8-bit timer/counter with period register, prescaler, and postscaler
  • Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST)
  • Brown-out Reset (BOR) with brown-out detection circuitry
  • Watchdog Timer (WDT) with on-chip RC oscillator for reliable operation
  • In-Circuit Serial Programming (ICSP) via two pins
  • Programmable code protection for program and data memory
  • Power-saving Sleep mode for low-power applications
  • High sink/source current: 25 mA per I/O pin
  • Pinout compatible with PIC16C77 and PIC16F77

Applications

  • Industrial control systems and factory automation
  • Automotive under-hood electronics
  • Outdoor and harsh-environment equipment
  • Motor control and industrial drives
  • Remote sensor monitoring in extreme temperatures
  • Power supply and energy management systems
  • Industrial data acquisition and logging
Product Introduction: PIC16F877-20I Product Introduction

The PIC16F877-20I is the industrial-temperature grade version of the classic PIC16F877 8-bit Flash microcontroller from Microchip Technology. This 40/44-pin device features the Mid-Range PIC architecture with 35 instructions and an 8-level deep hardware stack, offering 14KB (8K x 14 words) of Flash program memory, 368 bytes of RAM, and 256 bytes of data EEPROM. The ‘-20I’ suffix indicates a maximum operating frequency of 20 MHz with an industrial temperature range of -40°C to +85°C, ensuring reliable operation in harsh industrial and automotive environments where the commercial-grade version (0°C to +70°C) would be insufficient. The comprehensive peripheral set includes an 8-channel 10-bit ADC, two analog comparators with programmable voltage reference, two CCP modules for capture/compare/PWM, an SSP module for SPI/I2C communication, a USART for serial communication, and a Parallel Slave Port (PSP) for 8-bit parallel bus interfacing. Three timer modules (TMR0, TMR1, TMR2) provide flexible timing and PWM generation. With 33 I/O pins, Brown-out Reset, Watchdog Timer, programmable code protection, and In-Circuit Serial Programming (ICSP), the PIC16F877-20I delivers robust performance for demanding industrial and automotive applications. Available in PDIP-40, PLCC-44, and TQFP-44 packages.

Working Principle: PIC16F877-20I Working Principle

The PIC16F877-20I operates on the Mid-Range PIC RISC architecture with Harvard design, providing separate buses for 14-bit program memory and 8-bit data memory for concurrent access. Most of the 35 instructions execute in a single clock cycle, with an 8-level deep hardware stack supporting subroutine calls and interrupt context saving across 14 interrupt sources. The industrial temperature grade (-40°C to +85°C) ensures stable operation across a wide temperature range, with guaranteed timing parameters and oscillator accuracy at temperature extremes. The 10-bit ADC uses successive approximation register (SAR) architecture with 8 input channels, providing accurate analog-to-digital conversion across the full temperature range. Two analog comparators with a Comparator Voltage Reference (CVREF) module enable threshold detection and window comparison. Two CCP modules provide 16-bit capture, 16-bit compare, and up to 10-bit PWM resolution. The SSP module handles SPI and I2C communication in hardware, while the USART provides asynchronous and synchronous serial communication. The Parallel Slave Port (PSP) provides an 8-bit bidirectional parallel interface for high-speed data transfer. The 256 bytes of EEPROM provide non-volatile data storage with reliable retention across the industrial temperature range. Three timer modules (TMR0 8-bit, TMR1 16-bit, TMR2 8-bit) provide timing, counting, and PWM time base functions. Power management includes Sleep mode, Brown-out Reset, and Watchdog Timer with independent RC oscillator for reliable operation in harsh conditions.

Pin Description: PIC16F877-20I Pin Definition and Functions
Pin (PDIP-40) Name Type Function
1 MCLR/VPP/RE3 I/P Master Clear / Programming Voltage / Port E I/O
2 RA0/AN0 I/O Port A I/O / ADC Channel 0
3 RA1/AN1 I/O Port A I/O / ADC Channel 1
4 RA2/AN2/VREF-/CVREF I/O Port A I/O / ADC Ch2 / Vref Neg / Comp Vref
5 RA3/AN3/VREF+ I/O Port A I/O / ADC Ch3 / Vref Positive
6 RA4/T0CKI I/O Port A I/O / Timer0 Clock Input
7 RA5/SS/AN4 I/O Port A I/O / SPI Slave Select / ADC Ch4
8 RE0/RD/AN5 I/O Port E I/O / PSP Read / ADC Ch5
9 RE1/WR/AN6 I/O Port E I/O / PSP Write / ADC Ch6
10 RE2/CS/AN7 I/O Port E I/O / PSP Chip Select / ADC Ch7
11 VSS P Ground Reference
12 RD0/PSP0 I/O Port D I/O / Parallel Slave Port Bit 0
13 RD1/PSP1 I/O Port D I/O / Parallel Slave Port Bit 1
14 RD2/PSP2 I/O Port D I/O / Parallel Slave Port Bit 2
15 RD3/PSP3 I/O Port D I/O / Parallel Slave Port Bit 3
16 RC0/T1OSO/T1CKI I/O Port C I/O / T1OSO / Timer1 Clock
17 RC1/T1OSI/CCP2 I/O Port C I/O / T1OSI / CCP2
18 RC2/CCP1 I/O Port C I/O / CCP1
19 RC3/SCK/SCL I/O Port C I/O / SPI Clock / I2C Clock
20 RD4/PSP4 I/O Port D I/O / Parallel Slave Port Bit 4
21 RD5/PSP5 I/O Port D I/O / Parallel Slave Port Bit 5
22 RD6/PSP6 I/O Port D I/O / Parallel Slave Port Bit 6
23 RD7/PSP7 I/O Port D I/O / Parallel Slave Port Bit 7
24 RC4/SDI/SDA I/O Port C I/O / SPI Data In / I2C Data
25 RC5/SDO I/O Port C I/O / SPI Data Out
26 RC6/TX/CK I/O Port C I/O / USART TX/Clock
27 RC7/RX/DT I/O Port C I/O / USART RX/Data
28 VSS P Ground Reference
29 VDD P Positive Supply Voltage
30 RB0/INT I/O Port B I/O / External Interrupt
31 RB1/C12IN0- I/O Port B I/O / Comparator Negative Input 0
32 RB2/C12IN1- I/O Port B I/O / Comparator Negative Input 1
33 RB3/PGM/C2OUT I/O Port B I/O / LVP / Comparator2 Output
34 RB4/C1OUT I/O Port B I/O / Comparator1 Output
35 RB5 I/O Port B I/O
36 RB6/ICSPCLK I/O Port B I/O / ICSP Clock
37 RB7/ICSPDAT I/O Port B I/O / ICSP Data
38 OSC1/CLKIN I Oscillator Input / Clock Input
39 OSC2/CLKOUT O Oscillator Output / Clock Output
40 VDD P Positive Supply Voltage
Application Scenarios: In which products and applications is PIC16F877-20I used
  • Industrial PLCs and factory automation controllers
  • Automotive under-hood electronics and engine control
  • Outdoor equipment and harsh-environment systems
  • Industrial motor drives and power inverters
  • Remote sensor monitoring in extreme temperatures
  • Power supply and renewable energy systems
  • Industrial data loggers for field deployment
Alternative Models: What chips are recommended as replacements for PIC16F877-20I
Manufacturer Part Number Package Notes
Microchip PIC16F877-20 40-pin Commercial temp (0°C~70°C), same die
Microchip PIC16F877A-I 40-pin ‘A’ revision, enhanced Flash, ICD, self-programming
Microchip PIC16F876-20I 28-pin 14KB Flash, 5-ch ADC, 22 I/O, industrial
Microchip PIC16F874-20I 40-pin 7KB Flash, 192B RAM, industrial temp
Microchip PIC16LF1789-I 44-pin Newer low-power XLP, enhanced analog

Recommend Parts

ISO1176TDWR

Isolated RS-485 transceiver, 40Mbps, integrated transformer driver, SOIC-16

Brand: TI

Package: SOIC-16 (DW, wide-body, 10.3 x 10.3 mm)

IN STOCK: 6874pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFB4020PBF

200V N-Channel HEXFET Power MOSFET, 31A, 68 mΩ RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 14149pcs

Cargo cycle: 3-7 Days

The minimum order is 1

NRF52832-QFAA-T

Nordic BLE SoC, ARM Cortex-M4 @ 64MHz, 64KB Flash, 32KB RAM, QFN-48

Package: See datasheet

IN STOCK: 10958pcs

Cargo cycle: 3-7 Days

The minimum order is 1

UCC28740DR

CVCC Flyback Controller, 700V startup, opto feedback, <10mW no-load, SOIC-7

Brand: TI

Package: SOIC-7 (4.9 x 3.9 x 1.75 mm)

IN STOCK: 4840pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MMUN2211LT1G

NPN digital transistor, R1=10kΩ R2=10kΩ, 50V, 100mA, SOT-23-3, pre-biased BRT switch

Brand: Onsemi

Package: SOT-23-3 (TO-236, SC-59)

IN STOCK: 8500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

PIC32MX795F512L-80I/PF

32-bit PIC32MX MCU with Ethernet/CAN/USB, 80MHz, 512KB Flash, TQFP-100, industrial

Brand: MICROCHIP

Package: TQFP-100 (14 x 14 mm)

IN STOCK: 7912pcs

Cargo cycle: 3-7 Days

The minimum order is 1