NEC Flash Memory Programmer PG-FP3 User manual

User’s Manual
PG-FP3
Flash Memory Programmer
1991©
Printed in Japan
Document No. U13502EJ2V0UM00 (2nd edition)
Date Published July 1999 J CP(K)
1998

User's Manual U13502EJ2V0UM00
2
[MEMO]

User's Manual U13502EJ2V0UM00 3
SUMMARY OF CONTENTS
CHAPTER 1 GENERAL .....................................................................................................................................................17
CHAPTER 2 CONFIGURATION.........................................................................................................................................19
CHAPTER 3 STARTING AND STOPPING ........................................................................................................................27
CHAPTER 4 BASIC OPERATING PROCEDURE..............................................................................................................37
CHAPTER 5 COMMAND REFERENCE.............................................................................................................................45
CHAPTER 6 STAND-ALONE FUNCTION .........................................................................................................................67
CHAPTER 7 HARDWARE SPECIFICATIONS...................................................................................................................69
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
4
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.

User's Manual U13502EJ2V0UM00 5
• 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
6
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
NEC Electronics (Germany) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 02
Fax: 0211-65 03 490
NEC Electronics (UK) Ltd.
Milton Keynes, UK
Tel: 01908-691-133
Fax: 01908-670-290
NEC Electronics Italiana s.r.l.
Milano, Italy
Tel: 02-66 75 41
Fax: 02-66 75 42 99
NEC Electronics (Germany) GmbH
Benelux Office
Eindhoven, The Netherlands
Tel: 040-2445845
Fax: 040-2444580
NEC Electronics (France) S.A.
Velizy-Villacoublay, France
Tel: 01-30-67 58 00
Fax: 01-30-67 58 99
NEC Electronics (France) S.A.
Spain Office
Madrid, Spain
Tel: 91-504-2787
Fax: 91-504-2860
NEC Electronics (Germany) GmbH
Scandinavia Office
Taeby, Sweden
Tel: 08-63 80 820
Fax: 08-63 80 388
NEC Electronics Hong Kong Ltd.
Hong Kong
Tel: 2886-9318
Fax: 2886-9022/9044
NEC Electronics Hong Kong Ltd.
Seoul Branch
Seoul, Korea
Tel: 02-528-0303
Fax: 02-528-4411
NEC Electronics Singapore Pte. Ltd.
United Square, Singapore 1130
Tel: 65-253-8311
Fax: 65-250-3583
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-2719-2377
Fax: 02-2719-5951
NEC do Brasil S.A.
Electron Devices Division
Rodovia Presidente Dutra, Km 214
07210-902-Guarulhos-SP Brasil
Tel: 55-11-6465-6810
Fax: 55-11-6465-6829
J99.1

User's Manual U13502EJ2V0UM00 7
Major Revisions in This Edition
Page Description
p.18 The setting of the baud rate and the capacity for downloading the user program in Table 1-1 have been
changed.
p.19 Figure 2-1 has been changed.
p.20 Figure 2-2 has been changed.
p.20 The description of EXPANSION CONNECTOR has been deleted from Section 2.2.
p.28 A description in Section 3.1 has been changed.
p.30 A description in Section 3.2 has been changed.
p.36 A description has been added to "Option setting" in Section 3.3.
p.46 A description has been added to Section 5.1.2.
p.50 A description in Section 5.2.2 has been changed.
p.58 A description in Section 5.3.2 has been changed.
p.59 A description in Section 5.3.3 has been changed.
p.61 A description in Section 5.3.4 has been changed.
p.62 A description in Section 5.3.5 has been changed and Caution has been added to Section 5.3.5.
p.62 A description in Section 5.3.6 has been changed.
p.65 A description in Section 5.4.3 has been changed.
p.72 A description in "Supported ROM specifications" in Section 7.2 has been changed.
p.73 A description has been deleted from Section 7.3.
p.77 The setting of the baud rate in Table 7-4 has been changed.
p.91 Figure A-1 has been changed.
p.92 Figure A-2 has been changed.
p.93 Appendix B has been added.
p.41 in the
first edition Section 5.3.2 has been deleted.
p.46 in the
first edition Section 5.3.7 has been deleted.
p.53 in the
first edition Section 5.4.6 has been deleted.
p.75 in the
first edition Section 7.5 has been deleted.
The mark shows major revised points.

