PIC16F887-I/ML Microchip Technology, PIC16F887-I/ML Datasheet

IC PIC MCU FLASH 8KX14 44QFN

PIC16F887-I/ML

Manufacturer Part Number
PIC16F887-I/ML
Description
IC PIC MCU FLASH 8KX14 44QFN
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F887-I/ML

Program Memory Type
FLASH
Program Memory Size
14KB (8K x 14)
Package / Case
44-QFN
Mfg Application Notes
Intro to Capacitive Sensing Appl Notes Layout and Physical Design Appl Note
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
35
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
368 B
Interface Type
MSSP/EUSART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
35
Number Of Timers
3
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 53273-916
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM164123, DM164120-3, DV164122
Minimum Operating Temperature
- 40 C
On-chip Adc
14-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT44QFN2 - SOCKET TRAN ICE 44QFN/40DIPAC164322 - MODULE SOCKET MPLAB PM3 28/44QFN444-1001 - DEMO BOARD FOR PICMICRO MCU
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F887-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
This document includes the
programming specifications for the
following devices:
• PIC16F882
• PIC16F883
• PIC16F884
• PIC16F886
• PIC16F887
1.0
The PIC16F88X can be programmed using the high-
voltage In-Circuit Serial Programming™ (ICSP™)
method or the low-voltage ICSP method. Both of these
can be done with the device in the user’s system. The
low-voltage ICSP method is slightly different than the
high-voltage method and these differences are noted
where applicable. This programming specification
applies to these devices in all package types.
TABLE 1-1:
 2009 Microchip Technology Inc.
