Example: air traffic controller

PIC16F87X - Microchip Technology

1998-2013 Microchip Technology 1 PIC16F87 XDevices Included in this Data Sheet:Microcontroller Core Features: High performance RISC CPU Only 35 single word instructions to learn All single cycle instructions except for program branches which are two cycle Operating speed: DC - 20 MHz clock inputDC - 200 ns instruction cycle Up to 8K x 14 words of FLASH Program Memory, Up to 368 x 8 bytes of Data Memory (RAM)Up to 256 x 8 bytes of EEPROM Data Memory Pinout compatible to the PIC16C73B/74B/76/77 Interrupt capability (up to 14 sources) Eight level deep hardware stack Direct, indirect and relative addressing modes Power-on Reset (POR) Power-up Timer (PWRT) andOscillator Start-up Timer (OST) Watchdog Timer (WDT) with its own on-chip RC oscillator

1998-2013 Microchip Technology Inc. DS30292D-page 1 PIC16F87X Devices Included in this Data Sheet: Microcontroller Core Features: • High performance RISC CPU

Tags:

  Pic16f87x

Information

Domain:

Source:

Link to this page:

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

Other abuse

Advertisement

Transcription of PIC16F87X - Microchip Technology

1 1998-2013 Microchip Technology 1 PIC16F87 XDevices Included in this Data Sheet:Microcontroller Core Features: High performance RISC CPU Only 35 single word instructions to learn All single cycle instructions except for program branches which are two cycle Operating speed: DC - 20 MHz clock inputDC - 200 ns instruction cycle Up to 8K x 14 words of FLASH Program Memory, Up to 368 x 8 bytes of Data Memory (RAM)Up to 256 x 8 bytes of EEPROM Data Memory Pinout compatible to the PIC16C73B/74B/76/77 Interrupt capability (up to 14 sources) Eight level deep hardware stack Direct, indirect and relative addressing modes Power-on Reset (POR) Power-up Timer (PWRT) andOscillator Start-up Timer (OST) Watchdog Timer (WDT)

2 With its own on-chip RC oscillator for reliable operation Programmable code protection Power saving SLEEP mode Selectable oscillator options Low power, high speed CMOS FLASH/EEPROM Technology Fully static design In-Circuit Serial Programming (ICSP) via two pins Single 5V In-Circuit Serial Programming capability In-Circuit Debugging via two pins Processor read/write access to program memory Wide operating voltage range: to High Sink/Source Current: 25 mA Commercial, Industrial and Extended temperature ranges Low-power consumption: - < mA typical @ 3V, 4 MHz-20 A typical @ 3V, 32 kHz-< 1 A typical standby currentPin Diagram Peripheral Features: Timer0: 8-bit timer/counter with 8-bit prescaler Timer1: 16-bit timer/counter with prescaler,can be incremented during SLEEP via external crystal/clock Timer2: 8-bit timer/counter with 8-bit periodregister, prescaler and postscaler Two Capture, Compare, PWM modules- Capture is 16-bit, max.

3 Resolution is ns- Compare is 16-bit, max. resolution is 200 ns- PWM max. resolution is 10-bit 10-bit multi-channel Analog-to-Digital converter Synchronous Serial Port (SSP) with SPI (Master mode) and I2C (Master/Slave) Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with 9-bit address detection Parallel Slave Port (PSP) 8-bits wide, withexternal RD, WR and CS controls (40/44-pin only) Brown-out detection circuitry forBrown-out Reset (BOR) PIC16F873 PIC16F874 PIC16F876 PIC16F877RB7/PGDRB6/PGCRB5RB4RB3/PGMRB2R B1RB0/INTVDDVSSRD7/PSP7RD6/PSP6RD5/PSP5R D4/PSP4RC7/RX/DTRC6/TX/CKRC5/SDORC4/SDI/ SDARD3/PSP3RD2/PSP2 MCLR/VPPRA0/AN0RA1/AN1RA2/AN2/VREF-RA3/A N3/VREF+RA4/T0 CKIRA5/AN4/SSRE0/RD/AN5RE1/WR/AN6RE2/CS/ AN7 VDDVSSOSC1/CLKINOSC2/CLKOUTRC0/T1 OSO/T1 CKIRC1/T1 OSI/CCP2RC2/CCP1RC3/SCK/SCLRD0/PSP0RD1/P SP11234567891011121314151617181920403938 3736353433323130292827262524232221 PIC16F877/874 PDIP28/40-Pin 8-Bit CMOS FLASH MicrocontrollersPIC16F87

