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