RB3
RB6
RB7
MCLR
V
V
Legend: I = Input, O = Output, P = Power
Note 1:
DD
SS
Pin Name
PROGRAMMING THE
PIC16F88X DEVICES
PIC16F88X Memory Programming Specification
In the PIC16F88X, the programming high voltage is internally generated. To activate the Program/Verify
mode, high voltage needs to be applied to MCLR input. Since the MCLR is used for a level source, MCLR
does not draw any significant current.
PIN DESCRIPTIONS IN PROGRAM/VERIFY MODE
Program/Verify mode
Function
ICSPCLK
ICSPDAT
PGM
V
V
DD
SS
Pin Type
P
I/O
P
P
I
I
(1)
During Programming
1.1
In the High-Voltage ICSP mode, the PIC16F88X
devices require two programmable power supplies:
one for V
“Program/Verify Mode Electrical Characteristics”
for more details.)
1.2
The Program/Verify mode for the PIC16F88X devices
allows programming of the user program memory, data
memory, user ID locations and the Configuration Word.
Programming and verification can take place in any
memory region, independent of the remaining regions.
This allows independent programming of program and
data memory regions.
Low-voltage ICSP™ programming input if LVP
Configuration bit equals ‘1’
Clock Input – Schmitt Trigger input
Data Input/Output – Schmitt Trigger input
Program Mode Select
Power Supply
Ground
PIC16F88X
Hardware Requirements
Program/Verify Mode
DD
and one for MCLR/V
Pin Description
PP
. (See Section 6.0
DS41287D-page 1

Related parts for PIC16F887-I/ML

PIC16F887-I/ML Summary of contents

Page 1

... PIC16F882 • PIC16F883 • PIC16F884 • PIC16F886 • PIC16F887 1.0 PROGRAMMING THE PIC16F88X DEVICES The PIC16F88X can be programmed using the high- voltage In-Circuit Serial Programming™ (ICSP™) method or the low-voltage ICSP method. Both of these can be done with the device in the user’ ...

Page 2

... FIGURE 1-2: PIC16F882/883/886 28-PIN QFN DIAGRAM RA2/AN2/V -/CV /C2IN+ REF REF RA3/AN3/V +/C1IN+ REF RA4/T0CKI/C1OUT RA5/AN4/SS/C2OUT RA7/OSC1/CLKIN RA6/OSC2/CLKOUT DS41287D-page PIC16F882/883/886 RB7/ICSPDAT RB6/ICSPCLK RB5/AN13/T1G RB4/AN11/P1D RB3/AN9/PGM/C12IN2- RB2/AN8/P1B RB1/AN10/P1C/C12IN3- RB0/AN12/INT RC7/RX/DT RC6/TX/CK RC5/SDO RC4/SDI/SDA RB3/AN9/PGM/C12IN2- RB2/AN8/P1B RB1/AN10/P1C/C12IN3- RB0/AN12/INT RC7/RX/DT  2009 Microchip Technology Inc. ...

Page 3

... MCLR/V /RE3 PP RA0/AN0/ULPWU/C12IN0- RA1/AN1/C12IN1- RA2/AN2/V -/CV /C2IN+ REF REF RA3/AN3/V +/C1IN+ REF RA4/T0CKI/C1OUT RA5/AN4/SS/C2OUT RE0/AN5 RE1/AN6 RE2/AN7 RA7/OSC1/CLKIN RA6/OSC2/CLKOUT RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RC2/CCP1/P1A RC3/SCK/SCL RD0 RD1  2009 Microchip Technology Inc. RB7/ICSPDAT 1 40 RB6/ICSPCLK 39 2 RB5/AN13/T1G 3 38 RB4/AN11 RB3/AN9/PGM/C12IN2- 5 RB2/AN8 6 35 RB1/AN10/C12IN3 RB0/AN12/INT ...

Page 4

... PIC16F88X FIGURE 1-4: PIC16F884/887 44-PIN TQFP DIAGRAM RC7/RX/DT RD4 RD5/P1B RD6/P1C RD7/P1D RB0/AN12/INT RB1/AN10/C12IN3- RB2/AN8 RB3/AN9/PGM/C12IN2- DS41287D-page RC0/T1OSO/T1CKI 2 32 RA6/OSC2/CLKOUT 31 3 RA7/OSC1/CLKIN PIC16F884/887 RE2/AN7 27 7 RE1/AN6 8 26 RE0/AN5 9 25 RA5/AN4/SS/C2OUT RA4/T0CKI/C1OUT  2009 Microchip Technology Inc. ...

Page 5

... FIGURE 1-5: PIC16F884/887 44-PIN QFN DIAGRAM RC7/RX/DT RD4 RD5/P1B RD6/P1C RD7/P1D RB0/AN12/INT RB1/AN10/C12IN3- RB2/AN8  2009 Microchip Technology Inc. 1 RA6/OSC2/CLKOUT 33 2 RA7/OSC1/CLKIN PIC16F884/887 RE2/AN7 27 8 RE1/AN6 26 9 RE0/AN5 25 10 RA5/AN4/SS/C2OUT RA4/T0CKI/C1OUT PIC16F88X DS41287D-page 5 ...

Page 6

... The device should not be used if the verification of the Calibration Word values fail after the device is programmed. The 0x3FFF value is a special case valid calibration value but also the erased state of the register. ® IDE. The xxxx’s are “don’t  2009 Microchip Technology Inc. ...

Page 7

... User ID Location 2003 Reserved 2004 Reserved 2005 Device ID 2006 Configuration Word 1 2007 2008 Configuration Word 2 2009 Calibration Word 200A-207F Reserved  2009 Microchip Technology Inc. PIC16F88X 2 KW Implemented 07FF Program Memory Maps to 0-7FF 1FFF 2000 Implemented 2080 Maps to Configuration Memory 2000-203F 3FFF ...

Page 8

... User ID Location 2003 Reserved 2004 Reserved 2005 Device ID 2006 Configuration Word 1 2007 2008 Configuration Word 2 2009 Calibration Word 200A-207F Reserved DS41287D-page Implemented 0FFF Program Memory Maps to 0-FFF 1FFF 2000 Implemented 2080 Maps to Configuration Memory 2000-203F 3FFF  2009 Microchip Technology Inc. ...

Page 9

... User ID Location 2002 User ID Location 2003 Reserved 2004 Reserved 2005 Device ID 2006 Configuration Word 1 2007 2008 Configuration Word 2 2009 Calibration Reserved 200A-207F  2009 Microchip Technology Inc. PIC16F88X 8 KW Implemented Program Memory 1FFF 2000 Implemented 2080 Maps to Configuration Memory 2000-203F 3FFF DS41287D-page 9 ...

Page 10

... ICSPCLK does not DD while FIGURE 3- undershoot just PP ICSPDAT ICSPCLK V -FIRST PROGRAM/ PP VERIFY MODE ENTRY PPDP HLD This method of entry is valid, regardless of Configuration Word selected. V -FIRST PROGRAM/ DD VERIFY MODE ENTRY HLD PPDP PROGRAM/VERIFY MODE EXIT T 0 HLD  2009 Microchip Technology Inc. ...

Page 11

... Programming addresses 2 through 9 will create an unexpected result.  2009 Microchip Technology Inc. The sequence for programming eight words of program memory at a time is as follows: 1. Load a word at the current program memory only. DD address using Load Data for Program Memory ...

Page 12

... Program Counter (PC) to 0x2000. 2. Perform a Bulk Erase Program Memory command. 3. Wait T to complete erase. ERA To erase the data memory, use the following sequence: 1. Perform a Bulk Erase Data Memory command. 2. Wait T to complete erase. ERA into the  2009 Microchip Technology Inc. ...

Page 13

... End Programming Bulk Erase Program Memory Bulk Erase Data Memory Row Erase Program Memory  2009 Microchip Technology Inc. During a read operation, the LSb will be transmitted onto ICSPDAT pin on the rising edge of the second cycle. For a load operation, the LSb will be latched on the falling edge of the second cycle ...

Page 14

... After the configuration memory is entered, the only way to get back to the program memory is to exit the Program/Verify mode by taking MCLR low ( DLY strt_bit LSb DLY T 2 DLY strt_bit LSb DLY ). MSb stp_bit T 1 SET T 1 HLD MSb stp_bit T 1 SET T 1 HLD  2009 Microchip Technology Inc. ...

Page 15

... Input mode (high-impedance) after the 16th rising edge. If the program memory is code-protected (CP = 0), the data is read as zeros. FIGURE 3-7: READ DATA FROM PROGRAM MEMORY COMMAND ICSPCLK ICSPDAT T 1 SET T Input  2009 Microchip Technology Inc DLY strt_bit LSb T 1 DLY T 2 DLY ...

Page 16

... Program/Verify mode. FIGURE 3-9: INCREMENT ADDRESS COMMAND (PROGRAM/VERIFY) 1 ICSPCLK 0 ICSPDAT DS41287D-page DLY DLY strt_bit LSb T 1 DLY SET T 1 HLD stp_bit MSb on 9th falling edge Output Input T 2 DLY Next Command DLY  2009 Microchip Technology Inc. ...

Page 17

... Programming (T 2) time and is terminated using an End PROG Programming command. The addressed location is not erased before programming. FIGURE 3-11: BEGIN PROGRAMMING COMMAND (EXTERNALLY TIMED V IHH MCLR 1 ICSPCLK 0 ICSPDAT  2009 Microchip Technology Inc. of the memory SET T 1 HLD ...

Page 18

... All Bulk Erase operations must take place between 4.5V and 5. FIGURE 3-13: BULK ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT T 1 SET DS41287D-page SET T 1 HLD . SET T 1 HLD T 1 HLD Next Command DIS T ERA Next Command  2009 Microchip Technology Inc. ...

Page 19

... To perform a Row Erase Program Memory, the following sequence must be performed. 1. Execute a Row Erase Program Memory command. 2. Wait T to complete a row erase. ERA FIGURE 3-15: ROW ERASE PROGRAM MEMORY COMMAND 1 ICSPCLK 1 ICSPDAT  2009 Microchip Technology Inc SET T 1 HLD ...

Page 20

... If the device is code-protected or must be completely erased, then Bulk Erase device per Figure 3-21. DS41287D-page 20 Begin Programming Command (Internally timed) Report No Programming Wait T Failure Program Cycle Load Data for Program Memory Begin Programming Command (Externally timed) Wait PROG PROG End Programming Wait T DIS  2009 Microchip Technology Inc. ...

Page 21

... Verification in Four-Word mode is accomplished after programming by reading back the entire memory. 3: This step is optional if the data memory does not require updates the device is code-protected or must be completely erased, then Bulk Erase device per Figure 3-21.  2009 Microchip Technology Inc. PIC16F88X Program Cycle ...

Page 22

... Command Load Data Latch 2 for Program Memory Increment Address Command Load Data Latch 8 for Program Memory Begin Begin Programming Programming Command Command (Internally timed) (Externally timed) Wait T 2 Wait T 1 PROG PROG End Programming Wait T DIS  2009 Microchip Technology Inc. ...

Page 23

... Yes Increment Address Command No Yes Address = 0x2004? Note: Ensure that a device Bulk Erase has been performed or that the device is blank prior to programming the configuration memory.  2009 Microchip Technology Inc. Begin Programming Command (Internally timed) Wait T PROG Report Programming Failure Increment ...

Page 24

... Address Done? Command Done DS41287D-page 24 Programming (Internally timed) Wait T Report No Programming Failure Yes Yes Program Cycle Load Data for Data Memory Begin Begin Programming Command Command (Externally timed) 1 Wait T 2 PROG PROG End Programming Wait T DIS  2009 Microchip Technology Inc. ...

Page 25

... FIGURE 3-21: PROGRAM FLOWCHART – ERASE FLASH DEVICE  2009 Microchip Technology Inc. PIC16F88X Start Read and Store Calibration Memory Values (Figure 3-22) Bulk Erase Program Memory Load Configuration Bulk Erase Program Memory Bulk Erase Data Memory Read and Verify Calibration Memory ...

Page 26

... The device should not be used if verification of the Calibration Word locations fails. This information should be reported to the user through the user interface of the device programmer. DS41287D-page 26 Start Load Configuration Increment Address Command No Address = 0x2009? Yes Read and Store Calibration Word Calibration No Word Fail (1,2) is Valid? Yes Done  2009 Microchip Technology Inc. ...

Page 27

... If the device Master Clear is disabled, verify that either of the following is done to ensure proper entry into ICSP mode: a) disable Low-Voltage Programming (Config Word 1<12> make certain that RB3/PGM is held low during entry into ICSP.  2009 Microchip Technology Inc. to the IHH PIC16F88X DS41287D-page 27 ...

Page 28

... R/P-1 R/P-1 R/P-1 FCMEN IESO BOREN1 R/P-1 R/P-1 R/P-1 PWRTE WDTEN FOSC2 U = Unimplemented bit, read as ‘1’ ‘0’ = Bit is programmed /RE3 Pin Function Select bit R/P-1 R/P-1 BOREN0 CPD bit 7 R/P-1 R/P-1 FOSC1 FOSC0 bit 0  2009 Microchip Technology Inc. ...

Page 29

... EECON control 11 = Write protection off bit 8 BOR4V: Brown-out Reset Selection bit 1 = Brown-out Reset set Brown-out Reset set to 2.1V bit 7-0 Unimplemented: Read as ‘1’  2009 Microchip Technology Inc. U-1 R/P-1 R/P-1 — WRT1 WRT0 U-1 ...

Page 30

... This location cannot be erased. TABLE 4-1: DEVICE ID VALUES Device ID Values Device Dev PIC16F882 10 0000 000 PIC16F883 10 0000 001 PIC16F884 10 0000 010 PIC16F886 10 0000 011 PIC16F887 10 0000 100 DS41287D-page 30 R/P-1 R/P-1 R/P-1 FCAL5 FCAL4 FCAL3 R/P-1 R/P-1 R/P-1 POR1 POR0 BOR2 U = Unimplemented bit, read as ‘ ...

Page 31

... Specifically for the PIC16F88X, the data memory should also be embedded in the hex file (see Section 5.3.2 “Embedding Data Memory Contents In Hex File”). Microchip Technology Incorporated feels strongly that this feature is important for the benefit of the end customer.  2009 Microchip Technology Inc. ...

Page 32

... PIC16F886 SUM[0x0000:0x1FFF] + (CFG1 & 0x3FFF) + (CFG2 & 0x0700 (CFG1 & 0x3FFF) + (CFG2 & 0x0700) + SUM_ID PIC16F887 SUM[0x0000:0x1FFF] + (CFG1 & 0x3FFF) + (CFG2 & 0x0700 (CFG1 & 0x3FFF) + (CFG2 & 0x0700) + SUM_ID Legend: CFG = Configuration Word. Example calculations assume Configuration Word is erased (all ‘1’s). ...

Page 33

... PROG timed) Programming cycle time (externally T 2 PROG timed) Time delay from program to compare T DIS (HV discharge time)  2009 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) -40°C  T Operating Temperature 4.5V  V Operating Voltage Min Typ Max 2.0 — ...

Page 34

... Section 5.3.1 (paragraph 1); Table 6-1 (T and max). Revision C (03/07) Added the PIC16F882 device. Revision D (12/09) Updated sections 2.3, 3.2.3, 3.2.4, 3.2.5, 3.2.6.1; Updated Figures 3-16, 3-17, 3-18, 3-19, 3-21; Added Figure 3-22 . DS41287D-page 34 1 min PROG  2009 Microchip Technology Inc. ...

Page 35

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

... Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350  2009 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords