Example: bankruptcy

PIC16F84A Data Sheet - Microchip Technology

2001 Microchip Technology Inc. DS35007 BPIC16F84 AData Sheet18-pin Enhanced FLASH/EEPROM8-bit MicrocontrollerMDS35007B - page ii 2001 Microchip Technology contained in this publication regarding deviceapplications and the like is intended through suggestion onlyand may be superseded by updates. It is your responsibility toensure that your application meets with your representation or warranty is given and no liability isassumed by Microchip Technology Incorporated with respectto the accuracy or use of such information, or infringement ofpatents or other intellectual property rights arising from suchuse or otherwise. Use of Microchip s products as critical com-ponents in life support systems is not authorized except withexpress written approval by Microchip . No licenses are con-veyed, implicitly or otherwise, under any intellectual Microchip name and logo, the Microchip logo, PIC, PICmicro,PICMASTER, PICSTART, PRO MATE, KEELOQ, SEEVAL,MPLAB and The Embedded Control Solutions Company are reg-istered trademarks of Microchip Technology Incorporated in and other Endurance, ICSP, In-Circuit Serial Programming, Filter-Lab, MXDEV, microID, FlexROM, fuzzyLAB, MPASM,MPLINK, MPLIB, PICC, PICDEM, , ICEPIC,Migratable Memory, FanSense, EC

PIC16F84A DS35007B-page 2 2001 Microchip Technology Inc. Table of Contents 1.0 Device Overview ..... 3

Tags:

  Pic16f84a

Information

Domain:

Source:

Link to this page:

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

Other abuse

Transcription of PIC16F84A Data Sheet - Microchip Technology

1 2001 Microchip Technology Inc. DS35007 BPIC16F84 AData Sheet18-pin Enhanced FLASH/EEPROM8-bit MicrocontrollerMDS35007B - page ii 2001 Microchip Technology contained in this publication regarding deviceapplications and the like is intended through suggestion onlyand may be superseded by updates. It is your responsibility toensure that your application meets with your representation or warranty is given and no liability isassumed by Microchip Technology Incorporated with respectto the accuracy or use of such information, or infringement ofpatents or other intellectual property rights arising from suchuse or otherwise. Use of Microchip s products as critical com-ponents in life support systems is not authorized except withexpress written approval by Microchip . No licenses are con-veyed, implicitly or otherwise, under any intellectual Microchip name and logo, the Microchip logo, PIC, PICmicro,PICMASTER, PICSTART, PRO MATE, KEELOQ, SEEVAL,MPLAB and The Embedded Control Solutions Company are reg-istered trademarks of Microchip Technology Incorporated in and other Endurance, ICSP, In-Circuit Serial Programming, Filter-Lab, MXDEV, microID, FlexROM, fuzzyLAB, MPASM,MPLINK, MPLIB, PICC, PICDEM, , ICEPIC,Migratable Memory, FanSense, ECONOMONITOR, SelectMode and microPort are trademarks of Microchip TechnologyIncorporated in the Quick Term Programming (SQTP) is a service markof Microchip Technology Incorporated in the other trademarks mentioned herein are property of theirrespective companies.

2 2001, Microchip Technology Incorporated, Printed in , All Rights Reserved. Printed on recycled received QS-9000 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona in July 1999. The Company s quality system processes and procedures are QS-9000 compliant for its PICmicro 8-bit MCUs, KEELOQ code hopping devices, Serial EEPROMs and microperipheral products. In addition, Microchip s quality system for the design and manufacture of development systems is ISO 9001 the following details of the code protection feature on PICmicro MCUs. The PICmicro family meets the specifications contained in the Microchip Data Sheet . Microchip believes that its family of PICmicro microcontrollers is one of the most secure products of its kind on the market today, when used in the intended manner and under normal conditions.

