PIC16F872 - Microcontroller Microchip - Free user manual and instructions
Find the device manual for free PIC16F872 Microchip in PDF.
Pick your language and provide your email: we'll send you a specifically translated version.
| Product Type | 8-bit Microcontroller |
| Manufacturer | Microchip Technology |
| Model | PIC16F872 |
| Package | 28-pin PDIP, SOIC, SSOP |
| Dimensions (DIP) | Approximately 34.8 x 7.5 x 4.0 mm |
| Weight | Approximately 2.5 g |
| Operating Voltage | 2.0V to 5.5V |
| Maximum Clock Speed | 20 MHz |
| Program Memory | 2K words (3.5 KB) Flash |
| RAM | 128 bytes |
| EEPROM | 64 bytes |
| I/O Pins | 22 |
| Analog-to-Digital Converter | 5-channel, 10-bit |
| Timers | 2 (8-bit and 16-bit) |
| Serial Communication | USART (asynchronous/synchronous) |
| Special Features | In-Circuit Serial Programming, Watchdog Timer, Brown-out Reset, Power-on Reset |
| Typical Power Consumption | 1.8 mA at 4 MHz, 3V |
| Operating Temperature | -40°C to +85°C (industrial) |
| Maintenance | No regular maintenance required; avoid static discharge |
| Safety Precautions | Use ESD protection when handling; operate within specified voltage and temperature ranges |
| Spare Parts / Repairability | Not repairable at component level; replacement recommended if faulty |
| General Information | Mid-range 8-bit microcontroller with RISC architecture; supports 35 instructions |
Frequently Asked Questions - PIC16F872 Microchip
How do I program the PIC16F872?
The PIC16F872 supports In-Circuit Serial Programming (ICSP) using a programmer like the PICkit or ICD. Connect the programming pins (PGC, PGD, VPP, VDD, VSS) to the programmer and use MPLAB X IDE with a compatible compiler.
What is the pinout of the PIC16F872?
The PIC16F872 is a 28-pin device. Key pins include RA0-RA4 (analog/digital), RB0-RB7, RC0-RC7, VDD, VSS, MCLR, OSC1/CLKIN, OSC2/CLKOUT. For a full diagram, refer to the datasheet.
What is the maximum operating frequency?
The maximum clock frequency is 20 MHz using an external oscillator. At 20 MHz, the instruction cycle is 200 ns.
Can I use the ADC while in sleep mode?
No, the ADC module requires the system clock to operate. However, you can use the Watchdog Timer or external interrupt to wake up from sleep before performing an ADC conversion.
What are the available timers?
The PIC16F872 has two timers: Timer0 (8-bit) with prescaler and Timer1 (16-bit) with prescaler and optional external oscillator. Both can generate interrupts on overflow.
How do I reset the microcontroller?
You can reset by pulling the MCLR pin low (active low reset). A brown-out reset (BOR) or power-on reset (POR) can also trigger a reset automatically.
What is the typical power consumption?
Typical active current is 1.8 mA at 4 MHz and 3V. In sleep mode, current drops to less than 1 µA.
How many I/O pins are available?
There are 22 I/O pins, organized as PORTA (5 pins), PORTB (8 pins), and PORTC (8 pins). Some pins are shared with analog or special functions.
What development tools are supported?
Microchip offers MPLAB X IDE (free) and compilers like XC8. Programmers include PICkit, ICD, and various third-party tools.
Can I use external interrupts?
Yes, the PIC16F872 supports two external interrupt sources: INT on RB0 pin (edge-triggered) and PORTB change-on-change interrupts on RB4-RB7.
User questions about PIC16F872 Microchip
0 question about this device. Answer the ones you know or ask your own.
Ask a new question about this device
No questions yet. Be the first to ask one.
Download the instructions for your Microcontroller in PDF format for free! Find your manual PIC16F872 - Microchip and take your electronic device back in hand. On this page are published all the documents necessary for the use of your device. PIC16F872 by Microchip.