Example: bachelor of science

PIC16F684 Data Sheet

2007 Microchip Technology Sheet14-Pin, Flash-Based 8-BitCMOS Microcontrollerswith nanoWatt TechnologyDS41202F-page ii 2007 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.

Dec 08, 2006 · An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for curren t devices. As device/documentation issues bec ome known to us, we will publish an errata sheet. The errata will specify the revisi on of silicon and revision of document to which it applies.

Tags:

  Data, Describing

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of PIC16F684 Data Sheet

1 2007 Microchip Technology Sheet14-Pin, Flash-Based 8-BitCMOS Microcontrollerswith nanoWatt TechnologyDS41202F-page ii 2007 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, Accuron, dsPIC, KEELOQ, KEELOQ logo, microID, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, PowerSmart, rfPIC, and SmartShunt are registered trademarks of Microchip Technology Incorporated in the and other , FilterLab, Linear Active Thermistor, Migratable Memory, MXDEV, MXLAB, PS logo, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the Age, Application Maestro, CodeGuard, dsPICDEM, , dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, PICkit, PICDEM, , PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, 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 2007, Microchip Technology Incorporated, Printed in the , All Rights Reserved. Printed on recycled 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 Mountain View, California. 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. 2007 Microchip Technology 1 PIC16F684 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: Precision Internal Oscillator:- Factory calibrated to 1%, typical- Software selectable frequency range of 8 MHz to 125 kHz- Software tunable- Two-Speed Start-up mode- Crystal fail detect for critical applications- Clock mode switching during operation for power savings Software Selectable 31 kHz Internal Oscillator Power-Saving Sleep mode Wide operating voltage range ( ) Industrial and Extended Temperature range Power-on Reset (POR) Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) Brown-out Reset (BOR) with software control option Enhanced low-current Watchdog Timer (WDT) with on-chip oscillator (software selectable nominal 268 seconds with full prescaler) with software enable Multiplexed Master Clear with pull-up/input pin Programmable code protection High Endurance Flash/EEPROM cell.

6 - 100,000 write Flash endurance- 1,000,000 write EEPROM endurance- Flash/ data EEPROM retention: > 40 yearsLow-Power Features: Standby Current:- 50 nA @ , typical Operating Current:-11 A @ 32 kHz, , typical-220 A @ 4 MHz, , typical Watchdog Timer Current:-1 A @ , typicalPeripheral Features: 12 I/O pins with individual direction control:- High current source/sink for direct LED drive- Interrupt-on-change pin- Individually programmable weak pull-ups- Ultra Low-Power Wake-Up (ULPWU) Analog Comparator module with:- Two analog comparators- Programmable on-chip voltage reference (CVREF) module (% of VDD)- Comparator inputs and outputs externally accessible A/D Converter:- 10-bit resolution and 8 channels Timer0: 8-bit timer/counter with 8-bit programmable prescaler Enhanced Timer1:- 16-bit timer/counter with prescaler- External Timer1 Gate (count enable)- Option to use OSC1 and OSC2 in LP mode as Timer1 oscillator if INTOSC mode selected Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler Enhanced Capture, Compare, PWM module:- 16-bit Capture, max resolution ns- Compare, max resolution 200 ns- 10-bit PWM with 1, 2 or 4 output channels, programmable dead time , max frequency 20 kHz In-Circuit Serial ProgrammingTM (ICSPTM) via two pinsDeviceProgram MemoryData MemoryI/O10-bit A/D (ch)ComparatorsTimers8/16-bitFlash(words ) SRAM (bytes)EEPROM (bytes)PIC16F684204812825612822/114-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt TechnologyPIC16F684DS41202F-page 2 2007 Microchip Technology Diagram (PDIP, SOIC, TSSOP)TABLE 1.

