Transcription of PIC16F630/676 Data Sheet
1 2010 Microchip Technology Sheet14-Pin, Flash-Based 8-BitCMOS MicrocontrollersDS40039F-page 2 2010 Microchip Technology contained in this publication regarding deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS ORIMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT NOT LIMITED TO ITS CONDITION,QUALITY, PERFORMANCE, MERCHANTABILITY ORFITNESS FOR PURPOSE. Microchip disclaims all liabilityarising from this information and its use. Use of Microchipdevices in life support and/or safety applications is entirely atthe buyer s risk, and the buyer agrees to defend, indemnify andhold harmless Microchip from any and all damages, claims,suits, or expenses resulting from such use.
2 No licenses areconveyed, implicitly or otherwise, under any Microchipintellectual property Microchip name and logo, the Microchip logo, dsPIC, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, PIC32 logo, rfPIC and UNI/O are registered trademarks of Microchip Technology Incorporated in the and other , Hampshire, HI-TECH C, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the Age, Application Maestro, CodeGuard, dsPICDEM, , dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, Octopus, Omniscient Code Generation, PICC, PICC-18, PICDEM, , PICkit, PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the and other is a service mark of Microchip Technology Incorporated in the other trademarks mentioned herein are property of their respective companies.
3 2010, Microchip Technology Incorporated, Printed in the , All Rights Reserved. Printed on recycled : 978-1-60932-173-4 Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet . Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code.
4 Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable. Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of ourproducts. Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company s quality system processes and procedures are for its PIC MCUs and dsPIC DSCs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products.
5 In addition, Microchip s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. 2010 Microchip Technology 3 PIC16F630/676 High-Performance RISC CPU: Only 35 Instructions to Learn- All single-cycle instructions except branches Operating Speed:- DC 20 MHz oscillator/clock input- DC 200 ns instruction cycle Interrupt Capability 8-level Deep Hardware Stack Direct, Indirect, and Relative Addressing modesSpecial Microcontroller Features: Internal and External Oscillator Options- Precision Internal 4 MHz oscillator factory calibrated to 1%- External Oscillator support for crystals and resonators-5 s wake-up from Sleep, , typical Power-Saving Sleep mode Wide Operating Voltage Range to Industrial and Extended Temperature Range Low-Power Power-on Reset (POR) Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) Brown-out Detect (BOD) Watchdog Timer (WDT) with Independent Oscillator for Reliable Operation Multiplexed MCLR/Input-pin Interrupt-on-Pin Change Individual programmable Weak Pull-ups programmable Code Protection High Endurance Flash/EEPROM Cell- 100,000 write Flash endurance- 1,000,000 write EEPROM endurance- Flash/data EEPROM retention: > 40 yearsLow-Power Features: Standby Current.
6 - 1 nA @ , typical Operating A @ 32 kHz, , typical-100 A @ 1 MHz, , typical Watchdog Timer Current- 300 nA @ , typical Timer1 Oscillator Current:-4 A @ 32 kHz, , typicalPeripheral Features: 12 I/O Pins with Individual Direction Control High Current Sink/Source for Direct LED Drive Analog Comparator module with:- One analog comparator- programmable on-chip comparator voltage reference (CVREF) module- programmable input multiplexing from device inputs- Comparator output is externally accessible Analog-to-Digital Converter module (PIC16F676):- 10-bit resolution- programmable 8-channel input- Voltage reference input Timer0: 8-bit Timer/Counter with 8-bit programmable Prescaler Enhanced Timer1:- 16-bit timer/counter with prescaler- External Gate Input mode- Option to use OSC1 and OSC2 in LP mode as Timer1 oscillator, if INTOSC mode selected In-Circuit Serial ProgrammingTM (ICSPTM) via two pinsDeviceProgram MemoryData MemoryI/O10-bit A/D (ch)ComparatorsTimers8/16-bitFlash(words ) SRAM (bytes)EEPROM (bytes)
7 PIC16F63010246412812 11/1 PIC16F67610246412812811/114-Pin, Flash-Based 8-Bit CMOS MicrocontrollerPIC16F630/676DS40039F-pag e 4 2010 Microchip Technology Diagrams14-pin PDIP, SOIC, TSSOPVDDRA5/T1 CKI/OSC1/CLKINRA4/T1G/OSC2/AN3/CLKOUTRA3 /MCLR/VPPRC5RC4RC3/AN7 VSSRA0/AN0/CIN+/ICSPDATRA1/AN1/CIN-/VREF /ICSPCLKRA2/AN2/COUT/T0 CKI/INTRC0/AN4RC1/AN5RC2/AN6 PIC16F6761234567141312 91110 8 VDDRA5/T1 CKI/OSC1/CLKINRA4/T1G/OSC2/CLKOUTRA3/MCL R/VPPRC5RC4RC3 VSSRA0/CIN+/ICSPDATRA1/CIN-/ICSPCLKRA2/C OUT/T0 CKI/INTRC0RC1RC2 PIC16F6301234567141312 91110 8 2010 Microchip Technology 5 PIC16F630/676 Table of Overview .. Organization .. A and C .. Module .. Module with Gate Control .. Module .. Converter (A/D) Module (PIC16F676 only) .. EEPROM Features of the CPU .. Instruction Set Summary.
8 Development Support .. Electrical Specifications .. DC and AC Characteristics Graphs and Tables .. Packaging Information .. 117 Appendix A: Data Sheet Revision History .. 123 Appendix B: Device Differences .. 123 Appendix C: Device Migrations .. 124 Appendix D: Migrating from other PIC Devices .. 124 Index .. 125On-Line Support .. 129 Systems Information and Upgrade Hot Line .. 129 Reader Response .. 130 Product Identification System .. 131TO OUR VALUED CUSTOMERSIt is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchipproducts. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined andenhanced as new volumes and updates are introduced. If you have any questions or comments regarding this publication, please contact the Marketing Communications Department viaE-mail at or fax the Reader Response Form in the back of this data Sheet to (480) 792-4150.
9 Wewelcome your Current Data SheetTo obtain the most up-to-date version of this data Sheet , please register at our Worldwide Web site at: can determine the version of a data Sheet by examining its literature number found on the bottom outside corner of any last character of the literature number is the version number, ( , DS30000A is version A of document DS30000).ErrataAn errata Sheet , describing minor operational differences from the data Sheet and recommended workarounds, may exist for currentdevices. As device/documentation issues become known to us, we will publish an errata Sheet . The errata will specify the revisionof silicon and revision of document to which it determine if an errata Sheet exists for a particular device, please check with one of the following: Microchip s Worldwide Web site; Your local Microchip sales office (see last page)When contacting a sales office, please specify which device, revision of silicon and data Sheet (include literature number) you Notification SystemRegister on our web site at to receive the most current information on all of our 6 2010 Microchip Technology : 2010 Microchip Technology 7 PIC16F630 OVERVIEWThis document contains device specific information forthe PIC16F630/676 .
10 Additional information may befound in the PIC Mid-Range reference Manual(DS33023), which may be obtained from your localMicrochip Sales Representative or downloaded fromthe Microchip web site. The reference Manual shouldbe considered a complementary document to this DataSheet and is highly recommended reading for a betterunderstanding of the device architecture and operationof the peripheral PIC16F630 and PIC16F676 devices are coveredby this Data Sheet . They are identical, except thePIC16F676 has a 10-bit A/D converter. They come in14-pin PDIP, SOIC and TSSOP packages. Figure 1-1shows a block diagram of the PIC16F630/676 1-1 shows the pinout 1-1: PIC16F630/676 BLOCK DIAGRAMF lashProgramMemory13 Data Bus814 ProgramBusInstruction RegProgram CounterRAMFileRegistersDirect Addr7 RAM Addr9 Addr MUXI ndirectAddrFSR RegSTATUS RegMUXALUW RegInstructionDecode andControlTimingGenerationOSC1/CLKINOSC2 /CLKOUTPORTA88838-Level Stack641K x 14 bytes(13-bit)Power-upTimerOscillatorStar t-up TimerPower-onResetWatchdogTimerMCLRVSSB rown-outDetectAnalogTimer0 Timer1 DATAEEPROM128 bytesEEDATAEEADDRRA0RA1RA2RA3RA4RA5 ComparatorAnalog to Digital Converter (PIC16F676 only)AN0AN1AN2AN3 CIN-CIN+COUTT0 CKIINTT1 CKIC onfigurationInternalOscillatorVREFand referenceT1 GPORTCRC0RC1RC2RC3RC4RC5AN4AN5AN6AN7 VDD8 PIC16F630/676DS40039F-page 8 2010 Microchip Technology 1-1.