Chip2001Microchip Technology

PIC16F628A 8-Bit Flash Microcontroller (DIP-18)

2048W Flash, 224B SRAM, 128B EEPROM, DIP18

Aliase:PIC16F628, 16F628A

DIP-18 Top View

18 Pins
PIC16F628AMicrochip TechnologyDIP-181RA22RA33RA44RA55VSS6RB07RB18RB29RB318RA117RA016RA715RA614VDD13RB712RB611RB510RB4pinoutdb.org
Pin-Tabelle18
PinSignal / NameTypAlternative Funktionen
1RA2Digital
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)
2RA3Digital
RA3 — General Purpose I/O, Port A bit 3AN3 — Analog Input Channel 3 for comparatorCMP1 — Comparator 1 non-inverting (+) input
3RA4Digital
RA4 — General Purpose I/O, Port A bit 4 (open-drain output; requires external pull-up)T0CKI — Timer0 external clock inputCMP2 — Comparator 2 output
4RA5Digital
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
5VSSGround
System Ground (0V) — add 100nF bypass cap to VDD near pin
6RB0Digital
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)
7RB1Digital
RB1 — General Purpose I/O, Port B bit 1RX — USART asynchronous receive inputDT — USART synchronous data I/O
8RB2Digital
RB2 — General Purpose I/O, Port B bit 2TX — USART asynchronous transmit outputCK — USART synchronous clock
9RB3Digital
RB3 — General Purpose I/O, Port B bit 3CCP1 — Capture/Compare/PWM module 1 I/O
10RB4Digital
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)
11RB5Digital
RB5 — General Purpose I/O, Port B bit 5 (interrupt-on-change capable)
12RB6Digital
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
13RB7Digital
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
14VDDPower
Positive Power Supply (+2.0V to +5.5V; add 100nF bypass cap to VSS near pin)
15RA6Digital
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
16RA7Digital
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)
17RA0Digital
RA0 — General Purpose I/O, Port A bit 0AN0 — Analog Input Channel 0 for comparator module
18RA1Digital
RA1 — General Purpose I/O, Port A bit 1AN1 — Analog Input Channel 1 for comparator module