Flash Programming Tool
Transcript of Flash Programming Tool
www.projectsmaker.comwww.elesof.com Visit : Flash Programming Tool
PICIProPICIPro
MC
LR
VC
C
GN
D
PG
D
PG
C
GN
D
®
EleSof
PICIPro is a high performance programmer for
Microchip PIC microcontroller family. It
connected to target device through serial 6-pin
connector & act as ICSP (In-Circuit Serial
Programmer). This manual contains a detailed
description of this device. It also guide you, that
how to program device.
TO OUR VALUED CUSTOMERS
I want to express my thanks to you for being interested in our products & having
It is our intention to provide you with the best quality products. Furthermore, we will
continue to improve our product performance to better suit your needs.
trademarks of Microchip Technology Incorporated in the U.S.A. & other
countries. All other trademarks mentioned herein are property of their respective
companies and are only used for the purpose of identification or explanation &
to the owner’s benefit, with no intent to infringe.
confidence in
The Microchip® name and logo, PIC®
, dsPIC®
MicroC®
are registered
®
EleSof Technologies®
www.projectsmaker.comwww.elesof.com Visit :
EleSof Technologies.
Development SystemEleSof
®
Programmer Interface……………………………..…..
……........................……
Supported Devices……………………………………………….....8
…………………………………………………………......7
Programming Interface…………………………………………...5-6
Benefits of In-Circuit Serial Programming……………………….4-5
..........4
TABLE OF CONTENTS
www.projectsmaker.comwww.elesof.com Visit :
TABLE OF CONTENTS
Introduction to In-Circuit Serial Programming………………
PICIPro
PICIPro
9-10
11-12PIC Flash Software (PICPgm)………
Benefits of In-Circuit Serial Programming
Introduction to In-Circuit Serial Programming
5
EleSof®
eses
USERMANUAL
PICIPro
PIC
PR
OG
RA
MM
ER
4
What is In-Circuit Serial Programming (ICSP)? In-System Programming (ISP) is a technique where a programmable device is programmed after the device is placed in a circuit board. In-Circuit Serial Programming (ICSP) is an enhanced ISP technique implemented in Microchip’s PICmicro® One-Time-Programmable (OTP) and FLASH RISC microcontrollers (MCU). Use of only two I/O pins to serially input and output data makes ICSP easy to use and less intrusive on the normal operation of the MCU. Because they can accommodate rapid code changes in a manufacturing line, PICmicro OTP and FLASH MCUs offer tremendous flexibility, reduce development time and manufacturing cycles, and improve time to market. In-Circuit Serial Programming enhances the flexibility of the PICmicro even further.
ICSP is truly an enabling technology that can be used in a variety of ways including:
• Reduce Cost of Field Upgrades The cost of upgrading a system’s code can be dramatically reduced using ICSP. With very little effort and planning, a PICmicro OTP- or FLASH- based system can be designed to have code updates in the field. For PICmicro FLASH devices, the entire code memory can be rewritten with new code. In PICmicro OTP devices, new code segments and parameter tables can be easily added in program memory areas left blank for update purpose. Often, only a portion of the code (such as a key algorithm) requires update.
• Reduce Time to Market In instances where one product is programmed with different customer codes, generic systems can be built and inventoried ahead of time. Based on actual mix of customer orders, the PICmicro MCU can be programmed using ICSP, then tested and shipped. The lead-time reduction and simplification of finished goods inventory are key benefits.
• Calibrate Your System During Manufacturing Many systems require calibration in the final stages of manufacturing and testing. Typically, calibration parameters are stored in Serial EEPROM devices. Using PICmicro MCUs, it is possible to save the additional system cost by programming the calibration parameters directly into the program memory.
• Add Unique ID Code to Your System During Manufacturing Many products require a unique ID number or a serial number. An example application would be a remote keyless entry device. Each transmitter has a unique “binary key” that makes it very easy to program in the access code at the very end of the manufacturing process and prior to final test. Serial number, revision code, date code, manufacturer ID and a variety of other useful information can also be added to any product for traceability. Using ICSP, you can eliminate the need for DIP switches or jumpers. In fact, this capability is so important to many of our customers that Microchip offers a factory programming service called Serialized Quick Turn Programming (SQTPSM), where each PICmicro MCU device is coded with up to 16 bytes of unique code.
5
EleSof®
eses
USERMANUAL
5
• Calibrate Your System in the Field Calibration need not be done only in the factory During installation of a system, ICSP can be used to further calibrate the system to actual operating environment. In fact, recalibration can be easily done during periodic servicing and maintenance. In OTP parts, newer calibration data can be written to blank memory locations reserved for such use.
• Customize and Configure Your System in the Field Like calibration, customization need not be done in the factory only. In many situations, customizing a product at installation time is very useful. A good example is home or car security systems where ID code, access code and other such information can be burned in after the actual configuration is determined. Additionally, you can save the cost of DIP switches and jumpers, which are traditionally used.
Programming Interface For In-Circuit Serial Programming, the programmer is connected to the target using as few wires as possible. To program any PIC microcontroller in any target system, a simple Five-wire interface is used to connect the programmer to the target PCB. The data is transferred using a two wire synchronous serial scheme, with the clock always controlled by the programmer. The ICSP signals are:.
GND Negative power input to the PIC and the zero volts reference for the remaining signals. Voltages of the other signals are implicitly with respect to GND.
Vdd This is the positive power input to the PIC. Some programmers require this to be provided by the circuit (circuit must be at least partially powered up), some programmers expect to drive this line themselves and require the circuit to be off, while others can be configured either way (like the Microchip ICD2). The Embed Inc programmers expect to drive the Vdd line themselves and require the target circuit to be off during programming.
Vpp Programming mode voltage. This must be connected to the MCLR pin, or the Vpp pin of the optional ICSP port available on some large-pin count PICs. To put the PIC into programming mode, this line must be in a specified range that varies from PIC to PIC. For 5V PICs, this is always some amount above Vdd, and can be as high as 13.5V. The 3.3V only PICs like the 18FJ, 24H, and 33F series use a special signature to enter programming mode and Vpp is a digital signal that is either at ground or Vdd. There is no one Vpp voltage that is within the valid Vpp range of all PICs. In fact, the minimum required Vpp level for some PICs can damage other PICs.
PGC Clock line of the serial data interface. This line swings from GND to Vdd and is always driven by the programmer. Data is transferred on the falling edge.
PICIPro
PIC
PR
OG
RA
MM
ER
5
EleSof®
eses
USERMANUAL
6
PGD
Serial data line. The serial interface is bi-directional, so this line can be driven by either the programmer or the PIC depending on the current operation. In either case this line swings from GND to Vdd. A bit is transferred on the falling edge of PGC.
Figure below shows the connections needed.
TXD
MIC
RO
CH
IP P
IC C
ON
TR
OLLE
R
RXD
PIC
IPro
MCLR
VCC
GND
PGD
PGC
GND
MCLR
PGC
PGD
PICIPro
PIC
PR
OG
RA
MM
ER
5
EleSof®
eses
USERMANUAL
7
PICIPro
PICIPro programmer is JDM design based programmer which support Serial Port ICSP (In
Circuit Serial Programmer) + Standalone programmer for PIC microcontrollers. With auto detect
programmer and chip options. Along with complementary software, PICIPro programmer represents as an irreplaceable tool for those who are working with PIC microcontroller. By means of this programmer, it is possible to program almost any PIC microcontroller. The PICIPro programmer is connected to the microcontroller via Six lines and through PC by serial port. Two of them are GND and one +5V, while others are:
VPP (Programming Mode Voltage)
PGC (Clock Line for Serial Data Interface)
PGD (Serial Data Laine)
These lines are contained with 6-pin male connector, in which 6 pin of connector connected with GND. When creating target device, the appropriate 6-pin female connector should be placed on it and connector pins should be connected to the microcontroller pins. Their position varies depending on the microcontroller’s type’s package. Exact connection schematics are provided
at PICIPro Programmer Interface section.
Note: If your target device uses
Microcontroller programming pins for
the operation of some other
peripherals, then it should be
enabled to these peripherals to be
disconnected during programming.
During normal operation of target
device, the programmer should be
disconnected.
There is no need external power supply when separately (Out of Board) PIC controller is
programming using PICIPro because sufficient power supply is provided
by PC Rs232 port.
Programmer,
PICIPro
PIC
PR
OG
RA
MM
ER
5
EleSof®
eses
USERMANUAL
8
Supported Devices
It supports 8, 18, 28 and 40 pin PIC microcontrollers which allow serial programming and I2C
EEPROM memories. Microcontrollers supported by PICIPro are listed below.
PIC 10F & 12F
PIC16F PIC16F PIC18F PIC18F PIC18F
PIC10F200 PIC16F627 PIC16F767 PIC18F1220 PIC18F4321 PIC18F4680
PIC10F202 PIC16F627A PIC16F777 PIC18F1320 PIC18F4331 PIC18F4682
PIC10F204 PIC16F628 PIC16F818 PIC18F2220 PIC18F4410 PIC18F4685
PIC10F206 PIC16F628A PIC16F818 PIC18F2221 PIC18F442 PIC18F6520
PIC10F220 PIC16F630 PIC16F819 PIC18F2320 PIC18F4420 PIC18F4550
PIC10F222 PIC16F631 PIC16F84A PIC18F2321 PIC18F4423 PIC18F4553
PIC12F629 PIC16F636 PIC16F87 PIC18F2331 PIC18F4431 PIC18F458
PIC12F635 PIC16F639 PIC16F870 PIC18F2410 PIC18F4450 PIC18F4580
PIC12F675 PIC16F648A PIC16F871 PIC18F242 PIC18F4455 PIC18F4585
PIC12F683 PIC16F676 PIC16F872 PIC18F2420 PIC18F4458 PIC18F4610
PIC16F677 PIC16F873 PIC18F2423 PIC18F448 PIC18F4620
PIC16F684 PIC16F873A PIC18F2431 PIC18F4480 PIC18F4680
PIC16F685 PIC16F874 PIC18F2450 PIC18F4510 PIC18F4682
PIC16F687 PIC16F874A PIC18F2455 PIC18F4515 PIC18F4685
PIC16F688 PIC16F876 PIC18F2458 PIC18F452 PIC18F6520
PIC16F689 PIC16F876A PIC18F248 PIC18F4520 PIC18F6527
PIC16F690 PIC16F877 PIC18F2480 PIC18F4523 PIC18F6585
PIC16F737 PIC18F2510 PIC18F4525 PIC18F6620
PIC16F747 PIC18F2515 PIC18F4550 PIC18F6622
PIC16F767 PIC18F252 PIC18F4553 PIC18F6627
PIC16F777 PIC18F2520 PIC18F458 PIC18F6680
PIC16F818 PIC18F2523 PIC18F4580 PIC18F6720
PIC16F819 PIC18F2525 PIC18F4585 PIC18F6722
PIC16F84A PIC18F2550 PIC18F4610 PIC18F8520
PIC16F87 PIC18F2553 PIC18F4620 PIC18F8527
PIC16F870 PIC18F258 PIC18F4680 PIC18F8585
PIC16F871 PIC18F2580 PIC18F4682 PIC18F8620
PIC16F872 PIC18F2585 PIC18F4685 PIC18F8622
PIC16F873 PIC18F2610 PIC18F6520 PIC18F8627
PIC16F873A PIC18F2620 PIC18F4550 PIC18F8680
PIC16F874 PIC18F2680 PIC18F4553 PIC18F8720
PIC16F874A PIC18F2682 PIC18F458 PIC18F8722
PIC16F689 PIC18F2685 PIC18F4580
PIC16F690 PIC18F4220 PIC18F4585
PIC16F737 PIC18F4221 PIC18F4610
PIC16F747 PIC18F4320 PIC18F4620
PICIPro
PIC
PR
OG
RA
MM
ER
etc..PIC18F252, 248, 2330,PIC16F876, 73 etc..
687, 689, 690 etc.. PIC16F631, 677, 685,etc..
PIC18F1220A, 1320,
716 etc..PIC16F84A, 88, 628,
etc..PIC16F676, 684, 688,
635, 675, 683 etc.. PIC12F508, 509, 629,
18PIN 16F
5
EleSof®
eses
USERMANUAL
9
PICIPro Programmer Interface
Below there are schematic for interfacing MicroChip PIC Microcontroller with PICIPro
programmer.
GNDVCC
GP3NC
NCGP2
GP0
PIC
10
FX
X
GP1
MCLR
PGC PGD
100nF
8PIN 10F
GP0GP5
GNDVCC
GP1GP4
GP2GP3
PIC
12
FX
XMCLR
PGD
PGC10K
100nF
8PIN 12F
RA0
RC0
RA5
RC5
GNDVCC
RA1
RC1
RA4
RC4
RA2
RC2
RA3
RC3
PIC
16
FX
X
MCLR
PGD
PGC
10K
100nF
14PIN 16F
RA0
VCC
RA3
GND
RA1RA2
OSC1
RB7
RA4
RB0
RB2
OSC2
RB6
RB5
RB4
MCLR
RB1
RB3
PIC
18
FX
X
10K
100nF
MCLR
PGD
PGC
18PIN 18F
RA0
VCC
RA3
GND
RA1RA2
OSC1
RB7
RA4
RB0
RB2
OSC2
RB6
RB5
RB4
MCLR
RB1
RB3
PIC
16
FX
X
MCLR
PGD
PGC10K
100nF
PIC10F200,202, 204, 206 etc..
RA0
RC0
OSC1
RC5
GNDVCC
RA1
RC1
OSC2
RC4
RC6
RA2
RC2
RB4
RB5
RB6
MCLR
RC3
RC7
RB7
PIC
16
FX
X
MCLR
PGD
PGC
10K
100nF
20PIN 16F
100nF
10K
PIC
xxxx
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7MCLR PGD
PGC
40PIN 16F/18F
PIC16F877A, 77 etc..PIC18F452, 448, 4520,4220 etc..
PGD
RB6
RB3
RA0
RA3
RB7MCLR
RB5
RB2
RA1
RA4
GND
RC1
RB4
RB1
RC7
RB0
RC6
VCC
RC5
GND
RC4
RA2
RA5
RC0
OSC1
RC2
OSC2
RC3
PIC
18
FX
X
MCLR
PGC
100nF
10K
28PIN 16F/18F
23456
RESET+5VSCKMISOMOSIGND
1
ON BOARD 1X6 CONNECTOR
PICIPro
PIC
PR
OG
RA
MM
ER
8620, 8720 etc.. PIC18F8310, 8410, 8520,
6620, 6720 etc.. PIC18F6310, 6410, 6520,
80PIN 18F
64PIN 18F
5
EleSof®
eses
USERMANUAL
10
PICIPro Programmer Interface
Below there are schematic for interfacing MicroChip PIC Microcontroller with PICIPro
programmer.
PIC18Fxx
RE
2R
F1
RF
0
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
VC
C
GN
D
RD
1
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
RE1 RB0
RB1
RB2
RB3
RB4
RB5
RB6
GND
OSC2
OSC1
VCC
RB7
RC5
RC4
RC3
RC2
RE0
RG0
RG1
RG2
RG3
MCLR
RG4
GND
VCC
RF7
RF6
RF5
RF4
RF3
RF2
MCLR
PGD
PGC
100nF
10K
PGC
PGD
PIC18Fxx
RH
1R
H5
RH
4
RF
1
RF
0
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RJ4
RJ5
RH
0
RE
2
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
VC
C
GN
D
RD
1
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
RJ0
RJ1
RH2 RJ2
RJ3
RB0
RB1
RB2
RB3
RB4
RB5
RB6
GND
OSC2
OSC1
VCC
RB7
RC5
RC4
RC3
RC2
RJ7
RJ6
RH3
RE1
RE0
RG0
RG1
RG2
RG3
MCLR
RG4
GND
VCC
RF7
RF6
RF5
RF4
RF3
RF2
RH7
RH6
MCLR
100nF
10K
23456
RESET+5VSCKMISOMOSIGND
1
ON BOARD 1X6 CONNECTOR
PICIPro
PIC
PR
OG
RA
MM
ER
5
EleSof®
eses
USERMANUAL
11
PIC Flash Software (PICPgm)
To be able to send hex file from your computer to PIC microcontroller you will need a software
tool, for that here is one tool which you can use it for programming PIC microcontrollers. The
tool is PICPgm. Instal PICPgm from CD, given with PICIPro programmer package.
Below is a short tutorial to use PICPgm to programmer PIC microcontroller using PICIPro.
• Connect the PICIPro programmer
hardware to your PC. Note: Do not
use USB to SERIAL converter.
• The PICIPro programmer hardware
shall not connected with PIC
microcontroller. Now start the
PICPgm tool. It shall detect the
PICIPro automatically.
• If it does not detect the programmer or detects
the wrong programmer, manually select the
hardware and the PC port it is connected to
(Menu: Hardware => Hardware Selection /
Configuration).
• Connect PICIPro with PIC microcontroller
which you have to program. Next, autodetect
the PIC microcontroler by pressing the
"Autodetects PIC" button in the toolbar.
If the PIC microcontroller is not getting
detected, manually select the PIC via the
combo box in the toolbar.
Note: Some PICs cannot be automatically identified because they don't have a device ID.
This PICs are marked with a "*" at the end of the name in the device list for manual PIC
selection. These PICs must be selected manually!
PICIPro
PIC
PR
OG
RA
MM
ER
5
EleSof®
eses
USERMANUAL
12
• Load the HEX file to be programmed by
using the "Browse" button in the
"Options" tab. Alternatively, load the
HEX file via the menu: "File" => "Load
HEX file ...".
• Finally, program the PIC by using the
"Program PIC" button in the toolbar.
PIC Flash Software (PICPgm)
PICIPro
PIC
PR
OG
RA
MM
ER
www.projectsmaker.comwww.elesof.com Visit :
Development SystemEleSof
®
DISCLAIMER
This product is owned by the EleSof are protected by copyright law. Therefore, this
manual is to be treated as any other copyright material. No part of this manual,
including product & software described herein, may be reproduces, store in a retrieval
system, translated or transmitted in any form or by any means, without the prior written
permission of EleSof. The manual PDF edition can be printed for private or local use,
but not for distribution. Any modification of this manual is prohibited.
EleSof provides this manual ‘as is’ without warranty of any kind, either expressed or
implied, including , but not limited to, the implied warranties or condition of
merchantability or fitness for a particular purpose.
Elesof shall assume no responsibility or liability for any errors, omissions &
inaccuracies that may appear in this manual. In no event shall EleSof, its directors,
officers, employees or distributors be liable for any indirect, specific, incidental or
consequential damages (including damages for loss of business profits & business
information, business interruption or any other pecuniary loss) arising out of the use of
this manual or product, even if EleSof has been advised of the possibility of such
damages. EleSof reserves the right to change information contained in this manual at
any time without prior notice, if necessary.
All the product, tools & corporate names appearing in this kit & manual may or may not
registered trademarks or copyright of their respective company, & are only used to
identification or explanation & to the owners’ benefit, with no intent to infringe.
www.projectsmaker.comwww.elesof.com Visit :
Development SystemEleSof
®
HIGH RISK ACTIVITIES
The products of EleSof are not fault - tolerant nor designed, manufactured or intended
for use or resale as on – line control equipment in hazardous environments requiring fail
– safe performance, such as in the operation of nuclear facilities, aircraft navigation or
communication system, air traffic control, direct life support machines or weapons
system in which the failure of software could lead directly to death, personal injury or
severe physical or environment damage (‘High Risk Activities). EleSof & its suppliers
specifically disclaim any expressed or implied warranty of fitness for High Risk
Activities.
.
®Copyright 2010 – 2012 by EleSof Technologies. All right reserved
www.projectsmaker.comwww.elesof.com Visit :
Development SystemEleSof
®
If you want to learn more about or products, please visit our website at
If you have any questions, comments or business proposals, do not hesitate to contact
us.
If you are experiencing some problems with any of our products or just need additional
information, please place write mail or call to us at
www.elesof.com & www.projectsmaker.com
+91-9911-7095-92 & [email protected] & [email protected]