background image

Section 2   F-ZTAT Microcomputer On-Board Programming Tool

Rev. 2.00  Dec 13, 2004  page 20 of 82
REJ05B0520-0200

2.1.5

Setting the Power Selection Jumper

The power selection jumper selects the power source for the adapter board. There are two sources,
as follows:

Figure 2.6 and figure 2.7 shows the power source and the power selection jumper.

(1)  Supply from User System via User Interface Connector (VIN Pin)

HS0008EASF3H

Renesas

POWER

FG

START/STOP

START

4

2

3

1

Power supply

User system

F-ZTAT

microcomputer

VCC (2.7 to 5.25 V)

VCC

Power selection jumper (JP1)

1

3

2

4

Pins 1-2 open

Pins 3-4 shorted

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.

Содержание F-ZTAT H8S/2132F

Страница 1: ...ramming Renesas F ZTAT Microcomputer Rev 2 00 REJ05B0520 0200 The revision list can be viewed directly by clicking the title page The revision list summarizes the locations of revisions and additions...

Страница 2: ...a total system before making a final decision on the applicability of the information and products Renesas Technology Corp assumes no responsibility for any damage liability or other loss resulting fr...

Страница 3: ...alization Note When power is first supplied the product s state is undefined The states of internal circuits are undefined until full power is supplied throughout the chip and a low level is input on...

Страница 4: ...items i Feature ii Input Output Pin iii Register Description iv Operation v Usage Note When designing an application system that includes this LSI take notes into account Each section includes notes i...

Страница 5: ...hese application notes also describe how to use the on board programming adapter board and the on board programming tool PC I F software You are encouraged to refer to these notes when designing your...

Страница 6: ...Rev 2 00 Dec 13 2004 page vi of x...

Страница 7: ...ns for this Edition Item Page Revision See Manual for Details All All references to Hitachi Hitachi Ltd Hitachi Semiconductors and other Hitachi brand names changed to Renesas Technology Corp Designat...

Страница 8: ...Rev 2 00 Dec 13 2004 page viii of x...

Страница 9: ...Enable Disable Switch and 1 0 Setting Switch 27 2 1 8 Connecting PC and Adapter Board 29 2 1 9 Turning the Adapter Board ON OFF 30 2 2 On board Programming Software 31 2 2 1 Overview of On board Prog...

Страница 10: ...Rev 2 00 Dec 13 2004 page x of x...

Страница 11: ...pgraded and maintenance performed after the product has been shipped On board programming mode has two on board programming modes boot mode and user program mode that can be selected as appropriate se...

Страница 12: ...me 100 ms 32 byte 300 s byte typ Erase time 100 ms typ Method of writing erasing CPU control method software control method Writing using PROM programmer Product name H8S 2132F H8S 2142F H8S 2357F SH7...

Страница 13: ...am and write control program the program that controls the writing to flash memory on the host machine The SCI channel 1 async communications built into the F ZTAT microcomputer is used to transfer th...

Страница 14: ...de to write the write erase control program the program that controls the writing to and erasion of flash memory and the program RAM transfer program for transferring that program to the RAM to the F...

Страница 15: ...SCI or parallel RAM Flash memory Reset status 3 Host machine F ZTAT microcomputer 2 Host machine Application program F ZTAT microcomputer RAM Flash memory Reset canceled RAM Flash memory Application p...

Страница 16: ...32 kbytes 32 kbytes 32 kbytes 4 kbytes 28 kbytes Page 0 Page 1 and 2 Major block area 124 kbytes Minor block area 4 kbytes Page 0 Page 1 Figure 1 3 H8 539F Internal Flash Memory Block Divisions Minor...

Страница 17: ...122 kbytes 1 kbyte 1 kbyte 1 kbyte 1 kbyte H 000000 H 0003FF H 000400 H 0007FF H 000800 H 000BFF H 000C00 H 000FFF H 000000 H 000FFF H 001000 H 007FFF H 008000 H 00FFFF H 010000 H 017FFF H 018000 H 01...

Страница 18: ...01FFFF 28 kbytes 16 kbytes 8 kbytes 8 kbytes 32 kbytes 32 kbytes 4 kbytes Figure 1 6 H8S 2134F H8S 2144F H8S 2128F H8S 2138F H8S 2148F H8S 2357F Internal Flash Memory Block Divisions Minor block area...

Страница 19: ...00 H 03F000 H 03F3FF H 03F400 H 03F7FF H 03F800 H 03FBFF H 03FC00 H 03FFFF H 007FFF 32 kbytes H 008000 H 00FFFF 32 kbytes H 010000 H 017FFF 32 kbytes H 018000 H 01FFFF 32 kbytes H 020000 H 027FFF 32 k...