3 There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowl-edge, require using the PICmicro microcontroller in a manner outside the operating specifications contained in the data Sheet . The person doing so may be engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. 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 our you have any further questions about this matter, please contact the local sales office nearest to you. 2001 Microchip Technology 1 MPIC16F84 AHigh Performance RISC CPU Features: Only 35 single word instructions to learn All instructions single-cycle except for program branches which are two-cycle Operating speed: DC - 20 MHz clock inputDC - 200 ns instruction cycle 1024 words of program memory 68 bytes of Data RAM 64 bytes of Data EEPROM 14-bit wide instruction words 8-bit wide data bytes 15 Special Function Hardware registers Eight-level deep hardware stack Direct, indirect and relative addressing modes Four interrupt sources: - External RB0/INT pin- TMR0 timer overflow - PORTB<7:4> interrupt-on-change- Data EEPROM write completePeripheral Features: 13 I/O pins with individual direction control High current sink/source for direct LED drive- 25 mA sink max.

4 Per pin- 25 mA source max. per pin TMR0: 8-bit timer/counter with 8-bit programmable prescalerSpecial Microcontroller Features: 10,000 erase/write cycles Enhanced FLASH Program memory typical 10,000,000 typical erase/write cycles EEPROM Data memory typical EEPROM Data Retention > 40 years In-Circuit Serial Programming (ICSP ) - via two pins Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST) Watchdog Timer (WDT) with its own On-Chip RC Oscillator for reliable operation Code protection Power saving SLEEP mode Selectable oscillator optionsPin Diagrams CMOS Enhanced FLASH/EEPROM Technology : Low power, high speed Technology Fully static design Wide operating voltage range:- Commercial: to Industrial: to Low power consumption:- < 2 mA typical @ 5V, 4 MHz-15 A typical @ 2V, 32 kHz- < A typical standby current @ 2V RA1RA0 OSC1/CLKINOSC2/CLKOUTVDDRB7RB6RB5RB4RA2R A3RA4/T0 CKIMCLRVSSRB0/INTRB1RB2RB3 123456789181716151413121110 PDIP, SOICPIC16F84 ARA1RA0 OSC1/CLKINOSC2/CLKOUTVDDRB7RB6RB5RB4RA2R A3RA4/T0 CKIMCLRVSSRB0/INTRB1RB2RB3 123456789201918171615141312 SSOPPIC16F84A1011 VSSVDD18-pin Enhanced FLASH/EEPROM 8-Bit MicrocontrollerPIC16F84 ADS35007B-page 2 2001 Microchip Technology of Overview.

5 Organization .. EEPROM Memory .. Ports .. Module .. Features of the CPU .. Set Summary .. Characteristics .. DC/AC Characteristic Graphs .. Packaging 71 Appendix A: Revision History .. 75 Appendix B: Conversion 76 Appendix C: Migration from Baseline to Mid-Range Devices .. 78 Index .. 79On-Line 83 Reader Response .. 84 PIC16F84A Product Identification System .. 85TO 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) 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).

6 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) The Microchip Corporate Literature Center; FAX: (480) 792-7277 When contacting a sales office or the literature center, please specify which device, revision of silicon and data Sheet (include liter-ature number) you are Notification SystemRegister on our web site at to receive the most current information on all of our products. 2001 Microchip Technology OVERVIEWThis document contains device specific information forthe operation of the PIC16F84A device.

