PIC16F877A-I/P Microchip Technology, PIC16F877A-I/P Datasheet

IC MCU FLASH 8KX14 EE 40DIP

PIC16F877A-I/P

Manufacturer Part Number
PIC16F877A-I/P
Description
IC MCU FLASH 8KX14 EE 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F877A-I/P

Program Memory Type
FLASH
Program Memory Size
14KB (8K x 14)
Package / Case
40-DIP (0.600", 15.24mm)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
368 B
Interface Type
CCP/I2C/MSSP/SPI/USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
33
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163022, DV164120
Minimum Operating Temperature
- 40 C
On-chip Adc
8-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
444-1001 - DEMO BOARD FOR PICMICRO MCU
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
PIC16F877AI/P

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F877A-I/P
Manufacturer:
OMRON
Quantity:
100
Part Number:
PIC16F877A-I/P
Manufacturer:
MIC
Quantity:
5 380
Part Number:
PIC16F877A-I/P
Manufacturer:
MIC
Quantity:
5 380
Part Number:
PIC16F877A-I/P
Manufacturer:
INTERSIL
Quantity:
25
Part Number:
PIC16F877A-I/P
Manufacturer:
MICROCHIP
Quantity:
20 000
Part Number:
PIC16F877A-I/P
0
Company:
Part Number:
PIC16F877A-I/P
Quantity:
5 000
Part Number:
PIC16F877A-I/PT
Manufacturer:
MICROCHIP
Quantity:
9 100
Part Number:
PIC16F877A-I/PT
Manufacturer:
AVAGO
Quantity:
84
Part Number:
PIC16F877A-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F877A-I/PT
Quantity:
1 639
Part Number:
PIC16F877A-I/PT
0
Company:
Part Number:
PIC16F877A-I/PT
Quantity:
3 000
This document includes programming
specifications for the following devices:
1.0
The PIC16F87XA is programmed using a serial
method. The Serial mode will allow the PIC16F87XA to
be programmed while in the user’s system. This allows
for increased design flexibility. This programming spec-
ification applies to PIC16F87XA devices in all
packages.
1.1
The programming algorithm used depends on the
operating voltage (V
whether internal or external timing is desired.
Both algorithms can be used with the two available pro-
gramming entry methods. The first method follows the
normal Microchip Programming mode entry of holding
pins RB6 and RB7 low, while raising MCLR pin from V
to V
Voltage ICSP
and uses the I/O pin RB3 to enter Programming mode.
When RB3 is driven to V
PIC16F87XA device enters Programming mode.
1.2
The Programming mode for the PIC16F87XA allows
programming of user program memory, data memory,
special locations used for ID, and the configuration
word.
 2010 Microchip Technology Inc.
• PIC16F873A
• PIC16F874A
Algorithm
IHH
#
1
2
(13V ± 0.5V). The second method, called Low
PROGRAMMING THE
PIC16F87XA
Programming Algorithm
Requirements
Programming Mode
2.0V  V
4.5V  V
TM
or LVP for short, applies V
V
Flash Memory Programming Specification
DD
DD
DD
DD
Range
) of the PIC16F87XA device, or
< 5.5V
 5.5V
• PIC16F876A
• PIC16F877A
DD
Internal; 4 ms/op
External; 1 ms/op
from ground, the
Timing
DD
Advance Information
to MCLR
IL
Pin Diagrams
RA2/AN2/V
PIC16F87XA
RA2/AN2/V
PDIP, SOIC
RA5/AN4/SS/C2OUT
RA5/AN4/SS/C2OUT
RA4/T0CKI/C1OUT
RC0/T1OSO/T1CKI
RA4/T0CKI/C1OUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC1/T1OSI/CCP2
RA3/AN3/V
RA3/AN3/V
RC3/SCK/SCL
RC3/SCK/SCL
RE1/WR/AN6
RE0/RD/AN5
RE2/CS/AN7
OSC2/CLKO
OSC2/CLKO
OSC1/CLKI
REF
REF
OSC1/CLKI
RC2/CCP1
MCLR/V
RD0/PSP0
RD1/PSP1
RC2/CCP1
MCLR/V
RA0/AN0
RA1/AN1
RA0/AN0
RA1/AN1
-/CV
-/CV
REF
REF
V
V
REF
Vss
REF
DD
PP
SS
PP
+
+
10
12
13
14
11
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
28
27
26
25
24
23
22
21
20
19
18
17
16
15
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
DS39589C-page 1
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
V
V
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
V
V
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
DD
SS
DD
SS

Related parts for PIC16F877A-I/P

PIC16F877A-I/P Summary of contents

Page 1

... Flash Memory Programming Specification This document includes programming specifications for the following devices: • PIC16F873A • PIC16F876A • PIC16F874A • PIC16F877A 1.0 PROGRAMMING THE PIC16F87XA The PIC16F87XA is programmed using a serial method. The Serial mode will allow the PIC16F87XA to be programmed while in the user’s system. This allows for increased design flexibility ...

Page 2

... MCLR does not draw any significant current. DS39589C-page 2 During Programming Pin Type I Low voltage ICSP™ programming input if LVP configuration bit equals ‘1’ I Clock input I/O Data input/output P* Program Mode Select P Power Supply P Ground Advance Information Pin Description  2010 Microchip Technology Inc. ...

Page 3

... Device PIC16F873A PIC16F874A PIC16F876A PIC16F877A The contents of data EEPROM memory have the capa- bility to be embedded into the HEX file. The programmer should be able to read data EEPROM information from a HEX file and conversely (as an option), write data EEPROM contents to a HEX file, ...

Page 4

... Implemented Implemented Implemented Implemented Implemented Implemented Implemented Reserved Implemented Implemented Implemented Reserved Reserved Reserved Reserved Advance Information 000h 3FFh 400h 7FFh 800h BFFh C00h FFFh 1000h 13FFh 1400h 17FFh 1800h 1BFFh 1C00h 1FFFh 2008h 2100h 3FFFh  2010 Microchip Technology Inc. ...

Page 5

... Issue an ‘End Programming’ command. 5. Increment to the next address. 6. Repeat this alternative sequence as required to write program and configuration memory.  2010 Microchip Technology Inc. The address and program counter are reset to 0000h by resetting the device (taking MCLR below V re-entering Programming mode. Program and configu ration memory may then be read or verified using the ‘ ...

Page 6

... The configuration word will not be written unless the address is specifically pointing to 2007h. A timing diagram for this command is shown in Figure 6-7. Advance Information Begin Erase/Program Cycle range of the device. DD range. DD Begin Programming Only range. DD  2010 Microchip Technology Inc. ...

Page 7

... Read Data from Program Memory Increment Address Begin Erase/Programming Cycle Begin Programming Only Cycle Bulk Erase Program Memory Bulk Erase Data Memory Chip Erase Load Data for Data Memory Read Data from Data Memory End Programming  2010 Microchip Technology Inc. Mapping (MSB … LSB ...

Page 8

... Chip Erase command. This allows the user to erase all program and configu- ration content, including the code-protect bits, without compromising the user ID bits (2000h through 2004h), or any pass codes stored in the test row. Advance Information range. DD  2010 Microchip Technology Inc. ...

Page 9

... ALGORITHM 1 FLOWCHART – PROGRAM MEMORY (2.0V  V FIGURE 2-2: Increment Address Command Increment Address Command Report Verify Error  2010 Microchip Technology Inc. A timing diagram for this command is shown in Figure 6-10. Note: The Chip Erase operation must take place at the 4.5V to 5.5V V Start Set ...

Page 10

... DDP Load Data Command No Eight Loads Done? Yes Begin Programming Only Command Wait tprog1 (1 ms) End Programming Command Yes No All Locations Done? Report Verify Error Advance Information  5.5V) DD Verify all Locations No Data Correct? Yes End  2010 Microchip Technology Inc. ...

Page 11

... Yes Increment Address Command Increment Address Command Increment Address Command Report Program No Configuration Data Correct? Word Error Yes End  2010 Microchip Technology Inc. Load Configuration Data Read Data Increment Command Address Command No Data Correct? Yes Address = 2003h? Yes No Increment Address ...

Page 12

... PROGRAM FOUR LOCATIONS Start Load Data Command No Four Loads Done? Yes Begin Program Only Command Wait tprog1 (1 ms) End Programming Command End PROGRAM CONFIGURATION WORD Start Load Data Command Begin Erase/Program Command Wait tprog2 (8 ms) End  2010 Microchip Technology Inc. ...

Page 13

... XT oscillator oscillator Legend Readable bit W = Writable bit -n = Default value 1 = Bit is erased  2010 Microchip Technology Inc. TABLE 3-1: Device PIC16F873A PIC16F874A PIC16F876A PIC16F877A R/P-1 R/P-1 R/P-1 U-1 U-1 CPD LVP BOREN — — Unimplemented bit, read as ‘1’ Bit is programmed Advance Information ...

Page 14

... An option to not include this information may be provided. Specifically for the PIC16F87XA, the EEPROM data memory should also be embedded in the HEX file (see Section 2.2). Microchip Technology Inc. feels strongly that this feature is important for the benefit of the end customer. DS39589C-page 14 Advance Information ...

Page 15

... SUM_ID PIC16F874A OFF SUM[0000:0FFF] + (CFGW & 2FCF) ON (CFGW & 2FCF) + SUM_ID PIC16F876A OFF SUM[0000:1FFF] + (CFGW & 2FCF) ON (CFGW & 2FCF) + SUM_ID PIC16F877A OFF SUM[0000:1FFF] + (CFGW & 2FCF) ON (CFGW & 2FCF) + SUM_ID Legend: CFGW = Configuration Word SUM[a:b] = [Sum of locations inclusive] ...

Page 16

... Units Conditions/Comments Externally Timed ms Internally Timed ms Internally Timed V s V Schmitt Trigger input V Schmitt Trigger input ns  s 2.0V  V < 4.5V DD 4.5V V  5. s 2.0V  V < 4.5V DD 4.5V V  5.  2010 Microchip Technology Inc. ...

Page 17

... FIGURE 6-3: READ DATA FROM PROGRAM MEMORY COMMAND (PROGRAM/VERIFY) V IHH MCLR tset0 thld0 RB6 (CLOCK) RB7 (DATA) tset1 thld1 100 ns min RESET  2010 Microchip Technology Inc. 1 s min tdly2 0 0 strt_bit X tdly1 1 s min 100 ns min Program/Verify Test Mode 1 s min ...

Page 18

... Program/Verify Test Mode tset1 thld1 100 ns min Program/Verify Test Mode tset1 thld1 100 ns min Program/Verify Test Mode Advance Information tdly3 bit 13 RB7 input RB7 = output tdly2 Next Command 1 s min tdly1 1 s min tprog2 Next Command tdly1  2010 Microchip Technology Inc. ...

Page 19

... BULK ERASE PROGRAM MEMORY COMMAND (PROGRAM/VERIFY) V IHH MCLR 1 RB6 (CLOCK) RB7 1 (DATA) RESET FIGURE 6-9: BULK ERASE DATA MEMORY COMMAND (PROGRAM/VERIFY) V IHH MCLR 1 RB6 (CLOCK) RB7 1 (DATA) RESET  2010 Microchip Technology Inc. tprog1 tdly2 1 s min tset1 thld1 100 ns min Program/Verify Test Mode ...

Page 20

... PIC16F87XA FIGURE 6-10: CHIP ERASE COMMAND (PROGRAM/VERIFY) V IHH MCLR 1 RB6 (CLOCK) RB7 1 (DATA) tset1 100 ns min RESET DS39589C-page thld1 Program/Verify Test Mode Advance Information tprog3 Next Command tdly1  2010 Microchip Technology Inc. ...

Page 21

... REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 22

... France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08- Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820 01/05/10  2010 Microchip Technology Inc. ...

Related keywords