Home
dsPICFlash Programmer User Manual
Contents
1. Shit GLCOD DS at RDS bit Configuration Bts Clear Clock switching mode Clock switching DISABLED Fail safe monitor DISABLED Ly Shit GLED D4 at RD4 bit E Oscillator source on POR Internal Fast RC Osc no PLL i ar z5 Primary Alternate Oscillator mode Reserved T C shit GLCD D3 at RDS bit a m Feats x Watchdog prescaller A i512 E T Erase Reset Shit GLOD De at BDF hit Z Watchdog prescaller B 1 16 Fs a Master Clear Enable Enabled z amen 40 sh 1 t GL Cc D 1 at ED 1 la IE 5 PBOR Enable Enabled Ly z Brown out Yoltage 2 0v not a valid operating selection Reload HEX Shit GLEC Do at EDO ja ILIE 5 Power on Reset Timer Value 64 ms x as i PR Gen Seg Prog Mem Code protect General Segment program memory NOT code protected m sh i t GL C D D 7 D J TSE E i OTL at TR IE 5 D 7 b i le Gen Seg Program Mem WR protect General Segment program memory is not write protected x a a Debugger Emulator enable Device reset into Operational mode d Bi pata unm a Shit GLC D D 6 D irection at TRISD 5 45 ir Clip on Emulation enable Device reset into Operational mode ICD Communication channel Communicate on PGC EMUC and PGD EMUD Options Program Memory Size 16 K Instr Device Status Idle Type Progress EEPROM Size 1024 Bytes Address Oh Revision O Write a code in one of dsPIC compilers and generate a hex file On the right side of the dsPicFLASH program s
2. Progress 0 The dsPicFLASH program contains an option for selecting the microcontroller to be programmed The latest version of this software with updated list of supported microcontrollers can be downloaded free of charge from our website at www mikroe com Figure 1 3 dsPicFLASH program s window 2 0 Programming Microcontrollers The process of programming microcontrollers starts by writing a program in one of dsPIC compilers mikroC PRO for dsPIC mikroBASIC PRO for dsPIC mikroPASCAL PRO for dsPIC etc When the program is correctly written it should be compiled into a format that can be loaded into the microcontroller The program to be loaded into the microcontroller has the hex extension As soon as the hex file is generated the program can be loaded into the microcontroller C mikroC PRO for dsPIC C Program Files Mikroelektronikal Compiling File Edit View Project Run Tools Help program 7h g IH B ia ja E g its a3 B a gt Eh Shs eo 00 oF a me Gu Whidbey 1110001001 Bin E sted 0110100011 0111 2FC23AA7 i 1011 F43E0021A Doen ENEL nl GINS a Sa a Hex DA67F0541 30 const code char truck bmp i024 L ELE S E E E T Loading hex code ff Gled module connections Shit GLOD D7 at RDY bit Shit GLED Do at RD6 bit E mikroElektronika dsPicFLASH v4 02 with mikrolCD File Device Buffer Windows USB About History
3. Click the Write option programming process to start the The Progress bar shows the programming progress expressed in a percentage Figure 3 1 dsPicFLASH program s main window The dsPicFLASH program enables a hex code generated in one of dsPIC compilers to be loaded into the microcontroller The hex code should be loaded first into the programmer s buffer by clicking the Load HEX option then into the microcontroller by clicking the Write option within the programmer s main window The programming progress will be shown in the Progress bar positioned in the bottom right corner of the same window MikroElektronika 4 0 Software Installation Before you start up the dsPicFLASH program it is necessary to install the appropriate driver For more information refer to quick guide for installing USB drivers Step 1 Start installation Insert the product CD into a CD drive After a few seconds a list with all Mikroelektronika s products will appear on the screen To start the process of installing the dsPicFLASH software click on the setup icon provided in the dsP Cprog section on the product CD CD Drive zip dspicprog2_programmer_v402 zip You can also download the dsPicFLASH free of charge from our website In this case the installation starts from your hard drive Awelcome window appears Click Next to proceed Step 2 License Agreement Before you start the installation process please review the license agree
4. fiSPicFLAS H User manual Flash program is used to transfer a hex file from a PC to the microcontroller memory by means of the appropriate hardware Every flash program includes numerous options used for setting the microcontroller s configuration bits CAMikroElektronika SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD waking it simple TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs Nebojsa Matic General Manager The Microchip name and logo the Microchip logo Accuron dsPIC KeeLog microlID MPLAB PIC PICmicro PICSTART PRO MATE PowerSmart rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U S A and other countries dsPicFLASH TABLE OF CONTENTS 1 0 Introduction to dsPICprog Programmer ssc ccoscs sntcrsenacsateaeiensnansaecianenndesoertineneddesetesGeseiiseenaendenciee 4 2 0 Programming Microcontrollers sssirssisrersrisidirnsssnnsniie n n a Eara Ea in 5 30 dS PIC FLASHA POOTI siesd aa E E E e E e eE E RE 6 4 0 Software iG eA O NN sensin irinin aE eTa EEE T 5 0 Practical Example of Using dsPicFLASH Program ccccseccccseeeeeeeeeeeseeeeeseeeeeeaeeeeeseeeeeaeeeeeas 9 6 0 Keyboard Shortcuts
5. Configuration Bits Clear Clock switching mode Oscillator source on POR Primary Alternate Oscillator mode Watchdog Timer Watchdog prescaller A Watchdog prescaller B Master Clear Enable PBOR Enable Brown out oltage Power on Reset Timer Yalue Gen Seg Prog Mem Code protect Gen Seg Program Mem WR protect Debugger Emulator enable Clip on Emulation enable ICD Communication channel Program Memory Size 16 K Instr EEPROM Size 1024 Bytes MikroElektronika Clock switching DISABLED Fail safe monitor DISABLED Internal Fast RC Osc no PLL Reserved Enabled 1 512 1 16 Enabled Enabled 2 0 not a valid operating selection 64 ms General Segment program memory NOT code protected General Segment program memory is not write protected Device reset into Operational mode Device reset into Operational mode Communicate on PGC EMUC and PGD EMUD CMe TL Me Me Tee We We Wa Me We I I TL TL Device Status Idle Type Address Oh Revision The dsP Cprog programmer is also available as a stand alone device used for programming dsPIC microcontrollers built into soldered on the target device Figure 1 2 Stand alone dsP Cprog programmer Device PIC30F4013 F Read Write Verify Blank Erase Reset Load HEX Reload HEX Save HEX CODE DATA UNIT ID Options
6. I Ye I TEs Ts TE TT Program Memory Size 16 K Instr EEPROM Size 1024 Bytes Device Status Programming Code Address 000400h Type PIC30F4013 Revision 1002h Open Cancel 4 Device PIC30F4013 x Progress CC re 10 dsPicFLASH amp S 6 0 Keyboard Shortcuts and Command Line Parameters Keyboard Shortcuts Alt E Erase the content of microcontroller s memory Alt B Program memory blank check whether it is empty Alt W Write a hex code into a dsPIC microcontroller Alt V Verify the loaded hex code Alt R Program memory reading Alt D Change microcontroller type Ctril S Save hex code Ctrl O Open Load file with hex code Ctrl R Reload hex code Command Line The dsPicFLASH program may also be activated from the command line thus enabling you to use it from some other software compiler etc Here is a list of the command line parameters W Write to dsPIC microcontroller V Verify amp Erase program from dsPIC microcontroller r Read program from dsPIC microcontroller p Type of microcontroller for example dsPIC30F4013 dsPIC30F5011 etc f hex file name FLASH lt name must be enclosed in quotation marks gt b Memory blank check whether it is empty q Close the dsPicFLASH program after programming Example 1 dsPicFLASH exe w pdsPIC30F4013 v f C somefile hex This command is used for loading C somefile hex into the dsPIC30F4013 microcontroller This file will b
7. and Command Line Parameters ccccccecceseecceeeceeeeeceeceseeeeseeeeaeeeeans 10 4 1 0 Introduction to dsPICprog Programmer The dsP iCprog programmer is a great tool used for programming dsPIC microcontrollers from Microchip As a low consumption device it is ideal to be used with notebooks It s unique design and simplicity make it a very popular tool among beginners and professional users alike The dsP Cprog programmer communicates to the microcontroller through a USB cable which is also used for powering the programmer In order to use this programmer it is necessary to have the dsPicFLASH program and the appropriate driver provided on the product CD installed on your PC After that you can use the dsP Cprog programmer and a hex code generated in any dsPIC compiler to load the program into a dsPIC microcontroller The dsP Cprog programmer is built into all Mikroelektronika s dsPIC development systems The same programmer is also available as a stand alone device used for programming dsPIC microcontrollers built into soldered on the target device The dsPICprog programmer is built into all Mikroelektronika s development systems designed for working with dsPIC microcontrollers 4 Te F Gey E v0 LINK e PRG ICD Figure 1 1 On board dsPICprog programmer ISEL Ispa PEEPRON Pl 2 Pails P1 2 mikroElektronika dsPicFLASH v4 02 with mikroICD File Device Buffer Windows USB About History
8. the terms in the License Agreement OI do not accept the terms in the License Agreement dsPICFL45H Programmer dsPICFLASH Programmer v4 02 Setup Choose Components Choose which features of dsPICFLASH Programmer v4 02 you want to install Check the components you want install Click Next to continue to install and uncheck the components you don t want to Select components to install Space required 4 3MB Description dsPICFLASH Eee KATLS Position your mouse over 4a component to see its description dsPICFLASH Programmer MikroElektronika page Step 4 Choose Installation Location Now you should specify the folder to install the dsPicFLASH program into If you want to install it in a folder different from default click Browse and select another folder on your hard disc Then click Next If you choose the default folder the program will be installed on the following location C Program Files Mikroelektronika dsPICFLASH Step 5 Installation Details The installation of the dsPicFLASH program starts immediately The installation progress will be shown on the screen If you are interested in details about the installation click the Show details button Step 6 Completing Installation Windows will inform you in the window as shown in figure on the right that the dsPicFLASH program has been successfully installed Click Finish to complete the installation MikroElektro
9. window there are several options which make the programming process easier whereas on the left side of the window there are a number of options for microcontroller settings Positioned in the bottom right corner of the window the Progress bar enables you to monitor the programming process In the dsPicFLASH program s main window select the microcontroller and load the hex code into the programmer s buffer Click the Write button to program the microcontroller MikroElektronika 3 0 dSPiCFLASH Program The dsPicFLASH program is easy to use as all the options necessary for its operation are provided in a simple window which will appear either by clicking on the dsPICFLASH icon or automatically by starting the programming process Build And Program option in one of dsPIC compilers The options used for setting configuration bits are provided on the left side of the window whereas the options for loading hex file into the programmer and microcontroller are provided on the right side of the window The left side of the window can be different depending on the type of the microcontroller in use and its configuration bits Toload the program into the microcontroller do the following E mikroElektronika dsPicFLASH v4 02 with mikrolCD File Device Buffer Windows USB About History Configuration Bits Clear Clock switching mode Oscillator source on POR Primary Alternate Oscillator mode Fes Watchdog
10. PLC16 PICPLC8 PICPLC4 SmartGSM GPRS UNI DS are trademarks of Mikroelektronika All other trademarks mentioned herein are property of their respective companies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Mikroelektronika 2010 All Rights Reserved woos Je SN JOeJUOD 0 9 eYISEY JOU OP sjesodosd sseuIsnq 10 S USWILUOD Suoijsenb Aue ney no l yoddhs ue wos aoiu MMM a wos OJYILUMMM Je YISQ M INO YISIA asea d sjonpoud i ind riode JOU ues o Them nod H Cd 1dOM d3dqdJ3gW4 YO4 SNOILNTOS JYVWMCYVH ANY JYYMLJOS 5E i em
11. Timer Watchdog prescaller A Watchdog prescaller B Master Clear Enable PBOR Enable Brown out Yoltage Power on Reset Timer Yalue Gen Seg Prog Mem Code protect Gen Seg Program Mem WR protect Debugger Emulator enable Clip on Emulation enable ICD Communication channel Program Memory Size 16 K Instr EEPROM Size 1024 Bytes CS mn Device PIC30F4013 Clock switching DISABLED Fail safe monitor DISABLED Internal Fast RC Osc no PLL erved Enabled 1 512 1 16 Enabled Enabled 2 04 not a valid operating selection 64 ms General Segment program memory NOT code protected General Segment program memory is not write protected Device reset into Operational mode Device reset into Operational mode Device Status Idle Operation None Communicate on PGC EMUC and PGD EMUD KAKA Ne We KAK KA KA KA KA KA KI KT KI EI Type Address Oh Revision Device PIC30F4013 a x Read 3 Verify Blank Erase Reset Q Load HEX Reload HEX Save HEX CODE DATA UNIT ID Options Progress 0 Selectthe microcontroller to be programmed and the dsPicFLASH will automatically set default parameters for working with the respective microcontroller Click the Load HEX option to open the window to select the hex code to be loaded into the microcontroller
12. ctive microcontroller Step 2 Load a hex code into programmer s buffer Click the Load HEX option to open the Open window as shown in figure on the right Select the relevant file with the hex extension and click the ic Open button The file will be automatically loaded into the programmer s buffer Step 3 Write the hex code into the microcontroller Click the Write option in the upper right corner of the main window to start programming the microcontroller The programming progress will be shown in the bottom right corner of the same window E mikroElektronika dsPicFLASH v4 02 with mikroICD File Device Buffer Windows USB About History Configuration Bits Clear Clock switching mode Oscillator source on POR Primary Alternate Oscillator mode Watchdog Timer Watchdog prescaller A Watchdog prescaller B Master Clear Enable PBOR Enable Brown out oltage Power on Reset Timer Yalue Gen Seg Prog Mem Code protect Gen Seg Program Mem WR protect Debugger Emulator enable Clip on Emulation enable ICD Communication channel Clock switching DISABLED Fail safe monitor DISABLED Internal Fast RC Osc no PLL Reserved Enabled 1 512 1 16 Enabled Enabled 2 0 not a valid operating selection 64 ms General Segment program memory NOT code protected General Segment program memory is not write protected Device reset into Operational mode Device reset into Operational mode Communicat
13. e on PGC EMUC and PGD EMUD BO Program Memory Size 16 K Instr EEPROM Size 1024 Bytes Device Status Idle Address Oh Type Revision Device PIC30F4013 x Read write Load HEX Reload HEX Save HEX CODE DATA UNIT ID Options Progress Look in S Project gt e e Fa My Recent Documents 3 Desktop My Documents My Computer CANSPI hex My Network Places Files of type File name CANSPI E mikroElektronika dsPicFLASH v4 02 with mikroICD File Device Buffer Windows USB About History Configuration Bits _ Clear Clock switching mode Oscillator source on POR Primary Alternate Oscillator mode Watchdog Timer Watchdog prescaller A Watchdog prescaller B Master Clear Enable PBOR Enable Brown out Yoltage Power on Reset Timer Yalue Gen Seg Prog Mem Code protect Gen Seg Program Mem WR protect Debugger Emulator enable Clip on Emulation enable ICD Communication channel HEX Files Clock switching DISABLED fail safe monitor DISABLED Primary Oscillator Reserved Enabled 1 512 1 16 Enabled Enabled 2 0 not a valid operating selection 64 ms General Segment program memory NOT code protected General Segment program memory is not write protected Device reset into Operational mode Device reset into Operational mode Communicate on PGC EMUC and PGD EMUD ee J I I Me
14. e verified immediately after being loaded into the microcontroller Example 2 dsPicFLASH exe r pdsPIC30F4013 This command is used for reading the content of the dsPIC30F4013 microcontroller s program memory Example 3 dsPicFLASH exe e pdsPIC30F4013 This command is used to erase program from the dsPIC30F4013 microcontroller MikroElektronika DINO RANI lata All the products owned by MikroElektronika are protected by copyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein may be reproduced stored in a retrieval system translated or transmitted in any form or by any means without the prior written permission of MikroElektronika The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including dama
15. ges for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary HIGH RISK ACTIVITIES The products of MikroElektronika 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 systems air traffic control direct life Support machines or weapons systems in which the failure of Software could lead directly to death personal injury or severe physical or environmental damage High Risk Activities MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities TRADEMARKS The Mikroelektronika name and logo the Mikroelektronika logo mikroC mikroC PRO mikroBasic mikro Basic PRO mikroPascal mikroPascal PRO AVRflash PIlCflash dsPICprog 18FJprog PSOCprog AVR prog 8051prog ARMflash EasyPIC5 EasyPIC6 BigPIC5 BigPIC6 dsPIC PRO4 Easy8051B EasyARM EasyAVR5 EasyAVR6 BigAVR2 EasydsPIC4A EasyPSoC4 EasyVR Stamp LV18FJ LV24 33A LV32MX PIC32MX4 MultiMedia Board PIC
16. ment terms To accept them select the option accept the terms in the License Agreement and click Next Step 3 Choose Components To make your choice simple this installation step offers you only one component to choose Click Next dsPICFLASH Programmer v4 02 Setup Welcome to the dSsPICFLASH Programmer 4 02 Setup Wizard This wizard will quide you through the installation of dsPICFLASH Programmer v4 02 It is recommended that you close all other applications before starting Setup This will make it possible to update relevant system Files without having to reboot your computer Click Next to continue License Agreement dsPICFLASH Programmer v4 02 Setup Please review the license terms before installing dsPICFLASH Programmer 4 02 Press Page Down to see the rest of the agreement mikroElektronika Associates License Statement and Limited Warranty IMPORTANT READ CAREFULLY This license statement and limited warranty constitute a legal agreement License Agreement between you either as an individual or a single entity and mikroElektronika mikroElektronika Associates For software product Software identified above including any software media and accompanying on line or printed documentation IF you accept the terms of the agreement select the First option below You must accept the agreement to install dsPICFLASH Programmer v4 02 Click Next to continue I accept
17. nika dsPICFLASH Programmer v4 02 Setup Choose Install Location Choose the Folder in which to install dsPICFLASH Programmer v4 02 Setup will install dsPICFLASH Programmer v4 02 in the Following folder To install in a different Folder click Browse and select another Folder Click Install to start the installation Destination Folder C Program Files MikroelektronikaidsPICFLASH Space required 4 3MB Space available 10 866 dsPICFLASH Programmer dsPICFLASH Programmer v4 02 Setup Installing Please wait while dsPICFLASH Programmer v4 02 is being installed Extract dsPICFLASH exe 100 Show details dsPICFLASH Programmer lt Back Cancel dsPICFLASH Programmer v4 02 Setup Completing the dsPICFLASH Programmer 4 02 Setup Wizard dsPICFLASH Programmer v4 02 has been installed on your computer Click Finish to close this wizard 5 0 Practical Example of Using dsPicFLASH Program After the software installation is complete connect the programmer to your development system using a USB cable The USB connection will be automatically established which is indicated by the USB LINK LED s illumination Step 1 Start up the dsPicFLASH program Start up the dsPicFLASH program installed on your PC Click the Device option in order to select the microcontroller to be programmed The dsPicFLASH program will automatically set default parameters for working with the respe
Download Pdf Manuals
Related Search
Related Contents
FLOWCODE Mode d`Emploi en français (pdf 500K) User`s Manual GX-A604/GX-A602/GX-A3001 EnGenius ESR1200 router Manual de instalação, configuração e utilização do Assinador Betha Untitled - Index of Copyright © All rights reserved.
Failed to retrieve file