4 XDS30292D-page 2 1998-2013 Microchip Technology DiagramsPIC16F876/8731011234561879121314 1516171819202324252627282221 MCLR/VPPRA0/AN0RA1/AN1RA2/AN2/VREF-RA3/A N3/VREF+RA4/T0 CKIRA5/AN4/SSVSSOSC1/CLKINOSC2/CLKOUTRC0 /T1 OSO/T1 CKIRC1/T1 OSI/CCP2RC2/CCP1RC3/SCK/SCLRB7/PGDRB6/PG CRB5RB4RB3/PGMRB2RB1RB0/INTVDDVSSRC7/RX/ DTRC6/TX/CKRC5/SDORC4/SDI/SDA10111213141 5161718192021222324252644876543212728293 0313233343536373839404142439 PIC16F877RA4/T0 CKIRA5/AN4/SSRE0/RD/AN5 OSC1/CLKINOSC2/CLKOUTRC0/T1 OSO/T1CK1 NCRE1/WR/AN6RE2/CS/AN7 VDDVSSRB3/PGMRB2RB1RB0/INTVDDVSSRD7/PSP7 RD6/PSP6RD5/PSP5RD4/PSP4RC7/RX/DTRA3/AN3 /VREF+RA2/AN2/VREF-RA1/AN1RA0/AN0 MCLR/VPPNCRB7/PGDRB6/PGCRB5RB4 NCNCRC6/TX/CKRC5/SDORC4/SDI/SDARD3/PSP3R D2/PSP2RD1/PSP1RD0/PSP0RC3/SCK/SCLRC2/CC P1RC1/T1 OSI/CCP210112345611819202122121314153887 4443424140391617293031323323242526272836 34359 PIC16F87737RA3/AN3/VREF+RA2/AN2/VREF-RA1 /AN1RA0/AN0 MCLR/VPPNCRB7/PGDRB6/PGCRB5RB4 NCRC6/TX/CKRC5/SDORC4/SDI/SDARD3/PSP3RD2 /PSP2RD1/PSP1RD0/PSP0RC3/SCK/SCLRC2/CCP1 RC1/T1

5 OSI/CCP2 NCNCRC0/T1 OSO/T1 CKIOSC2/CLKOUTOSC1/CLKINVSSVDDRE2/AN7/CS RE1/AN6/WRRE0/AN5/RDRA5/AN4/SSRA4/T0 CKIRC7/RX/DTRD4/PSP4RD5/PSP5RD6/PSP6RD7/ PSP7 VSSVDDRB0/INTRB1RB2RB3/PGMPLCCQFPPDIP, SOICPIC16F874 PIC16F874 1998-2013 Microchip Technology 3 PIC16F87 XKey FeaturesPIC MCU Mid-Range Reference Manual (DS33023)PIC16F873 PIC16F874 PIC16F876 PIC16F877 Operating FrequencyDC - 20 MHzDC - 20 MHzDC - 20 MHzDC - 20 MHzRESETS (and Delays)POR, BOR (PWRT, OST)POR, BOR (PWRT, OST)POR, BOR (PWRT, OST)POR, BOR (PWRT, OST)FLASH Program Memory (14-bit words)4K4K8K8 KData Memory (bytes)

6 192192368368 EEPROM Data Memory128128256256 Interrupts13141314I/O PortsPorts A,B,CPorts A,B,C,D,EPorts A,B,CPorts A,B,C,D,ETimers3333 Capture/Compare/PWM Modules2222 Serial CommunicationsMSSP, USARTMSSP, USARTMSSP, USARTMSSP, USARTP arallel Communications PSP PSP10-bit Analog-to-Digital Module5 input channels 8 input channels 5 input channels 8 input channelsInstruction Set35 instructions35 instructions35 instructions35 instructionsPIC16F87 XDS30292D-page 4 1998-2013 Microchip Technology of Overview.

7 Ports .. EEPROM and FLASH Program Module .. Module .. Module .. Modules .. Synchronous Serial Port (MSSP) Module .. Addressable Universal Synchronous Asynchronous Receiver Transmitter (USART) .. Analog-to-Digital Converter (A/D) Special Features of the Instruction Set Development Support .. Electrical DC and AC Characteristics Graphs and Packaging Information .. 189 Appendix A: Revision History .. 197 Appendix B: Device Differences .. 197 Appendix C: Conversion Considerations.

8 198 Index .. 199On-Line Support .. 207 Reader Response .. 208 PIC16F87X Product Identification System .. 209TO 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.

9 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) The Microchip Corporate Literature Center.

10 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. 1998-2013 Microchip Technology OVERVIEWThis document contains device specific information may be found in the PIC MCUMid-Range Reference Manual (DS33023), which maybe obtained from your local Microchip Sales Represen-tative or downloaded from the Microchip website.


Related search queries