Home

8051prog User`s Manual

image

Contents

1. 8051prog is a high performance programmer for 8051 microcontroller family It is connected to the target device through IDC10 connector and acts as ICSP In Circuit Serial Programmer This manual contains a detailed description of this device It also guides you through the 8051flash software installation e C POWER SUPPLY peo em E jk WIL IN C PROGRAMMER TO OUR VALUED CUSTOMERS want to express my thanks to you for being interested in our products and having confidence in MikroElektronika It is our intention to provide you with the best quality products Furthermore we will continue to improve our performance to better suit your needs Nebojsa Matic General Manager DISCLAIMER All products are owned by MikroElektronika and protected by copyright law and international copyright treaty Therefore you should treat this manual as any other copyright material The manual and products may not be copied partially or as a whole without written consent of MikroElektronika Manual PDF edition can be printed for private or local use but not for distribution Modifying manuals or products is prohibited 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
2. 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 LICENSE AGREEMENT By using our products you agree to be bound by all terms of this agreement Copyright by MikroElektronika 2003 2009 PIC PlCmicro and MPLAB are registered trademarks of Microchip Company Windows is a registered trademark of Microsoft Corporation All other trade and or service marks are the property of the respective owners CONTENTS ore eon 8051prog Programmer 8051flash Programmer Software Installation 8051flash Software Keyboard Shortcuts and Command Line Parameters Programmer s Operation 8051prog Programmer Connection Schematics 8051PROG PROGRAMMER Along with complementary software 8051prog programmer represents an irreplaceable tool for all those working with 8051 microcontrollers By means of this programmer it is possible to program almost any 8051 microcontroller including those embedded soldered in printed circuit board The 8051prog programmer is connected to the microcontroller via seven lines Two of them are 5V and GND while others are used for device selection signal transmis sion
3. device with built in 8051 microcontroller the pro grammer should be connected to the MCU programming pins via IDC10 connector At the same time any periph Ki 8051prog programmer Peripherals eral using the same pins disconnected should be disconnected by means of jumpers Target device o i If the target board has its own 5V power supply then it can be also used for powering the 8051prog programmer In that case it is necessary to open programmer s plastic case and remove the jumper for power supply selection Otherwise if the target board does not have its own power supply source then the jumper should not be removed In that case the pro grammer the microcontroller and the whole electronics are powered via programmer s USB cable which connects the programmer to a PC Any other on board power supply must be suspended BGOS1P ROG PROGRAMMER This picture illustrates the position of jumper when the target board and the programmer are powered via USB cable This picture illustrates the programmer with no jumper for power sup ply selection In this case the programmer is powered by the target board which has its own power supply SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD ogdadoounBlBooubDnBMoo G 8051FLASH SOFTWARE INSTALLATION E a In order to enable programming microcontrollers using 8051prog programmer it is neces i sary to in
4. SPI protocol and reset SS Slave Select MISO Master In Slave Out MOSI Master Out Slave In SCK Serial Clock RST Reset These lines are contained within a flat cable ending with an IDC10 female connector While designing a target device the appropriate 10 pin male connector with 2 54 mm space between pins should be placed on it Connector pins should be connected to the microcon troller pins Their position varies depending on the microcontroller s type and package Appro priate connection schematics are provided at the end of this manual Note If a target device uses MCU programming pins for the operation of some other peri pherals then it should be enabled to these peripherals to be disconnected during programming Jumpers are commonly used for disconnecting the MISO MOSI SCK oo and RST programming pins un Peripherals connected Programmer is inac tive ez D e GE e pu Ep gt 8051prog programmer During normal operation of the target device the pro grammer should be dis connected while peripher als should be normally connected to the MCU pins as per project Con nection is made by means of four jumpers Target device Mikroflekironika sorrwarecanc TARDWARE SOLUTIONS FOR EMBEDDED WORLD ER S Ks Is u Ve II e VefoI sl Programmer is active During programming a
5. registered trademarks or copyrights of their respective companies and are used only for identification or explanation and to the owners benefit with no intent to infringe c EE EE mm oou Leite Rete KOKOK ile 0101010 EL OO OO 00 00 por Om UJO2 90JXIUJ3921JJO IeUJ 9 Velo e Toy IV Y WRe EJN en 12e1u02 eseejd jesodoid sseuisnq e 10 JUBWIWWOD uonsenb 193430 Aue aney nof yi amp o e e moeoeo eo e0e060606060000009 e Boe 0 AYAV EJAT ToL P IV WII LYOddNS 1V2INH23L MOU SN ja eseajd uoneuujojur jeuonippe JUeM snf no JO sjonpoud ano jo Aue yum Swajqoid Gui ueuasdxe aie nof JI ege VG ere Er ER Tee SNOILA TOS dH VMCHVH ANY 3d VMLJOS U41001149130 DII C
6. 4051 PAP Dea OX m ON BOARD IDC10 CONNECTOR SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD Milreklokironika o Es c DI T D d z 2 Lu 72 z ele SOO Os afe eLefejafeley USERS Connection between on board male IDC 10 connector and 40 pin 8051 microcontrollers such as AT898S51 52 53 AT8988252 8253 ON BOARD IDC10 CONNECTOR Connection between on board male IDC 10 connector and 8051 microcontrollers in PLCC44 sase such as AT89S51 52 53 AT89S8252 8253 ON BOARD IDC10 CONNECTOR After programming the programmer s IDC10 female connector must be unplugged and jumpers must be placed It enables the RST MISO MOSI and SCK pins to be connected to the rest of on board electronics which further enables device to operate normally without being affected by the 8051prog programmer If needed the jumpers can be removed and 8051prog can be reconnect ed in order to reprogram the chip Note Target board must not have electrolytic capacitors between the microcontroller pins and embedded IDC10 male connector if the power supply voltage is controlled by the 8051prog programmer Mikrofiokironika 7088 ANG HARDWARE SOLUTIONS FOR EMBEDDED WORLD No part of this manual including the product and software described in it may be reproduced transmitted transcribed stored in a retrieval system or translated into any lang
7. EMBEDDED WORLD Milreklokironika D 111 d PROGRAMMERS OPERATION During programming the IDC 10 male connector is used to bring signal from the programmer To enable it it is necessary to remove jumpers and plug the programmer s connector into the on board connector Programmer is connected 8051 y E P1 0 P1 1 P1 2 O fest ia que m JE 1 P4 4 vos f EI NN Z MM MISO Sal UU bg Pie 107 Ba EB P1 7 RST Li Ba I RST Uy P3 0 I P3 1 I P3 2 X A Jumpers are NY I P3 3 disconnected e Lt P3 4 MZA I P3 6 m lt I P3 7 I XTAL2 I XTAL1 L GND R A Zz 2 G2 w o se w ES se ou 40 PIN Mikrofiokironika SOFTWARE ANG HARDWARE SOLUTIONS FOR EMBEDDED WORLD T Ia ste eIe ufeTefeIo ufa ole EN 8051PROGrammer CONNECTION SCHEMATICS 43 Connection between on board male IDC 10 connector and 14 pin 8051 microcontroller such as page AT89L P213 214 CR Met Bea m ON BOARD IDC10 CONNECTOR Connection between on board male IDC 10 connector and 16 pin 8051 microcontroller such as AT89LP216 CONNECTION SCHEMATICS ON BOARD IDC10 CONNECTOR Connection between on board male IDC 10 connector and 20 pin 8051 microcontrollers such as biz P15 VEH P1 4 AT89LP2052 4052 AT8982051
8. RATION P a The programming of 8051 microcontroller is performed by using signals RST MISO MOSI and SCK from the 8051prog programmer They are brought to the appropriate reset and SPI communication pins In order to enable programming to run without errors it is necessary to make sure that these pins are not connected to other electronic components Otherwise dur ing normal operation these pins must be connected to the other components as per project PROGRAMMERS OPERATION Since the microcontroller is soldered on the printed circuit board with no use of socket it is necessary to enable these pins to be connected to disconnected from the rest of electronics by using jumpers Because of that do not forget to embed 4 jumpers while designing a device Mikrofiokironika SOFTWARE ANG HARDWARE SOLUTIONS FOR EMBEDDED WORLD At the end of the programmer s flat cable there is an IDC 10 female connector which fits into an on board IDC10 male connector with 2 54mm space between pins During normal opera tion of the target device it should be left disconnected as shown in figure below In that way the microcontroller pins will be connected to the rest of on board electronics via four jumpers On board IDC10 male connector XXI TES STA PX Has Kate A Jumpers are connected 40 PIN SOFTWARE AND HARDWARE SOLUTIONS FOR
9. ct components to instal Sac 4 Note Make sure that 8051prog programmer is not connected to the PC during soft ware installation Mikrofiokironika SOFTWARE ANG HARDWARE SOLUTIONS FOR EMBEDDED WORLD gs sIa sliefeIe ufeTefeIo ufo ole Step 4 Installation Location 8 SUPE ASH Frogremmer v dH Setup ebe er een ORNA This step is intended for choosing destination ma NERONE folder If you want to install the program to the saxo and sec sone Folder chk Instal to start the nelson 5 folder different from default click Browse and select another folder on hard disc Then click Next If you choose default folder the program will be installed on the following destination page C Program Files Mikroelektronika 8051 flash Step 5 Installation Details pou eal intimal aria 8051 flash installation starts here and its progress cae sone cpocunens and settingstverkel esktopteos FLASH Ik will be shown on the screen If you are interested CLTTTTTTTTTTTTITITTTITTITTITTTTTTTITTITTITITTITTIT in details of the installation click the Show details button Step 6 Finish 8051 FLASH Programmer y2 08 Setup T Completing the 8051FLASH Programmer v2 08 Setup Wizard BOSTFLASH Programmer v2 08 has been installed on your computer Windows will notify you of successful installation of 8051flash by showing the window from the picture on the right To complete the ins
10. ogrammer RP EUR AE ATmegal6 SE Se an TTE SES SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD KEYBOARD SHORTCUTS AND COMMAND LINE PARAMETERS Keyboard Shortcuts Command Example 1 Example 2 Example 3 Alt E Erase Alt W Write Alt V Verify Alt R Read Alt D Change MCU Ctrl S Save Ctrl O Open Load Ctrl R Reload Line Alternatively you can activate the 8051flash from the command line It also enables you to use 8051flash from some other software com piler etc Here is the list with the command line parameters W V e r pP f fc fd q Write to 8051 Verify Erase 8051 Read from 8051 8051 name for example AT89S8253 Hex code file name must be enclosed with File name of the hex code to be written to program mem ory name must be enclosed with File name of the hex code to be written to EEPROM mem ory name must be enclosed with Device frequency Hz Close program when the operation is finished 8051prog exe w pAT89S8253 v f C somefile hex This command programs the 8051 using C somefile hex and verifies written data 8051prog exe r pAT89S8253 This command reads the 8051 8051 prog exe e pAT89S8253 This command erases the 8051 SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD 6 Mikreflokironika E a KEYBOARD SHORTCUTS Te otn eIe la e o ef a 17 410 PROGRAMMER S OPE
11. stall the 8051flash programmer program 8051flash on your PC The same pro gram is used for programming 8051 microcontrollers using Easy8051 development board Step 1 Start Installation 8 BUSI FLASH Programmer v2 08 Setup Welcome to the 8051FLASH Insert the product CD into a PC drive A list with all Programmer v2 08 Setup Wizard MikroElektronika s products appears Click the setup Fo Tis wizard wi de you trough he talon o icon to start software installation 8051flash software for Windows 8051flash setup exe may be also downloaded free of charge from our web site Then you have to start the installation from your hard drive A welcome window appears Click Next 8057FLASH Programmer vl 08 Setup Step 2 Licence Agreement reali Gansen RR Programmer 2 08 i i Press Page Down to see the rest of the agreement Prior to start the installation please review the License terms If you accept them select the option accept the terms in the License Agree ment and click Nex afterwards Dum RT anes fumes Gia Otis trn rone ir pa Le ll o Step 3 Choose Components 8 EISE gram ELE OHS Setup Choose which features of 6051 FLASH Programmer v2 08 you To make it as simple as possible this step does pani oina A not requires you to choose components to install Cre neces you an to ratal nda cnr oda wa Click Nexf to continue GOST FLAS IA SOFTWARE INSTALLATION Sele
12. tallation process click Finish Ys Chick Finish to close this wizard SOSI PLASH SOFWARE INSTALLATION Driver installation After installing 8051flash it is necessary to install the appropriate drivers on your PC They enable programmer s hardware to operate properly For information on their installation please refer to Installing USB drivers manual SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD Mikreflokironika E E Le Gp ac Gp ST i ns q De e 8051flash SOFTWARE Step 1 Run 8051flash Run 6051flash from your PC Click the Device option and select the appropriate microcontroller to program 8051flash will automatically set parameters to work with the specified microcon troller Step 2 Load HEX File Click the Load option which opens the win dow shown on picture on the right Select the appropriate executable file having extension HEX in its name and click the Open option 8051flash will do all neces sary settings on the basis of control bits stored in the HEX file Flee oftype HEX Files se En Step 3 Write Program Click the Write option in the up right corner of the working window to start programming the microcontroller The progress of program ming will be shown in the right bottom corner of the working window tie iain Dedet EE SC H Zh Ee de a AER ade MER Ed bel mikroEtektronika AVRFLASH Pr
13. uage in any form or by any means excepting the documentation kept by the purchaser for backup purposes without expressed written permission of MikroElektronika company Product warranty or service will not be extended if the product is repaired modified or altered unless such repair modification or alteration is authorized in writing by MikroElektronika MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limiting to implied warranties or conditions of merchantability or fitness for a particular purpose In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages whatsoever including damages for loss of business profits and business information business interruption or any other pecuniary loss arising from any defect or error in this manual or product even if MikroElektronika has been advised of the possibility of such damages Specification and information contained in this manual are furnished for internal use only and are subject to change at any time without notice and should be construed as a commitment by MikroElektronika MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that may appear in this manual including the product and software described in it Product and corporate names appearing in this manual may or may not be

Download Pdf Manuals

image

Related Search

Related Contents

CY-C8250  absolute rotary encoder with ethernet/ip interface user manual  "取扱説明書"  

Copyright © All rights reserved.
Failed to retrieve file