7 DUAL IN-LINE PIN SUMMARYI/OPinAnalogComparatorsTimerCCPI nterrupts Pull-upsBasicRA013AN0C1IN+ IOCYICSPDAT/ULPWURA112AN1/VREFC1IN- IOCYICSPCLKRA211AN2C1 OUTT0 CKI INT/IOCY RA3(1)4 IOCY(2)MCLR/VPPRA43AN3 T1G IOCYOSC2/CLKOUTRA52 T1 CKI IOCYOSC1/CLKINRC010AN4C2IN+ RC19AN5C2IN- RC28AN6 P1D RC37AN7 P1C RC46 C2 OUT P1B RC55 CCP1/P1A 1 VDD 14 VSSNote 1:Input :Only when pin is configured for external +/ICSPDAT/ULPWURA1/AN1/C1IN-/VREF/ICSPCL KRA2/AN2/T0 CKI/INT/C1 OUTRC0/AN4/C2IN+RC1/AN5/C2IN-RC2/AN6/P1 DPIC16F6841234567141312 91110 8 2007 Microchip Technology 3 PIC16F68416-Pin Diagram (QFN)TABLE 2:QFN PIN SUMMARYI/OPinAnalogComparatorsTimersCCPI nterrupts Pull-upsBasicRA012AN0C1IN+ IOCYICSPDAT/ULPWURA111AN1/VREFC1IN- IOCYICSPCLKRA210AN2C1 OUTT0 CKI INT/IOCY RA3(1)3 IOCY(2)MCLR/VPPRA42AN3 T1G IOCYOSC2/CLKOUTRA51 T1 CKI IOCYOSC1/CLKINRC09AN4C2IN+ RC18AN5C2IN- RC27AN6 P1D RC36AN7 P1C RC45 C2 OUT P1B RC54 CCP1/P1A 16 VDD 13 VSSNote 1:Input :Only when pin is configured for external +/ICSPDAT/ULPWURA1/AN1/C1IN-/VREF/ICSPCL KRA2/AN2/T0 CKI/INT/C1 OUTRC0/AN4/C2IN+RC4/C2 OUT/P1 BRC3/AN7/P1 CRC2/AN6/P1 DRC1/AN5/C2IN-PIC16F684DS41202F-page 4 2007 Microchip Technology of Overview.

8 Organization .. Module (With Fail-Safe Clock Monitor).. Ports .. Module .. Module with Gate Module .. Converter (ADC) Module .. data EEPROM Memory .. Enhanced Capture/Compare/PWM (With Auto-Shutdown and Dead Band) Module .. Special Features of the CPU .. Instruction Set Summary .. Development Electrical DC and AC Characteristics Graphs and Tables .. Packaging 173 Appendix A: data Sheet Revision History .. 179 Appendix B: Migrating from other PIC Devices .. 179 Index .. 181 The Microchip Web Site .. 187 Customer Change Notification Service .. 187 Customer Support .. 187 Reader Response .. 188 Product Identification 189TO 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.

9 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 via E-mail at or fax the Reader Response Form in the back of this data Sheet to (480) 792-4150. We welcome 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 .

10 The errata will specify the revision ofsilicon 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 products. 2007 Microchip Technology OVERVIEWThe PIC16F684 is covered by this data Sheet . It isavailable in 14-pin PDIP, SOIC, TSSOP and 16-pinQFN packages. Figure 1-1 shows a block diagram ofthe PIC16F684 device. Table 1-1 shows the 1-1: PIC16F684 BLOCK DIAGRAMF lashProgramMemory13 data Bus814 ProgramBusInstruction RegProgram CounterRAMFileRegistersDirect Addr7 RAM Addr9 Addr MUXI ndirectAddrFSR RegSTATUS RegMUXALUW RegInstructionDecode &ControlTimingGenerationOSC1/CLKINOSC2/C LKOUTPORTA88838-Level Stack128 Bytes2k X 14 (13-Bit)Power-upTimerOscillatorStart-up TimerPower-onResetWatchdogTimerMCLRVSSB rown-outReset Timer0 Timer1 DataEEPROM256 BytesEEDATAEEADDRRA0RA1RA2RA3RA4RA52 Analog ComparatorsAnalog-To-Digital ConverterAN0AN1AN2AN3C1IN-C1IN+C1 OUTT0 CKIINTT1 CKIC onfigurationInternalOscillatorVREFand ReferenceT1 GPORTCRC0RC1RC2RC3RC4RC5AN4AN5AN6AN7 VDD8 Timer2C2IN-C2IN+C2 OUTECCPB lockCCP1/P1AP1BP1CP1 DPIC16F684DS41202F-page 6 2007 Microchip Technology 1-1.


Related search queries