PIC16F87X
28/40-pin 8-Bit CMOS FLASH Microcontrollers
Devices Included in this Data Sheet:
鈥?PIC16F873
鈥?PIC16F874
鈥?PIC16F876
鈥?PIC16F877
Pin Diagram
PDIP
MCLR/V
PP
/THV
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-
RA3/AN3/V
REF
+
RA4/T0CKI
RA5/AN4/SS
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
V
DD
V
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
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 and Industrial temperature ranges
鈥?Low-power consumption:
- < 2 mA typical @ 5V, 4 MHz
- 20
碌A
typical @ 3V, 32 kHz
- < 1
碌A
typical standby current
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
鈩?/div>
(Master
Mode) and I
2
C
鈩?/div>
(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)
漏
1999 Microchip Technology Inc.
PIC16F877/874
DS30292B-page 1
next