7 Additionalinformation may be found in the PICmicro Mid-Range Reference Manual, (DS33023), which may bedownloaded from the Microchip website. The Refer-ence Manual should be considered a complementarydocument to this data Sheet , and is highly recom-mended reading for a better understanding of thedevice architecture and operation of the PIC16F84A belongs to the mid-range family of thePICmicro microcontroller devices. A block diagram ofthe device is shown in Figure program memory contains 1K words, which trans-lates to 1024 instructions, since each 14-bit programmemory word is the same width as each device instruc-tion. The data memory (RAM) contains 68 bytes. DataEEPROM is 64 are also 13 I/O pins that are user-configured ona pin-to-pin basis. Some pins are multiplexed with otherdevice functions. These functions include: External interrupt Change on PORTB interrupt Timer0 clock inputTable 1-1 details the pinout of the device with descrip-tions and details for each 1-1: PIC16F84A BLOCK DIAGRAM FLASHP rogramMemoryProgram Counter13 ProgramBusInstruction Register8 Level Stack(13-bit)Direct Addr 8 InstructionDecode &ControlTimingGenerationOSC2/CLKOUTOSC1/ CLKINP ower-upTimerOscillatorStart-up TimerPower-onResetWatchdogTimerMCLRVDD, VSSW regALUMUXI/O PortsTMR0 STATUS regFSR regIndirectAddrRA3:RA0RB7:RB1RA4/T0 CKIEEADREEPROMData Memory64 x 8 EEDATAAddr MuxRAM AddrRAMFile RegistersEEPROM Data MemoryData Bus577RB0/INT14881K x 1468 x 8 PIC16F84 ADS35007B-page 4 2001 Microchip Technology 1-1: PIC16F84A PINOUT DESCRIPTION Pin (3)Oscillator crystal input/external clock source Oscillator crystal output.

8 Connects to crystal or resonator in Crystal Oscillator mode. In RC mode, OSC2 pin outputs CLKOUT, which has 1/4 the frequency of OSC1 and denotes the instruction cycle Clear (Reset) input/programming voltage input. This pin is an active low RESET to the device. PORTA is a bi-directional I/O also be selected to be the clock input to the TMR0 timer/counter. Output is open drain is a bi-directional I/O port. PORTB can be software programmed for internal weak pull-up on all inputs. RB0/INT667I/OTTL/ST(1)RB0/INT can also be selected as an external interrupt (2)Interrupt-on-change pin. Serial programming (2)Interrupt-on-change pin. Serial programming ,6P Ground reference for logic and I/O ,16P Positive supply for logic and I/O : I= inputO = OutputI/O = Input/OutputP = Power = Not usedTTL = TTL inputST = Schmitt Trigger inputNote 1:This buffer is a Schmitt Trigger input when configured as the external :This buffer is a Schmitt Trigger input when used in Serial Programming :This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.

9 2001 Microchip Technology ORGANIZATIONT here are two memory blocks in the are the program memory and the data block has its own bus, so that access to eachblock can occur during the same oscillator cycle. The data memory can further be broken down into thegeneral purpose RAM and the Special FunctionRegisters (SFRs). The operation of the SFRs thatcontrol the core are described here. The SFRs usedto control the peripheral modules are described in thesection discussing each individual peripheral data memory area also contains the dataEEPROM memory. This memory is not directly mappedinto the data memory, but is indirectly mapped. That is,an indirect address pointer specifies the address of thedata EEPROM memory to read/write. The 64 bytes ofdata EEPROM memory have the address range0h-3Fh. More details on the EEPROM memory can befound in Section information on device memory may be foundin the PICmicro Mid-Range Reference Manual,(DS33023).

10 Memory OrganizationThe PIC16 FXX has a 13-bit program counter capableof addressing an 8K x 14 program memory space. Forthe PIC16F84A , the first 1K x 14 (0000h-03 FFh) arephysically implemented (Figure 2-1). Accessing a loca-tion above the physically implemented address willcause a wraparound. For example, for locations 20h,420h, 820h, C20h, 1020h, 1420h, 1820h, and 1C20h,the instruction will be the RESET vector is at 0000h and the interrupt vectoris at 2-1:PROGRAM MEMORY MAP AND STACK - PIC16F84A PC<12:0>Stack Level 1 Stack Level 8 RESET VectorPeripheral Interrupt Vector User MemorySpaceCALL, RETURNRETFIE, RETLW130000h0004h1 FFFh3 FFhPIC16F84 ADS35007B-page 6 2001 Microchip Technology Memory OrganizationThe data memory is partitioned into two areas. The firstis the Special Function Registers (SFR) area, while thesecond is the General Purpose Registers (GPR) SFRs control the operation of the of data memory are banked.


Related search queries