Страница 20: ...124 kbytes 1 kbyte 1 kbyte 1 kbyte 1 kbyte H 01F000 H 01F3FF H 01F400 H 01F7FF H 01F800 H 01FBFF H 01FC00 H 01FFFF 32 kbytes H 000000 H 007FFF 32 kbytes H 008000 H 00FFFF 32 kbytes H 010000 H 017FFF...

Страница 21: ...000000 H 03F000 H 03F3FF H 03F400 H 03F7FF H 03F800 H 03FBFF H 03FC00 H 03FFFF H 007FFF 32 kbytes H 008000 H 00FFFF 32 kbytes H 010000 H 017FFF 32 kbytes H 018000 H 01FFFF 32 kbytes H 020000 H 027FFF...

Страница 22: ...Section 1 Overview Rev 2 00 Dec 13 2004 page 12 of 82 REJ05B0520 0200...

Страница 23: ...stem By connecting the adapter board between the PC and user system and using the F ZTAT microcomputer on board programming software HS6400FWIW2SF the application programs of all F ZTAT microcomputer...

Страница 24: ...ts the connectors switches and LEDs of the adapter board HS0008EASF3H P2 P3 P1 F1 Renesas 2 Serial interface connector 5 Power switch 3 Power supply connector 4 Circuit protection breaker 1 User inter...

Страница 25: ...on breaker Shuts off the adapter board power supply to protect it from damage in the event of an incorrect power supply connection or overcurrent 1A or more The circuit breaker can be reset 5 Power sw...

Страница 26: ...the adapter board case Table 2 2 lists the switches and jumpers inside the adapter board case HS0008EASF3H Top panel Renesas 4 2 3 1 POWER START STOP START H S 0 0 0 8 E A S F 3 H 0 12345678 12345678...

Страница 27: ...ntrol signal enable disable switch S4 Sets the write control signal output from the user interface connector ON or OFF 2 0 1 setting switch S3 Sets the level 0 or 1 of the write control signal output...

Страница 28: ...tart of F ZTAT microcomputer on board programming END Open adapter board case Set the power selection jumper Sets the source of power for the adapter board Connect the user system Close the adapter bo...

Страница 29: ...nd 1 0 setting switch S3 open the case as shown in figure 2 5 Close the case again after making the necessary settings HS0008EASF3H Top panel Renesas POWER START STOP START 1 Remove the 4 screws holdi...

Страница 30: ...the power source and the power selection jumper 1 Supply from User System via User Interface Connector VIN Pin HS0008EASF3H Renesas POWER FG START STOP START 4 2 3 1 Power supply User system F ZTAT mi...

Страница 31: ...rom 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 exte...

Страница 32: ...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 Pi...

Страница 33: ...signal High or Low level to the I O pin on the F ZTAT microcomputer on the user system 11 I O 1 2 Outputs the write control signal High or Low level to the I O pin on the F ZTAT microcomputer on the u...

Страница 34: ...ystem prepare the user system as follows 1 Install a connector for connecting the user system connection cable to the user system Use the Sumitomo 3 M Corp 3428 6002LCSC connector 2 The RES pin on the...

Страница 35: ...nection to SH7051F Adapter board VIN RXD TXD MD1 FWE FWP RES GND TXD1 RXD1 MD1 FWP VCC VCC VCCVCC VCC VCC SH7044F User system Example Adapter Board Connection to SH7044F Adapter board Pull up with 470...

Страница 36: ...4F User system Example Adapter Board Connection to H8S 2144F Adapter board Pull up with 470 k min Pull down with 470 k min Pull up with 1 k approx Connector 3428 6002LCSC Connector 3428 6002LCSC Pull...

Страница 37: ...isable switch and 1 0 setting switch Table 2 4 shows example settings for each of the F ZTAT microcomputers The example settings in table 2 4 are for the example adapter board and F ZTAT microcomputer...

Страница 38: ...E E 1 E 1 FWP E 0 E 0 MD0 D D D D MD1 MD1 E 0 D MD1 E 0 D I O0 D D D D I O1 D D D D I O2 D D D D H8 3067F H8S 2144F Boot Mode User Program Mode Boot Mode User Program Mode Adapter Board Write Control...

Страница 39: ...e adapter board to a PC The supplied serial interface cable is designed for connection to an IBM PC Figure 2 11 shows how to connect the adapter board to a PC Note IBM PC is a registered trademark of...