User's Manual U13502EJ2V0UM00
8
[MEMO]

User's Manual U13502EJ2V0UM00 9
PREFACE
Readers of 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.
Purpose 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
circuit board through simple operations on a WindowsTM screen.
This manual contains the basic PG-FP3 specifications and explains how to use the
PG-FP3.
Organization 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
How to Read This Manual 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.
Legend Note : Explanation of the item so marked
Caution : Important information
Remark : Supplementary explanation
Numeric notation : Binary..............×××× or ××××B
Decimal ...........××××
Hexadecimal....0××××H or ××××H

User's Manual U13502EJ2V0UM00
10
Terminology PG-FP3 ................................... Flash memory programmer
FLASHPRO3 ........................... Windows application name of PG-FP3
Target ...................................... NEC microcontroller with flash memory or user board
on which such a microcontroller is mounted
Printer interface (IEEE 1284) ... Parallel interface specified by IEEE 1284-1994. Used
by the PG-FP3 as one of the host interfaces.
FA adapter ............................... Adapter board used to write programs to an NEC
microcontroller with flash memoryNote
Note The FA adapter board is a product of Naito Densei Machida Mfg. Co., Ltd.
<Telephone number>
Naito Densei Machida Mfg. Co., Ltd.: 044-822-3813

User's Manual U13502EJ2V0UM00 11
CONTENTS
CHAPTER 1 GENERAL .............................................................................................................................17
CHAPTER 2 CONFIGURATION.................................................................................................................19
2.1 PRODUCT ORGANIZATION.........................................................................................................................19
2.2 NAMES AND FUNCTIONS OF PARTS.........................................................................................................20
2.3 CONNECTIONS OF PARTS..........................................................................................................................22
CHAPTER 3 STARTING AND STOPPING................................................................................................27
3.1 INSTALLING THE APPLICATION.................................................................................................................27
3.2 STARTING THE APPLICATION....................................................................................................................30
3.3 INITIALIZATION AND NOTES ON CORRECT USE .....................................................................................33
3.4 TERMINATING THE APPLICATION.............................................................................................................36
CHAPTER 4 BASIC OPERATING PROCEDURE .....................................................................................37
CHAPTER 5 COMMAND REFERENCE.....................................................................................................45
5.1 File.................................................................................................................................................................45
5.1.1 Load File.............................................................................................................................................45
5.1.2 Save File.............................................................................................................................................46
5.1.3 Load Type...........................................................................................................................................47
5.1.4 Save Type ..........................................................................................................................................48
5.1.5 Exit......................................................................................................................................................48
5.2 Setting...........................................................................................................................................................49
5.2.1 Device.................................................................................................................................................49
5.2.2 Type....................................................................................................................................................50
5.2.3 Voltage ...............................................................................................................................................54
5.2.4 Option.................................................................................................................................................55
5.2.5 Reset..................................................................................................................................................55
5.2.6 Connection Port..................................................................................................................................56
5.3 Procedure......................................................................................................................................................57
5.3.1 Download HEX...................................................................................................................................57
5.3.2 Erase..................................................................................................................................................58
5.3.3 Program..............................................................................................................................................59
5.3.4 Verify ..................................................................................................................................................61
5.3.5 E.P.V. .................................................................................................................................................62
5.3.6 Chip set/Block set/Area set ................................................................................................................62
5.4 Other..............................................................................................................................................................64
5.4.1 Signature............................................................................................................................................64
5.4.2 Status .................................................................................................................................................64
5.4.3 Dump HEX..........................................................................................................................................65
5.4.4 Supply Status .....................................................................................................................................66
5.4.5 PROM Load........................................................................................................................................66
5.5 Help................................................................................................................................................................66

