Page 3 - SUMMARY OF CONTENTS
User's Manual U13502EJ2V0UM00 3 SUMMARY OF CONTENTS CHAPTER 1 GENERAL ..................................................................................................................................................... 17 CHAPTER 2 CONFIGURATION ........................................................
Page 5 - please confirm that this is the latest version.
User's Manual U13502EJ2V0UM00 5 • T h e i n f o r m a t i o n i n t h i s d o c u m e n t i s s u b j e c t t o c h a n g e w i t h o u t n o t i c e . B e f o r e u s i n g t h i s d o c u m e n t , please confirm that this is the latest version. • No part of this document may be copied or reproduc...
Page 6 - Regional Information; Device availability; NEC Electronics Hong Kong Ltd.
User's Manual U13502EJ2V0UM00 6 Regional Information Some information contained in this document may vary from country to country. Before using any NECproduct in your application, pIease contact the NEC office in your country to obtain a list of authorizedrepresentatives and distributors. They will ...
Page 7 - Major Revisions in This Edition; Appendix B has been added.; The mark shows major revised points.
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 C...
Page 9 - PREFACE
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, wri...
Page 10 - Terminology; on which such a microcontroller is mounted; Note
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 m...
Page 11 - CONTENTS
User's Manual U13502EJ2V0UM00 11 CONTENTS CHAPTER 1 GENERAL ............................................................................................................................. 17 CHAPTER 2 CONFIGURATION...........................................................................................
Page 13 - LIST OF FIGURES; Title
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 .............................................
Page 14 - LIST OF TABLES
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............................
Page 15 - LIST OF PHOTOGRAPHS
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 PRI...
Page 17 - CHAPTER 1 GENERAL; memory on a user board or FA adapter board.; Features; Compact, portable design the size of a sheet of A5 paper; that are expected to be available in the future as well as flash
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 19...
Page 18 - Function specifications; Only supported for Windows 95.
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 interface Note 1 : Half-pitch 36-pin conforming to IEEE 1284-1994 (Supports compatib...
Page 19 - The system configuration of the PG-FP3 is illustrated below.; The PG-FP3 shipping carton contains the following items:
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 adapter Note Note The FA adapter is a product of Naito Dens...
Page 20 - CHAPTER 2 CONFIGURATION; NAMES AND FUNCTIONS OF PARTS; Parts and their names are illustrated below.
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 nec...
Page 22 - CONNECTIONS OF PARTS; with the host machine.; Remark; interfaces with the target based on this information.
CHAPTER 2 CONFIGURATION User's Manual U13502EJ2V0UM00 22 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 mo...
Page 23 - Connecting the printer interface cable
CHAPTER 2 CONFIGURATION User's Manual U13502EJ2V0UM00 23 [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. • Connectin...
Page 24 - depends on the specifications of the target. If the FA adapter; is used, either use a Type 2 cable, or directly; When using a user target
CHAPTER 2 CONFIGURATION User's Manual U13502EJ2V0UM00 24 [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 ...
Page 25 - Photo 2-6. Connecting Target Cable to User Target; When using the FA adapter; manual for the device.
CHAPTER 2 CONFIGURATION User's Manual U13502EJ2V0UM00 25 Photo 2-6. Connecting Target Cable to User Target For the details of interface signal connections, see Section 7.4 and the manual for the device. • When using the FA adapter Make sure that the target V DD select switch is set to the OUT positi...
Page 26 - Photo 2-8. Connecting Target Cable to FA Adapter
CHAPTER 2 CONFIGURATION User's Manual U13502EJ2V0UM00 26 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
Page 27 - This section explains how to install the application program.; Caution; Starting the host machine; Starting the setup program; Example When Disk 1 inserted in drive B; After entering the drive name and file name, click the
User's Manual U13502EJ2V0UM00 27 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 ...
Page 28 - CHAPTER 3 STARTING AND STOPPING; Starting installation
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 28 • Starting installation When SETUP.EXE starts, 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 inst...
Page 29 - Uninstalling the program; Installing the parameter file; recognize the parameter file.
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 29 • 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 Unin...
Page 30 - STARTING THE APPLICATION; This section explains how to start the application program.
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 30 3.2 STARTING THE APPLICATION This section explains how to start the application program. • Connection of each unit and applying power For connection of each unit, see Section 2.3. After completing connections, turn on power to the PG-F...
Page 32 - FLASHPRO3 screen
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 32 • FLASHPRO3 screen The FLASHPRO3 screen consists of three subscreens. The operation screen contains command execution buttons in the form of a flowchart so that you can perform a series of operations by referring to the flowchart. The ...
Page 33 - INITIALIZATION AND NOTES ON CORRECT USE; Loading parameter file; Figure 3-2. Parameter File Setting Dialog Box; button. The selected parameter file will be loaded.
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 33 3.3 INITIALIZATION AND NOTES ON CORRECT USE Before a target can be accessed with FLASHPRO3, several settings must be performed for FLASHPRO3. If these settings are not done correctly, communication may not be executed correctly or the ...
Page 34 - TYPE setting
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 34 • TYPE setting The TYPE setting dialog box is used to set information necessary for communication with the target. Default information is set when the parameter file is loaded. To change the default setting, either execute the [Setting...
Page 36 - Option setting; TERMINATING THE APPLICATION; After terminating the application, turn off power to the PG-FP3.
CHAPTER 3 STARTING AND STOPPING User's Manual U13502EJ2V0UM00 36 • Option setting The Options dialog box is used for detailed setting of the target and is displayed when the [Setting..Option] command is executed. This dialog box is used to set the erase time, write time, and convergence time. These ...
Page 37 - CHAPTER 4 BASIC OPERATING PROCEDURE
User's Manual U13502EJ2V0UM00 37 CHAPTER 4 BASIC OPERATING PROCEDURE This chapter explains the basic operating procedure, using as an example the µ PD78F4216 used as the target. Specifically, this chapter discusses how to start the system and how to write a program to the target by executing the E.P...
Page 38 - Confirm that the LED on the PG-FP3 is blinking.; Figure 4-1. Communication Error Dialog Box; Change the setting for Connection Port from COM1 to LPT1.
CHAPTER 4 BASIC OPERATING PROCEDURE User's Manual U13502EJ2V0UM00 38 • Turn on power to the PG-FP3. Confirm that the LED on the PG-FP3 is blinking. • Start FLASHPRO3. If the communication error dialog box opens at this time, check the [Connection Port] setting and change if necessary. The example be...
Page 40 - Those commands are disabled until a user program is downloaded.
CHAPTER 4 BASIC OPERATING PROCEDURE User's Manual U13502EJ2V0UM00 40 (2) Loading the parameter file Select [Device] from the [Setting] pull-down menu. The dialog box for loading a parameter file will open. Enter 78F4216.PRC in the box for Device file name: and click the [OK] button. When the paramet...
Page 41 - button on the operation screen.
CHAPTER 4 BASIC OPERATING PROCEDURE User's Manual U13502EJ2V0UM00 41 (3) TYPE setting Open the TYPE setting window by selecting [Type] from the [Setting] pull-down menu, or by clicking the button on the operation screen. When the window is open, set COMM Port to UART CH-0, and UART bps to 9600 bps. ...
Page 42 - down menu or clicking the
CHAPTER 4 BASIC OPERATING PROCEDURE User's Manual U13502EJ2V0UM00 42 (4) Downloading a user program Open the dialog box by either selecting [Load File] from the [File] pull-down menu or clicking the button on the operation screen. Select a HEX file to be downloaded, and load the file into FLASHPRO3....
Page 45 - CHAPTER 5 COMMAND REFERENCE; by clicking the corresponding button on the screen.
User's Manual U13502EJ2V0UM00 45 CHAPTER 5 COMMAND REFERENCE This chapter explains each command. A command can be selected from the pull-down menu on the menu bar or by clicking the corresponding button on the screen. 5.1 File When [File] is clicked, the pull-down menu shown below is displayed. This...
Page 46 - the type of file to be saved.; Figure 5-1. File Format Select Dialog Box
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 46 5.1.2 Save File The [Save File] command saves the user program loaded into FLASHPRO3 or uploaded from the PG-FP3 to a file. Execute this command by selecting it from the pull-down menu or by pressing the button. When this command has been ...
Page 47 - The following information is reset when Type File is reloaded:
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 47 5.1.3 Load Type The [Load Type] command reloads the file (xxxxxx.TYP) in which the information set with [Setting] has been saved when resetting is required. When the Type File is loaded again, the previously used environment is restored. E...
Page 49 - Install the file correctly by seeing Section 3.1.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 49 5.2 Setting When [Setting] is clicked, the pull-down menu shown below is displayed. This menu lists the commands that are used to set the FLASHPRO3 operating environment (such as setting of the target interface). 5.2.1 Device The [Device] ...
Page 52 - Example
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 52 • Entering a clock frequency in 3-wire or pseudo 3-wire mode (SIO CLOCK) If 3-wire or pseudo 3-wire mode is selected with the serial port, enter a communication rate as a decimal number. The valid range for communication rates is from 100 ...
Page 53 - Setting a multiple for the operating clock (Multiple Rate); Example To operate in; BLOCK range setting
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 53 • Selecting a transmission clock frequency from the PG-FP3 (Flashpro clock) If [In Flashpro] has been selected when a CPU clock source is being entered, select the clock the PG-FP3 transmits from the frequencies listed below. Different dev...
Page 55 - Sets the erase time for the device.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 55 5.2.4 Option [Option] sets detailed conditions for each device, such as erase time, write time, and convergence time. These conditions are set to the default values when the parameter file is loaded. Unless otherwise specified, use the def...
Page 56 - the baud rate or communication port of the host when RS-232C is used.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 56 5.2.6 Connection Port The [Connection Port] command sets a port for communication with the PG-FP3. This command is used to change the baud rate or communication port of the host when RS-232C is used. Click [Connection Port] on the [Setting...
Page 59 - If the result of writing is OK, the following message is displayed.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 59 5.3.3 Program The [Program] command writes the data sent from the writer into the flash memory. Then, the command verifies whether the write level is secured. Use this command when writing a delivered device for the first time or when writ...
Page 60 - verification in the method that matches the target device.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 60 The verification is made in either of the following two methods. The PG-FP3 automatically executes the verification in the method that matches the target device. <1> Re-sends the written data from the PG-FP3 and verifies the data wri...
Page 65 - to which the program is to be uploaded can be specified.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 65 5.4.3 Dump HEX [Dump HEX] uploads the user program stored on the PG-FP3 to FLASHPRO3 (host side). The uploaded data can be checked by using the [Edit] command. Execute this command by selecting [Dump HEX] from the [Other] pull-down menu or...
Page 66 - executed, the status of the target is displayed in the log window.
CHAPTER 5 COMMAND REFERENCE User's Manual U13502EJ2V0UM00 66 5.4.4 Supply Status The [Supply Status] command checks the status of the target power supply (V DD ). When this command is executed, the status of the target is displayed in the log window. Execute this command by selecting [Supply Status]...
Page 67 - CHAPTER 6 STAND-ALONE FUNCTION
User's Manual U13502EJ2V0UM00 67 CHAPTER 6 STAND-ALONE FUNCTION The stand-alone function erases, programs, or verifies data with the PG-FP3 alone, without the use of a host. This function is used on a production line when the application system is mass-produced, or used to upgrade a customer’s versi...
Page 69 - Table 7-1. Product Configuration and Operating Environment
User's Manual U13502EJ2V0UM00 69 CHAPTER 7 HARDWARE SPECIFICATIONS 7.1 PRODUCT CONFIGURATION AND OPERATING ENVIRONMENT Table 7-1. Product Configuration and Operating Environment Item Specification Power supply Note 9.0 V, 2.0 A (AC adapter input, plug: 5.5 DIA, center: "+") Power consumption...
Page 70 - CHAPTER 7 HARDWARE SPECIFICATIONS; MASTER ROM SOCKET SPECIFICATIONS; Usage
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 70 7.2 MASTER ROM SOCKET SPECIFICATIONS • Usage Mount the master ROM, which downloads the user program, in the 32-pin socket on the top of the PG-FP3. Photo 7-1. Mounting the Master ROM Mount the PROM to which a program has been written...
Page 71 - Mount the PROM in the master ROM socket of the PG-FP3.; Photo 7-2. Mounting the PROM in the Master ROM Socket
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 71 [Operation from PG-FP3] Mount the PROM in the master ROM socket of the PG-FP3. Photo 7-2. Mounting the PROM in the Master ROM Socket Press the MODE key. Make sure that only the Load LED lights (Load mode). In Load mode, press the ENT...
Page 72 - Supported ROM specifications
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 72 • Supported ROM specifications Only an EPROM with 32 or fewer pins and the pin configuration shown below can be used as the master ROM. When the master ROM is accessed, the signature of the PROM is read to check whether the PROM is s...
Page 73 - Table 7-3. Printer Interface Specifications; happens, check if the Connection Port setting is correct.; Be sure to use a host computer that supports ECP mode.
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 73 7.3 HOST INTERFACE There are two types of host interfaces: the RS-232C interface and the printer interface. Select either using the I/F SELECT switch. When the PG-FP3 is started, the software identifies the switch setting. Note that ...
Page 77 - The specifications of the RS-232C interface are as follows:; Figure 7-2. Communication Error Dialog Box
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 77 7.3.2 RS-232C Interface Specifications The specifications of the RS-232C interface are as follows: Table 7-4. RS-232C Interface Specifications Item Specification Interface connector D-SUB 25-pin (receptacle) standard: RDEF-9S-LNA, ma...
Page 80 - TARGET INTERFACE SPECIFICATIONS; Table 7-5. Withstand Voltage of Each Interface Signal; Signal name; Voltage level when an abnormal condition is detected:
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 80 7.4 TARGET INTERFACE SPECIFICATIONS The target interface has signals such as GND, SI, SO, SCK, CLK, _RESET, V DD , V PP , and HS. These signals are used to connect the target. For the information on the required signal lines, refer t...
Page 81 - Microcontroller side
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 81 7.4.1 Interface Specifications Use the target interface connector to interface with the target. Bear in mind the following points when connecting the target and designing the target board. • Supply voltage and operating clock of targ...
Page 82 - PG-FP3 pins not wired; Open the HS signal when not using SIO + handshaking.
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 82 • PG-FP3 pins not wired Keep in mind the following points: • Open the CLK signal of the PG-FP3 to supply a clock to the microcontroller from the target. • Open the SCK signal when using a UART. • Open the SO signal when using IIC. • ...
Page 83 - appropriate cable for the situation.
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 83 [Cable specifications] Two types of target interface cables (IC clip type (TYPE 1) and connector type (TYPE 2)) are supplied. Use the appropriate cable for the situation. If the supplied cables cannot be used because of the specifica...
Page 84 - Equivalent Circuit and Load Condition; the target are as follows:; SO and RESET output pins; CLK output pin
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 84 7.4.2 Equivalent Circuit and Load Condition The interface equivalent circuit between the PG-FP3 and the target and the load condition that must be satisfied by the target are as follows: • SI I/O pin V DD V DD Comparator 74LS07 470 Ω...
Page 85 - HS input pin; Target load condition
CHAPTER 7 HARDWARE SPECIFICATIONS User's Manual U13502EJ2V0UM00 85 • SCK I/O pin V DD V DD Comparator 470 Ω 200 Ω 74LS07 SCK • HS input pin V DD V DD 470 Ω 200 Ω Comparator HS • Target load condition V DD 100 pF max. 2.4 k Ω min. CLK: 100 pF max., SCK: 470 pF max. SI, SO, _RESET SCK, CLK
Page 87 - CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS
User's Manual U13502EJ2V0UM00 87 CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS Error No. Message Cause/action Cause Input of wrong command ER01 Illegal command. Action Enter the correct command. Cause Input of wrong parameter during command input ER02 Illegal parameter. Action Enter the correct para...
Page 91 - APPENDIX A NOTES ON DESIGNING A TARGET; Pin processing; is not supplied to the target,; Figure A-1. Interface Circuit Example for a UART
User's Manual U13502EJ2V0UM00 91 APPENDIX A NOTES ON DESIGNING A TARGET Design a board using a flash microcontroller if you want to study the possibility of on-board writing. • Pin processing The target may have pins that require special processing when the mode is changed from normal operating mode...
Page 92 - Figure A-2. Interface Circuit Example for SIO
APPENDIX A NOTES ON DESIGNING A TARGET User's Manual U13502EJ2V0UM00 92 Figure A-2. Interface Circuit Example for SIO V CC V CC JUMPER User reset circuit V CC V CC V CC R10K R10K R10K R10K CON FAP-1008#2 Microcontroller IC Y C C 6789 10 RESETV DD V PP HSNC GND SI SO SCK CLK 12345 SO X1 X2 SISCK V PP...
Page 93 - APPENDIX B REVISION HISTORY; corresponding edition.
User's Manual U13502EJ2V0UM00 93 APPENDIX B REVISION HISTORY The revision history of this manual is listed below. The applicable chapter column indicates the chapters in the corresponding edition. Edition Description Applicable chapter The setting of the baud rate in the RS-232C interface specificat...
Page 95 - Thank you for your kind support.; Document Rating; Facsimile
Although NEC has taken all possible stepsto ensure that the documentation suppliedto our customers is complete, bug freeand up-to-date, we readily accept thaterrors may occur. Despite all the care andp r e c a u t i o n s w e ' v e t a k e n , y o u m a yencounter problems in the documentation.Pleas...