Home
Nuvoton 8051 ISP by COM Port
Contents
1. For reset control See Note 2 RS232 Cable Note 1 The I O pins used for booting from LDROM may be P2 6 amp P2 7 P4 3 P3 6 amp P3 7 P4 0 or none See the above table Note 2 For With Reset Control configuration Qt R3 and R4 are needed For Without Reset Control configuration Qt R3 and R4 are not needed 0 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt 6 NnuvoTon 8051 ISP by COM Port EEE SEE 2 3 Requirement on the MCU s Operating Frequency For ISP operation through COM port there is no special restriction on the MCU s operating frequency as long as the frequency is higher than or equal to 3 6864MHz The 8051 MCU will automatically choose a proper baudrate according to its operating frequency to communicate with the host PC It is recommended that the user uses the following specific frequencies 3 6864MHz 11 0592MHz 18 432MHz 22 1184MHz or 36 864MHz for the 8051 MCU to generate a standard baudrate All the listed frequencies can be used to generate an exact baudrate of 115200bps which will shorten the data transmission time during ISP operation 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt 7 nuvoTon 3 Software 3 1__Install the Application Program The application program setup file is contained in the folder 2 Application Program Using the default installati
2. v3 00 2010 02 10 v4 01 2010 06 15 v5 00 2010 08 13 v5 02 v5 05 2011 01 18 v5 31 2011 04 08 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt 3 NnuvoTon 8051 ISP by COM Port OO 1 Introduction ISP is the acronym of In System Programming which makes it possible that the user can update the program memory under the software control without removing the mounted MCU chip from the actual end product For the 8051 MCU products we provide an ISP solution through the PC s COM port As long as the Nuvoton standard ISP code is pre programmed in the MCU s LDROM the user can easily update the MCU s APROM through the PC s COM port Note The ISP function can work only when the ISP code has resided in MCU s LDROM To let users easily use the ISP function some of the 8051 MCU products have the Nuvoton Standard ISP Code pre programmed in LDROM and CONFIG bits properly configured before shipping Please contact Nuvoton for detailed product information The Nuvoton Standard ISP Code is also included in the folder 4 Nuvoton Standard ISP Code The user may program it by himself using a universal programmer 2 Hardware To make the 8051 MCU boot from LDROM after reset to run the ISP code some specific VO pins need to be tied to ground and the CONFIG needs to be properly configured The following table shows the specific VO pins and the prope
3. Fix a minor bug in Nuvoton standard ISP code The ISP code version is changed to lv0201 1 Add new parts N78E366A N78E055A N78E059A and N78E517A 2 Use the integrated PC site application program of ISP ICP Programmer v4 00 Update the PC site AP version to v4 00 2010 04 01 1 Fix a minor bug in Nuvoton standard ISP code for W925EP01 N78E366A IN78E055A N78E059A and N78E517A The ISP code version is updated to v3 12 2 Add a new part W925EP01 3 Update the PC site AP version to v4 01 1 Improve data security of the Nuvoton standard ISP code for N78E366A N78E055A IN78E059A and N78E517A The ISP code version is updated to v3 13 2 Update the PC site AP to v5 00 The GUI display for CONFIG Setting becomes more user friendly 1 Fix the HEX to BIN conversion error when the hex input file has a binary code size more than 64K The application program is updated to v5 02 2010 11 15 2 Modify all the ISP codes to prevent from hanging in LDROM during powered on in an IRS 485 application The ISP code version is updated to v3 20 1 Support Tool Project TPJ file for management of GUI setting 2 Fix the ISP code bug when using 3 6864MHz XTAL for ISP by COM Port function The ISP code version is updated to v3 21 3 3 6864MHz is the lowest XTAL frequency instead of 3MHz in v3 20 1 Fix some software bugs 2 The ISP code version is updated to v3 23 v2 00 2009 09 03 v2 01 2009 09 22
4. and so only one RS232 cable is needed during the ISP operation as shown below Target System with RS232 Transceiver sosimcu RS232 Bed u Transceiver u2 JEA vaRT Iiertace P3 0 RXD Huon er suey RS232 Connector PL RST P3 1 TXD TEN Ry OUT Qu P28 P2 7 GND To boot trom LDROM See Note 1 COM Port Note 1 See the above table Note 2 For With Reset Control configuration Q1 R3 and Fi are needed For roset control See Note 2 For Without Reset Control configuration Q1 R3 and R4 are not needed RS232 Cable The VO pins used for booting from LDROM may be P2 68P2 7 P4 3 P3 6 amp P3 7 P4 0 or none 2010 Nuvoton Technol All Rights Reserved lt Revision 5 31 gt 5 NnuvoTon 8051 ISP by COM Port 2 2 Without an RS232 Transceiver in the Target System To save an RS232 transceiver e g MAX232 built in each target system the user may use the RS232 Cable Adaptor with an RS232 transceiver inside as shown below Target System without RS232 Transceiver RS232 Cable Adaptor 8051 MCU S232 IK General Transceiver 4 Connector pe ch Red Ut ti Wee ER txa 7 v Connector er ct x TT hane vee usar T Me Tee P3 0 RX0 P3 1 TXD c2 c2
5. x Items to be Updated Save GUI setting to a TPJ file Restore GUI setting from a TPJ file APROM Buffer File Name Code Size Checksum Ready 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt TO NnuvoTon 8051 ISP by COM Port B_I 4 Operation Steps 41 With Reset Control For the With Reset Control configuration the user should follow the steps to do ISP Step 1 Connect the target system to PC s COM port through an RS232 cable Step 2 Run the PC site AP select wanted part no select correct COM port to which the target system is connected and load the code data file into APROM DataFlash Buffer Step 3 Click the Update Chip button when the target system is in power on state Step 4 Now the 8051 MCU will automatically reboot from LDROM and will be successfully detected and updated Note If possible With Reset Control is strongly recommended for ISP operation 4 2 Without Reset Control For the Without Reset Control configuration the user should follow the steps to do ISP Step 1 Connect the target system to PC s COM port through an RS232 cable Step 2 Run the PC site AP select wanted part no select correct COM port to which the target system is connected and load the code data file into APROM DataFlash Buffer Step 3 Click Update Chip button Step 4 Manually have the 8051 MCU r
6. Control configuration for ISP operation External RC Reset Circuit The general external RC reset circuit is shown in Figure da The resistance of R should be larger than 47KQ to have the RST pin be successfully controlled by the PNP transistor Normally 47KQ 2 2uF and 100KQ 1uF are recommended for R C Figure 4a External RC Reset Circuit 8051 MCU External RC reset circuit VDD gmn RST G GND Reset Circuit with a Reset IC In this condition the RST pin cannot be controlled by the PNP transistor Q1 Figure 4b Reset Circuit with a Reset IC 8051 MCU Reset IC active High VDD g vec RESET RST GND _ _ END 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt 12
7. d lt Revision 5 31 gt 8 NnuvoTon 8051 ISP by COM Port 3 3 Auto Synchronization of APROM DataFlash Buffer The buffer contents will be automatically synchronized with the physical file in the hard disk when the function button Update Chip is clicked as shown below So the user needn t manually reload the files for APROM buffer and DataFlash buffer when the physical files are updated externally EANuvoton ISP ICP Utility v5 02 NUVOTON Programmer Type Part No cipe F lad Fite ISP by COM Port NTBEDSER X CONS io ee ER Update Chi ill mak ROM ick Update ip will make FEE the buffers synchronized F DataFlash E I CONEIG _ CONFIG Setting Exit APROM Buffer DataFlash Buffer File Name Code Size 16384 Bytes Physical file in Checksum 0x4FB5 the hard disk Ready 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt 9 nuvoTon 8051 ISP by COM Port 3 4 Tool Project File TPJ The user may save all the GUI setting to the Tool Project TPJ file and retrieve the GUI setting by loading the TPJ file previously saved It is much helpful to the user to manage a variety of the programming data by a project style Note This feature is supported from revision v5 05 PA Nuvoton ISP ICP Utility v5 05 nuvoTon Programmer Type C ISP CIP F Load File ISP by COM Port W78E 1 054D com
8. eboot from LDROM during Detect 8051 as shown in the following figure by the following two methods 1 send a reset pulse to the 8051 MCU s RST pin when the target system is in power on state or 2 power off the target system and then power on again File Name D tmp 8051 ISP Programmer g test pattern test Green16k bin Code Size 16384 Bytes Checksum 0x4FB5 Detect 8051 Now reset the 8051 During detecting 8051 do the thing as Step4 describes Step 5 Now the 8051 MCU will be successfully detected and updated Note 1 Step 4 shows the Without Reset Control is somewhat inconvenient for the user to have the 8051 MCU reboot from LDROM This is why we strongly recommend the user to adopt the With Reset Control configuration 2 If any failed condition happens repeat steps 3 and 4 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision 5 31 gt TT NnuvoTon 8051 ISP by COM Port OOOO EE OOO 5 Reset Control Normally the 8051 MCU s RST pin with external RC reset circuit see Figure 4a can be controlled by the PNP transistor Q1 see the Figures in Sections 2 1 and 2 2 At this time the user may adopt the With Reset Control configuration for ISP operation However the RST pin cannot be controlled when it is connected to a reset IC such as MAX810 ADM810 AIC810 and FP6810 etc see Figure 4b Now the user should adopt the Without Reset
9. nuvoTon 8051 ISP by COM Port EE ow Nuvoton 8051 ISP by COM Port User Manual Revision 5 31 2011 04 08 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt T NnuvoTon 8051 ISP by COM Port EE eee Contents Revision HiStOMY s is csc ccacscsstecsszsccciaesdeestzssoaciaeateacantaciesashieacansaccescesdeacizbasacsceatantinas 3 lus eie EA ER RE EA EE N Hardware 2 1 With an RS232 Transceiver in the Target System 2 2 Without an RS232 Transceiver in the Target System 2 3 Requirement on the MCU s Operating Frequency Software 3 1 Install the Application Program 3 2 Introduction to the Application Program 3 3 Auto Synchronization of APROM DataFlash Buffer 3 4 Tool Project File TPJ Operation Steps 4 1 With Reset Control 4 2 Without Reset Control ET eon RA RA EE EE EE 1 DWD 22 AOODDONDAP HL jon All Rights Reserved lt Revision5 31 gt 2 NuvoTon 8051 ISP by COM Port _ OOOO Revision History Revision Description Date v1 00 The first released version 2009 07 15 1 Fix some minor bugs in AP 2 Modify the handshaking mechanism in linking to target system 3 The data in Code Buffer are refreshed when the Update 8051 or Verify 8051 button is clicked 1 Update the display of part numbers W78E051D W78E052D and W78E054D to become W78E 1 051D W78E I 052D and W78E 1 054D respectively 2
10. on setting you will find the item Nuvoton Tools Nuvoton ISP ICP Utility v appearing in the Windows START menu after the application program is successfully installed Note ISP ICP means this application program is used for both the ISP Programmer and the ICP Programmer In addition also for the ISP by COM Port 3 2 Introduction to the Application Program 8051 ISP by COM Port EEE SEES Select ISP by COM Port Select wanted Part No PA Nnvoton ISP ICP Utility v5 nuvoTon Part No Load file for APROM buffer and DataFlash buffer See Note AP Flash Butte Glick GROW ROM Buffer DataFlash Buffer APROM buffer Click to show DataFlash buffer File Name Code Size D imp6051 ISP Programmer g test patterntest Greentok bin 16384 Bytes 0x4F 85 Information of the loaded file a Processing status Programmer Type C isp rec T EES UPdate the MCU chip Select tems tobe Uda Select the COM port updated items Z APROM to which the MCU chip ed Set CONFIG bits is connected r i F DataFlash Update chip L GONFG Sating is clicked BEE The COM port to which the MCU chip has ever been connected Note To load code file click APROM But To load data file click DataFlash Buffer then click Load File 7 then click Load File 2010 Nuvoton Technology Corporation All Rights Reserve
11. r CONFIG setting used for booting from LDROM after reset In addition to directly connect to PC s COM port there needs an RS232 transceiver e g MAX232 in the target system The following sub sections will show the hardware connection VO Pins and CONFIG Bit for Booting from LDROM after Reset Part No VO Pins Tied to Ground for CONFIG Setting for f Booting from LDROM Booting from LDROM W78E 1 051D CBS W78E I 052D Not Need Selected as LDROM W78E 1 054D_ Boot from LDROM W78E 1 058D W78E I 516D P2 6 amp P2 7 for 40 pin package Not Need W78E L 365A MEER P4 3 for 44 pin package Not Need W78E RD2A W77E L 516A y s W77E L 532A P2 6 amp P2 7 for 40 pin package aac W79E L 632A W79E L 633A W79E L 648A W79E L 649A Reboot P4 3 W79E L 658A P4 3 for 44 68 100 pin package Enabled W79E L 659A W79E217A Reboot P3 6 P3 7 W79E225A P3 6 amp P3 7 for 44 pin package Enabled W79E226A j Reboot P4 3 W79E227A P4 3 for 48 100 pin package Enabled Reboot P4 0 W79E201A P4 0 Enabled Reboot P4 7 W925EP01 P4 7 Enabled N78E366A 4 m N78E055A N SBS N78E059A Not Need Selected as LDROM N78E517A Boot from LDROM 2010 Nuvoton Technology Corporation All Rights Reserved lt Revision5 31 gt 4 nuvoTon 2 1 With an RS232 Transceiver in the Target System 8051 ISP by COM Port In this design each target system has an RS232 transceiver e g MAX232 inside
Download Pdf Manuals
Related Search
Related Contents
to Open Manual File - American Musical Supply HAAS VF-0 User`s Manual - RTC-CNC USER'S MANUAL - PurePro® USA Reverse Osmosis Systems PDF datasheet Eux 20, Eux 35, Eux70 AND EUX 100 Altronix HubSat4D ALTERNATES 京都市右京区京北地域 京都市右京区京北地域 BoConcept Model 7050 Assembly Instruction Copyright © All rights reserved.
Failed to retrieve file