User's Manual U13502EJ2V0UM00
12
CHAPTER 6 STAND-ALONE FUNCTION .................................................................................................67
6.1 FUNCTION.....................................................................................................................................................67
6.2 OPERATION ..................................................................................................................................................68
CHAPTER 7 HARDWARE SPECIFICATIONS...........................................................................................69
7.1 PRODUCT CONFIGURATION AND OPERATING ENVIRONMENT.............................................................69
7.2 MASTER ROM SOCKET SPECIFICATIONS ................................................................................................70
7.3 HOST INTERFACE........................................................................................................................................73
7.3.1 Printer Interface Specifications...........................................................................................................73
7.3.2 RS-232C Interface Specifications.......................................................................................................77
7.4 TARGET INTERFACE SPECIFICATIONS ....................................................................................................80
7.4.1 Interface Specifications.......................................................................................................................81
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

User's Manual U13502EJ2V0UM00 13
LIST OF FIGURES
Figure No. Title Page
2-1. PG-FP3 System Organization ...........................................................................................................................19
2-2. PG-FP3 Parts and Names.................................................................................................................................20
3-1. FLASHPRO3 Screens.......................................................................................................................................32
3-2. Parameter File Setting Dialog Box.....................................................................................................................33
3-3. TYPE Setting Dialog Box (When the Parameter File Is Loaded).......................................................................34
3-4. TYPE Setting Dialog Box (When the Parameter File Is Not Loaded)................................................................34
4-1. Communication Error Dialog Box ......................................................................................................................38
5-1. File Format Select Dialog Box...........................................................................................................................46
5-2. Mode Screens....................................................................................................................................................63
5-3. Editor Screen.....................................................................................................................................................65
7-1. Pin Configuration (Top View).............................................................................................................................72
7-2. Communication Error Dialog Box ......................................................................................................................77
A-1. Interface Circuit Example for a UART................................................................................................................91
A-2. Interface Circuit Example for SIO......................................................................................................................92

User's Manual U13502EJ2V0UM00
14
LIST OF TABLES
Table No. Title Page
1-1. Function Specifications......................................................................................................................................18
2-1. Items in the PG-FP3 Shipping Carton................................................................................................................19
7-1. Product Configuration and Operating Environment...........................................................................................69
7-2. Pin List...............................................................................................................................................................72
7-3. Printer Interface Specifications..........................................................................................................................73
7-4. RS-232C Interface Specifications......................................................................................................................77
7-5. Withstand Voltage of Each Interface Signal.......................................................................................................80

User's Manual U13502EJ2V0UM00 15
LIST OF PHOTOGRAPHS
Photo No. Title Page
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
16
[MEMO]

User's Manual U13502EJ2V0UM00 17
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 quickly.
•Supports high-capacity microcontrollersNote that are expected to be available in the future as well as flash
memory of 2 Mbytes
Note Support of microcontrollers developed in the future may require PG-FP3 firmware and application
upgrades.

