8051 ICP Programmer, v7.15
8051 ICP Programmer, v7.15
Nuvoton
8051 ICP Programmer
User Manual
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 1
8051 ICP Programmer
Contents
Revision History ...................................................................................................... 3
1 Introduction ........................................................................................................ 4
2 Hardware ........................................................................................................... 5
2.1 Hardware Connection .................................................................................................................. 5
2.2 ICP Interface ............................................................................................................................... 6
3 Software ............................................................................................................ 7
3.1 Installing the Driver ...................................................................................................................... 7
3.2 Installing the Application Program ............................................................................................... 7
3.3 Introduction to the GUI ................................................................................................................ 7
3.4 Auto Synchronization of Buffer Data ............................................................................................ 8
4 Operation Modes ............................................................................................... 9
4.1 On-line Mode ............................................................................................................................... 9
4.2 Download Programmer Mode ...................................................................................................... 9
4.3 Off-line Mode ............................................................................................................................. 10
5 Tool Project File (TPJ) ..................................................................................... 11
6 Programmer Information .................................................................................. 12
7 Advanced Functions ........................................................................................ 13
7.1 Limited Usage Times ................................................................................................................. 13
7.2 Serial Number Programming ..................................................................................................... 15
7.2.1 Off-line Serial Number Programming ..................................................................................................17
7.3 Chip Counter ............................................................................................................................. 18
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 2
8051 ICP Programmer
Revision History
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 3
8051 ICP Programmer
1 Introduction
ICP is the acronym of In-Circuit Programming, which makes it possible that the user can update the MCU‟s program
memory under hardware control without removing the mounted MCU chip from the actual end product. The USB-
stick-like tool “8051 ICP Programmer”, as shown in the following picture, is used to perform the ICP function. It uses
a serial interface with only five pins for programming, not like the universal programmer, which usually uses a
parallel interface. In addition, since this tool can save the programming data downloaded from the host, it is able to
perform the off-line operation. This feature is especially useful in the field without a host.
Note:
The difference between ICP (In-Circuit Programming) and ISP (In-System Programming) is that ICP is implemented
by hardware control while ISP is implemented by software control of MCU itself. So, before updating the MCU chip,
ISP needs a software code (the ISP-code) pre-programmed in LDROM of the MCU to function as software control
while ICP does not need any software code pre-programmed.
ICP Key
(For off-line operation, press to do 'Update Chip')
5
4
3
2
1
Green/Red LEDs
(To show ICP result)
ICP Interface:
Pin-5: VPP (Programming voltage to 8051 MCU)
Pin-4: CLK (Serial clock to 8051 MCU)
Pin-3: VCC (Power supply from target system)
Pin-2: DTA (Serial data to/from 8051 MCU)
Pin-1: GND (Ground)
VPP: Programming voltage to the 8051 MCU. This voltage may be up to +11V for some MCU parts.
CLK: Serial clock to the 8051 MCU.
VCC: Power supply from the target system. In off-line operation, the programmer is powered by the target system.
DTA: Serial data to/from the 8051 MCU.
GND: Ground.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 4
8051 ICP Programmer
2 Hardware
2.1 Hardware Connection
The following diagram shows the hardware connection. The DIP-switch is recommended to isolate the ICP interface
signals from the application circuit during ICP programming. Before starting ICP programming, the user should
switch the DIP-switch to OFF state. Note the DTA and CLK signals are always kept at TTL level while the VPP
signal may rise up to +11V for some parts. For the parts with VPP up to +11V, the isolation is especially necessary
to protect the application circuit from being damaged. After ICP programming is finished, disconnect the ICP
Programmer and switch the DIP-switch to ON state for normal operation.
Target System
To internal
application
circuit
ON
DIP Switch
1
2
3
Power ICP
8051 MCU
Interface
Note:
1: Refer to Section 2.2, 'ICP Interface', for which pins are used.
2: XTAL is not necessary during ICP programming.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 5
8051 ICP Programmer
2.2 ICP Interface
See the following table for the pins used as the ICP interface.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 6
8051 ICP Programmer
3 Software
3.1 Installing the Driver
This ICP Programmer has the USB-to-Serial bridge chip (PL-2303) built inside. When connected to host, it will
appear as a USB-to-Serial COM port in the System\Hardware\Device Manager. Before starting to use this
programmer, the user has to install the driver if the PL-2303 driver has never been installed in this host. The user
can also find this driver in the folder [(1) Driver].
Note: Don't plug the ICP Programmer to the host before the driver is installed.
Information of
the loaded file
Processing
status
S/N to be Chip counter
programmed
Note:
To load code file, click 'APROM Buffer', then click 'Load File'
To load data file, click 'DataFlash Buffer', then click 'Load File'
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 7
8051 ICP Programmer
3.4 Auto Synchronization of Buffer Data
The buffer contents will be automatically synchronized with the physical file in the hard disk when the function
buttons 'Download Programmer', 'Update Chip' or 'Verify Chip' is clicked, as shown below. Thus, the user does not
need to manually reload the files for APROM buffer and DataFlash buffer when the physical files are updated
externally.
Buffer contents
Physical file in
the hard disk
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 8
8051 ICP Programmer
4 Operation Modes
4.1 On-line Mode
The system diagram for On-line Mode is shown below. In this mode, both the host and MCU chip are connected.
The user may directly update the MCU chip or download the programming data into the programmer for use in
Off-line Mode. After updating the MCU chip, the user may disconnect the programmer and send a reset signal to the
MCU chip to make it re-start to run the new application code.
PC
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 9
8051 ICP Programmer
4.3 Off-line Mode
The system diagram for Off-line Mode is shown below. In this mode, only the MCU chip is connected. This mode is
especially useful in the field without a PC. After the programmer has been downloaded, it can perform the off-line
operation. Press the ICP-Key to start an ICP operation to update the MCU chip. After updating the MCU chip, the
user may disconnect the programmer and send a reset signal to the MCU chip to make it run the new application
code.
Power
8051 MCU
ICP Interface
VPP Nuvoton 8051 ICP Programmer
CLK ICP-Key
VPP
VCC CLK
VCC
DTA DTA
GND
GND
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 10
8051 ICP Programmer
5 Tool Project File (TPJ)
The user may save all the GUI settings 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 programming data by the „project‟ type.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 11
8051 ICP Programmer
6 Programmer Information
To check the programming data downloaded in the programmer, click the „Programmer Information‟ button when the
programmer is connected to PC. Note the „CONFIG Setting‟ dialog box appears only when the CONFIG bits are to
be updated.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 12
8051 ICP Programmer
7 Advanced Functions
7.1 Limited Usage Times
An advanced function, Limited Usage Times, is supported for the customer who wants to limit the usage times of the
ICP Programmer. Once this function is enabled and the wanted times value is filled, as shown below, the usage
times of this programmer will be limited after finishing „Download Programmer‟. Provided that 100 is filled, then the
programmer will be no longer available when reaching 100 times of successful programming. That is to say, only
100 times of successful programming are available.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 13
8051 ICP Programmer
Check the Left Available Times
To check the left available times of the programmer, which was previously downloaded with Limit Usage Times
enabled, click the „Programmer Information‟ button when the programmer is connected to PC, as shown below.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 14
8051 ICP Programmer
7.2 Serial Number Programming
The serial number programming is supported when the programmer operates in On-line mode. The serial number is
BCD coded and 8 bytes long, which supports 16 decimal digits. Only APROM area can be programmed with the
serial number. The following figure shows how to open the configuration dialog box for serial number programming.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 15
8051 ICP Programmer
As shown in the above figure, „2468000012345678‟ is to be programmed at address 0x3FF8 in APROM area. The
BCD-coded serial number programmed in the chip has a „what you see is what you get‟ format, as shown below.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 16
8051 ICP Programmer
7.2.1 Off-line Serial Number Programming
The serial number programming is also supported when the programmer operates in Off-line mode. Before using the
off-line serial number programming, do the same setting described in Section 7.2, and then click the „Download
Programmer‟ button to download all the programming data including the serial number setting to the programmer.
How to check the serial number stored in the programmer? Click the „Programmer Information‟ button when the
programmer is connected to PC, as shown below.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 17
8051 ICP Programmer
7.3 Chip Counter
The chip counter is used to calculate the successfully programmed chips. The user may configure the counter as up
counter or down counter, and set the initial counter value. The following figure shows how to enable the chip counter
and its various configurations.
© 2015 Nuvoton Technology Corporation. All Rights Reserved. < Revision 7.15 > 18