Example: air traffic controller

PIC16F882/883/884/886/887 Data Sheet

2007 Microchip Technology Sheet28/40/44-Pin, Enhanced Flash-Based 8-BitCMOS Microcontrollers withnanoWatt TechnologyDS41291D-page iiPreliminary 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.

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. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.

Tags:

  Company, Sheet, Data, Data sheet, 9100, Iso 9001

Information

Domain:

Source:

Link to this page:

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

Other abuse

Transcription of PIC16F882/883/884/886/887 Data Sheet

1 2007 Microchip Technology Sheet28/40/44-Pin, Enhanced Flash-Based 8-BitCMOS Microcontrollers withnanoWatt TechnologyDS41291D-page iiPreliminary 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.

2 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. 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.

3 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. 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.

4 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. 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.

5 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. In addition, Microchip s quality system for the design and manufacture of development systems is iso 9001 :2000 certified.

6 2007 Microchip Technology 1 PIC16F882/883/884/886/887 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%- Software selectable frequency range of 8 MHz to 31 kHz- Software tunable- Two-Speed Start-up mode- Crystal fail detect for critical applications- Clock mode switching during operation for power savings 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.

7 - 100,000 write Flash endurance- 1,000,000 write EEPROM endurance- Flash/ data EEPROM retention: > 40 years Program memory Read/Write during run time In-Circuit Debugger (on board)Low-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: 24/35 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)- Fixed voltage reference ( )- Comparator inputs and outputs externally accessible- SR Latch mode- External Timer1 Gate (count enable) A/D Converter:- 10-bit resolution and 11/14 channels Timer0: 8-bit timer/counter with 8-bit programmable prescaler Enhanced Timer1:- 16-bit timer/counter with prescaler- External Gate Input mode- Dedicated low-power 32 kHz oscillator Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler Enhanced Capture, Compare, PWM+ module:- 16-bit Capture, max.

8 Resolution ns- Compare, max. resolution 200 ns- 10-bit PWM with 1, 2 or 4 output channels, programmable dead time , max. frequency 20 kHz- PWM output steering control Capture, Compare, PWM module:- 16-bit Capture, max. resolution ns- 16-bit Compare, max. resolution 200 ns- 10-bit PWM, max. frequency 20 kHz Enhanced USART module:- Supports RS-485, RS-232, and LIN Auto-Baud Detect- Auto-Wake-Up on Start bit In-Circuit Serial ProgrammingTM (ICSPTM) via two pins Master Synchronous Serial Port (MSSP) module supporting 3-wire SPI (all 4 modes) and I2C Master and Slave Modes with I2C address mask28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt TechnologyPIC16F882/883/884/886/887DS412 91D-page 2 Preliminary 2007 Microchip Technology MemoryData MemoryI/O10-bit A/D (ch)ECCP/CCPEUSARTMSSP ComparatorsTimers8/16-bitFlash(words) SRAM (bytes)EEPROM (bytes)

9 PIC16F882204812812828111/11122/1 PIC16F883409625625624111/11122/1 PIC16F884409625625635141/11122/1 PIC16F886819236825624111/11122/1 PIC16F887819236825635141/11122/1 2007 Microchip Technology 3 PIC16F882/883/884/886/887 Pin Diagrams PIC16F882/883/886, 28-Pin PDIP, SOIC, SSOP TABLE 1:PIC16F882/883/886 28-PIN SUMMARY (PDIP, SOIC, SSOP)I/OPinAnalogComparatorsTimersECCPEU SARTMSSPI nterrupt Pull-upBasicRA02AN0/ULPWUC12IN0- RA13AN1C12IN1- RA24AN2C2IN+ VREF-/CVREFRA35AN3C1IN+ VREF+RA46 C1 OUTT0 CKI RA57AN4C2 OUT SS RA610 OSC2/CLKOUTRA79 OSC1/CLKINRB021AN12 IOC/INTY RB122AN10C12IN3- P1C IOCY RB223AN8 P1B IOCY RB324AN9C12IN2- IOCYPGMRB425AN11 P1D IOCY RB526AN13 T1G IOCY RB627 IOCYICSPCLKRB728 IOCYICSPDATRC011 T1 OSO/T1 CKI RC112 T1 OSICCP2 RC213 CCP1/P1A RC314 SCK/SCL RC415 SDI/SDA RC516 SDO RC617 TX/CK RC718 RX/DT RE31 Y(1)MCLR/VPP 20 VDD 8 VSS 19 VSSNote 1.

10 Pull-up activated only with external MCLR +RA3/AN3/VREF+/C1IN+RA4/T0 CKI/C1 OUTRA5/AN4/SS/C2 OUTVSSRA7/OSC1/CLKINRA6/OSC2/CLKOUTRC0/T 1 OSO/T1 CKIRC1/T1 OSI/CCP2RC2/P1A/CCP1RC3/SCK/SCLRB7/ICSPD ATRB6/ICSPCLKRB5/AN13/T1 GRB4/AN11/P1 DRB3/AN9/PGM/C12IN2-RB2/AN8/P1 BRB1/AN10/P1C/C12IN3-RB0/AN12/INTVDDVSSR C7/RX/DTRC6/TX/CKRC5/SDORC4/SDI/SDA28-pi n PDIP, SOIC, SSOPPIC16F882/883/884/886/887DS41291D-pa ge 4 Preliminary 2007 Microchip Technology Diagrams PIC16F882/883/886, 28-Pin QFN 1627136541521192017182228262723242514810 9131211 PIC16F882/883/886RA1/AN1/C12IN1-RA0/AN0/ ULPWU/C12IN0-RE3/MCLR/VPPRB7/ICSPDATRB6/ ICSPCLKRB5/AN13/T1 GRB4/AN11/P1 DRC0/T1 OSO/T1 CKIRC1/T1 OSI/CCP2RC2/P1A/CCP1RC3/SCK/SCLRC4/SDI/S DARC5/SDORC6/TX/CKRA2/AN2/VREF-/CVREF/C2 IN+RA3/AN3/VREF+/C1IN+RA4/T0 CKI/C1 OUTRA5/AN4/SS/C2 OUTVSSRA7/OSC1/CLKINRA6/OSC2/CLKOUTRB3/A N9/PGM/C12IN2-RB2/AN8/P1 BRB1/AN10/P1C/C12IN3-RB0/AN12/INTVDDVSSR C7/RX/DT28-pin QFN 2007 Microchip Technology 5 PIC16F882/883/884/886/887 TABLE 2.