CHAPTER 1 GENERAL
User's Manual U13502EJ2V0UM00
18
♦
♦♦
♦Function specifications
Table 1-1. Function Specifications
Item Specification
Host interface RS-232C: D-SUB 25-pin, 9600, 19200, 38400, or 57600 bps
Printer interfaceNote 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.
Target interfaceNote 2 Connector: D-SUB 9-pin (receptacle)
Level conversion: Within target VDD input range (1.8 to 5.5 V)
Protection function: Overvoltage input protection circuit (guaranteed range: 15 V max.)
Supported interface: 3-wire, 3-wire + handshake (Max. SCK: 2.0 MHz)
Pseudo 3-wire (Max. SCK: 2.0 MHz)
UART (Max. bps: 76800 bps)
IIC (Max. SCK: 50 kHz)
Supply voltageNote 3 Target VPP supply voltage: 2.7 to 10.3 V, max.: 200 mA
Target VDD 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
with the TARGET VDD switch.
An overcurrent protection circuit is provided for both VPP and VDD.
Supply voltage input Target VDD supply voltage input: 1.8 to 5.5 V, current consumption: 100 mA max.
CPU clock supply A 16-, 8-, 4-, or 2-MHz clock can be selected as the target CPU clock.
The on-board target clock can be also used depending on the application settings.
(PG-FP3-side interface: CMOS level output)
Master ROM A PROM (CMOS, 32-pin) to which the user program is written can be inserted in the
master ROM socket to allow the user program to be downloaded (max.: 500 kbytes).
Stand-alone Programming with only the PG-FP3.
Functions such as E.P.V., ERASE, PROGRAM, VERIFY, and LOAD can be selected and
executed with the MODE Key.
Notes 1. Only supported for Windows 95.
2. The maximum communication rate of the interface varies depending on the device used and the
environment.
3. VDD is supplied to the target system to supply power to the device to which a program is to be written.
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 19
CHAPTER 2 CONFIGURATION
2.1 PRODUCT ORGANIZATION
The system configuration of the PG-FP3 is illustrated below.
Figure 2-1. PG-FP3 System Organization
PG-FP3 Host machine Application (FLASHPRO3)
User target
FA adapterNote
Note The FA adapter is a product of Naito Densei Machida Mfg. Co., Ltd.
The PG-FP3 shipping carton contains the following items:
Table 2-1. Items in the PG-FP3 Shipping Carton
Item Qty Remarks
PG-FP3 1 PG-FP3
Floppy disk 1 Application software
AC adapter 1 Power supply
Printer cable 2 One for a PC-9800 and one for PC/ATTM or compatible machine
Target cable 2 Type 1 (IC clip) and Type 2 (connector)
User's Manual 1 This manual
Packing list 1 Packing list for this product
Warranty 1
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.

CHAPTER 2 CONFIGURATION
User's Manual U13502EJ2V0UM00
20
2.2 NAMES AND FUNCTIONS OF PARTS
Parts and their names are illustrated below.
Figure 2-2. PG-FP3 Parts and Names
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.
MODE
ERASE
PROGRAM
VERIFY
LOAD
ENTER
MASTER ROM
POWER
ACCESS
FG
READ ONLY
IN
OUT
RS- -
232 C
ERROR
OFF
ON
I/F*SELECT
PRINTER*I/F
TARGETVDDTARGET
-+
+9V*IN
DC JACK
FG TERMINAL
POWER SWITCH
PRINTER I/F CONNECTOR
HOST I/F SELECTSWITCH
SOCKET OF MASTER ROM MODE KEY ENTER KEY
TARGET I/F CONNECTOR
TARGET VDD SWITCH
RS-232-C CONNECTOR
Table of contents
Other NEC Network Hardware manuals

NEC
NEC ipasolink 400 User manual

NEC
NEC QB-V850ESFJ3 User manual

NEC
NEC N8141-41 User guide

NEC
NEC SVP SERVER - User manual

NEC
NEC P/N 0893416 User manual

NEC
NEC Aspire Series User manual

NEC
NEC P401-TMX4D User manual

NEC
NEC 78K/0 Series User manual

NEC
NEC SIGMABLADE N8406-019 User manual

NEC
NEC Express5800/E120d-M User manual
Popular Network Hardware manuals by other brands

Allied Telesis
Allied Telesis AT-TN118-A 2 datasheet

Moxa Technologies
Moxa Technologies AirWorks AWK-3121 user manual

ADTRAN
ADTRAN DS3 NIU3 PM Installation and maintenance practice

FieldServer
FieldServer X-25 Startup guide

Pixsys
Pixsys MCM260X user manual

Matrix Switch Corporation
Matrix Switch Corporation MSC-HD81DEL product manual