PIC12C671 PIC12CE673 PIC12C672 PIC12CE674 PIC12C67X 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory Devices Included in this Data Sheet: Pin Diagrams: PDIP, SOIC, Windowed CERDIP PIC12C671 PIC12C672 VDD VSS 1 8 PIC12CE673 GP5/OSC1/CLKIN 2 7 GP0/AN0 GP4/OSC2/AN3/ PIC12CE674 3 6 GP1/AN1/VREF CLKOUT GP2/T0CKI/AN2/ 4 5 GP3/MCLR/VPP Note: Throughout this data sheet PIC12C67X INT refers to the PIC12C671, PIC12C672, PIC12CE673 and PIC12CE674. PDIP, Windowed CERDIP PIC12CE67X refers to PIC12CE673 and PIC12CE674. VSS VDD 1 8 High-Performance RISC CPU: GP0/AN0 GP5/OSC1/CLKIN 2 7 GP4/OSC2/AN3/ 3 6 GP1/AN1/VREF Only 35 single word instructions to learn CLKOUT GP2/T0CKI/AN2/ 4 5 GP3/MCLR/VPP All instructions are single cycle (400 ns) except for INT program branches which are two-cycle Operating speed: DC - 10 MHz clock input Special Microcontroller Features: DC - 400 ns instruction cycle In-Circuit Serial Programming (ICSP) Memory Internal 4 MHz oscillator with programmable calibration Device Data Data Selectable clockout Program RAM EEPROM Power-on Reset (POR) Power-up Timer (PWRT) and Oscillator Start-up PIC12C671 1024 x 14 128 x 8 Timer (OST) PIC12C672 2048 x 14 128 x 8 Watchdog Timer (WDT) with its own on-chip RC PIC12CE673 1024 x 14 128 x 8 16 x 8 oscillator for reliable operation PIC12CE674 2048 x 14 128 x 8 16 x 8 Programmable code protection Power saving SLEEP mode 14-bit wide instructions 8-bit wide data path Interrupt-on-pin change (GP0, GP1, GP3) Interrupt capability Internal pull-ups on I/O pins (GP0, GP1, GP3) Special function hardware registers Internal pull-up on MCLR pin 8-level deep hardware stack Selectable oscillator options: Direct, indirect and relative addressing modes for - INTRC: Precision internal 4 MHz oscillator data and instructions - EXTRC: External low-cost RC oscillator Peripheral Features: - XT: Standard crystal/resonator - HS: High speed crystal/resonator Four-channel, 8-bit A/D converter - LP: Power saving, low frequency crystal 8-bit real time clock/counter (TMR0) with 8-bit CMOS Technology: programmable prescaler 1,000,000 erase/write cycle EEPROM data Low-power, high-speed CMOS EPROM/EEPROM memory technology EEPROM data retention > 40 years Fully static design Wide operating voltage range 2.5V to 5.5V Commercial, Industrial and Extended temperature ranges Low power consumption < 2 mA 5V, 4 MHz 15 m A typical 3V, 32 kHz < 1 m A typical standby current 1999 Microchip Technology Inc. DS30561B-page 1PIC12C67X Table of Contents 1.0 General Description ...................................................................................................................................................................... 3 2.0 PIC12C67X Device Varieties ........................................................................................................................................................ 5 3.0 Architectural Overview .................................................................................................................................................................. 7 4.0 Memory Organization.................................................................................................................................................................. 11 5.0 I/O Port........................................................................................................................................................................................ 25 6.0 EEPROM Peripheral Operation .................................................................................................................................................. 33 7.0 Timer0 Module ............................................................................................................................................................................ 39 8.0 Analog-to-Digital Converter (A/D) Module................................................................................................................................... 45 9.0 Special Features of the CPU....................................................................................................................................................... 53 10.0 Instruction Set Summary............................................................................................................................................................. 69 11.0 Development Support ................................................................................................................................................................. 83 12.0 Electrical Specifications .............................................................................................................................................................. 89 13.0 DC and AC Characteristics ....................................................................................................................................................... 109 14.0 Packaging Information .............................................................................................................................................................. 115 Appendix A:Compatibility ................................................................................................................................................................... 119 Appendix B:Code for Accessing EEPROM Data Memory ................................................................................................................. 119 Index .................................................................................................................................................................................................. 121 On-Line Support................................................................................................................................................................................. 125 Reader Response .............................................................................................................................................................................. 126 PIC12C67X Product Identification System ........................................................................................................................................ 127 To Our Valued Customers Most Current Data Sheet To automatically obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at: