ICP Programmer 8051
ICP Programmer 8051
Megawin
8051 ISP-ICP Programmer
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.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
Contents
1 Introduction ..................................................................................................... 3
1.1 Two-in-One Functions ............................................................................................................... 3
1.2 Comparison between ISP and ICP ........................................................................................... 4
2 Chip Configuration for ISP .............................................................................. 5
2.1 Using the “Megawin 8051 Writer” for Chip Configuration.......................................................... 6
2.2 Using the “Hi-Lo ALL-11 Programmer” for Chip Configuration.................................................. 7
3 Install the ISP-ICP Programmer .................................................................... 11
3-1 Install the Driver ...................................................................................................................... 11
3-2 Install the AP........................................................................................................................... 11
3-3 Introduction to GUI of the PC-site AP ..................................................................................... 12
3-3-1 ISP Programmer GUI for MPC89-series .......................................................................................14
3-3-2 ISP Programmer GUI for MPC82-series and MG84-series...........................................................15
3-3-3 ICP Programmer GUI for MPC82G516 .........................................................................................16
3-3-4 ICP Programmer GUI for MG84FL516 ..........................................................................................18
4 Use the ISP-ICP Programmer ....................................................................... 20
4-1 Operation Modes .................................................................................................................... 20
4.1.1 Mode-1: Connected between host and target system ...................................................................20
4.1.2 Mode-2: Connected to host only ....................................................................................................21
4.1.3 Mode-3: Connected to target system only .....................................................................................21
4-2 Act as an ISP Programmer ..................................................................................................... 22
4.2.1 Download Programming Data to the ISP Programmer ..................................................................22
4.2.2 Update the Target ..........................................................................................................................22
4.2.3 Dump the Contents in the Information Zone ..................................................................................22
4-3 Act as an ICP Programmer ..................................................................................................... 23
4.3.1 Download Programming Data to the ICP Programmer..................................................................23
4.3.2 Update the Target ..........................................................................................................................23
4-4 The Megawin Project File (MPJ File) ...................................................................................... 24
4.4.1 Save to an MPJ File .......................................................................................................................24
4.4.2 Load an MPJ File ...........................................................................................................................25
5 Information Zone ........................................................................................... 26
5.1 Definition of the Information Zone ........................................................................................... 26
5.2 Dump the Information Data ..................................................................................................... 27
6 Special Notes for ISP .................................................................................... 28
7 Special Notes for ICP.................................................................................... 29
This document information is the intellectual property of Megawin Technology Co., Ltd. 2
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
1 Introduction
ISP is the acronym of In-System Programming, and ICP is the acronym of In-Circuit Programming. Both these
two programming methods make it possible that the user can update the application code under the software
control without removing the mounted MCU chip from the actual end product. The tool “Megawin 8051 ISP-ICP
Programmer”, see the following picture, integrates these two functions into a USB stick. That is it can function as
an ISP Programmer and an ICP Programmer. In addition, because the programming data to be programmed to
the target can be saved in the programmer’s non-volatile storage, this programmer is able to work stand-alone
without host (PC) intervention. This feature is especially useful in the field without a PC.
ISP Programmer
When acting as an ISP Programmer, it functions like a bridge between the host, which provides the new
programming data, and the target MCU, which has the loader program running inside. The loader program is the
so-called “ISP-code” and should be pre-programmed in the ISP-memory of the target. When powered on, the
target boots from the ISP-memory and executes the ISP-code to check if the ISP operation is requested. If the
ISP is requested, the target receives the programming data from the Programmer and programs into the AP-
memory by in-system programming method. After ISP processing is completed, the target will re-boot from the
AP-memory to run the new application code when the Programmer is plugged out of the target; If the ISP is not
requested, the target will directly re-boot from the AP-memory for normal running of the application code.
ICP Programmer
When acting as an ICP Programmer, it actually functions fully like a universal programmer except it adopts a
serial interface with only four pins used for programming. So, there is no need to have a loader program
embedded inside. It provides all the programming functions which a universal programmer can support, such as:
(1) erase the device,
(2) program the device,
(3) verify the device, and
(4) program all the device H/W options, including the security bits.
This document information is the intellectual property of Megawin Technology Co., Ltd. 3
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
MPC89L(E)51/52/53
MPC89L(E)54/58/515
MPC82L(E)52 Note1
MPC82L(E)54 MPC82G516
Parts that support ISP or ICP Note1
Note1 MG84FL516
MPC82G516
MG84FL54
Note1
MG84FL516
Note2 Note2
Interface GND/DTA/VCC GND/SDA/VCC/SCL
Note:
1. So far, only the MPC82G516 and MG84FL516 support both ISP and ICP.
2. ISP interface always uses P3.1 as DTA pin while ICP interface uses dedicated SDA and SCL pins.
This document information is the intellectual property of Megawin Technology Co., Ltd. 4
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
Step1:
Use a universal programmer or “Megawin 8051 Writer” to configure ISP-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 in the [(3) Target ISP-code] folder into the ISP-memory. Note
"ISP_Code_v5.00.bin" is for MPC89/82-series MCU, and "ISP_Code_v5.00_MG84.bin" is for MG84-series
MCU.
Note:
To let users easily use the ISP function, the Megawin 8051 products will have the following factory setting:
(1) ISP-memory is configured with 1K (or 1.5K) bytes and “HWBS” option is enabled.
(2) The Megawin-provided standard ISP-code is pre-programmed.
So, the user has no need to do the chip configuration before using the ISP function.
This document information is the intellectual property of Megawin Technology Co., Ltd. 5
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
This document information is the intellectual property of Megawin Technology Co., Ltd. 6
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
(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 0xF800-0xFBFF (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 0xFC00-0xFFFF (1K bytes for Megawin-provided ISP code)
(6) For MG84FL54: select 0x3C00-0x3FFF (1K bytes for Megawin-provided ISP code)
(7) For MG84FL516: select 0xFC00-0xFFFF (1K bytes for Megawin-provided ISP code)
For MPC89L(E)51/52/53:
Enable HWBS
This document information is the intellectual property of Megawin Technology Co., Ltd. 7
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
As the following figure, select “Load File to Programmer Buffer” to load the ISP code into the Programmer’s buffer.
This document information is the intellectual property of Megawin Technology Co., Ltd. 8
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
Note: Hi-Lo will support MPC82G516, MG84FL54 and MG84FL516 in the future.
This document information is the intellectual property of Megawin Technology Co., Ltd. 9
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
Step 4. Click the “Auto” button to program the ISP code and H/W option into 8051
This document information is the intellectual property of Megawin Technology Co., Ltd. 10
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
To check if the Programmer was correctly installed, follow the listed steps:
If the installation was completed successfully, you may find an entry, Megawin 8051 ISP-ICP Programmer, in the
listing.
(Note: the v?.?? means the current version and may be upgraded in the future.)
This document information is the intellectual property of Megawin Technology Co., Ltd. 11
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
The PC-site software AP (Application Program) integrates both functions of the ISP Programmer and the ICP
Programmer. The first thing the user needs to do is to select the “Programmer Type” when the AP is opened. See
the following figures for these two programmer types.
This document information is the intellectual property of Megawin Technology Co., Ltd. 12
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
This document information is the intellectual property of Megawin Technology Co., Ltd. 13
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
The user should always configure proper H/W Option before clicking “Update Target” or “Update Programmer”.
FZWDTCR:
[enabled]: The WDTCR register will be initialized to its reset value (0x00) only by power-on reset.
(For example, if WDTCR=0x2D, it still keeps at 0x2D rather than 0x00 after RST-pin, S/W or WDT
reset.)
[disabled]: The WDTCR register will be initialized to its reset value (0x00) by all reset (including power-on,
RST-pin, S/W and WDT reset).
OSCDN:
[enabled]: If the XTAL frequency is less than 25MHz, this option can be enabled to reduce the internal
oscillating gain for lower EMI.
[disabled]: Normal oscillating gain.
EN6T:
[enabled]: MCU runs at 6T mode (6 clocks per machine-cycle, double speed compared to a traditional 8051)
[disabled]: MCU runs at 12T mode (12 clocks per machine-cycle, like a traditional 8051)
This document information is the intellectual property of Megawin Technology Co., Ltd. 14
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
For these two series, the user can not update the H/W Option by ISP.
This document information is the intellectual property of Megawin Technology Co., Ltd. 15
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
The user should always configure proper H/W Option before clicking “Update Target” or “Update Programmer”.
ISP-memory:
Select the size you want.
IAP-memory:
Select the lower boundary address you want. For example, if 0x5A00 is wanted, then just key in “5A”, and the
IAP-memory lower boundary address will automatically displayed in the IAPLB box.
LVFWP:
[enabled]: Enable LVFWP (Low-Voltage Flash Write Protection) while IAP or ISP programming.
[disabled]: Disable LVFWP.
ENLVRC:
[enabled]: Enable hardware to generate low voltage reset when V30-pin voltage drops below 2.4V.
[disabled]: Disable low voltage reset.
This document information is the intellectual property of Megawin Technology Co., Ltd. 16
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
HWBS:
[enabled]: When power-on, MCU will boot from ISP-memory if ISP-memory is configured.
[disabled]: MCU always boots from AP-memory.
SB:
[enabled]: Code dumped on a universal Writer or Programmer is scrambled for security, but Device ID can be
read normally. It is strongly recommended that the LOCK should also be enabled when SB is enabled.
[disabled]: Not scrambled.
LOCK:
[enabled]: Code dumped & Device ID read on a universal Writer or Programmer is locked to 0xFF for security.
[disabled]: Not locked.
OSCDN:
[enabled]: Oscillating gain is reduced down for EMI reduction.
[disabled]: Normal gain.
HWBS2:
[enabled]: Like HWBS, the reset from RST-pin can also cause MCU to boot from ISP-memory.
[disabled]: Where MCU boots from is determined by HWBS.
ENLVRO:
[enabled]: Enable MCU to generate low voltage reset when VDD-pin voltage drops below 3.7V.
[disabled]: No low voltage reset.
ENROSC:
[enabled]: Enable built-in RC oscillator.
[disabled]: Disable built-in RC oscillator.
WDSFWP:
[enabled]: The special function register WDTCR will be write-protected except the bit CLRW.
[disabled]: The special function register WDTCR is free to be written by software.
This document information is the intellectual property of Megawin Technology Co., Ltd. 17
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
The user should always configure proper H/W Option before clicking “Update Target” or “Update Programmer”.
ISP-memory:
Select the size you want.
IAP-memory:
Select the lower boundary address you want. For example, if 0x5A00 is wanted, then just key in “5A”. The IAP-
memory lower boundary address will automatically displayed in the IAPLB box.
HWBS:
[enabled]: When power-on, MCU will boot from ISP-memory if ISP-memory is configured.
[disabled]: MCU always boots from AP-memory.
HWBS2:
[enabled]: In addition to power-on-reset, the reset from RST-pin will also force MCU to boot from ISP-memory
if ISP-memory is configured.
[disabled]: Where MCU boots from is determined by HWBS.
This document information is the intellectual property of Megawin Technology Co., Ltd. 18
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
SB:
[enabled]: Code dumped on a universal Writer or Programmer is scrambled for security, but Device ID can be
read normally. It is strongly recommended that the LOCK should also be enabled when SB is enabled.
[disabled]: Not scrambled.
LOCK:
[enabled]: Code dumped & Device ID read on a universal Writer or Programmer is locked to 0xFF for security.
[disabled]: Not locked.
LVFWP:
[enabled]: Enable LVFWP (Low-Voltage Flash-Write Protection) while IAP or ISP programming.
[disabled]: Disable LVFWP.
ENLVR1:
[enabled]: MCU to generate low voltage reset when VDD-pin voltage drops below LVD1.
[disabled]: No low voltage reset.
ENLVR2:
[enabled]: MCU to generate low voltage reset when VDD-pin voltage drops below LVD2.
[disabled]: No low voltage reset.
FAPD:
[enabled]: Enable Flash-Auto-Power-Down to save power while normal operating.
[disabled]: Disable Flash-Auto-Power-Down.
ENROSC:
[enabled]: Enable built-in RC oscillator (6MHz).
[disabled]: Disable built-in RC oscillator.
WDTRCO:
[enabled]: Enable the RC oscillator, and select RCosc as OSCin.
[disabled]: Disable the RC oscillator, and select XTALosc as OSCin.
WDTCR_WP:
[enabled]:
If CPU runs in AP-memory, the register WDTCR will be software-write-protected except the bit CLRW.
If CPU runs in ISP-memory, the register WDTCR will be software-write-protected except the bits CLRW,
PS2, PS1 and PS0.
[disabled]: The register WDTCR can be freely written by software.
This document information is the intellectual property of Megawin Technology Co., Ltd. 19
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
In this condition, the ISP-ICP Programmer works with the PC-site AP being executed. Three main buttons can be
clicked: (1) The “Update Programmer” button, which is used to download the programming data (including Part
No., user’s application code and H/W option) into the non-volatile storage of the Programmer. (2) The “Update
Target” button, which further programs the new application code and H/W option into the Target MCU in addition
to those the “Update Programmer” button does. (3) The “Dump Target Info” button, which dumps the Target
Information Data described in Section 5.
The user should select correct “Part No.”, then click “Load File” to load the new application code, and configure
the H/W options (if have) before clicking the “Update Programmer” or “Update Target” button. The ISP-key can
also be used to start the ISP or ICP processing after the “Update Programmer” is completed. Of course, the user
may load the MPJ file (described in Section 4.4) to restore all the programming data to the GUI of the AP.
(1) When the Programmer acts as an ISP Programmer, don’t power on the target system before connecting ok.
After connecting ok, then the user’s system can be powered on. At this time, the target MCU keeps running in the
ISP-memory for ISP processing. When ISP is finished, disconnect this Programmer from the target system to let
the target MCU run the new application code.
(2) When the Programmer acts as an ICP Programmer, the target system can be powered on before or after the
connecting. And the target MCU will automatically run the new application code without need of disconnecting
from the target system after ICP is finished.
The LEDs show the processing result. If ISP/ICP processing succeeds, the green LED will turn on, otherwise the
red LED will turn on.
Target System
ISP PC
Interface
Target MCU Act as ISP Programmer
Target System
ICP PC
Interface
Target MCU Act as ICP Programmer
OCD_SCL SCL
This document information is the intellectual property of Megawin Technology Co., Ltd. 20
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
In this condition, the ISP-ICP Programmer works with the PC-site AP being executed and only the “Update
Programmer” button can be clicked. User can download the programming data into the non-volatile storage in
the Programmer for later stand-alone operation.
PC
ISP/ICP Programmer
SCL
VCC MEGAWIN
MAKE YOU WIN
USB
SDA
GND ICP Programmer
In this condition, the Programmer works stand-alone without the AP’s intervention.
(1) When acting as an ISP Programmer, connect the Programmer to the target system before the system is
powered up. Then, power on the system, and press the ISP-key to start ISP processing. The green and red
LEDs show the processing result. Now, the user can disconnect the Programmer to let the system start running
the new application code.
(2) When acting as an ICP Programmer, connect the Programmer to the target system at any time regardless of
the system’s power state. Then press the ISP-key to start ICP processing while the system is powered on. The
green and red LEDs show the processing result. And once the processing is finished, the system will
automatically run the new application code.
Target System
ISP
Interface
Target MCU Act as ISP Programmer
DTA SDA
P3.1 GND ISP Programmer
GND
VSS
Target System
ICP
Target MCU Interface Act as ICP Programmer
OCD_SCL SCL
VDD (less than 30cm)
SCL
VCC MEGAWIN
VDD SDA
MAKE YOU WIN
This document information is the intellectual property of Megawin Technology Co., Ltd. 21
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
How to download new programming data (including application code & H/W options) into the Programmer?
Step 1: Select “Programmer Type” as ISP Programmer, and select the wanted “MCU Part No”.
Step 2: Click “Load File”, both HEX format and BIN format 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.
For MG84FL54, the maximum code size is 16K-1K=15K bytes, which includes IAP data.
For MG84FL516, 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.
Step 3: Configure the wanted H/W Option. (Only available for MPC89-series.)
Note: In Step 2, you can load an MPJ file (refer to Section 4.4), then Step 3 is not necessary.
How to dump the 256 bytes of target “Information Data”? (Please refer to Section 5)
This document information is the intellectual property of Megawin Technology Co., Ltd. 22
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
How to download new programming data (including application code & H/W options) into the Programmer?
Step 1: Select “Programmer Type” as ICP Programmer, and select the wanted “MCU Part No”.
Step 2: Click “Load File”, both HEX format and BIN format are acceptable, and the code size is based on its
binary format.
Note: In Step 2, you can load an MPJ file (refer to Section 4.4), then Step 3 is not necessary.
This document information is the intellectual property of Megawin Technology Co., Ltd. 23
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
The MPJ file includes all the relevant programming information appearing on the GUI, they are:
Click the button “Save *.MPJ” to save all the programming information in an MPJ file, as shown below.
This document information is the intellectual property of Megawin Technology Co., Ltd. 24
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
Click “Load File” and select Megawin Project Files (*.MPJ) to select the MPJ file you want. When the MPJ file is
opened, all the relevant programming information will be retrieved and restored to the GUI of the AP. The
following figure shows how to open an MPJ file.
This document information is the intellectual property of Megawin Technology Co., Ltd. 25
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
5 Information Zone
When the H/W option LOCK or SB is enabled for code security, there is no way to read out the contents of the
target by neither a universal programmer nor the ISP Programmer. For the purpose of user’s product failure
analysis in the future, a special Flash area called Information Zone is defined to be readable by only the ISP
Programmer even the target is locked or scrambled. The user may put some useful product information there for
future failure analysis, such as Product version, F/W version, manufacturing date code, .. and etc.
Note:
The Information Zone is just the name of the range where the ISP Programmer can read out data even the target
is locked or scrambled.
The Information zone is defined in the 256 bytes just prior to the ISP-memory, as listed below.
This document information is the intellectual property of Megawin Technology Co., Ltd. 26
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
This document information is the intellectual property of Megawin Technology Co., Ltd. 27
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
The following figures show the restriction on typical applications of P3.1 if P3.1 also functions for DTA-pin of ISP.
Figure 1: Figure 2:
P3.1 is used to drive an NPN transistor. P3.1 is used to drive a PNP transistor.
Restriction: Restriction:
R>=1K R>=750
R_pull_up:~10K VCC VCC
8051MCU
1
R_pull_up R_Load R
P3.1 2
PNP
8051MCU
3
3
R 2
P3.1 NPN
R_Load
1
DTA DTA
Figure 3: Figure 4:
P3.1 is used to drive an LED. P3.1 is used as it original TXD function.
Restriction: (No restriction)
R>=510 if VCC=5.0V RS232
R>=330 if VCC=3.3V VCC 8051MCU Transceiver
UART's TXD
P3.1
8051MCU LED
R
P3.1
DTA DTA
Figure 5: Figure 6:
P3.1 is pulled low. P3.1 is used to drive a high-impedance input.
Restriction: (No restriction)
R_pull_low>300K
8051MCU
8051MCU
P3.1 High-Z
P3.1 DTA Input
R_pull_low
DTA
This document information is the intellectual property of Megawin Technology Co., Ltd. 28
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
When chip was not locked previously, the user can individually re-program any area he wants. However, when
the chip had been locked previously, any re-programming will be inhibited. This is for security consideration.
It prevents from any re-programming of a code with the malicious purpose. So, re-programming must be inhibited
when chip has been locked.
Once the chip was locked, the only valid operation is to program a new code with Yes of “Update H/W Option” is
selected. Of course, you can also enable the LOCK bit again. See the following figure.
This document information is the intellectual property of Megawin Technology Co., Ltd. 29
© Megawin Technology Co., Ltd. 2007 All right reserved.
MEGAWIN Megawin 8051 ISP-ICP Programmer
MAKE YOU WIN User Manual, v5.30a
Revision History
This document information is the intellectual property of Megawin Technology Co., Ltd. 30
© Megawin Technology Co., Ltd. 2007 All right reserved.