CHAPTER 1 GENERAL .....................................................................................................................................................17
CHAPTER 6 STAND-ALONE FUNCTION .........................................................................................................................67
CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS .......................................................................................87
APPENDIX A NOTES ON DESIGNING A TARGET............................................................................................................91
APPENDIX B REVISION HISTORY.....................................................................................................................................93
User's Manual U13502EJ2V0UM00
3
EEPROM is a trademark of NEC Corporation.
PC/AT is a trademark of International Business Machines Corporation.
Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United
States and/or other countries.
Pentium is a trademark of Intel Corporation in the United States.
4
User's Manual U13502EJ2V0UM00
• The information in this document is subject to change without notice. Before using this document,
please confirm that this is the latest version.
• No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in
this document.
• NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual
property rights of third parties by or arising from use of a device described herein or any other liability arising
from use of such device. No license, either express, implied or otherwise, is granted under any patents,
copyrights or other intellectual property rights of NEC Corporation or of others.
• Descriptions of circuits, software, and other related information in this document are provided for illustrative
purposes in semiconductor product operation and application examples. The incorporation of these circuits,
software, and information in the design of the customer's equipment shall be done under the full responsibility
of the customer. NEC Corporation assumes no responsibility for any losses incurred by the customer or third
parties arising from the use of these circuits, software, and information.
M7A 98. 8
User's Manual U13502EJ2V0UM00
5
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, pIease contact the NEC office in your country to obtain a list of authorized
representatives and distributors. They will verify:
•
Device availability
•
Ordering information
•
Product release schedule
•
Availability of related technical literature
•
Development environment specifications (for example, specifications for third-party tools and
components, host computers, power plugs, AC supply voltages, and so forth)
•
Network requirements
In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary
from country to country.
NEC Electronics Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
The setting of the baud rate and the c apacity for downloading the user program in
changed.
Figure 2-1
Figure 2-2
The description of EXPANSION CONNECTOR has been deleted from
A description in
A description in
A description has been added to "Option setting" in
A description has been added to
A description in
A description in
A description in
A description in
A description in
A description in
A description in
A description in "Support ed ROM specifications" in
A description has been deleted from
The setting of the baud rate in
has been changed.
has been changed.
has been changed.
has been changed.
has been changed and Caution has been added to
has been changed.
has been changed.
Section 7.3
Table 7-4
.
Section 7.2
.
has been changed.
Section 2.2
.
has been changed.
Table 1-1
.
Section 5.3.5
have been
.
The mark shows major revised points.
User's Manual U13502EJ2V0UM00
7
[MEMO]
8
User's Manual U13502EJ2V0UM00
PREFACE
Readers of This Manual
Purpose
Organization
How to Read This Manual
This manual is intended for user engineers who use the PG-FP3 to design and develop
systems with an NEC microcontroller with flash memory.
The PG-FP3 enables programs in the NEC microcontroller with flash memory to be
erased, written, or verified with the microcontroller mounted on a user-designed printed
TM
circuit board through simple operations on a Windows
screen.
This manual contains the basic PG-FP3 specifications and explains how to use the
PG-FP3.
This manual contains the following chapters:
General, Configuration, Starting and Stopping, Basic Operating Procedure, Command
Reference, Stand-alone Function, Hardware Specifications, and Error Messages and
Remedial Actions
To understand the basic specifications and operation of the PG-FP3, read this manual
in the order given in the table of contents. Be sure to read
Chapter 3
, which contains
important information on operating the PG-FP3.
It is assumed that the readers of this manual have a basic knowledge of electricity,
logic circuits, and microcontrollers. It is also assumed that, especially in the
description of applications, they have sufficient knowledge of Windows. For
information on using Windows 95 and Windows NTTM and for the related terminology,
refer to the appropriate Windows manual.
LegendNote
Caution
Remark
Numeric notation : Binary..............
: Explanation of the item so marked
: Important information
: Supplementary explanation
5.1.2 Save File.............................................................................................................................................46
5.1.4 Save Type ..........................................................................................................................................48
5.2.3 Voltage ...............................................................................................................................................54
5.4.2 Status .................................................................................................................................................64
5.4.4 Supply Status .....................................................................................................................................66
7.4.2 Equivalent Circuit and Load Condition................................................................................................84
CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS...............................................................87
APPENDIX A NOTES ON DESIGNING A TARGET ..................................................................................91
APPENDIX B REVISION HISTORY............................................................................................................93
12
User's Manual U13502EJ2V0UM00
LIST OF FIGURES
Figure No.TitlePage
2-1.PG-FP3 System Organization ...........................................................................................................................19
2-2.PG-FP3 Parts and Names.................................................................................................................................20
5-1.File Format Select Dialog Box...........................................................................................................................46
A-1.Interface Circuit Example for a UART................................................................................................................91
A-2.Interface Circuit Example for SIO......................................................................................................................92
2-1.Items in the PG-FP3 Shipping Carton................................................................................................................19
7-1.Product Configuration and Operating Environment...........................................................................................69
7-5.Withstand Voltage of Each Interface Signal.......................................................................................................80
14
User's Manual U13502EJ2V0UM00
LIST OF PHOTOGRAPHS
Photo No.TitlePage
2-1.Connections (Host, PG-FP3, and Target)..........................................................................................................22
2-2.Connecting the Printer Interface Cable (I/F SELECT Switch Set to PRINTER I/F Position) .............................23
2-3.Connecting RS-232C (I/F SELECT Switch Set to RS-232C Position)...............................................................23
2-4.Connecting the AC Adapter...............................................................................................................................24
2-5.Connecting Target Cable to PG-FP3 <1>..........................................................................................................24
2-6.Connecting Target Cable to User Target...........................................................................................................25
2-7.Connecting Target Cable to PG-FP3 <2>..........................................................................................................25
2-8.Connecting Target Cable to FA Adapter............................................................................................................26
2-9.Directly Connecting FA Adapter to PG-FP3 ......................................................................................................26
3-1.Starting the PG-FP3 ..........................................................................................................................................30
4-1.Connection of Host, PG-FP3, and Target..........................................................................................................37
6-1.Selecting the Command Mode ..........................................................................................................................68
7-1.Mounting the Master ROM.................................................................................................................................70
7-2.Mounting the PROM in the Master ROM Socket...............................................................................................71
7-3.Executing the [PROM Load] Command.............................................................................................................71
User's Manual U13502EJ2V0UM00
15
[MEMO]
16
User's Manual U13502EJ2V0UM00
CHAPTER 1 GENERAL
The PG-FP3 is a tool for erasing, writing, and verifying programs for an NEC single-chip microcontroller with flash
memory on a user board or FA adapter board.
♦♦♦♦
Features
Supports all NEC microcontrollers with flash memory (as of February 1999)
•
Easy to use in stand-alone mode (with PG-FP3 only) or on Windows 95 or Windows NT using a dedicated
•
application (PG-FP3)
Compact, portable design the size of a sheet of A5 paper
•
Has a printer interface (parallel interface) in addition to the standard RS-232C interface. Downloads user
•
programs quickl y.
Note
Supports high-capacity microcontrollers
•
memory of 2 Mbytes
that are expected to be available in the future as well as flash
Support of microcontrollers developed in the future may require PG-FP3 firmware and application
Note
upgrades.
User's Manual U13502EJ2V0UM00
17
CHAPTER 1 GENERAL
♦♦♦♦
Function specifications
Table 1-1. Function Specifications
ItemSpecification
Host interface
Target interface
Supply voltage
Note 2
Note 3
Supply voltage inputTarget VDD supply voltage input: 1.8 to 5.5 V, current consumption: 100 mA max.
CPU clock supplyA 16-, 8-, 4-, or 2-MHz clock can be selected as the target CPU clock.
Master ROMA PROM (CMOS, 32-pin) to which the user program is written can be inserted in the
Stand-aloneProgramming with only the PG-FP3.
RS-232C:D-SUB 25-pin, 9600, 19200, 38400, or 57600 bps
Printer interface
Note 1
: Half-pitch 36-pin conforming to IEEE 1284-1994
(Supports compatible mode and ECP mode.)
The interface can be selected with the I/F SELECT switch.
Connector:D-SUB 9-pin (receptacle)
DD
Level conversion:Within target V
input range (1.8 to 5.5 V)
Protection function: Overvoltage input protection circuit (guaranteed range: 15 V max.)
Supported interface: 3-wi re, 3-wire + handshake (Max. SCK: 2.0 MHz)
Target VPP supply voltage: 2.7 to 10.3 V, max.: 200 mA
DD
Target V
supply voltage: 1.8 to 6.0 V, max.: 200 mA
Whether power is supplied from the PG-FP3 or from the user target can be selected
DD
with the TARGET V
An overcurrent protection circuit is provided for both V
switch.
PP
and VDD.
The on-board target clock can be also used depending on the application settings.
(PG-FP3-side interface: CMOS level output)
master ROM socket to allow the user program to be downloaded (max.: 500 kbytes).
Functions such as E.P.V., ERASE, PROGRAM, VERIFY, and LOAD can be selected and
executed with the MODE Key.
Notes 1.
18
Only supported for Windows 95.
The maximum communication rate of the interface varies depending on the device used and the
2.
environment.
DD
is supplied to the target system to supply power to the device to which a program is to be written.
V
3.
The power is not enough to operate the target system of the user. Use the power supply on the target
for on-board program writing.
User's Manual U13502EJ2V0UM00
CHAPTER 2 CONFIGURATION
2.1 PRODUCT ORGANIZATION
The system configuration of the PG-FP3 is illustrated below.
Figure 2-1. PG-FP3 System Organization
User target
FA adapter
Note
Note
The FA adapter is a product of Naito Densei Machida Mfg. Co., Ltd.
PG-FP3Host machineApplication (FLASHPRO3)
The PG-FP3 shipping carton contains the following items:
Table 2-1. Items in the PG-FP3 Shipping Carton
ItemQtyRemarks
PG-FP31PG-FP3
Floppy disk1Application software
AC adapter1Power supply
Printer cable2One for a PC-9800 and one for PC/ATTM or compatible machine
Target cable2Type 1 (IC clip) and Type 2 (connector)
User's Manual1This manual
Packing list1Packing list for this product
Warranty1
The PG-FP3 is shipped with the above accessories. Make sure that all accessories have been provided by
checking the contents of the box against the above table when you unpack the box. If any part or accessory is missing
or is damaged, notify NEC.
To use RS-232C as the host interface, you will need a commercially available RS-232C straight cable.
User's Manual U13502EJ2V0UM00
19
CHAPTER 2 CONFIGURATION
2.2 NAMES AND FUNCTIONS OF P ARTS
Parts and their names are illustrated bel o w.
Figure 2-2. PG-FP3 Parts and Names
FG TERMI
N
AL
DC JACK
POWER SWITCH
FG
-+
OFF
+
V*IN
9
ON
232
C
-
RS-232-C CONNECTOR
RS-
T
ELE
I/F*S
C
P
RI
NTE
R*I /F
HOST I/F SELE
PRIN
C
TSWITCH
TER I/F CONNE
C
TOR
POWER
ACCESS
E
R
A
E
S
A
M
R
P
R
O
G
R
O
R
R
E
VERIFY
LOAD
E
N
R
E
T
EN
E
TER K
Y
D
D
V
T
I
N
T
E
R
A
T
G
TARGET I/F CONNECTOR
SOCKET OF MASTER ROM
MASTER
ROM
R
EAD ONLY
ODE KEY
M
T
RGET VDD SWITCH
A
MODE
A
T
R
E
G
T
O
U
The following explains the functions of the PG-FP3 parts:
FG TERMINAL
•
The FG terminal is a ground terminal on the PG-FP3. If necessary, ground the terminal using the FG cable
supplied as an accessory.
20
User's Manual U13502EJ2V0UM00
CHAPTER 2 CONFIGURATION
DC JACK
•
This is the power supply input jack of the PG-FP3. To supply power to the PG-FP3, use the AC adapter supplied
as an accessory.
POWER SWITCH
•
This switch turns power to the PG-FP3 on or off. Before turning power on, make sure that all required parts are
connected correctly.
RS-232C CONNECTOR
•
This connector is used when RS-232C is used as the host interface. Use a commercially available 25-pin
straight cable to connect the host machine and the PG-FP3.
PRINTER I/F CONNECTOR
•
This connector is used when the printer interface cable supplied as an accessory is used as the host interface.
Connect the host machine and the PG-FP3 with the printer cable. Use only the supplied cable. Another cable
may cause the PG-FP3 to malfunction or to be damaged.
HOST I/F SELECT SWITCH
•
This switch selects whether an RS-232C or the printer interface cable is used as the interface with the host
machine. Select an interface before turning on power to the PG-FP3. The selected interface cannot be changed
after power has been turned on.
SOCKET OF MASTER ROM
•
The master ROM socket is used when a user program is downloaded to the PG-FP3 from a source other than
the host machine. A commercially available EPROM can be used as the master ROM. The user program can
be downloaded from an application or in stand-alone mode.
MODE KEY
•
This key is used to select a command mode when the PG-FP3 is used in stand-alone mode. Each time this key
is pressed, the command mode changes.
ENTER KEY
•
This key is used to execute a command selected by the mode key when the PG-FP3 is in stand-alone mode.
Select the command to be executed with the mode key, and press the ENTER key once to execute the
command.
DD
TARGET V
•
SWITCH
This switch selects whether VDD is supplied from the PG-FP3 or from the target board. Usually, VDD is supplied
from the target board.
DD
Supply V
from the PG-FP3 (TARGET VDD: OUT) only when a writing adapter, such as the FA adapter
used.
TARGET I/F CONNECTOR
•
This connector connects the PG-FP3 and the target board. Use the target interface cable supplied as an
accessory to make the connection.
Note
, is
The FA adapter is a product of Naito Densei Machida Mfg. Co., Ltd.
Note
User's Manual U13502EJ2V0UM00
21
CHAPTER 2 CONFIGURATION
2.3 CONNECTIONS OF PARTS
This section explains how to connect the various parts of the PG-FP3.
The PG-FP3 can be used in two ways. It can be connected to a host machine and controlled by application
software or it can be used in stand-alone mode without being connected to a host machine. When using the PG-FP3
without being connected to the host machine (i.e., in stand-alone mode), you may skip the description on connection
with the host machine.
Photo 2-1. Connections (Host, PG-FP3, and Target)
Remark
22
When the PG-FP3 is used in stand-alone mode, interfacing with the target must be specified in advance.
To do so, select the device to be used and the communication mode using the application software on
the host machine. The setting information is recorded in the PG-FP3. In stand-alone mode, the PG-FP3
interfaces with the target based on this information.
User's Manual U13502EJ2V0UM00
CHAPTER 2 CONFIGURATION
[Connecting a host machine]
Connection of the host interface cable is illustrated below. Select the host interface before turning on power to
the PG-FP3. The selected host interface cannot be changed after power has been turned on.
Connecting the printer interface cable
•
Set the interface select switch to the printer interface position. Connect the host machine with the printer
interface cable supplied as an accessory. Use the appropriate interface cable for the type of host machine (PC9800 or PC/AT).
The printer interface cable cannot be used unless the host machine supports bidirectional parallel
communication. Before using this cable, therefore, confirm that the host machine supports bidirectional
communication, compatible mode, and ECP mode.
Photo 2-2. Connecting the Printer Interface Cable (I/F SELECT Switch Set to PRINTER I/F Position)
Connecting the RS-232C interface
•
Set the interface select switch to the RS-232C position, and connect the appropriate RS-232C straight cable to
the RS-232C connector.
Photo 2-3. Connecting RS-232C (I/F SELECT Switch Set to RS-232C Position)
User's Manual U13502EJ2V0UM00
23
CHAPTER 2 CONFIGURATION
[Connecting the power supply]
With the power switch off, connect the AC adapter supplied as an accessory to the DC jack.
Photo 2-4. Connecting the AC Adapter
[Connecting the target]
Use the target cable supplied as an accessory to connect the target. Whether you use a Type 1 or Type 2 cable
depends on the specifications of the target. If the FA adapter
Note
is used, either use a Type 2 cable, or directly
connect the target to the PG-FP3.
Note
The FA adapter is a product of Naito Densei Machida Mfg. Co., Ltd.
When using a user target
•
Confirm that the target V
DD
switch is set to the IN position and then connect one end of the target cable to the
PG-FP3.
Photo 2-5. Connecting Target Cable to PG-FP3 <1>
Connect the other end of the target cable to the user target (in the example below, an IC clip is used).
24
User's Manual U13502EJ2V0UM00
CHAPTER 2 CONFIGURATION
Photo 2-6. Connecting Target Cable to User Target
For the details of interface signal connections, see
When using the FA adapter
•
DD
Make sure that the target V
select switch is set to the OUT position. Connect one end of the Type 2 cable to
Section 7.4
and the manual for the device.
the PG-FP3, and the other end of the cable to the mating connector of the FA adapter. Alternatively, directly
connect the D-SUB connector of the FA adapter to the target interface connector of the PG-FP3.
The FA adapter has a D-SUB connector and a connector supporting the Ty pe 2 cable. Connect the FA adapter
in either of the ways described above. For the wiring of the FA adapter, refer to the FA adapter manual or the
manual for the device.
Photo 2-7. Connecting Target Cable to PG-FP3 <2>
User's Manual U13502EJ2V0UM00
25
CHAPTER 2 CONFIGURATION
Photo 2-8. Connecting Target Cable to FA Adapter
The following is an example of directly connecting the FA adapter to the PG-FP3:
Photo 2-9. Directly Connecting FA Adapter to PG-FP3
26
User's Manual U13502EJ2V0UM00
CHAPTER 3 STARTING AND STOPPING
This chapter explains how to install, start, and terminate the application. It also contains information on initialization
and on use of the application. Be sure to read this chapter, since it provides very important information about using
the PG-FP3. Unless the information in this chapter is not understood and followed, the PG-FP3 may not operate
correctly.
3.1 INSTALLING THE APPLICATION
This section explains how to install the application program.
Caution Because the program file is stored in compressed form on the floppy disk, it cannot be used
simply by copying the files on the disk to the hard disk. Be sure to install the program correctly
by using the setup program.
Starting the host machine
•
Turn on power to the personal computer, and start Windows 95 or Windows NT.
Host machine: PC-9801 or PC-9821
IBM PC/AT compatible
CPU: Pe ntiu m
RAM: 32 Mbytes or more is recommended.
TM
(100 MHz or higher is recommended.)
Starting the setup program
•
Select [Run] from the Start menu.
Enter the name of the drive for which [SETUP DISK] has been set and the file name SETUP.EXE in the [Open]
text box in the [Run] dialog box.
Example
When Disk 1 inserted in drive B
After entering the drive name and file name, click the button.
User's Manual U13502EJ2V0UM00
27
CHAPTER 3 STARTING AND STOPPING
Starting installation
•
When SETUP.EXE star ts, follow the instructions by the setup program until the setting screen for the installation
directory is displayed. To stop installation partway, click the [Cancel] button.
Specify the installation directory in [Destination Directory] in the Choose Destination Location screen. Then,
click the
Example
Specifying the [\Program Files\Flashpro3] path of drive C
button.
To start the installation, click the [Next] button. When the installation ends, a confirmation message appears as
shown below. Click the [OK] button.
Now, the installation is completed. An English help file is installed as standard. To use a Japanese help file,
copy the flashpro.hlp file from Disk 2 into the installation directory. Note that the English help file is overwritten.
28
User's Manual U13502EJ2V0UM00
CHAPTER 3 STARTING AND STOPPING
Uninstalling the program
•
To uninstall the PG-FP3 application, execute [Add/Remove Programs] in [Control Panel], and select
[FLASHPRO3].
Uninstallation will start, and the files copied during installation will be deleted.
Caution Uninstallation erases all installed components. If FLASHPRO3 is required after uninstallation,
reinstall it.
Installing the parameter file
•
The PG-FP3 loads information about the target device as a parameter file and makes the necessary settings for
interfacing.
Caution The PG-FP3 will not operate correctly unless the parameter file of the device to which
programs are to be written has been installed. Be sure to obtain and install the parameter file
when using PG-FP3.
Using Explorer or a similar means, copy the parameter file (XXXXXXX.PRC) to the same location where
FLASHPRO3 has been installed. Unless the file is copied to the same location, FLASHPRO3 will not correctly
recognize the parameter file.
User's Manual U13502EJ2V0UM00
29
Loading...
+ 66 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.