Nuvoton 8051 ISP by COM Port: User Manual
Nuvoton 8051 ISP by COM Port: User Manual
Nuvoton 8051 ISP by COM Port: User Manual
Nuvoton
8051 ISP by COM Port
User Manual
Revision 7.15, 2015/Apr/24
Table of Contents
Revision History ...................................................................................................... 3
1 Introduction ........................................................................................................ 4
2 Hardware ........................................................................................................... 4
2.1 With an RS232 Transceiver in the Target System ....................................................................... 6
2.2 Without an RS232 Transceiver in the Target System .................................................................. 7
2.3 Requirement on the MCU Operating Frequency .......................................................................... 8
3 Software ............................................................................................................ 9
3.1 Installing the Application Program ............................................................................................... 9
3.2 Introduction to the GUI ................................................................................................................ 9
3.3 Auto Synchronization of Buffer Data .......................................................................................... 10
Description
Date
v1.00
2009/07/15
v5.00
(1) Improved data security of the Nuvoton standard ISP code for N78E366A,
N78E055A, N78E059A and N78E517A. (Updated the ISP code version to v3.13.)
(2) Updated the PC-site AP to v5.00. (The GUI display for "CONFIG Setting" becomes
more user-friendly.)
2010/08/13
v5.02
(1) Fixed 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.)
(2) Modified all the ISP code to prevent from hanging in LDROM when powered on in
an RS-485 application. (Updated the ISP code version to v3.20.)
2010/11/15
v5.05
(1) Supported Tool Project (TPJ) file for management of GUI settings.
(2) Fixed the ISP code bug when using 3.6864 MHz XTAL for ISP by COM Port
function. (Updated the ISP code version to v3.21.)
(3) 3.6864 MHz is the lowest XTAL frequency instead of 3 MHz in v3.20.
2011/01/18
v5.31
2011/04/08
v5.50
2011/06/15
v5.51
2011/07/26
v5.60
2011/10/20
v5.70
Supported N79A8211A.
2011/11/07
v6.00
2011/12/26
v6.02
2012/02/01
v6.04
2012/02/29
v6.10
2012/03/26
v6.12
v7.10
v7.15
Fixed a software bug that makes Auto Synchronization of Buffer Data failed. (cf.
Section 3.3)
Removed support for W78E051D, W78E(L)648, W78E(L)649, N79E813, N79E843,
N79E853 and N79A8211A.
Supported N79E715, N76E885 and N76E616
2012/04/26
2014/01/15
2015/04/24
2 Hardware
To make the 8051 MCU boot from LDROM after reset to run the ISP code, some specific I/O pins need to be tied to
ground and the CONFIG needs to be properly configured. The following table shows the specific I/O pins and the
proper CONFIG setting used for booting from LDROM after reset. In addition, to directly connect to the COM port of
PC, there needs an RS232 transceiver (e.g. MAX232) in the target system. The following sub-sections will show the
hardware connection.
I/O Pins and CONFIG Bit for Booting from LDROM after Reset
Part No.
W78E052D
W78E054D
N78I054DFN
(Not Need)
CBS
configured as LDROM
(Not Need)
(Not Need)
Reboot P2.6/P2.7
configured as Enabled
Reboot P4.3
Enabled
W79E217A
W79E225A
W79E226A
W79E227A
Reboot P3.6/P3.7
configured as Enabled
Reboot P4.3
configured as Enabled
W79E201A
P4.0
Reboot P4.0
configured as Enabled
W925EP01
P4.7
Reboot P4.7
configured as Enabled
W78E058D
W78E516D
W78E(L)365A
W78E065A
W78E858A
W78E(I)RD2A
W77E(L)516A
W77E(L)532A
W79E(L)632A
W79E(L)633A
W79E(L)658A
W79E(L)659A
(Not Need)
CBS
configured as LDROM
N78E366A
N78E055A
N78E059A
N78E517A
N79E814A
N79E815A
N79E844A
N79E845A
N79E854A
N79E855A
N79E8132A
N79E8432A
N79E715
N76E885
N76E616
C3
10p
/EA
XTAL1
X1
Fosc
C4
1u/16V
XTAL2
C5
1u/16V
UART
Interface
VCC
R1
47K
C1
2u
P3.0(RXD)
RST
P3.1(TXD)
RXD
TXD
VCC
P2.6
P2.7
TXD
11
10
RXD
12
9
C1+
16
U2
1
VCC
VCC
U1
15
R2
10K
RS232
Transceiver
GND
8051 MCU
C2
10p
C6
1u/16V
VCC
V+
V-
2
6
C7
1u/16V
C1-
C2-
R1_OUT
R2_OUT
R3 MAX232
4.7K
T1_OUT
T2_OUT
R1_IN
R2_IN
P1
GND 5
RI 9
DTR 4
CTS 8
TD 3
RTS 7
RD 2
DSR 6
DCD 1
C2+
T1_IN
T2_IN
RS232
Connector
14
7
13
8
Male DB9
R4
10K
Q1
2N3906
GND
To boot from LDROM.
(See Note 1)
RST
PC
COM Port
RS232 Cable
Note 1:
The I/O pins used for booting from LDROM may be P2.6&P2.7, P4.3, P3.6&P3.7, P4.0 or none.
(See the above table.)
Note 2:
For "With Reset Control" configuration, Q1, R3 and R4 are needed.
For "Without Reset Control" configuration, Q1, R3 and R4 are not needed.
C3
10p
R1
47K
/EA
XTAL1
X1
Fosc
VCC
P2.6
P2.7
XTAL2
VCC
C1
2u
RST
P2.6
P2.7
RST
UART
Interface
RST
P3.0(RXD)
P3.1(TXD)
P2.6
P2.7
VCC
C4
1u/16V
R5
100
(PL)
Pulled low
4
C5
1u/16V
RST
VCC
P3.0
RXD
P3.1
TXD
GND
GND
TXD
11
10
RXD
12
9
VCC
C1+
2
6
C7
1u/16V
C2T1_IN
T2_IN
R1_OUT
R2_OUT
T1_OUT
T2_OUT
R1_IN
R2_IN
RS232
Connector
P1
GND 5
RI 9
DTR 4
CTS 8
TD 3
RTS 7
RD 2
DSR 6
DCD 1
C2+
Q1
2N3906
RST
V+
V-
C1-
R3 MAX232
4.7K
GND
16
15
U2
1
VCC
C2
10p
RS232
Transceiver
General
Connector
U1
R2
10K
C6
1u/16V
VCC
GND
8051 MCU
14
7
13
8
Male DB9
R4
10K
PC
COM Port
RS232 Cable
Note 1:
The I/O pins used for booting from LDROM may be P2.6&P2.7, P4.3, P3.6&P3.7, P4.0 or none.
(See the above table.)
Note 2:
For "With Reset Control" configuration, Q1, R3 and R4 are needed.
For "Without Reset Control" configuration, Q1, R3 and R4 are not needed.
Production Mode
Select
updated items
when
'Update chip'
is clicked
Click to show
APROM buffer
Click to show
DataFlash buffer
Information of
the loaded file
Processing
status
Serial number
to be programmed
Chip counter
Note:
To load code file, click 'APROM Buffer', then click 'Load File'
To load data file, click 'DataFlash Buffer', then click 'Load File'
Buffer Contents
Physical file in
the hard disk
10
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.
2015 Nuvoton Technology Corporation. All Rights Reserved.
11
12
8051 MCU
External RC reset circuit
VDD
C
RST
R
GND
8051 MCU
VDD
VCC
RESET
RST
GND
GND
13
Programmer type
Part number
Items to be updated
APROM buffer data if APROM is one of the updated items
Data Flash buffer data if Data Flash is one of the updated items
CONFIG setting if CONFIG is one of the updated items
Advanced functions setting
14
15
16
17
18