User’s Manual PG-FP3 Flash Memory Programmer Document No.
[MEMO] 2 User's Manual U13502EJ2V0UM00
SUMMARY OF CONTENTS CHAPTER 1 GENERAL .....................................................................................................................................................17 CHAPTER 2 CONFIGURATION.........................................................................................................................................19 CHAPTER 3 STARTING AND STOPPING ........................................................................................................................
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.
• 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.
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.
Major Revisions in This Edition Page p.18 Description 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.
[MEMO] 8 User's Manual U13502EJ2V0UM00
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.
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 ...............................
CONTENTS CHAPTER 1 GENERAL ............................................................................................................................. 17 CHAPTER 2 CONFIGURATION................................................................................................................. 19 2.1 PRODUCT ORGANIZATION ......................................................................................................................... 19 2.2 NAMES AND FUNCTIONS OF PARTS.................................
CHAPTER 6 STAND-ALONE FUNCTION .................................................................................................67 6.1 FUNCTION .....................................................................................................................................................67 6.2 OPERATION ..................................................................................................................................................68 CHAPTER 7 HARDWARE SPECIFICATIONS...................
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 ..........................................................................................................................
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 ...........................................................................................
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 .................
[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.
CHAPTER 1 GENERAL ♦ Function specifications Table 1-1. Function Specifications Item Host interface Specification RS-232C: D-SUB 25-pin, 9600, 19200, 38400, or 57600 bps Note 1 Printer interface : 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 interface Note 2 Note 3 Connector: Level conversion: Protection function: Supported interface: D-SUB 9-pin (receptacle) Within target VDD input range (1.
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 PG-FP3 Host machine Application (FLASHPRO3) Note FA adapter 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.
CHAPTER 2 CONFIGURATION 2.2 NAMES AND FUNCTIONS OF PARTS Parts and their names are illustrated below. Figure 2-2.
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.
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.
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.
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 Note depends on the specifications of the target. If the FA adapter is used, either use a Type 2 cable, or directly connect the target to the PG-FP3.
CHAPTER 2 CONFIGURATION 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 VDD select switch is set to the OUT position. Connect one end of the Type 2 cable to the PG-FP3, and the other end of the cable to the mating connector of the FA adapter.
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.
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.
CHAPTER 3 STARTING AND STOPPING • 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 installation directory in [Destination Directory] in the Choose Destination Location screen. Then, click the button. Example Specifying the [\Program Files\Flashpro3] path of drive C To start the installation, click the [Next] button.
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.
CHAPTER 3 STARTING AND STOPPING 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-FP3. When the PG-FP3 is operating normally, the POWER LED lights, the LED on the side of the MODE key blinks, and then the Erase, Program, and Verify LED indicators light. Photo 3-1.
CHAPTER 3 STARTING AND STOPPING • If FLASHPRO3 does not start correctly FLASHPRO3 will not start correctly if the communication settings are wrong or if installation has not been performed correctly. When FLASHPRO3 starts, connection with the PG-FP3 is checked. If communication is not being performed normally, the following dialog is displayed. This dialog is displayed because: 1. The cables are not correctly connected. Correctly connect the cables.
CHAPTER 3 STARTING AND STOPPING • 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 log window screen shows the command flow between the FLASHPRO3 and PG-FP3, the status, and the progress of command execution.
CHAPTER 3 STARTING AND STOPPING 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 target may be damaged. • Loading parameter file The parameter file is loaded with the [Setting..Device] command. If the file is not loaded when FLASHPRO3 starts, settings for the target will not be correctly performed.
CHAPTER 3 STARTING AND STOPPING • 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..Type] command, or click the [TYPE] button on the screen. The TYPE setting dialog box below is displayed. Figure 3-3.
CHAPTER 3 STARTING AND STOPPING In the TYPE setting dialog box, device-specific information is automatically set when the parameter file has been loaded, and the text box is grayed out. The parameters that can be changed by the user in this dialog box are as follows: 1. COMM PORT Selects the communication mode with the target. The communication modes that can be selected depend on the device. For details, refer to the manual for the device. The communication rate can be also changed.
CHAPTER 3 STARTING AND STOPPING • 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 parameters are automatically set to the default values when the parameter file is loaded. The new values become valid only when the check box is checked before the [Setting..Option] command is executed.
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.V. command. For the other commands and their usage, see Chapter 5.
CHAPTER 4 BASIC OPERATING PROCEDURE • 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 below assumes that the PG-FP3 is connected to LPT1. Figure 4-1. Communication Error Dialog Box Open the setting dialog box by clicking [Connection Port]. Change the setting for Connection Port from COM1 to LPT1.
CHAPTER 4 BASIC OPERATING PROCEDURE When FLASHPRO3 has been started correctly, the following screen is displayed.
CHAPTER 4 BASIC OPERATING PROCEDURE (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 parameter file is read, the PG-FP3 is reset for synchronization, then the parameters are read. Consequently, immediately after the parameter file is loaded, the initial status is restored, and the CHIP mode is selected.
CHAPTER 4 BASIC OPERATING PROCEDURE (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. Then click the [OK] button to accept TYPE setting.
CHAPTER 4 BASIC OPERATING PROCEDURE (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. When the file has been loaded, the FLASHPRO3 screen is displayed as follows: Next, download the file to the PG-FP3 by either selecting [Download HEX] from the [Procedure] pulldown menu or clicking the button on the operation screen.
CHAPTER 4 BASIC OPERATING PROCEDURE (5) Executing the E.P.V. command The E.P.V. command can be executed by selecting [E.P.V.] from the [Procedure] pull-down menu, or by clicking the button on the operation screen. While the E.P.V. command is executed, the progress of execution is displayed in the log window, and a PG-FP3 LED blinks. Lighting of LEDs The Erase, Program, and Verify LEDs light, and the LED for the phase under execution blinks.
[MEMO] 44 User's Manual U13502EJ2V0UM00
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 menu lists mostly the commands that are used to manipulate files. 5.1.1 Load File The [Load File] command loads the user program into FLASHPRO3. The loaded program can be displayed and edited with the [Edit] command.
CHAPTER 5 COMMAND REFERENCE 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 executed, the window below opens. Enter the name of the file to be saved, and click the [Save] button. Two types of files can be saved: Intel expansion HEX and Motorola S format files. An Intel expansion HEX file is recognized as xxxxxx.HEX.
CHAPTER 5 COMMAND REFERENCE 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. Execute the [Load Type] command by clicking [Load Type] on the [File] pull-down menu. When this command has been executed, the window below opens. Select the Type File to be loaded, and click the [Open] button.
CHAPTER 5 COMMAND REFERENCE 5.1.4 Save Type The [Save Type] command saves information set with [Setting] to a file (xxxxxx.TYP), so that the information can be reloaded when resetting is required. When Type File is saved, the previously used environment can be restored at any time. Execute the [Save Type] command by clicking [Save Type] on the [File] pull-down menu. When this command has been executed, the window below opens. Enter the name of the file to be saved and click the [Save] button.
CHAPTER 5 COMMAND REFERENCE 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] command loads information such as information specific to the target device and communication settings into FLASHPRO3 and the PG-FP3. The information on each target device is supplied to the user in the form of a parameter file (xxxxxx.PRC).
CHAPTER 5 COMMAND REFERENCE 5.2.2 Type The [Type] command sets the mode of communication with the target and operating clock. Because the communication mode and operating clock differ depending on the device used, refer to the manual for the device for details. Execute the [Type] command by clicking [Type] on the [Setting] pull-down menu or by clicking the button on the screen. When this command is executed, the TYPE setting window below opens.
CHAPTER 5 COMMAND REFERENCE • Entering the end address (END ADDRESS) The end address is determined by the parameter definition information. It is automatically set in the Block and Area modes. Remark The end address range that can be specified with the PG-FP3 is 2 Mbytes (1FFFFFH). This is a hardware specification. • Selective input of serial port (COMM PORT) Select the mode of communication between the PG-FP3 and target device from the modes listed below.
CHAPTER 5 COMMAND REFERENCE • 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 Hz to 2.0000 MHz. Be sure to enter the unit also. Up to six digits can be entered. Example 100 Hz = 0.1 kHz = 0.0001 MHz 1 MHz = 1000 kHz (1000000 Hz is not recognized because it has 7 digits.
CHAPTER 5 COMMAND REFERENCE • 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 devices provide different operating frequency ranges for the target microcontroller. Select the correct frequency by referring to the manual for the device. • 16.0 MHz • 8.0 MHz • 4.0 MHz • 2.
CHAPTER 5 COMMAND REFERENCE • AREA setting range In area mode, set an area range. In this mode, the [Block/Area] button at the right of the TYPE setting screen becomes active. When this button is clicked, the dialog box below opens. Enter the area range to be used and click the [OK] button. The area range will be set.
CHAPTER 5 COMMAND REFERENCE 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 default values. If incorrect values are specified, the service life of the device may be shortened or the device may be damaged. Click [Options...] on the [Setting] pull-down menu. The dialog box below will open.
CHAPTER 5 COMMAND REFERENCE 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] pull-down menu to execute this command. When the command is executed, the following dialog box opens, allowing you to set a communication port.
CHAPTER 5 COMMAND REFERENCE 5.3 Procedure When [Procedure] is clicked, the pull-down menu shown below is displayed. This menu lists commands that manipulate the target by erasing, programming, or verifying the target. 5.3.1 Download HEX [Download HEX] downloads the user program loaded into FLASHPRO3 with [Load File] to the PG-FP3. The progress of downloading is displayed in the log window. While downloading is in progress, the Load LED of the PGFP3 blinks.
CHAPTER 5 COMMAND REFERENCE 5.3.2 Erase [Erase] erases the flash memory. Use this command to keep the device with the flash memory erased. To program the flash memory erased by this command, use the [Program] command. A device that has been just delivered to you is blank and can be programmed without having to be erased. Execute this command by selecting [Erase] from the [Procedure] pull-down menu or by clicking the button on the operation screen.
CHAPTER 5 COMMAND REFERENCE 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 writing a microcontroller kept with its flash memory erased. To execute [Program], be sure to download the user program to the PG-FP3. Unless a program is downloaded, the [Program] command cannot be executed.
CHAPTER 5 COMMAND REFERENCE 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 written in the flash memory against the re-sent data.
CHAPTER 5 COMMAND REFERENCE 5.3.4 Verify The [Verify] command sends the written data from the PG-FP3 and verifies the data written in the flash memory against the sent data. This command does not check the write level. Use this command to check whether data communication between the PG-FP3 and the microcontroller with flash memory has been normally performed. Execute this command by selecting [Verify] from the [Procedure] pull-down menu or by clicking the button on the operation screen.
CHAPTER 5 COMMAND REFERENCE 5.3.5 E.P.V. The [E.P.V.] command makes a blank check. If the result is OK, the [Program] command is executed. If the check finds an error, the [Erase] command and [Program] command are executed in that order. When writing a delivered device for a second or subsequent time, use this command. If the user does not know whether the device has been erased, use this command to write the device. Execute this command by selecting [E.P.V.
CHAPTER 5 COMMAND REFERENCE Figure 5-2.
CHAPTER 5 COMMAND REFERENCE 5.4 Other When [Other] is clicked, the pull-down menu shown below is displayed. This menu mostly lists ancillary function commands. 5.4.1 Signature The [Signature] command reads the signature information of the target device. Execute this command by selecting [Signature] from the [Other] pull-down menu. When it is executed, the signature information is displayed in the log window as shown at the right. The figure shown below shows an example of executing a µPD75F4264 command.
CHAPTER 5 COMMAND REFERENCE 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 by clicking the button on the operation screen. When this command is executed, the following dialog box opens, and the addresses to which the program is to be uploaded can be specified.
CHAPTER 5 COMMAND REFERENCE 5.4.4 Supply Status The [Supply Status] command checks the status of the target power supply (VDD). When this command is executed, the status of the target is displayed in the log window. Execute this command by selecting [Supply Status] from the [Other] pull-down menu. Use this command to check the status of the target when the target power supply is used, as when data is written on-board. 5.4.
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 version. 6.1 FUNCTION The commands that can be executed in stand-alone mode are as follows: • Program command • Erase command • Verify command • E.P.V. command • PROM Load command These commands are selected with the PG-FP3 MODE KEY.
CHAPTER 6 STAND-ALONE FUNCTION 6.2 OPERATION The PG-FP3 can execute the E.P.V., ERASE, PROGRAM, VERIFY, and PROM Load commands in the stand-alone mode. For processing and using the commands, see Chapter 5. In standalone mode, it is not necessary to connect to a host. However, a parameter file must be loaded from the host and TYPE setting must be performed by the host in advance. • Selecting the command mode When power is turned on, E.P.V. mode is set.
CHAPTER 7 HARDWARE SPECIFICATIONS 7.1 PRODUCT CONFIGURATION AND OPERATING ENVIRONMENT Table 7-1. Product Configuration and Operating Environment Item Power supply Note Specification 9.0 V, 2.0 A (AC adapter input, plug: 5.5 DIA, center: "+") Power consumption Maximum value: Approx.
CHAPTER 7 HARDWARE SPECIFICATIONS 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 in the master ROM socket and execute from the FLASHPRO3 the command that downloads data from the master ROM.
CHAPTER 7 HARDWARE SPECIFICATIONS [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 ENTER key. The [PROM Load] command will be executed. Photo 7-3. Executing the [PROM Load] Command While the master ROM is being accessed, the ACCESS LED lights.
CHAPTER 7 HARDWARE SPECIFICATIONS • 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 supported. If the signature cannot be correctly read, replace the PROM with a compatible PROM of another make. An attempt to download a program from the master ROM socket by using a product other than a PROM and a jig may damage the ROM socket.
CHAPTER 7 HARDWARE SPECIFICATIONS 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 once an interface has been selected, it cannot be changed until power is turned off and then back on again. 7.3.1 Printer Interface Specifications The printer interface uses the parallel port provided on most personal computers as standard.
CHAPTER 7 HARDWARE SPECIFICATIONS [Pin layout] 74 Pin IN/OUT Compatible mode ECP mode 1 OUT Busy PeriphAck 2 OUT Select Xflag 3 OUT Nack PeriphClk 4 OUT Nfault nPeriphRequest 5 OUT PError nAckReverse 6 IN/OUT Data 1 (Least Significant Bit) 7 IN/OUT Data 2 8 IN/OUT Data 3 9 IN/OUT Data 4 10 IN/OUT Data 5 11 IN/OUT Data 6 12 IN/OUT Data 7 13 IN/OUT Data 8 (Most Significant Bit) 14 IN Ninit nReverseRequest 15 IN Nstobe HostClk 16 IN NselectIn IEEE12
CHAPTER 7 HARDWARE SPECIFICATIONS [Cable specifications] Item PC/AT or compatible machine, PC98-NX cable Specification PG-FP3 side connector : Half-pitch 36-pin (plug) Host side connector : D-SUB 25-pin (plug) Connection D-SUB Plug 25-pin Half pitch Plug 36-pin 1 --- 15 2 --- 6 3 --- 7 4 --- 8 5 --- 9 6 --- 10 7 --- 11 8 --- 12 9 --- 13 10 --- 3 11 --- 1 12 --- 5 13 --- 2 14 --- 17 15 --- 4 16 --- 14 17 --- 16 18 --- 33 19 --- 24, 25 20 --- 26,
CHAPTER 7 HARDWARE SPECIFICATIONS Item PC-9800 cable 76 Specification PG-FP3 side connector : Half-pitch 36-pin (plug) Host side connector : Half-pitch 36-pin (plug) Connection Plug 36-pin Recommended cable Plug 36-pin 1 --- 1 2 --- 2 3 --- 3 4 --- 4 5 --- 5 6 --- 6 7 --- 7 8 --- 8 9 --- 9 10 --- 10 11 --- 11 12 --- 12 13 --- 13 14 --- 14 15 --- 15 16 --- 16 17 --- 17 18 --- 18 19 --- 19 20 --- 20 21 --- 21 22 --- 22 23 --- 23 24 -
CHAPTER 7 HARDWARE SPECIFICATIONS 7.3.2 RS-232C Interface Specifications The specifications of the RS-232C interface are as follows: Table 7-4.
CHAPTER 7 HARDWARE SPECIFICATIONS [Pin layout] Pin 78 Signal name IN/OUT Specification 1 GND − Common signal line 2 RxD IN Serial data input 3 TxD OUT 4 CS IN 5 RS OUT Data control signal output 6 DSR OUT Data control signal output (not used) 7 GND − 8 DCD OUT 9 NC − 10 NC − 11 NC − 12 NC − 13 NC − 14 NC − 15 NC − 16 NC − 17 NC − 18 NC − 19 NC − 20 DTR IN 21 NC − 22 NC − 23 NC − 24 NC − 25 NC − Serial data output Data contr
CHAPTER 7 HARDWARE SPECIFICATIONS [Cable specifications] Item PC/AT or compatible machine, PC98-NX cable PC-9800 cable Specification PG-FP3 side connector : D-SUB 25-pin (plug) Host side connector : D-SUB 9-pin (receptacle) Connection : Straight PG-FP3 side connector : D-SUB 25-pin (plug) Host side connector : D-SUB 25-pin (plug) Connection : Straight User's Manual U13502EJ2V0UM00 Connection D-SUB 25-pin D-SUB 9-pin 2 − 3 3 − 2 4 − 7 5 − 8 6 − 6 7 − 5 8 − 1 20 − 4 22 − 9 D
CHAPTER 7 HARDWARE SPECIFICATIONS 7.4 TARGET INTERFACE SPECIFICATIONS The target interface has signals such as GND, SI, SO, SCK, CLK, _RESET, VDD, VPP, and HS. These signals are used to connect the target. For the information on the required signal lines, refer to the user's manual for each device. The PG-FP3 comes with two types of cables that can be used to connect the target. Use of these cables is recommended.
CHAPTER 7 HARDWARE SPECIFICATIONS 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 target Basically, supply the power and operating clock to the microcontroller from the target board when programming its flash memory.
CHAPTER 7 HARDWARE SPECIFICATIONS • 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. • Open the HS signal when not using SIO + handshaking. The pin configuration of the target interface connector and specifications of the interface cable are given below.
CHAPTER 7 HARDWARE SPECIFICATIONS [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 specifications of the target and the user prepares a cable, keep the cable length to within 40 cm and use materials with frequency characteristics equivalent to those of the supplied cables.
CHAPTER 7 HARDWARE SPECIFICATIONS 7.4.
CHAPTER 7 HARDWARE SPECIFICATIONS • SCK I/O pin VDD SCK VDD 200 Ω Comparator 470 Ω 74LS07 • HS input pin VDD VDD 470 Ω HS 200 Ω Comparator • Target load condition VDD 2.4 kΩ min. SI, SO, _RESET 100 pF max. SCK, CLK CLK: 100 pF max., SCK: 470 pF max.
[MEMO] 86 User's Manual U13502EJ2V0UM00
CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS Error No. ER01 ER02 ER03 ER04 ER05 ER06 ER07 ER08 ER09 ER0A ER0B ER0C ER0D ER0E ER0F ER10 Message Illegal command. Illegal parameter. Host is closed. Flash memory cannot read. SYSTEM error. Intel HEX format error. Check sum error Target initialize error. Target no SIGNATURE. No EEPROM. Target return error. Target status no return. SW STOP!! No character. This DEVICE is NO BLOCK EEPROM size over flow.
CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS Error No. Message ER11 ECC address error. ER12 Blank check.. Failed ER13 ROM Erase.. Failed ER14 ER15 ER16 ER17 ER18 ER19 ER1A Program.. Failed at XXXXXXH Cannot program. Verify.. Failed at XXXXXXH Verify error. Erase Verify error. Device error. SLAVE ADDRESS ERROR ER1B Blank check.. Failed BLOCK xx ER1C ROM Erase.. Failed BLOCK xx ER1D Verify error BLOCK xx ER1E Device error BLOCK xx ER1F Erase setting error.
CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS Error No. ER24 ER26 Message Cannot get TYPE data. Over run error. ER27 Framing error. ER28 Parity error. ER30 ER31 ER32 ER33 ER34 ER35 ER36 ER37 ER38 ER39 ER3A ER3B ER3C Illegal select BLOCK ! EPV is not supported BLOCK operation Cannot execute when ECC set. ECC BLOCK address unknown. Unpacked BCD format error. Cannot get SLAVE address. (1 bit) Cannot get SLAVE address.
CHAPTER 8 ERROR MESSAGES AND REMEDIAL ACTIONS Error No. ER3D ER3E ER40 ER41 ER42 ER43 ER44 ER45 ER50 Message IIC READ error. (ACK) Illegal select AREA. CPU RAM error. Expansion RAM error. Illegal SW Target ON. Illegal SW Target OFF. Target is closed. IIC SCLK is Low level. VPP OUT CURRENT error. ER51 VDD OUT CURRENT error. ER52 VCC (+5V) CURRENT error. ER53 ER54 ER5B ER5C ER5D ER5E ER5F 90 EPROM VPP CURRENT error. User VDD error. Blank check.. Failed AREA ROM Erase..
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 to flash memory programming mode, or pins that go to high-impedance during programming. In a mode in which the operation of the microcontroller is stopped by pin processing, the programming operation cannot be performed.
APPENDIX A NOTES ON DESIGNING A TARGET Figure A-2.
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 Second edition The setting of the baud rate in the RS-232C interface specifications and the capacity for downloading the user program have been changed. Chapter 1 The PG-FP3 system organization has been changed.
[MEMO] 94 User's Manual U13502EJ2V0UM00
Facsimile Message From: Name Company Tel. Although NEC has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. Despite all the care and precautions we've taken, you may encounter problems in the documentation. Please complete this form whenever you'd like to report errors or suggest improvements to us. FAX Address Thank you for your kind support.