PIC16F882/883/884/886/887 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers High-Performance RISC CPU Peripheral Features Only 35 Instructions to Learn: 24/35 I/O Pins with Individual Direction Control: - All single-cycle instructions except branches - High current source/sink for direct LED drive Operating Speed: - Interrupt-on-Change pin - DC 20 MHz oscillator/clock input - Individually programmable weak pull-ups - DC 200 ns instruction cycle - Ultra Low-Power Wake-up (ULPWU) Interrupt Capability Analog Comparator Module with: 8-Level Deep Hardware Stack - Two analog comparators Direct, Indirect and Relative Addressing modes - Programmable on-chip voltage reference (CVREF) module (% of VDD) Special Microcontroller Features - Fixed Voltage Reference (0.6V) - Comparator inputs and outputs externally Precision Internal Oscillator: accessible - Factory calibrated to 1% - SR Latch mode - Software selectable frequency range of - External Timer1 Gate (count enable) 8 MHz to 31 kHz A/D Converter: - Software tunable - 10-bit resolution and 11/14 channels - Two-Speed Start-up mode Timer0: 8-bit Timer/Counter with 8-bit - Crystal fail detect for critical applications Programmable Prescaler - Clock mode switching during operation for Enhanced Timer1: power savings - 16-bit timer/counter with prescaler Power-Saving Sleep mode - External Gate Input mode Wide Operating Voltage Range (2.0V-5.5V) - Dedicated low-power 32 kHz oscillator Industrial and Extended Temperature Range Timer2: 8-bit Timer/Counter with 8-bit Period Power-on Reset (POR) Register, Prescaler and Postscaler Power-up Timer (PWRT) and Oscillator Start-up Enhanced Capture, Compare, PWM+ Module: Timer (OST) - 16-bit Capture, max. resolution 12.5 ns Brown-out Reset (BOR) with Software Control - Compare, max. resolution 200 ns Option - 10-bit PWM with 1, 2 or 4 output channels, Enhanced Low-Current Watchdog Timer (WDT) programmable dead time, max. frequency with On-Chip Oscillator (software selectable 20 kHz nominal 268 seconds with full prescaler) with - PWM output steering control software enable Capture, Compare, PWM Module: Multiplexed Master Clear with Pull-up/Input Pin - 16-bit Capture, max. resolution 12.5 ns Programmable Code Protection - 16-bit Compare, max. resolution 200 ns High Endurance Flash/EEPROM Cell: - 10-bit PWM, max. frequency 20 kHz - 100,000 write Flash endurance Enhanced USART Module: - 1,000,000 write EEPROM endurance - Supports RS-485, RS-232, and LIN 2.0 - Flash/Data EEPROM retention: > 40 years - Auto-Baud Detect Program Memory Read/Write during run time - Auto-Wake-Up on Start bit In-Circuit Debugger (on board) TM TM In-Circuit Serial Programming (ICSP ) via Two Pins Low-Power Features Master Synchronous Serial Port (MSSP) Module 2 Standby Current: supporting 3-wire SPI (all 4 modes) and I C 2 - 50 nA 2.0V, typical Master and Slave Modes with I C Address Mask Operating Current: -11 A 32 kHz, 2.0V, typical -220 A 4 MHz, 2.0V, typical Watchdog Timer Current: -1 A 2.0V, typical 2006-2015 Microchip Technology Inc. DS40001291H-page 1PIC16F882/883/884/886/887 PIC16F882/883/884/886/887 Family Types Program Data Memory Memory 10-bit A/D ECCP/ Timers Device I/O EUSART MSSP Comparators (ch) CCP 8/16-bit Flash SRAM EEPROM (words) (bytes) (bytes) PIC16F882 2048 128 128 24 11 1/1 1 1 2 2/1 PIC16F883 4096 256 256 24 11 1/1 1 1 2 2/1 PIC16F884 4096 256 256 35 14 1/1 1 1 2 2/1 PIC16F886 8192 368 256 24 11 1/1 1 1 2 2/1 PIC16F887 8192 368 256 35 14 1/1 1 1 2 2/1 DS40001291H-page 2 2006-2015 Microchip Technology Inc.