Home
Megawin 8051 ISP via COM Port User Manual
Contents
1. Buffer Status PC Memory Buffer Size Bytes 1024K NONE N Enable HWBS eco FZWDTCR Read Program Erase Cancel This document information is the intellectual property of Megawin Technology Co Ltd 5 Megawin Technology Co Ltd 2007 All right reserved ZY gt MEGAWIN Megawin 8051 ISP via COM Port a MAKE YOU WIN User Manual v1 02 Step 2 Load the ISP code to the programmer s buffer As the following figure select Load File to Programmer Buffer to load the ISP code SP_by_COM BIN into the Programmer Buffer BEJE wP WPGM51 EXE 5 53 HOR Edit Device Operation Setup About grammer Buffer Compare Save File from Programmer Buffer Load Programmer Configuration Save Programmer Configuration Enable Job Function Exit Adaptor None O base addr LPT1 3BC Target Zone Byte Wide Device Start 00000000 Device End 00003BFF Buffer Start 00000000 Buffer End 00003BFF Buffer Checksum 0000 Buffer Status PC Memory Buffer Size Bytes 1024K Load File To Programmer Buffer This document information is the intellectual property of Megawin Technology Co Ltd 6 Megawin Technology Co Ltd 2007 All right reserved sY MEGAWIN Megawin 8051 ISP via COM Port User Manual v1 02 MAKE YOU WIN Step 3 Change the Buff start to the MCU s ISP start address 1 For MPC8
2. E E e File C tnp ISP_by_COM BIN y CodeSize 1002 Bytes CheckSum O0xFCEO Step4 Configure the MCU s HIW Option This document information is the intellectual property of Megawin Technology Co Ltd 4 Megawin Technology Co Ltd 2007 All right reserved 2 YY MEGAWIN Megawin 8051 ISP via COM Port lt a MAKE YOU WIN User Manual v1 02 2 2 Using the Hi Lo ALL 11 Programmer for Chip Configuration Step 1 Configure the H W option Enable HWBS and select ISP Address 1 For MPC89L E 51 52 53 select 0x3800 0x3BFF 1K bytes for Megawin provided ISP code 2 For MPC89L E 54 58 515 select OxF800 OxFBFF 1K bytes for Megawin provided ISP code 3 For MPC82L E 52 select 0x1C00 0x1FFF 1K bytes for Megawin provided ISP code 4 For MPC82L E 54 select 0x3800 0x3DFF 1 5K bytes for Megawin provided ISP code 5 For MPC82G516 select OxFCO0 OxFFFF 1K bytes for Megawin provided ISP code See the following example For MPC89L E 51 52 53 fie WPGM51 EXE 5 53 Programmer Status Device Mfr MEGAWIN Type QMPC89L51A Adaptor None Select ISP Address O base addr LPT1 3BC Target Zone Byte Wide Device Start 00000000 Device End 00003BFF Gonfignration 00003BFF WV ISP Address Option bits Lock 3800 3BFF v 2C00 3BFF SB 3400 3BFF MOVEL Buffer End Buffer Start 00000000 Buffer Checksum 0000
3. P1 1 T2EX P1 2 P1 3 P1 4 RD P3 7 WR P15 P1 6 TXD P3 1 Pe RXD P3 0 MPC89L515 40 DIP 8051_TXD 8051_RXD 1 The VCC power can be 3 3V for L series 8051_RXD VCC O T1 IN T2_IN R1_OUT R2_OUT Male DB9 or 5 0V E series for 2 There is no restriction on the XTAL s frequency This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved fy ai MAKE YOU WIN Run Setup exe in the 1 PC site AP folder to install the application program on PC site Using its default installing setting you will find the item Megawin Utilities Megawin 8051 ISP via COM Port v appearing Megawin 8051 ISP via COM Port User Manual v1 02 MEGAWIN Install the PC site AP 3 2 in the Windows START menu Download new program code to Target MCU Note the v means the current version and may be upgraded in the future GUI means Graphic User Interface of the Application Program running in the Windows Introduction to the GUI of the AP Load program code into Code Buffer Hj Megawin 8051 ISP via COM Port v1 02 MEGAWIN Load File Binary Code Buffer Contents of program code Device Found Processing status This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 A
4. right reserved 13 Megawin 8051 ISP via COM Port User Manual v1 02 LYND 2 MEGAWIN CLA S MAakEYOoUWIN Revision History Revision Description Date vi 00 The first released version 2007 04 24 v1 01 Fix the PC site AP bug Hex to Binary conversion error 2007 08 06 v1 02 In the target MCU only the pages occupied by the new program code are erased 2008 01 22 This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved 14
5. 9L E 51 52 53 change to 0x3800 2 For MPC89L E 54 58 515 change to 0xF800 3 For MPC82L E 52 change to 0x1C00 4 For MPC82L E 54 change to 0x3800 5 For MPC82G516 change to OxFC00 Note Hi Lo will support MPC82G516 in the future Big WPGM51 EXE 5 53 File Edit Device Operation etup About Verify Compare Programmer Status Device Mfr MEGAWIN Type CMPC89L51A Adaptor None O base addr LPT1 3BC 3 5 Change the Buff start Target Zone Byte Wide Device Start 00000000 Device End 00003BFF Buffer Start 00000000 Buffer End 00003BFF File Format Buffer Checksum 0000 Buffer Status PC Memory Buffer Size Bytes 1024K File Formats File Status Intel HEX File start 00000000 MOTOROLA S Record File end 0000FFFF Unused Bytes e Dont Gare Buff start 00003800 Y im SAS OK Cancel This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved fy Megawin 8051 ISP via COM Port Lir MEGA WIN 3 User Manual v1 02 MAKE YOU WIN Step 4 Click the Auto button to program the ISP code and H W option into the MCU chi Programmer Status Device MEGAWIN Mfr MEGAWIN Type MPC89L51A Type MECSIESIA Serial No OFF Adaptor None Counter V0 base addr LPT1 3BC _ ID check Target Zone Byt
6. MAKE YOU WIN User Manual v1 02 2 YY MEGAWIN Megawin 8051 ISP via COM Port tl a R Megawin 8051 ISP via COM Port User Manual By Vincent Y C Yu This document information is the intellectual property of Megawin Technology Co Ltd 1 Megawin Technology Co Ltd 2007 All right reserved Install the PC site AP 3 3 1 3 2 3 3 Operating Steps 4 About USB to RS232 Cables 4Y MEGAWIN Megawin 8051 ISP via COM Port CA 7 MAKE YOU WIN User Manual v1 02 Contents T Whatis ISP mirena Centers went er seen ne A nes tn E 3 2 Chip Configuration for ISP sce cxecrsesssciensetsnrocrssiucsnnnonscesancucnesneerieiedeseeraenaoetine 4 2 1 Using the Megawin 8051 Writer for Chip Configuration ssessssssneseneesserrssernnrrrennnssrerrneee 4 2 2 Using the Hi Lo ALL 11 Programmer for Chip Configuration sssssseesssennsseerreerrenerssrerrssee 5 How to Do ISP via COM Pont scisss eeeseacegeleris tess deaadiarecaceaunmeasaiiniaeveveadeceamnienes 9 System Diagram GNCUNE 23 25 cbs aencecencansetsrarecectinctidsadictnaiatveicexduonniantataaeterenienectertmmteareaiaduncts 9 Sees Ie cs re a cc eee 10 ee 11 E E E E S E cee es cece E 13 E E E E teens 14 Revision History This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved fy Megawin 8051 ISP via COM Port isr MEGA WIN User Manual v1 02 MAKE YOU WIN 1 What is ISP IS
7. P is the acronym of In System Programming and makes it possible that the user can alter the application code under the software control without removing the mounted MCU chip from the actual end product To do ISP the loader program called ISP code should be pre programmed into the target MCU s ISP memory before mounting the MCU chip to the PCB When powered on the MCU boots from the ISP memory and runs the loader program for checking if the user wants to do ISP If the ISP is not requested the MCU will re boot from the AP memory by triggering the software reset to run the user s application code This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved ZY MEGAWIN Megawin 8051 ISP via COM Port MAKE YOU WIN User Manual v1 02 2 Chip Configuration for ISP To use the ISP function the user should configure the MCU chip by the following two steps Step1 Use a universal Writer or Programmer to configure the SP memory with 1K bytes or 1 5K bytes for MPC82L E 54 and make HWBS or HWBS2 option enabled Step2 Program the Megawin provided standard ISP code SP_by_COM BIN in the 2 Target ISP code folder into the configured ISP memory The user may utilize the Megawin 8051 Writer or the Hi Lo ALL 11 Universal Programmer for the MCU chip configuration 2 1 Using the Megawin 8051 Writer for Chip Configuration Plea
8. e Wide v Erase Device Device Start 00000000 Device End 00003 f Blank check Buffer Start 00000000 Buffer End 00003 I M Program Buffer Checksum 0517 2a verity Buffer Status PC Memory Buffer Size Bytes 1 Config r C Normal C Even C Odd Close Block Setup SIN setup If you use even or odd mode the buffer will automatically expand to 2 times the device size This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All right reserved wy MEGAWIN MAKE YOU WIN 3 How to Do ISP via COM Port 3 1 System Diagram amp Circuit To connect the target system to the COM port of a host PC there needs an RS232 signal level converter i e an RS232 transceiver such as the MAX232 chip The following block diagram shows the connection between the Megawin 8051 ISP via COM Port User Manual v1 02 target system and the PC Where the P3 0 amp P3 1 of the target MCU function as the UART receive amp transmit respectively And a MAX232 chip and a 9 pin RS232 connector are used for communication with the PC s COM port Block Diagram Target System Target MCU PC RS232 Transceiver such as MAX232 5 T_IN T_OUT O45 COM Port E E 34 i R_OUT R_IN oN RS232 Cable 1 RS232 Connector Circuitry P3 2 INTO P3 3 INT1 P3 4 TO P3 5 T1 P1 0 T2
9. le Name D Toolsttest Green62k bin Code Size 63488 Bytes Check Sum OxADS2 Binary Code Buffer Device Detect Step6 This document information is the intellectual property of Megawin Technology Co Ltd 11 Megawin Technology Co Ltd 2007 All right reserved 2 YY MEGAWIN Megawin 8051 ISP via COM Port sS lt MAKE YOU WIN User Manual v1 02 Notes For Step2 When load file both HEX and BIN are acceptable and the code size is based on its binary format For MPC89L E 51 52 53 the maximum code size is 15K 1K 14K bytes which includes IAP data For MPC89L E 54 58 515 the maximum code size is 63K 1K 62K bytes which includes IAP data For MPC82L E 52 the maximum code size is 8K 1K 7K bytes which includes IAP data For MPC82L E 54 the maximum code size is 15 5K 1 5K 14K bytes which includes IAP data For MPC82G516 the maximum code size is 64K 1K 63K bytes which includes IAP data Where minus 1K or 1 5K for MPC82L E 54 means subtracting the space of ISP memory For Step3 The Target Page Offset means the starting address of the Flash memory to be programmed For example if the offset is filled with 5A then the new program code will be programmed into the Flash memory starting from Ox5A00 In fact the offset value is the high byte Flash page address Because each page has 512 bytes this offset value should be an even number For Step4 If a USB to RS232 cable is
10. ll right reserved Programming page offset in the Target MCU s Flash For example If 5A is filled the starting MAKE YOU WIN Select Part No PartNo MPC89L E 54 M Select COM Port COM4 X used COM port V Auto BaudRate Select baudrate Auto or Manual FileName D Toolsitest Green14k bin Code Size 14336 Bytes Check Sum Ox0E27 address of the MCU to be programmed is 0x5A00 If A8 is filled it is OxA800 Note Only even number can be entered 10 ZY MEGAWIN Megawin 8051 ISP via COM Port CA A MAKE YOU WIN User Manual v1 02 3 3 Operating Steps First turn off the target system and run the installed AP on PC site Then follow the steps listed below Step1 Select Part No Step2 Click Load File to load the new program code Step3 Fill the Target Page Offset if need Step4 Select the COM Port to which the target system is connected and select Auto Manual BaudRate Step5 Click Update Target and then turn on the target system within 10 seconds when the message Device Detect is shown in the processing status window gt Very important Step6 Wait the processing result Step7 Go to Stepd5 for trying again if any errors happen See notes in the next page Step1 Step2 Step3 Ej Megawin 8051 ISP via COM Port v1 02 MEGAWI MAKE YOU WIN MPC89L E 515 Load File Step5 Step4 COMPort COM4 M iv Auto BaudRate Target Page Offset Manual s200 gt BaudRate 00 Fi
11. se follow the steps also shown in the following picture Step1 Select the Part No Step2 Select the Programming Area SP memory Step3 Load the ISP code SP_by_COM BIN to the Writer s buffer Step4 Configure the MCU s H W Option 1KB or 1 5KB for MPC82L E 54 for ISP memory and enable HWBS or HWBS2 Step5 Click Auto and select Program Option then click Run for auto programming Step3 Load the ISP code ISP_by_COM BIN Step2 Select Programming Area Step1 Select Part No Megawin 8051 Writer v3 80 MEGAWIN MAKE YOU WIN lt Programming Area ma Part Number MPC89L54 H C AP memory IAP memory 6 ISP memory C AP IAP ISP Check ID Binary Code Buffer Load File Save MPJ Erase Blank Check Save Buffer Program Dump Target Step5 Click the Auto and select Program Option for auto processing _ Verify Get Checksum Insert ISP code _ HAW Option Option Message TSP memory Nat ee Program Read Set OxF800 OxFBFF 1KB v Option Option Whoke chip Eme Now IV Check ID Set Now Set Now ee MOYCL I nie Lea Set IAPLB SB E aig V Erase Select LOCK I Gila V BlankCheck Program Option oe ae FZWDTCR faite fF Porm s OSCDN Tr aig WENW If H oa eee SE INEN CHWBS O cr v Verify or 1 E E ENGT m a a a HWPS A
12. used its COM port number can be checked by the following steps 1 Open the My Computer folder 2 Open the Control Panel folder 3 Open the System 4 Click on the Hardware tab at the top of the dialog box then click on the Device Manager 5 Click on the plus sign in front of the Ports COM amp LPT to check the device listing for the cable s COM number The user can select either Auto BaudRate or Manual BaudRate Sometimes the ISP processing may fail when Auto Baudrate is used At this time please select Manual BaudRate and choose a lower baudrate for successful ISP processing For Step5 Anyway before clicking Update Target the user should keep the target system in powered off state This document information is the intellectual property of Megawin Technology Co Ltd 12 Megawin Technology Co Ltd 2007 All right reserved fy Megawin 8051 ISP via COM Port Uir MEGA WIN 3 User Manual v1 02 MAKE YOU WIN 4 About USB to RS232 Cables So many modern Note Book computers have no COM port built in Therefore the user may use the USB to RS232 or USB to Serial adapter to substitute the real COM Port However not all the cables can work well for our ISP application It is strongly recommended that user use the cable with Prolific chip PL 2303 or FTDI chip built in This document information is the intellectual property of Megawin Technology Co Ltd Megawin Technology Co Ltd 2007 All
Download Pdf Manuals
Related Search
Related Contents
Installation Instructions for M1A or M14 Rifles 取替用ボールタップ F - Palazzetti QVC TCE5850 User's Manual Basic Configuration Package - RIEGL Laser Measurement Systems Manuel d`instructions Operating Instructions Mode d'emploi Betriebsanleitung Copyright © All rights reserved.
Failed to retrieve file