PIC16C64X PIC16C66X PIC16C64X & PIC16C66X 8-Bit EPROM Microcontrollers with Analog Comparators Devices included in this data sheet: Pin Diagrams PDIP, SOIC, Windowed CERDIP PIC16C641 PIC16C642 PIC16C661 MCLR/VPP 1 28 RB7 RA0/AN0 2 27 RB6 PIC16C662 RA1/AN1 3 26 RB5 RA2/AN2/VREF 4 25 RB4 High Performance RISC CPU: RA3/AN3 5 24 RB3 RA4/T0CKI 6 23 RB2 Only 35 instructions to learn RA5 7 22 RB1 VSS 8 All single-cycle instructions (200 ns), except for 21 RB0/INT OSC1/CLKIN 9 20 VDD program branches which are two-cycle OSC2/CLKOUT 10 19 VSS RC0 11 Operating speed: 18 RC7 RC1 12 17 RC6 - DC - 20 MHz clock input RC2 13 16 RC5 14 RC3 15 RC4 - DC - 200 ns instruction cycle Device Program Data Memory x14 Memory x8 PDIP, Windowed CERDIP PIC16C641 2K 128 40 MCLR/VPP 1 RB7 39 RA0/AN0 RB6 4K 176 2 PIC16C642 38 RA1/AN1 3 RB5 RA2/AN2/VREF 37 4 RB4 PIC16C661 2K 128 RA3/AN3 5 36 RB3 4K 176 RA4/T0CKI 35 RB2 6 PIC16C662 RA5 34 7 RB1 RE0/RD 33 RB0/INT 8 Interrupt capability RE1/WR 32 9 VDD 8-level deep hardware stack 31 RE2/CS 10 VSS Direct, Indirect and Relative addressing modes VDD 30 RD7/PSP7 11 VSS 29 RD6/PSP6 12 Peripheral Features: OSC1/CLKIN 13 28 RD5/PSP5 OSC2/CLKOUT 27 RD4/PSP4 14 Up to 33 I/O pins with individual direction control RC0 15 26 RC7 High current sink/source for direct LED drive 16 RC1 25 RC6 Analog comparator module with: RC2 17 24 RC5 23 RC3 18 RC4 - Two analog comparators RD0/PSP0 19 22 RD3/PSP3 - Programmable on-chip voltage reference 20 21 RD1/PSP1 RD2/PSP2 (VREF) module - Programmable input multiplexing from device inputs and internal voltage reference Four user programmable ID locations - Comparator outputs can be output signals Timer0: 8-bit timer/counter with 8-bit Program Memory Parity Error checking circuitry programmable prescaler with Parity Error Reset (PER) CMOS Technology: Special Microcontroller Features: Low-power, high-speed CMOS EPROM technology Power-on Reset (POR) Fully static design Power-up Timer (PWRT) and Wide operating voltage range: 3.0V to 6.0V Oscillator Start-up Timer (OST) Commercial, Industrial and Automotive Brown-out Reset temperature ranges Watchdog Timer (WDT) with its own on-chip RC Low power consumption oscillator for reliable operation - < 2.0 mA 5.0V, 4.0 MHz Programmable code protection - 15 m A typical 3.0V, 32 kHz Power saving SLEEP mode - < 1.0 m A typical standby current 3.0V Selectable oscillator options Serial in-circuit programming (via two pins) 1996 Microchip Technology Inc. Preliminary DS30559A-page 1 This document was created with FrameMaker404NC RC6 RA3/AN3 RC5 RA2/AN2/VREF RC4 RA1/AN1 RD3/PSP3 RA0/AN0 RD2/PSP2 MCLR/VPP RD1/PSP1 RD0/PSP0 RB7 RC3 RB6 RC2 RB5 RC1 RB4 NC NC PIC16C64X & PIC16C66X Pin Diagrams (Cont.d) TQFP 44 43 42 41 40 39 38 3736 35 34 33 NC 1 RC7 32 2 RC0 RD4/PSP4 31 OSC2/CLKOUT 3 RD5/PSP5 30 4 OSC1/CLKIN RD6/PSP6 29 VSS 5 RD7/PSP7 28 VDD 6 VSS PIC16C66X 27 RE2/CS VDD 7 26 RE1/WR RB0/INT 8 25 RE0/RD RB1 9 24 RA5 RB2 10 23 11 RA4/T0CKI RB3 12 1314 15 16 17 1819 20 21 22 PLCC 65 4 3 2 1 444342 4140 7 39 RA4/T0CKI RB3 8 38 RA5 RB2 9 RE0/RD 37 RB1 10 36 RB0/INT RE1/WR 11 RE2/CS 35 VDD 12 VDD 34 VSS PIC16C66X 13 33 RD7/PSP7 VSS 14 OSC1/CLKIN 32 RD6/PSP6 15 OSC2/CLKOUT 31 RD5/PSP5 30 RD4/PSP4 RC0 16 RC7 NC 17 29 18 19 20 212223 242526 2728 DS30559A-page 2 Preliminary 1996 Microchip Technology Inc. RC6 RC5 RC4 RA3/AN3 RD3/PSP3 RA2/AN2/VREF RD2/PSP2 RA1/AN1 RD1/PSP1 RA0/AN0 MCLR/VPP RD0/PSP0 NC RC3 RB7 RC2 RB6 RC1 RB5 NC RB4 NC