Renesas F-ZTAT Series Manual
Renesas F-ZTAT Series Manual

Renesas F-ZTAT Series Manual

Single power supply

Advertisement

REJ05B0520-0200
Rev.2.00
Revision Date: Dec 13, 2004
The revision list can be viewed directly by
clicking the title page.
The revision list summarizes the locations of
revisions and additions. Details should always
be checked by referring to the relevant text.
Single Power Supply F-ZTAT
On-Board Programming
Renesas F-ZTAT Microcomputer

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the F-ZTAT Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas F-ZTAT Series

  • Page 1 The revision list summarizes the locations of revisions and additions. Details should always be checked by referring to the relevant text. Single Power Supply F-ZTAT On-Board Programming Renesas F-ZTAT Microcomputer Rev.2.00 Revision Date: Dec 13, 2004...
  • Page 2 (iii) prevention against any malfunction or mishap. Notes regarding these materials 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp. product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corp.
  • Page 3: General Precautions On Handling Of Product

    General Precautions on Handling of Product 1. Treatment of NC Pins Note: Do not connect anything to the NC pins. The NC (not connected) pins are either not connected to any of the internal circuitry or are used as test pins or to reduce noise. If something is connected to the NC pins, the operation of the LSI is not guaranteed.
  • Page 4 Configuration of This Manual This manual comprises the following items: 1. General Precautions on Handling of Product 2. Configuration of This Manual 3. Preface 4. Contents 5. Overview 6. Description of Functional Modules • CPU and System-Control Modules • On-Chip Peripheral Modules The configuration of the functional description of each module differs according to the module.
  • Page 5: Preface

    Their performance is not guaranteed. If you intend to use the circuits shown herein, please be sure to first check that they will operate as intended. Note: F-ZTAT is a trademark of Renesas Technology Corp. Rev. 2.00 Dec 13, 2004 page v of x...
  • Page 6 Rev. 2.00 Dec 13, 2004 page vi of x...
  • Page 7 Revision (See Manual for Details)  All references to Hitachi, Hitachi, Ltd., Hitachi Semiconductors, and other Hitachi brand names changed to Renesas Technology Corp. Designation for categories changed from “series” to “group” Rev. 2.00 Dec 13, 2004 page vii of x...
  • Page 8 Rev. 2.00 Dec 13, 2004 page viii of x...
  • Page 9: Table Of Contents

    Contents Section 1 Overview ......................Introduction to F-ZTAT Microcomputers................. On-Board Programming Modes ..................1.2.1 Boot Mode ......................1.2.2 User Program Mode ..................... Section 2 F-ZTAT Microcomputer On-Board Programming Tool ....... 13 Adapter Board ........................13 2.1.1 Overview of Adapter Board (HS0008EASF3H)..........13 2.1.2 Adapter Board Structure ..................
  • Page 10 Rev. 2.00 Dec 13, 2004 page x of x...
  • Page 11: Section 1 Overview

    Section 1 Overview Section 1 Overview Introduction to F-ZTAT Microcomputers The F-ZTAT microcomputers incorporate flash memory, which allows the programs to be written or erased after being mounted on the PCB (after being installed in the end product). The use of F-ZTAT microcomputers allows programs to be replaced on-board, for parameters to be optimized for each device, and for software to be upgraded and maintenance performed after the product has been shipped.
  • Page 12 Section 1 Overview Table 1.1 F-ZTAT Microcomputer Features Product name H8/539F H8/3062F, H8/3039F H8S/2132F, H8/3067F H8S/2128F, H8S/2138F, H8S/2144F, H8S/2148F H8/500 H8/300H H8/300H H8S/2000 Maximum operating 16 MHz(5 V) 20 MHz 20 MHz 20 MHz (5 V) frequency 10 MHz(3 V) 10 MHz (3 V) Flash memory capacity (KB)
  • Page 13: On-Board Programming Modes

    Section 1 Overview On-Board Programming Modes There are two on-board programming modes: boot mode, in which writing or erasing is performed in batches, and user program mode, in which the range of writing or erasing can be set independently for each program block. For details of on-board programming modes, see the section on On-Board Programming Modes in the hardware manual for the F-ZTAT microcomputer products.
  • Page 14: User Program Mode

    (RAM transfer program) for transferring that program to the RAM to the F-ZTAT microcomputer’s internal flash memory. Figure 1.2 shows an overview of user program mode. When using Renesas’ on-board programming tool to transfer application programs from the host machine use the SCI (channel 1, async communications) built into the F-ZTAT microcomputer.
  • Page 15 Section 1 Overview Figures 1.3 to 1.9 show the division of flash memory into blocks for each of the F-ZTAT microcomputer products. Host machine Host machine Host machine Application program Application program F-ZTAT microcomputer F-ZTAT microcomputer F-ZTAT microcomputer SCI or parallel SCI or parallel SCI or parallel, etc.
  • Page 16 Section 1 Overview Page 1 Major block area Minor block area Page 0 and 2 (124 kbytes) (4 kbytes) Page 0 Page 1 H'00000 H'10000 H'00000 H'10000 4 kbytes 1 kbyte H'00FFF H'10FFF H'003FF H'103FF H'00400 H'10400 H'01000 H'11000 1 kbyte H'007FF H'107FF H'03FFF...
  • Page 17 Section 1 Overview Major block area Minor block area (122 kbytes) (4 kbytes) H'000000 H'000000 4 kbytes 1 kbyte H'000FFF H'0003FF H'000400 H'001000 1 kbyte H'0007FF 28 kbytes H'000800 1 kbyte H'000BFF H'007FFF H'000C00 H'008000 1 kbyte H'000FFF 32 kbytes H'00FFFF H'010000 32 kbytes...
  • Page 18 Section 1 Overview Major block area Minor block area (128 kbytes) (4 kbytes) H'000000 H'000000 4 kbytes 1 kbyte H'000FFF H'0003FF H'000400 H'001000 1 kbyte 28 kbytes H'0007FF H'000800 H'007FFF 1 kbyte H'008000 H'000BFF 16 kbytes H'000C00 1 kbyte H'00BFFF H'000FFF H'00C000 8 kbytes...
  • Page 19 Section 1 Overview Major block area Minor block area (252 kbytes) (4 kbytes) H'03F000 H'000000 1 kbyte H'03F3FF H'03F400 32 kbytes 1 kbyte H'03F7FF H'03F800 H'007FFF 1 kbyte H'008000 H'03FBFF H'03FC00 1 kbyte 32 kbytes H'03FFFF H'00FFFF H'010000 32 kbytes H'017FFF H'018000 32 kbytes...
  • Page 20: Manual

    Section 1 Overview Major block area Minor block area (124 kbytes) (4 kbytes) H'01F000 H'000000 1 kbyte H'01F3FF H'01F400 32 kbytes 1 kbyte H'01F7FF H'01F800 H'007FFF 1 kbyte H'008000 H'01FBFF H'01FC00 1 kbyte 32 kbytes H'01FFFF H'00FFFF H'010000 32 kbytes H'017FFF H'018000 28 kbytes...
  • Page 21 Section 1 Overview Major block area Minor block area (252 kbytes) (4 kbytes) H'03F000 H'000000 1 kbyte H'03F3FF H'03F400 32 kbytes 1 kbyte H'03F7FF H'03F800 H'007FFF 1 kbyte H'008000 H'03FBFF H'03FC00 1 kbyte 32 kbytes H'03FFFF H'00FFFF H'010000 32 kbytes H'017FFF H'018000 32 kbytes...
  • Page 22 Section 1 Overview Rev. 2.00 Dec 13, 2004 page 12 of 82 REJ05B0520-0200...
  • Page 23: Section 2 F-Ztat Microcomputer On-Board Programming Tool

    Figure 2.1 shows the adapter board configuration. Power supply HS6400FWIW2SF RS-232C HS0008EASF3H Renesas F-ZTAT microcomputer User system Adapter board Figure 2.1 Adapter Board System Configuration Rev. 2.00 Dec 13, 2004 page 13 of 82...
  • Page 24: Adapter Board Structure

    2.1.2 Adapter Board Structure (1) Appearance Figure 2.2 shows the external appearance of the adapter board. Table 2.1 lists the connectors, switches, and LEDs of the adapter board. HS0008EASF3H Renesas START/STOP POWER START (2) Serial interface (5) Power switch connector...
  • Page 25 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Table 2.1 List of Adapter Board Connectors, Switches, and LEDs Name Function User interface connector (P1) Connects the adapter board to the user system using the supplied user system connection cable. Serial interface connector (P2) Connects the adapter board and PC using the supplied serial interface cable.
  • Page 26 Section 2 F-ZTAT Microcomputer On-Board Programming Tool (2) View of Interior of Case Figure 2.3 shows the inside of the adapter board case. Table 2.2 lists the switches and jumpers inside the adapter board case. Top panel HS0008EASF3H Renesas POWER START/STOP START Remove 12345678...
  • Page 27 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Table 2.2 Adapter Board Internal Switches and Short Connector Name Description Control signal enable/disable Sets the write control signal output from the user switch (S4) interface connector ON or OFF. 0/1 setting switch (S3) Sets the level (0 or 1) of the write control signal output from the user interface connector.
  • Page 28: Adapter Board Operating Sequence

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool 2.1.3 Adapter Board Operating Sequence Figure 2.4 shows an example of the sequence for operating the adapter board. For details of setting up the adapter board and the write operations, see sections 2.1.4 to 2.1.9. Start of F-ZTAT microcomputer on-board programming Open adapter board case...
  • Page 29: Opening And Closing Adapter Board Case

    (2) Replace the 4 screws (2) Remove holding the top and the top panel. bottom panels. HS0008EASF3H (1) Place the top panel over the bottom panel. Renesas HS0008EASF3H POWER START/STOP START Renesas Top panel POWER START/STOP START...
  • Page 30: Setting The Power Selection Jumper

    Pins 1-2 open Pins 3-4 shorted HS0008EASF3H F-ZTAT microcomputer VCC (2.7 to 5.25 V) Renesas POWER START/STOP START User system Figure 2.6 Supplying Power from User System Note: The adapter board has a consumption of 200 mA (typ)/5 V. Make sure, when supplying power from the user system, that there is sufficient capacity.
  • Page 31 VCC (5 V ±5%) Pins 1-2 shorted Pins 3-4 open HS0008EASF3H F-ZTAT microcomputer Renesas POWER START/STOP START User system Figure 2.7 Supplying Power from External Power Supply Note: Be sure to connect the user system power supply to the adapter board via the user interface connector pin VIN even when supplying power to the adapter board from an external power supply.
  • Page 32: Connecting Adapter Board And User System

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool 2.1.6 Connecting Adapter Board and User System (1) UserInterface Connector (P1) and User System Connection Cable Figures 2.8 and 2.9 show the pin configuration of the user interface connector on the adapter board, and the user system connection cable specifications. Power switch User interface connector Pin No.
  • Page 33 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Pin No. Name Remarks RES * Outputs a reset signal to the F-ZTAT microcomputer on the user system. GND * 2, 4, 6, 8, 10, Ground 12, 14, 16 FFW/FWP * Outputs the write enable signal (High or Low level) to the F-ZTAT microcomputer on the user system.
  • Page 34 Section 2 F-ZTAT Microcomputer On-Board Programming Tool User system connection cable Straight cable User system side Adapter board side Pin 1 mark Pin 1 mark Top view Side view Connector: 3428-6002LCSC Maker: Sumitomo 3-M Corp. Figure 2.9 User System Connection Cable Specifications (2) Connecting the User System Before connecting the adapter board to the user system, prepare the user system as follows: 1.
  • Page 35 Section 2 F-ZTAT Microcomputer On-Board Programming Tool VCC VCC Pull up with 470 kΩ min. TXD1 RXD1 SH7051F FWE/ Pull down Pull up with with 1 kΩ 470 kΩ approx. min. Connector: Adapter board 3428-6002LCSC User system Example Adapter Board Connection to SH7051F Pull up with 470 kΩ...
  • Page 36 Section 2 F-ZTAT Microcomputer On-Board Programming Tool VCC VCC Pull up with 470 kΩ min. TXD1 RXD1 H8/3067F FWE/ Pull down with 470 kΩ Pull up min. with 1 kΩ approx. Connector: Adapter board User system 3428-6002LCSC Example Adapter Board Connection to H8/3067F VCC VCC Pull up with 470 kΩ...
  • Page 37: Control Signal Enable/Disable Switch And 1/0 Setting Switch

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool 2.1.7 Control Signal Enable/Disable Switch, and 1/0 Setting Switch As shown in table 2.3, the control signal enable/disable switch (S4) controls the write control signal. The 1/0 setting switch (S3) sets the write control signal level, when enabled by the enable/disable switch, to 0 (Low) or 1 (High).
  • Page 38 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Table 2.4 Sample Settings for F-ZTAT Microcomputers Adapter SH7051F SH7044F Board User Program User Program Write Con- Con- Boot Mode Mode Boot Mode Mode Control nected nected Signal FEW/FWP — — I/O0 — —...
  • Page 39: Connecting Pc And Adapter Board

    Note: * IBM PC is a registered trademark of International Business Machines Corporation. Connect to Connect to P2 connector. RS-232C port. Serial interface cable HS0008EASF3H Renesas Adapter board Figure 2.11 Connecting Adapter Board and PC Rev. 2.00 Dec 13, 2004 page 29 of 82 REJ05B0520-0200...
  • Page 40: Turning The Adapter Board On/Off

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool 2.1.9 Turning the Adapter Board ON/OFF Use the POWER switch to turn the adapter board ON and OFF. Figure 2.12 shows how to set the POWER switch. Note that the POWER switch works only when the adapter board power is supplied via the power connector (P3).
  • Page 41: On-Board Programming Software

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool On-board Programming Software 2.2.1 Overview of On-board Programming Software (1) Overview The on-board programming software allows application programs on an IBM-PC * or NEC PC- 9801 * to be written to the flash memory in an F-ZTAT microcomputer installed in the user system.
  • Page 42 (3) Connections The method of connecting the user system to the host machine is shown in figure 2.13. Power supply HS6400FWIW2SF RS-232C HS0008EASF3H Renesas F-ZTAT microcomputer User system Adapter board Figure 2.13 Connection of User System and Host Machine (4) Operating Environment and Product Nos.
  • Page 43: On-Board Programming Software Transfer Process

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool Table 2.6 lists the product No. and MS-DOS version of the on-board programming software. Table 2.7 lists the files supplied with the software. Table 2.6 On-board Programming Software Products Host Machine Product No. Development Environment PC-9801 HS6400FWPW1SF...
  • Page 44 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Table 2.8 On-board Programming Software Transfer Process Name of Transfer process Control • • Auto bit-rate matching In boot mode, sets the transfer rate between the host machine and F-ZTAT microcomputer (continuous transmission of H'00) •...
  • Page 45 Section 2 F-ZTAT Microcomputer On-Board Programming Tool (1) Transfer Process in Boot Mode Steps 1 to 3 below detail the on-board programming software transfer process in boot mode. 1. Auto bit rate matching Auto bit rate matching is performed only when boot mode is selected on the host machine. Figure 2.15 shows the auto bit rate matching process.
  • Page 46 Section 2 F-ZTAT Microcomputer On-Board Programming Tool 2. Write control program transfer The write control program transfer is performed after auto bit rate matching. Figure 2.16 shows the steps in the write control program transfer. F-ZTAT microcomputer Boot program Host machine (a) Send start code for write H'55 Receive transfer start code...
  • Page 47 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Description: (a) After receiving the end signal for auto bit rate matching, the host machine sends H'55 to signal the start of write control program transfer. (b) On receipt of the H'55 signal, the boot program sends H'AA. (c) The host machine then sends the number of bytes in the write control program as the high digit byte followed by the low digit byte.
  • Page 48 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Application program transfer The application program is transferred after the boot program has erased the flash memory. Figure 2.17 shows the steps in transferring the application program in boot mode. F-ZTAT microcomputer Host machine (a) Application program input Write control program (b) Send W...
  • Page 49 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Description: (a) Input the name of the application program file to be written to flash memory on the host machine. (b) The host machine sends the W command. (c) The write control program sends the transmit enable signal X-ON (H'11) and requests that the host machine send the application program.
  • Page 50 Section 2 F-ZTAT Microcomputer On-Board Programming Tool (2) File Transfer in User Program Mode The following describes the steps involved in transferring the on-board programming software in user program mode. • Sending starting address of erasion block and sending application program The starting address of the erasion block is sent after inputting the application program to be written to flash memory on the host machine and selecting the target block of flash memory to be erased.
  • Page 51 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Description: (a) In user program mode, the write/erase control program already written to flash memory is transferred to and run from internal RAM. (b) On the host machine, select user program mode, set the transfer rate, input the filename of the application program to be written to flash memory, and select the target block area to be erased in flash memory.
  • Page 52: On-Board Programming Software Write/Erase Control Program

    Section 2 F-ZTAT Microcomputer On-Board Programming Tool 2.2.3 On-board Programming Software Write/Erase Control Program The on-board programming software write/erase control program is, in boot mode, transferred to the F-ZTAT microcomputer’s internal RAM to control the writing to flash memory. In user program mode, the write/erase control program already written to flash memory is transferred to and run from internal RAM to control the writing to and erasion of flash memory.
  • Page 53 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (1) Main write/erase control program Function Initializes the write control program and receives the W command Main write/erase control program Initialize SCI and enable transmission and reception via TXD1 and RXD1 pins Receive W from host machine Execute W command...
  • Page 54 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (2) Write command process-1 Function Executes erase, erasion verify, write, and write verify as write command processes Write command process Input erasion block data Erasion block data = 0? Check block start address Set erasion block bits Erase entire flash memory Erasion error?
  • Page 55 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (2) Write command process-2 Function Executes erase, erasion verify, write, and write verify as write command processes Receive write data Set write address Write to flash memory Verify error? Set write address Write to flash memory Verify error? Write to flash memory...
  • Page 56 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (2) Write command process-3 Function Executes erase, erasion verify, write, and write verify as write command processes Received ACK (H'06) code? Received X-ON (H'11) code? Receive checksum Verify error? Send error code BELL (H'07) to host machine Send transfer start code ACK (H'06) to host machine...
  • Page 57 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (3) Set starting address of erasion block Function Receives erasion starting address and calculates number of blocks to be erased Setting starting address of erasion blocks Receive block address Is erasion block address last address? Set starting address of next block...
  • Page 58 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (4) Entire area erasion Function Verifies the erasion of the target erasion blocks and, if not erased, erases them Entire area erasion Set SWE in flash memory control register (FLMSR) Wait (10 µs) Verify erasion Are there remaining erasion...
  • Page 59 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (5) Erase multiple blocks Function Erases multiple blocks set as erasion blocks Multiple block erasion Erase Verify erasion Are there remaining erasion blocks? Rev. 2.00 Dec 13, 2004 page 49 of 82 REJ05B0520-0200...
  • Page 60 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (6) Erase flash memory Function Sets bits in erase block register according to erasion block data and erases blocks Flash memory erasion Set bits corresponding to erasion blocks in erase block register Set erase block register (EBR) Set ESU bit in FLMCR Wait 200 µs...
  • Page 61 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (7) Verify erasion of flash memory Function Verifies the erasion of the erased block area Erasion verification Set EV bit in FLMCR Wait 20 µs Set erasion starting address Set verify address to block starting address Dummy write of H'FFFF to verify address Wait 2 µs Is verify data = H'FFFF?
  • Page 62 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (8) Flash memory write-1 Function Writes to flash memory Flash memory write Set 32 bytes of write data in rewrite area Write 32 bytes of data in rewrite data area in RAM to flash memory Set PSU bit in flash memory control register (FLMSR) Wait (50 µs)
  • Page 63 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (8) Flash memory write-2 Function Writes to flash memory Set PV bit in flash memory control register (FLMCR) Wait (4 µs above) Clear (0) end-of-write flag Set verify starting address Dummy write of H'FFFF to verify address Wait (2 µs above) Read verify data Is writing OK?
  • Page 64 Section 2 F-ZTAT Microcomputer On-Board Programming Tool Flowchart Name (8) Flash memory write-3 Function Writes to flash memory Calculate rewrite data Send result of calculation to rewrite data area Increment verify address End of 32 bytes of data? Clear PV bit in flash memory control register (FLMCR) Wait (4 µs above) Is end-of-write...
  • Page 65: Section 3 On-Board Programming

    Section 3 On-Board Programming Section 3 On-Board Programming This section describes how to install the on-board programming software, and how to use the boot mode and user program mode to transfer application programs from a host machine to a F-ZTAT microcomputer on a user system.
  • Page 66 Section 3 On-Board Programming 4. The installation dialog box shown in figure 3.2 is displayed. Figure 3.2 Installation Dialog Box (a) Enter the name of the installation directory in the Directory field. If you specify a directory that does not exist, the installation program makes that directory and copies the software to that directory.
  • Page 67 Section 3 On-Board Programming 5. After the software has been copied to the directory, the message shown in figure 3.3 is displayed on the screen. Click OK to register the FLASH group and the icon for this software in the program manager, and end the installation process. The registered icon is shown in figure 3.4.
  • Page 68: On-Board Programming Sequence (Boot Mode)

    Section 3 On-Board Programming On-Board Programming Sequence (Boot Mode) Figure 3.5 shows the on-board programming sequence in boot mode. Section 3.3 describes the sequence in more detail. On-board programming sequence (user program mode) (1) Connect the user system to the adapter board (2) Set the method of power supply (3) Set the adapter board mode setting...
  • Page 69: Writing In Boot Mode

    (1) Connecting User System and Adapter Board Connect the user system, adapter board, and host machine. See section 2.1.6, Connecting Adapter Board and User System for details of how to connect the user system and adapter board. RS-232C HS0008EASF3H Renesas F-ZTAT microcomputer User system Adapter board Figure 3.6 Connection of User System, Adapter Board, and Host Machine...
  • Page 70 VCC (5 V ±5%) 1-2 shorted 3-4 open HS0008EASF3H F-ZTAT microcomputer Renesas POWER START/STOP START User system Figure 3.7 Setting Method of Adapter Board Power Supply Note: When powering the adapter board from the user system, the adapter board has a current consumption of 500 mA (at 5 V) or 900 mA (at 3 V).
  • Page 71 Section 3 On-Board Programming (3) Setting the Adapter Board Mode Setting Switch Set the adapter board mode setting switch to boot mode. Boot mode is selected by setting the enable/disable switch (1) and the 0/1 switch (2) shown in figure 2.3 to the settings shown in table 3.1.
  • Page 72 Section 3 On-Board Programming (5) Running the On-Board Programming Software Run the on-board programming software on the host machine. Double-click the FLASH icon in the FLASH group in the Program Manager to start the on-board programming software. When you start this software, the main window shown in figure 3.8 is displayed, then the startup dialog box shown in figure 3.9 is displayed.
  • Page 73 Section 3 On-Board Programming Figure 3.9 Startup Dialog Box Description: (a) The Flash memory block data file field shows the flash memory block data files (*.INF) in the directory in which the on-board programming software is installed. Select the flash memory block data file to be used.
  • Page 74 Section 3 On-Board Programming (6) Select Boot Mode When you select boot mode in the startup dialog box shown in figure 3.9, the boot mode dialog box shown in figure 3.10 is displayed. Figure 3.10 Boot Mode Dialog Box (7) Setting Up Boot Mode Set the switches as shown in table 2.9, then press the START/STOP switch on the adapter board ((1) in figure 3.11).
  • Page 75 Section 3 On-Board Programming (8) Transferring the Write Control Program When you click OK in the boot mode dialog box shown in figure 3.10, the screen shown in figure 3.12 is displayed and transfer of the write control program starts. The transfer status of the write control program is shown as a percentage.
  • Page 76 Section 3 On-Board Programming (9) Setting Up to Write User Data Select WRITE from the menu shown in figure 3.8 to display the screen shown in figure 3.13. Click OK from the screen shown in figure 3.13 to transfer user data without erasing a flash memory block.
  • Page 77 Section 3 On-Board Programming (10) Writing User Data Click OK from the screen shown in figure 3.13 to display the user data transfer dialog box shown in figure 3.14 and start the transfer of user data. (Clicking Cancel in figure 3.14 aborts the data transfer and closes the dialog box.
  • Page 78: On-Board Programming Sequence (User Program Mode)

    Section 3 On-Board Programming On-Board Programming Sequence (User Program Mode) Figure 3.16 shows the on-board programing sequence in user program mode. Section 3.5 describes the sequence in more detail. On-board programming sequence (user program mode) On-board programming sequence (user program mode) (1) Prepare for user program mode (2) Connect the user system to the adapter board...
  • Page 79: Writing In User Program Mode

    Section 3 On-Board Programming Writing in User Program Mode Steps (1) to (13) below describe the process of writing in user program mode. This process uses the on-board programming adapter board and on-board programming software. (1) Preparing for user program mode To use user program mode, the programs shown in figure 3.17 must first be written in boot mode or using a PROM programmer as part of the application program.
  • Page 80 Section 3 On-Board Programming User program mode execution sequence Run application program Start on-board writing? Transfer write/erase control program Start user program mode Apply voltage to FWE (FWP) pin (b) FWE flag = 1? (c) Write to or erase flash memory Quit user program mode Stop voltage to FWE (FWP) pin Figure 3.18 User Program Mode Startup Sequence...
  • Page 81 Section 3 On-Board Programming Description: (a) The on-board programing start monitor program monitors the trigger signal for starting on- board programming. When performing on-board programming, start the RAM transfer program, which transfers the write/erase control program in the on-board programming software already written to flash memory to RAM, then runs the write/erase control program from RAM.
  • Page 82 Section 3 On-Board Programming (4) Setting the adapter board mode setting switch Set the adapter board mode setting switch to user program mode. User program mode is selected by setting switches (1) and (2) in figure 2.3 to the settings shown in table 3.2. Table 3.2 Settings for User Program Mode Enable/Disable Switch...
  • Page 83 Section 3 On-Board Programming (6) Running the on-board programming software Run the on-board programming software on the host machine. Select MODE from the menu in the window shown in figure 3.8 to display the startup dialog box shown in figure 3.19. Select user program mode. Figure 3.19 Startup Dialog Box Rev.
  • Page 84 Section 3 On-Board Programming (7) Setting transfer rate After selecting user program mode, display the transfer rate setting as shown in figure 3.20. Set the transfer rate to the host machine’s setting. Set the F-ZTAT microcomputer transfer rate (SCI channel 1) using the RAM transfer program or write/erase control program. Note that the host machine can be set for the following transfer rates: 38400, 19200, 9600, 4800, and 2400 bps.
  • Page 85 Section 3 On-Board Programming (8) Setting up for writing user data Figure 3.21 shows an example of a dialog box for write commands for extracting addresses 0xF000 to 0xF0FF from the user data to transfer to 0x10000 to 0x100FF only. In this example, application program TEST.MOT is written to flash memory.
  • Page 86 Section 3 On-Board Programming (9) Setting up to erase flash memory Click OK in figure 3.21 to display the dialog box for specifying the flash memory block for erasion shown in figure 3.22. You can click Cancel to close the dialog box and return to the Main Window without erasing memory or transferrring data.
  • Page 87 Section 3 On-Board Programming (10) Erasing flash memory blocks Click OK in the Flash Memory Erasure Specification Dialog Box shown in figure 3.22 to display the Erasing Flash Memory Blocks dialog box shown in figure 3.23 and start erasing the flash memory blocks.
  • Page 88 Section 3 On-Board Programming (11) Writing user data After erasing the flash memory blocks, the Transferring User Data dialog box shown in figure 3.24 is displayed. When the display reaches 100%, the transfer of user data ends. (You can click Cancel in the dialog box shown in figure 3.23 to stop erasing, close the dialog box, and return to the Main Window.) Figure 3.24 Transferring User Program Dialog Box...
  • Page 89: Section 4 Example Use Of User System

    SCI1, the user system must switch between its own use of SCI1 and the use of SCI1 for on-board programming. In user program mode, too, SCI1 must also be switched if using the Renesas on-board programming tool. Table 4.1 shows example SCI1 switching circuits for the H8/3067F, SH7044F, and H8S/2144F.
  • Page 90 Section 4 Example Use of User System Table 4.1 Example SCI1 Switching Circuits for Representative F-ZTAT Microcomputers Device Example Circuit Description of Operation H8/3067F Switches SCI1 usage according to User system SCI level of FWE pin. VCC VCC 1. FWE = High (boot mode or user Adapter board H8/3067F HC125...
  • Page 91: Example I/O Port Switching Circuit

    Section 4 Example Use of User System 4.1.2 Example I/O Port Switching Circuit When writing with the H8S/2144F in boot mode, P90 to P92 must be set to High. Therefore, if the user system uses P90 to P92 as input ports, the user system must switch the usage of these ports between its own usage and their use as boot mode setting pins.
  • Page 92 Section 4 Example Use of User System Rev. 2.00 Dec 13, 2004 page 82 of 82 REJ05B0520-0200...
  • Page 93 Publication Date: 1st Edition, December 1998 Rev.2.00, December 13, 2004 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Technical Documentation & Information Department Renesas Kodaira Semiconductor Co., Ltd. © 2004. Renesas Technology Corp., All rights reserved. Printed in Japan.
  • Page 94 Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan http://www.renesas.com RENESAS SALES OFFICES Refer to "http://www.renesas.com/en/network" for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K.
  • Page 95 Single Power Supply F-ZTAT On-Board Programming...

Table of Contents