# PIC16F886 28-Pin Flash Microcontroller with nanoWatt (DIP-28)

- **Manufacturer**: Microchip Technology
- **Type**: Chip
- **Year**: 2006
- **URL (German)**: https://pinoutdb.org/component/pic16f886
- **URL (English)**: https://pinoutdb.org/en/component/pic16f886
- **Description**: 8K Flash, 256B SRAM, 256B EEPROM, XLP, DIP28
- **Datasheets & Links**:
  - [PIC16F886 Datasheet (PDF)](http://ww1.microchip.com/downloads/en/DeviceDoc/41291D.pdf) (datasheet)

## View: DIP-28 Top View (Package: dip)

| Pin | Signal Name | Type | Alternative Functions / Description |
| :--- | :--- | :--- | :--- |
| 1 | RE3 | Digital | MCLR — Master Clear Reset (Active Low); tie to VDD via 10kΩ for normal operation [Reset], Vpp — High-voltage ICSP programming input (+12V) [Digital], RE3 — Input-only GPIO, Port E bit 3 (when MCLR function enabled in config) [GPIO] |
| 2 | RA0 | Digital | RA0 — General Purpose I/O, Port A bit 0 [GPIO], AN0 — ADC Analog Input Channel 0 [Analog], ULPWU — Ultra Low-Power Wake-Up input (wake from sleep on voltage change) [Input], C12IN0- — Comparator 1 and 2 negative input 0 [Analog] |
| 3 | RA1 | Digital | RA1 — General Purpose I/O, Port A bit 1 [GPIO], AN1 — ADC Analog Input Channel 1 [Analog], C12IN1- — Comparator 1 and 2 negative input 1 [Analog] |
| 4 | RA2 | Digital | RA2 — General Purpose I/O, Port A bit 2 [GPIO], AN2 — ADC Analog Input Channel 2 [Analog], Vref- — Negative ADC voltage reference input [Reference], CVref — Comparator voltage reference output [Reference], C2IN+ — Comparator 2 positive input [Analog] |
| 5 | RA3 | Digital | RA3 — General Purpose I/O, Port A bit 3 [GPIO], AN3 — ADC Analog Input Channel 3 [Analog], Vref+ — Positive ADC voltage reference input [Reference], C1IN+ — Comparator 1 positive input [Analog] |
| 6 | RA4 | Digital | RA4 — General Purpose I/O, Port A bit 4 (open-drain output) [GPIO], T0CKI — Timer0 external clock input [Clock], C1OUT — Comparator 1 output [Output] |
| 7 | RA5 | Digital | RA5 — General Purpose I/O, Port A bit 5 [GPIO], AN4 — ADC Analog Input Channel 4 [Analog], SS — SPI Slave Select (Active Low) [SPI], C2OUT — Comparator 2 output [Output] |
| 8 | VSS | Ground | System Ground (0V) — add 100nF bypass cap to VDD near pin [Ground] |
| 9 | RA7 | Digital | RA7 — General Purpose I/O, Port A bit 7 (available with internal oscillator) [GPIO], OSC1 — Crystal oscillator input (XT, HS, LP modes) [Oscillator], CLKIN — External clock input in EC mode [Clock] |
| 10 | RA6 | Digital | RA6 — General Purpose I/O, Port A bit 6 (available with internal oscillator) [GPIO], OSC2 — Crystal oscillator output [Oscillator], CLKOUT — Instruction clock output (Fosc/4) [Clock] |
| 11 | RC0 | Digital | RC0 — General Purpose I/O, Port C bit 0 [GPIO], T1OSO — Timer1 crystal oscillator output [Oscillator], T1CKI — Timer1 external clock input [Clock] |
| 12 | RC1 | Digital | RC1 — General Purpose I/O, Port C bit 1 [GPIO], T1OSI — Timer1 crystal oscillator input (connect 32.768 kHz crystal between T1OSI and T1OSO) [Oscillator], CCP2 — Capture/Compare/PWM module 2 I/O [PWM] |
| 13 | RC2 | Digital | RC2 — General Purpose I/O, Port C bit 2 [GPIO], CCP1 — Capture/Compare/PWM module 1 I/O [PWM], P1A — Enhanced CCP module 1, output A (PWM bridge) [PWM] |
| 14 | RC3 | Digital | RC3 — General Purpose I/O, Port C bit 3 [GPIO], SCK — SPI Serial Clock (master and slave mode) [SPI], SCL — I2C Serial Clock (master and slave mode) [I2C] |
| 15 | RC4 | Digital | RC4 — General Purpose I/O, Port C bit 4 [GPIO], SDI — SPI Serial Data In (MISO in slave mode) [SPI], SDA — I2C Serial Data (open-drain, requires pull-up) [I2C] |
| 16 | RC5 | Digital | RC5 — General Purpose I/O, Port C bit 5 [GPIO], SDO — SPI Serial Data Out (MOSI in master mode) [SPI] |
| 17 | RC6 | Digital | RC6 — General Purpose I/O, Port C bit 6 [GPIO], TX — USART asynchronous transmit output [UART], CK — USART synchronous clock [Clock] |
| 18 | RC7 | Digital | RC7 — General Purpose I/O, Port C bit 7 [GPIO], RX — USART asynchronous receive input [UART], DT — USART synchronous data I/O [UART] |
| 19 | VSS | Ground | System Ground (0V) — second ground pin; add 100nF bypass cap to VDD [Ground] |
| 20 | VDD | Power | Positive Power Supply (+2.0V to +5.5V; add 100nF bypass cap to VSS near pin) [Power] |
| 21 | RB0 | Digital | RB0 — General Purpose I/O, Port B bit 0 (programmable weak pull-up) [GPIO], AN12 — ADC Analog Input Channel 12 [Analog], INT — External interrupt input (edge selectable via INTEDG bit) [Interrupt] |
| 22 | RB1 | Digital | RB1 — General Purpose I/O, Port B bit 1 (interrupt-on-change capable) [GPIO], AN10 — ADC Analog Input Channel 10 [Analog], P1C — Enhanced CCP module, output C (PWM bridge) [PWM] |
| 23 | RB2 | Digital | RB2 — General Purpose I/O, Port B bit 2 (interrupt-on-change capable) [GPIO], AN8 — ADC Analog Input Channel 8 [Analog], P1B — Enhanced CCP module, output B (PWM bridge) [PWM] |
| 24 | RB3 | Digital | RB3 — General Purpose I/O, Port B bit 3 (interrupt-on-change capable) [GPIO], AN9 — ADC Analog Input Channel 9 [Analog], PGM — Low-Voltage ICSP programming mode entry (HIGH enables LVP; disable LVP bit in config to use as GPIO) [Debug], C12IN2- — Comparator 1 and 2 negative input 2 [Analog] |
| 25 | RB4 | Digital | RB4 — General Purpose I/O, Port B bit 4 (interrupt-on-change capable) [GPIO], AN11 — ADC Analog Input Channel 11 [Analog], P1D — Enhanced CCP module, output D (PWM bridge) [PWM] |
| 26 | RB5 | Digital | RB5 — General Purpose I/O, Port B bit 5 (interrupt-on-change capable) [GPIO], AN13 — ADC Analog Input Channel 13 [Analog], T1G — Timer1 Gate / Count Enable input [Input] |
| 27 | RB6 | Digital | RB6 — General Purpose I/O, Port B bit 6 (interrupt-on-change capable) [GPIO], ICSPCLK — ICSP programming clock (PGC) [Debug] |
| 28 | RB7 | Digital | RB7 — General Purpose I/O, Port B bit 7 (interrupt-on-change capable) [GPIO], ICSPDAT — ICSP programming data (PGD) [Debug] |


---
Source: PinoutDatabase (https://pinoutdb.org). Verify against the manufacturer datasheet before production use.
