Microchip Technology PIC16F87X Manual

Microchip Technology PIC16F87X Manual

28/40-pin 8-bit cmos flash microcontrollers

Advertisement

28/40-Pin 8-Bit CMOS FLASH Microcontrollers
Devices Included in this Data Sheet:
• PIC16F873
• PIC16F876
• PIC16F874
• PIC16F877
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 input
DC - 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) and
Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) 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: 2.0V to 5.5V
• High Sink/Source Current: 25 mA
• Commercial, Industrial and Extended temperature
ranges
• Low-power consumption:
- < 0.6 mA typical @ 3V, 4 MHz
- 20 A typical @ 3V, 32 kHz
- < 1 A typical standby current
 1998-2013 Microchip Technology Inc.
PIC16F87X
Pin Diagram
PDIP
MCLR/V
1
PP
RA0/AN0
2
RA1/AN1
3
RA2/AN2/V
-
REF
4
RA3/AN3/V
+
REF
5
RA4/T0CKI
6
RA5/AN4/SS
7
RE0/RD/AN5
8
RE1/WR/AN6
9
RE2/CS/AN7
10
V
DD
11
V
SS
12
OSC1/CLKIN
13
OSC2/CLKOUT
14
RC0/T1OSO/T1CKI
15
RC1/T1OSI/CCP2
16
RC2/CCP1
17
RC3/SCK/SCL
18
RD0/PSP0
19
RD1/PSP1
20
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 period
register, prescaler and postscaler
• Two Capture, Compare, PWM modules
- Capture is 16-bit, max. resolution is 12.5 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

2
mode) and I
C
(Master/Slave)
• Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI) with 9-bit address
detection
• Parallel Slave Port (PSP) 8-bits wide, with
external RD, WR and CS controls (40/44-pin only)
• Brown-out detection circuitry for
Brown-out Reset (BOR)
40
RB7/PGD
39
RB6/PGC
38
RB5
37
RB4
RB3/PGM
36
RB2
35
34
RB1
33
RB0/INT
V
32
DD
31
V
SS
30
RD7/PSP7
29
RD6/PSP6
RD5/PSP5
28
RD4/PSP4
27
RC7/RX/DT
26
RC6/TX/CK
25
RC5/SDO
24
23
RC4/SDI/SDA
RD3/PSP3
22
21
RD2/PSP2
DS30292D-page 1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC16F87X and is the answer not in the manual?

Questions and answers

Summary of Contents for Microchip Technology PIC16F87X

  • Page 1 • Low-power consumption: • Brown-out detection circuitry for - < 0.6 mA typical @ 3V, 4 MHz Brown-out Reset (BOR) - 20 A typical @ 3V, 32 kHz - < 1 A typical standby current  1998-2013 Microchip Technology Inc. DS30292D-page 1...
  • Page 2: Table Of Contents

    RB3/PGM RA5/AN4/SS RE0/RD/AN5 RE1/WR/AN6 RB0/INT RE2/CS/AN7 PIC16F877 PIC16F874 RD7/PSP7 OSC1/CLKIN RD6/PSP6 OSC2/CLKOUT RD5/PSP5 RC0/T1OSO/T1CK1 RD4/PSP4 RC7/RX/DT RC7/RX/DT RC0/T1OSO/T1CKI RD4/PSP4 OSC2/CLKOUT RD5/PSP5 OSC1/CLKIN RD6/PSP6 RD7/PSP7 PIC16F877 PIC16F874 RE2/AN7/CS RE1/AN6/WR RB0/INT RE0/AN5/RD RA5/AN4/SS RA4/T0CKI RB3/PGM  1998-2013 Microchip Technology Inc. DS30292D-page 2...
  • Page 3 MSSP, USART MSSP, USART Parallel Communications — — 10-bit Analog-to-Digital Module 5 input channels 8 input channels 5 input channels 8 input channels Instruction Set 35 instructions 35 instructions 35 instructions 35 instructions  1998-2013 Microchip Technology Inc. DS30292D-page 3...
  • Page 4: Ra4/T0Cki

    Generation Brown-out OSC1/CLKIN OSC2/CLKOUT Reset In-Circuit Debugger Low Voltage Programming MCLR Timer0 Timer1 Timer2 10-bit A/D Synchronous Data EEPROM USART CCP1,2 Serial Port Note 1: Higher order bits are from the STATUS register.  1998-2013 Microchip Technology Inc. DS30292D-page 5...
  • Page 5: Ra5/An4/Ss

    Programming Parallel Slave Port RD6/PSP6 RD7/PSP7 PORTE RE0/AN5/RD MCLR RE1/AN6/WR RE2/AN7/CS Timer0 Timer1 Timer2 10-bit A/D Synchronous Data EEPROM USART CCP1,2 Serial Port Note 1: Higher order bits are from the STATUS register.  1998-2013 Microchip Technology Inc. DS30292D-page 6...
  • Page 6: Osc1/Clkin

    2: This buffer is a Schmitt Trigger input when used in Serial Programming mode. 3: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.  1998-2013 Microchip Technology Inc. DS30292D-page 7...
  • Page 7: Osc2/Clkout

    3: This buffer is a Schmitt Trigger input when configured as general purpose I/O and a TTL input when used in the Parallel Slave Port mode (for interfacing to a microprocessor bus). 4: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.  1998-2013 Microchip Technology Inc. DS30292D-page 8...
  • Page 8: Rc0/T1Oso/T1Cki

    3: This buffer is a Schmitt Trigger input when configured as general purpose I/O and a TTL input when used in the Parallel Slave Port mode (for interfacing to a microprocessor bus). 4: This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.  1998-2013 Microchip Technology Inc. DS30292D-page 9...

Table of Contents