PIC16C6X 8-Bit CMOS Microcontrollers Low-power, high-speed CMOS EPROM/ROM Devices included in this data sheet: technology PIC16C61 PIC16C64A Fully static design PIC16C62 PIC16CR64 Wide operating voltage range: 2.5V to 6.0V PIC16C62A PIC16C65 Commercial, Industrial, and Extended temperature ranges PIC16CR62 PIC16C65A Low-power consumption: PIC16C63 PIC16CR65 < 2 mA 5V, 4 MHz PIC16CR63 PIC16C66 15 m A typical 3V, 32 kHz PIC16C64 PIC16C67 < 1 m A typical standby current PIC16C6X Microcontroller Core Features: PIC16C6X Peripheral Features: High performance RISC CPU Timer0: 8-bit timer/counter with 8-bit prescaler Only 35 single word instructions to learn Timer1: 16-bit timer/counter with prescaler, can be incremented during sleep via All single cycle instructions except for program external crystal/clock branches which are two-cycle Timer2: 8-bit timer/counter with 8-bit period Operating speed: DC - 20 MHz clock input register, prescaler and postscaler DC - 200 ns instruction cycle Capture/Compare/PWM (CCP) module(s) Interrupt capability Capture is 16-bit, max resolution is 12.5 ns, Eight level deep hardware stack Compare is 16-bit, max resolution is 200 ns, Direct, indirect, and relative addressing modes PWM max resolution is 10-bit. Power-on Reset (POR) 2 Synchronous Serial Port (SSP) with SPI and I C Power-up Timer (PWRT) and Universal Synchronous Asynchronous Receiver Oscillator Start-up Timer (OST) Transmitter (USART/SCI) Watchdog Timer (WDT) with its own on-chip RC Parallel Slave Port (PSP) 8-bits wide, with oscillator for reliable operation external RD, WR and CS controls Programmable code-protection Brown-out detection circuitry for Power saving SLEEP mode Brown-out Reset (BOR) Selectable oscillator options PIC16C6X Features 61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67 Program Memory 1K 2K 2K 4K 2K 2K 4K 4K 8K 8K (EPROM) x 14 (ROM) x 14 2K 4K 2K 4K Data Memory (Bytes) x 8 36 128 128 128 192 192 128 128 128 192 192 192 368 368 I/O Pins 13 22 22 22 22 22 33 33 33 33 33 33 22 33 Parallel Slave Port Yes Yes Yes Yes Yes Yes Yes Capture/Compare/PWM 1 1 1 22 1 1 1 22222 Module(s) Timer Modules 1333 3 3 333 33333 2 2 2 2 2 2 2 Serial Communication SPI/ SPI/ SPI/ SPI/I C, SPI/I C, SPI/ SPI/ SPI/ SPI/I C, SPI/I C, SPI/I C, SPI/I C, SPI/I C, 2 2 2 2 2 2 C I C I C C I C I C I USART USART I USART USART USART USART USART In-Circuit Serial Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Programming Brown-out Reset Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Interrupt Sources 3777 10 10 888 11 11 11 10 11 Sink/Source Current (mA) 25/20 25/25 25/25 25/25 25/25 25/25 25/25 25/25 25/25 25/25 25/25 25/25 25/25 25/25 1997 Microchip Technology Inc. DS30234D-page 1 PIC16C6X Pin Diagrams PDIP, SOIC, Windowed CERDIP SDIP, SOIC, SSOP, Windowed CERDIP (300 mil) 18 RA1 MCLR/VPP RB7 RA2 1 1 28 RA0 RB6 2 27 17 RA0 RA3 2 RA1 3 26 RB5 16 RA4/T0CKI 3 OSC1/CLKIN RA2 RB4 4 25 MCLR/VPP 15 4 OSC2/CLKOUT RA3 5 24 RB3 14 VDD 5 RA4/T0CKI 6 23 RB2 VSS RA5/SS RB1 13 7 22 RB0/INT 6 RB7 VSS 8 21 RB0/INT RB1 12 RB6 7 VDD OSC1/CLKIN 9 20 RB2 11 RB5 8 OSC2/CLKOUT 10 19 VSS RB3 10 RB4 9 RC0/T1OSI/T1CKI 11 18 RC7 RC1/T1OSO 12 17 RC6 RC2/CCP1 16 13 RC5/SDO PIC16C61 RC3/SCK/SCL 14 15 RC4/SDI/SDA PIC16C62 SDIP, SOIC, SSOP, Windowed CERDIP (300 mil) SDIP, SOIC, Windowed CERDIP (300 mil) 1 28 1 28 MCLR/VPP RB7 MCLR/VPP RB7 RA0 2 27 RB6 RA0 2 27 RB6 RA1 3 26 RA1 3 26 RB5 RB5 RA2 4 25 RA2 4 25 RB4 RB4 RA3 5 24 RB3 RA3 5 24 RB3 RA4/T0CKI 6 23 RA4/T0CKI 6 23 RB2 RB2 7 22 7 22 RA5/SS RB1 RA5/SS RB1 8 21 8 21 VSS RB0/INT VSS RB0/INT OSC1/CLKIN 9 20 VDD OSC1/CLKIN 9 20 VDD 10 19 10 19 OSC2/CLKOUT VSS OSC2/CLKOUT VSS RC0/T1OSO/T1CKI 11 18 RC7 RC0/T1OSO/T1CKI 11 18 RC7/RX/DT RC1/T1OSI 12 17 RC6 RC1/T1OSI/CCP2 12 17 RC6/TX/CK RC2/CCP1 13 16 RC5/SDO RC2/CCP1 13 16 RC5/SDO RC3/SCK/SCL 14 15 RC3/SCK/SCL 14 15 RC4/SDI/SDA RC4/SDI/SDA PIC16C62A PIC16C63 PIC16CR62 PIC16CR63 PIC16C66 PDIP, Windowed CERDIP MCLR/VPP 1 40 RB7 MCLR/VPP 1 40 RB7 MCLR/VPP 1 40 RB7 RA0 2 39 RB6 RA0 2 39 RB6 RA0 2 39 RB6 RA1 3 38 RB5 RA1 3 38 RB5 RA1 3 38 RB5 RA2 4 37 RB4 RA2 4 37 RB4 RA2 4 37 RB4 RA3 5 36 RB3 RA3 5 36 RB3 RA3 5 36 RB3 RA4/T0CKI 6 35 RB2 RA4/T0CKI 6 35 RB2 RA4/T0CKI 6 35 RB2 RA5/SS 7 34 RB1 RA5/SS 7 34 RB1 RA5/SS 7 34 RB1 RE0/RD 8 33 RB0/INT RE0/RD 8 33 RB0/INT RE0/RD 8 33 RB0/INT RE1/WR 9 32 VDD RE1/WR 9 32 VDD RE1/WR 9 32 VDD RE2/CS 10 31 VSS RE2/CS 10 31 VSS RE2/CS 10 31 VSS VDD VDD VDD 11 30 RD7/PSP7 11 30 RD7/PSP7 11 30 RD7/PSP7 VSS 12 29 RD6/PSP6 VSS 12 29 RD6/PSP6 VSS 12 29 RD6/PSP6 OSC1/CLKIN 13 28 RD5/PSP5 OSC1/CLKIN 13 28 RD5/PSP5 OSC1/CLKIN 13 28 RD5/PSP5 OSC2/CLKOUT 14 27 RD4/PSP4 OSC2/CLKOUT 14 27 RD4/PSP4 OSC2/CLKOUT 14 27 RD4/PSP4 RC0/T1OSI/T1CKI 15 26 RC7 RC0/T1OSO/T1CKI 15 26 RC7 RC0/T1OSO/T1CKI 15 26 RC7/RX/DT RC1/T1OSO 16 25 RC6 RC1/T1OSI 16 25 RC6 RC1/T1OSI/CCP2 16 25 RC6/TX/CK RC2/CCP1 17 24 RC5/SDO RC2/CCP1 17 24 RC5/SDO RC2/CCP1 17 24 RC5/SDO RC3/SCK/SCL 18 23 RC4/SDI/SDA RC3/SCK/SCL 18 23 RC4/SDI/SDA RC3/SCK/SCL 18 23 RC4/SDI/SDA RD0/PSP0 19 22 RD3/PSP3 RD0/PSP0 19 22 RD3/PSP3 RD0/PSP0 19 22 RD3/PSP3 RD1/PSP1 20 21 RD2/PSP2 RD1/PSP1 20 21 RD2/PSP2 RD1/PSP1 20 21 RD2/PSP2 PIC16C64A PIC16C64 PIC16C65 PIC16CR64 PIC16C65A PIC16CR65 PIC16C67 DS30234D-page 2 1997 Microchip Technology Inc.