Страница 40: ...ard 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 When power is supplied to the ada...

Страница 41: ...it rate matching Transfers write control program to internal RAM of F ZTAT microcomputer Writes the application program in S type format on the host machine to the flash memory The write control progr...

Страница 42: ...PC Adapter board User system HS6400FWIW2SF HS0008EASF3H Renesas RS 232C Figure 2 13 Connection of User System and Host Machine 4 Operating Environment and Product Nos Table 2 5 lists the operating env...

Страница 43: ...EXE common FLASH EXE common FLASH EXE common FLASH EXE common FLASH EXE common FLASH EXE common FLASH EXE common Flash memory block infor mation file 539 inf 3067s inf 3039s inf 2144 inf 2144 inf 2357...

Страница 44: ...t block starting address transfer Transfers the starting addresses of the blocks to be erased so that block areas in flash memory can be erased binary data Application program transfer Transfers the a...

Страница 45: ...ot mode and the boot program starts b The host machine continuously sends code H 00 c The boot program measures the low duration of the received H 00 and starts the auto bit rate matching process to s...

Страница 46: ...end number of bytes in write control program e Send write control program j Receive erase error code Receive H AA Receive H AA H 55 H AA H AA H FF b Send H AA after receiving H 55 d Receive No of byte...

Страница 47: ...host machine sends the write control program as binary data in 1 byte units f The boot program transfers the received write control program to internal RAM and sends back the verify data for each byt...

Страница 48: ...ve end of writing signal k Receive write error signal W H 00 Receive H 00 c Send H 00 d Send ACK H 06 Receive ACK H 06 g Receive application program and write to flash memory f Send 64 bytes of applic...

Страница 49: ...m receives the application program and writes it to flash memory f If the received record is not the last record S9 and S8 records of the application program the write control program sends X ON to re...

Страница 50: ...mputer a Start write erase control program b Application program input c Send W e Send number of erasion blocks and starting address i Receive erase error code q Receive write error code j Send transf...

Страница 51: ...rol program sends the end of erasion code ACK H 06 i If an erase error occurs the write erase control program sends the erase error code BELL H 07 j When it receives the BELL erase error code the host...

Страница 52: ...erase control program structure The flowcharts that follow show the detailed for 1 to 8 in figure 2 19 The H8 3067F is used as an example to show the process of writing to and erasing of flash memory...

Страница 53: ...B0520 0200 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 transm...

Страница 54: ...write command processes Yes No Yes No Set SWE in flash memory control register FLMSR Send transfer start code ACK H 06 to host machine Send error code BELL H 07 to host machine Check block start addre...

Страница 55: ...ion Executes erase erasion verify write and write verify as write command processes Yes No Yes No Clear SWE in flash memory control register FLMCR Write to flash memory Write to flash memory Wait 0 s...

Страница 56: ...ocess 3 Function Executes erase erasion verify write and write verify as write command processes Yes No Send transfer start code ACK H 06 to host machine Send error code BELL H 07 to host machine 3 2...

Страница 57: ...on starting address and calculates number of blocks to be erased Yes No Yes No Send error code BELL H 07 to host machine Set starting address of next block Receive block address Set number of erasion...

Страница 58: ...Name 4 Entire area erasion Function Verifies the erasion of the target erasion blocks and if not erased erases them Yes No Set SWE in flash memory control register FLMSR Set SWE in flash memory contr...

Страница 59: ...amming Tool Rev 2 00 Dec 13 2004 page 49 of 82 REJ05B0520 0200 Flowchart Name 5 Erase multiple blocks Function Erases multiple blocks set as erasion blocks Are there remaining erasion blocks Yes No Mu...

Страница 60: ...sion block data and erases blocks Have all erasion blocks been erased Yes No Flash memory erasion RTS Set bits corresponding to erasion blocks in erase block register Set erase block register EBR Set...

Страница 61: ...rased block area No Yes No Yes Set EV bit in FLMCR Is verify data H FFFF Is this last block address All erasion block flags cleared No Yes Erasion verification RTS Wait 20 s Set erasion starting addre...

Страница 62: ...y 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 Wait 50 s Enable watchdog timer WDT Set PSU bit in flash memory contr...

Страница 63: ...t 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 1 end of write flag not finished Set verify...

Страница 64: ...Function Writes to flash memory Send result of calculation to rewrite data area Calculate rewrite data Increment verify address Send error code to host machine Wait 4 s above 3 2 4 Is end of write fla...

