PIC16F628A 8-Bit Flash Microcontroller (DIP-18)
2048W Flash, 224B SRAM, 128B EEPROM, DIP18
Aliase:PIC16F628, 16F628A
DIP-18 Top View
18 Pins
Pin-Tabelle18
| Pin | Signal / Name | Typ | Alternative Funktionen |
|---|---|---|---|
| 1 | RA2 | Digital | RA2 — General Purpose I/O, Port A bit 2AN2 — Analog Input Channel 2 for internal comparator moduleVref+ — Positive voltage reference input for comparator (when VREN bit set) |
| 2 | RA3 | Digital | RA3 — General Purpose I/O, Port A bit 3AN3 — Analog Input Channel 3 for comparatorCMP1 — Comparator 1 non-inverting (+) input |
| 3 | RA4 | Digital | RA4 — General Purpose I/O, Port A bit 4 (open-drain output; requires external pull-up)T0CKI — Timer0 external clock inputCMP2 — Comparator 2 output |
| 4 | RA5 | Digital | MCLR — Master Clear Reset (Active Low); tie to VDD via 10kΩ resistor for normal operationVpp — High-voltage ICSP programming input (+12V)RA5 — Input-only GPIO when MCLR enabled |
| 5 | VSS | Ground | System Ground (0V) — add 100nF bypass cap to VDD near pin |
| 6 | RB0 | Digital | RB0 — General Purpose I/O, Port B bit 0 (programmable weak pull-up)INT — External interrupt input (rising or falling edge selectable via INTEDG bit) |
| 7 | RB1 | Digital | RB1 — General Purpose I/O, Port B bit 1RX — USART asynchronous receive inputDT — USART synchronous data I/O |
| 8 | RB2 | Digital | RB2 — General Purpose I/O, Port B bit 2TX — USART asynchronous transmit outputCK — USART synchronous clock |
| 9 | RB3 | Digital | RB3 — General Purpose I/O, Port B bit 3CCP1 — Capture/Compare/PWM module 1 I/O |
| 10 | RB4 | Digital | RB4 — General Purpose I/O, Port B bit 4 (interrupt-on-change capable)PGM — Low-Voltage ICSP programming mode entry (HIGH enables LVP; disable LVP bit in config to use as GPIO) |
| 11 | RB5 | Digital | RB5 — General Purpose I/O, Port B bit 5 (interrupt-on-change capable) |
| 12 | RB6 | Digital | RB6 — General Purpose I/O, Port B bit 6 (interrupt-on-change capable)T1OSO — Timer1 crystal oscillator outputT1CKI — Timer1 external clock inputPGC — ICSP programming clock |
| 13 | RB7 | Digital | RB7 — General Purpose I/O, Port B bit 7 (interrupt-on-change capable)T1OSI — Timer1 crystal oscillator input (connect 32.768 kHz crystal between T1OSI and T1OSO)PGD — ICSP programming data |
| 14 | VDD | Power | Positive Power Supply (+2.0V to +5.5V; add 100nF bypass cap to VSS near pin) |
| 15 | RA6 | Digital | RA6 — General Purpose I/O, Port A bit 6 (available when using internal oscillator)OSC2 — Crystal oscillator output (connect crystal between OSC1 and OSC2)CLKOUT — Instruction clock output (Fosc/4) for external timing reference |
| 16 | RA7 | Digital | RA7 — General Purpose I/O, Port A bit 7 (available when using internal oscillator)OSC1 — Crystal oscillator input (XT, HS, LP modes)CLKIN — External clock input (EC mode) |
| 17 | RA0 | Digital | RA0 — General Purpose I/O, Port A bit 0AN0 — Analog Input Channel 0 for comparator module |
| 18 | RA1 | Digital | RA1 — General Purpose I/O, Port A bit 1AN1 — Analog Input Channel 1 for comparator module |