Страница 65: ...on a user system For details of how to use the adapter board and on board programming software described here see the respective user s manuals 3 1 Installing the On Board Programming Software 1 Inser...

Страница 66: ...ectory field If you specify a directory that does not exist the installation program makes that directory and copies the software to that directory b Enter the number of the RS 232C port to be used to...

Страница 67: ...essage 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...

Страница 68: ...ail On board programming sequence user program mode END 1 Connect the user system to the adapter board 2 Set the method of power supply 3 Set the adapter board mode setting switch 4 Turn on the power...

Страница 69: ...rd and on board programming software 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 de...

Страница 70: ...e 3 7 shows the setup when supplying power from a general purpose power supply HS0008EASF3H Renesas POWER FG START STOP START 4 2 3 1 Power supply Power supply User system F ZTAT microcomputer VCC 5 V...

Страница 71: ...Enabled Disabled Low High 3 MD1 Enabled Disabled Low High 4 I O0 Enabled Disabled Low High 5 I O1 Enabled Disabled Low High 6 I O2 Enabled Disabled Low High Switch position side view E D E D 0 1 1 0...

Страница 72: ...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...

Страница 73: ...rectory in which the on board programming software is installed Select the flash memory block data file to be used b In the Time out time field specify the time out time for detection of no response w...

Страница 74: ...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...

Страница 75: ...g 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 When...

Страница 76: ...Filename field specify the file containing the user data to be written to flash memory If you do not know the name of the directory containing the file click Browse to display the file selection dialo...

Страница 77: ...and closes the dialog box Execution returns to the Main Window Figure 3 14 Flash Memory User Program Transfer Dialog Box 11 Ending the On Board Programming Process Pressing the START STOP switch on t...

Страница 78: ...n board programming sequence user program mode END 1 Prepare for user program mode 2 Connect the user system to the adapter board 3 Supply power 4 Set the adapter board mode setting switch 5 Select us...

Страница 79: ...ntrol program User system Programs required in user program mode These programs must be written to memory as part of the application program Internal flash memory area Figure 3 17 Programs Required in...

Страница 80: ...s END Run application program Start user program mode Transfer write erase control program Stop voltage to FWE FWP pin c Write to or erase flash memory b FWE flag 1 No Yes a Apply voltage to FWE FWP p...

Страница 81: ...erase control program in the on board programming software runs in the internal RAM of the F ZTAT microcomputer the RAM area to which the write control program is transferred in boot mode When transf...

Страница 82: ...Disable Setting 0 Setting 1 Setting 1 FWE FWP Enabled Disabled Low High 2 MD0 Enabled Disabled Low High 3 MD1 Enabled Disabled Low High 4 I O0 Enabled Disabled Low High 5 I O1 Enabled Disabled Low Hi...

Страница 83: ...0200 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...

Страница 84: ...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 prog...

Страница 85: ...e see section 3 2 Writing in Boot Mode Here the write address for the write erase contorl program is changed to address H 10000 in flash memory Set the address as a 32 bit hexadecimal value Calculatio...

Страница 86: ...e the dialog box and return to the Main Window without erasing memory or transferrring data Figure 3 22 Flash Memory Erasion Specification Dialog Box a The Erase flash memory block field shows the fla...

Страница 87: ...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 You can also click Cancel to...

Страница 88: ...igure 3 24 Transferring User Program Dialog Box 12 Ending writing of user data After the user data has been transferred and writing to flash memory is completed without error the Transferring User Dat...

Страница 89: ...to interface with the PC Therefore if the user system uses 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...

Страница 90: ...P Low boot mode or user program mode Sets SCI1 for writing 2 FWP High normal operation Sets SCI1 for user system H8S 2144F VCC VCC VCC VCC H8S 2144F TXD HC125 HC08 HC126 User system SCI Adapter board...

Страница 91: ...High In the example circuits for using P90 to P92 as output ports P90 to P92 must be pulled up and set High Table 4 2 Example I O Port Switching Circuits Target Use of P90 to P92 Example Circuit Descr...

Страница 92: ...Section 4 Example Use of User System Rev 2 00 Dec 13 2004 page 82 of 82 REJ05B0520 0200...

Страница 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...

Страница 94: ...Fax 44 1628 585 900 Renesas Technology Hong Kong Ltd 7th Floor North Tower World Finance Centre Harbour City 1 Canton Road Tsimshatsui Kowloon Hong Kong Tel 852 2265 6688 Fax 852 2730 6071 Renesas Tec...

Страница 95: ...Single Power Supply F ZTAT On Board Programming...

Отзывы: