HS2339KCM01H Renesas Electronics America, HS2339KCM01H Datasheet
HS2339KCM01H
Specifications of HS2339KCM01H
Related parts for HS2339KCM01H
HS2339KCM01H Summary of contents
Page 1
To our customers, Old Company Name in Catalogs and Other Documents st On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the ...
Page 2
All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...
Page 3
To all our customers Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp. The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April ...
Page 4
Cautions Keep safety first in your circuit designs! 1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may ...
Page 5
H8S/2339F E10A Emulator User’s Manual Rev.2.0 2002.05 ...
Page 6
...
Page 7
Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s patent, copyright, trademark, or other intellectual property rights for information contained in this document. Hitachi bears no responsibility for problems that may arise with ...
Page 8
...
Page 9
IMPORTANT INFORMATION • READ this user's manual before using this emulator product. • KEEP the user's manual handy for future reference. Do not attempt to use the emulator product until you fully understand its mechanism. Emulator Product: Throughout this document, ...
Page 10
LIMITED WARRANTY Hitachi warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and/or workmanship. Hitachi, at its option, will replace any emulator products returned intact to the factory, transportation charges prepaid, ...
Page 11
State Law: Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and ...
Page 12
READ this user's manual before using this emulator product. • KEEP the user's manual handy for future reference. Do not attempt to use the emulator product until you fully understand its mechanism. DEFINITION OF SIGNAL WORDS This is the ...
Page 13
Observe the precautions listed below. Failure will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY. The USER PROGRAM will be LOST not ...
Page 14
Warnings on Emulator Usage Be sure to read and understand the warnings below before using this emulator. Note that these are the main warnings, not the complete list. Always switch OFF the host computer and user system before connecting or ...
Page 15
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment ...
Page 16
VIII ...
Page 17
Thank you for purchasing the E10A emulator. READ section 2, Preparation before Use, of this User’s Manual before using the emulator product. Incorrect operation will damage the user system and the emulator product. This emulator is an efficient development tool ...
Page 18
Related Manuals: Supplementary Informations Hitachi Debugging Interface User's Manual (HS6400DIIW5SE) H8S, H8/300 Series C/C++ Compiler, Assembler, Optimizing Linkage Editor User's Manual Hardware Manual for each MCU Programming Manual for each MCU Notes: 1. IBM registered trademark of ...
Page 19
Section 1 Overview........................................................................................... 1 1.1 Warnings ........................................................................................................................... 3 1.2 Environmental Conditions ................................................................................................ 4 1.3 Components ...................................................................................................................... 6 Section 2 Preparation before Use ....................................................................... 7 2.1 Emulator Preparation ........................................................................................................7 2.2 HDI Installation................................................................................................................. 8 2.2.1 Installing under Windows 2.2.2 Installing under Windows ...
Page 20
Break Function.................................................................................................................. 51 3.15.1 Software Break Function ..................................................................................... 51 3.16 Hardware Break Function ................................................................................................. 58 3.17 Trace Function .................................................................................................................. 65 3.18 What Next? ....................................................................................................................... 66 Section 4 Descriptions of Windows....................................................................67 4.1 HDI Windows ................................................................................................................... 67 4.2 Descriptions of Each ...
Page 21
Section 6 H8S/2339F E10A Emulator Specifications........................................ 119 6.1 Overview of the Emulator.................................................................................................119 6.2 Pin Arrangement of the Hitachi-UDI Port Connector....................................................... 120 6.3 Example of Emulator Connection..................................................................................... 121 6.4 Differences between the H8S/2339EF, H8S/2329EF, H8S/2319EF, and the Emulator ...125 6.5 The ...
Page 22
Figures Figure 1.1 System Configuration with the Emulator (PCMCIA Card Emulator Used) ............ 1 Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used) ..................... 2 Figure 2.1 Emulator Preparation Flow Chart............................................................................. 7 Figure 2.2 Inserting the PCMCIA Card ...
Page 23
Figure 3.17 [Open Memory Window] Dialog Box....................................................................40 Figure 3.18 [Memory] Window.................................................................................................40 Figure 3.19 [Instant Watch] Dialog Box.................................................................................... 41 Figure 3.20 [Watch] Window (Displaying the Array)...............................................................42 Figure 3.21 [Add Watch] Dialog Box ....................................................................................... 42 Figure 3.22 [Watch] Window (Displaying the Variable) ...
Page 24
Figure 4.13 [System Status] Window ........................................................................................ 94 Figure 6.1 Pin Arrangement of the Hitachi-UDI Port Connector .............................................. 120 Figure 6.2 Example of Emulator Connection ............................................................................ 121 Figure 6.3 Connection of Emulator ........................................................................................... 122 Figure 6.4 EMLE Pin and Emulator .......................................................................................... ...
Page 25
Tables Table 1.1 Environmental Conditions ......................................................................................... 4 Table 1.2 Operating Environments............................................................................................ 5 Table 2.1 Recommended Connector.......................................................................................... 12 Table 3.1 Tutorial Program: Configuration and Parts ............................................................... 25 Table 3.2 Setting the [Configuration] Dialog Box.....................................................................29 Table 3.3 Contents of the [System Status] ...
Page 26
... Table 6.1 Components of the Emulator (HS2339KCM01H or HS2339KCI01H) .................... 119 Table 6.2 Unavailable Pin Functions......................................................................................... 124 Table 6.3 Register Initial Values at Emulator Power-On .......................................................... 125 Table 6.4 Type Name and Driver .............................................................................................. 126 Table 6.5 Hardware Break Condition Specification Items ........................................................ 126 Table 6.6 Conditions Set in [Break condition] Dialog Box....................................................... 127 Table 6 ...
Page 27
The E10A emulator (hereafter referred to as the emulator software and hardware development support tool for application systems using the microprocessor developed by Hitachi, Ltd. The PCMCIA card emulator or PCI card emulator (hereafter referred to as the ...
Page 28
Host computer (PC with PCI slot) Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used) The emulator provides the following features: Excellent cost-performance card emulator Compactness and low price are implemented using the PCMCIA interface or the PCI ...
Page 29
Warnings READ the following warnings before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST. 1. Check all components against the component list after unpacking the emulator. ...
Page 30
Environmental Conditions Observe the conditions listed in tables 1.1 and 1.2 when using the emulator. Failure will damage the user system and the emulator product. The USER PROGRAM will be LOST. Table 1.1 Environmental Conditions Item ...
Page 31
Table 1.2 Operating Environments Item Description Host computer Built-in Pentium or higher-performance CPU (166 MHz or higher recommended); IBM PC or compatible machine with the PCMCIA TYPE II slot or the PCI slot. OS Windows Minimum memory 32 Mbytes or ...
Page 32
Components Check all the components unpacking. For details on the E10A emulator components, refer to section 6.1, Overview of the Emulator. If the components are not complete, contact a Hitachi sales agency. 6 ...
Page 33
Section 2 Preparation before Use 2.1 Emulator Preparation READ the reference sections shaded in figure 2.1 before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST. Unpack the ...
Page 34
HDI Installation When the CD-R is inserted in the host computer’s CD-ROM drive, the HDI installation wizard is automatically activated (holding the Shift key down while the CD-R is inserted cancels this automatic activation). To run the installation wizard ...
Page 35
Installing under Windows NT 4.0 Operating System (1) When the emulator is a PCI card: 1. Shut the operating system down and turn off the power to the host computer. 2. Insert the PCI-card emulator in a slot on ...
Page 36
Installing under Windows 2000 Operating System (1) When the emulator is a PCI card: 1. Log-on with an administrator-level user name. 2. Install the HDI. (When a component is selected, be sure to select [PCI Card Driver].) 3. Shut ...
Page 37
Connecting the Host Computer with the Card Emulator Insert the card emulator into the PCMCIA TYPE II slot or the PCI slot of the host computer (figures 2.2 and 2.3). Note: Be sure to install the HDI before the ...
Page 38
Note: When installing the PCI card emulator, note the following: 1. Turn off the host computer. 2. Insert the emulator into the PCI slot in parallel. 3. Screw in the emulator after confirming the connector and cable positions. 2.4 Connecting ...
Page 39
Notes connect the signals output from the connector, refer to the MCU pin alignment remove the user system interface cable from the user system, pull the tab on the connector upward. 3. The range of communications ...
Page 40
System Check When the HDI program is executed, check that the emulator operates correctly according to the following procedure: 1. Check that the card emulator is inserted into the host computer. 2. Connect the user system interface cable to ...
Page 41
Power on the user system and select the setting to be used. Figure 2.6 [Select Session] Dialog Box 15 ...
Page 42
The [E10A Driver Details] dialog box is displayed. With the [Driver] combo box, select the driver to connect the HDI with the emulator. [Interface] displays the interface name of the PC interface board to be connected, and [Channel] displays ...
Page 43
Supply power to the user system. The subsequent procedures depend on the activation mode that was selected in step 5. 2.5.1 H8S/xxxx E10A Emulator Mode This mode is used for debugging in the emulator. 1. After the [System Clock] ...
Page 44
Notes: 1. When the HDI is not linked up even if the above procedure has been executed, the driver will not be set correctly. Install drivers provided with the /SETUP directory in the CD-R according to the screen instructions. 2. ...
Page 45
If the following dialog box is displayed, check that the Hitachi-UDI port connector on the user system is correctly connected. Figure 2.13 [Check the connection] Dialog Box (c) If the following dialog box is displayed, the MCU may not ...
Page 46
If the driver is not correctly connected, the following dialog box will be displayed. Figure 2.16 [Unable to restore the previous driver settings] Dialog Box The [E10A Driver Details] dialog box is displayed when the [OK] button is clicked. ...
Page 47
When the [Load Program] window appears, specify a user program to be downloaded. Click the [Open] button to start downloading. Figure 2.18 [Load Program] Dialog Box 3. When the program has been downloaded, the [Continue] window appears. When the ...
Page 48
Notes: 1. When the HDI does not link up, and the above procedures have been executed, the driver setting must be incorrect. Install a driver from the \SETUP directory of the CD-R according to the screen instructions the ...
Page 49
Ending the HDI Power off the emulator by using the following procedure: 1. Select [Exit] from the [File] menu to end the HDI. When the [Exit HDI] dialog box is displayed, click the [Yes] button. 2. Then, the [Save ...
Page 50
Uninstalling the HDI Follow this procedure to remove the installed HDI from the user’s host computer. 1. Open [Add/Remove Programs Properties] from the control panel. Select the HDI program from the list and click the [Add/Remove…] button. 2. The ...
Page 51
Introduction The following describes the main functions of the emulator by using a tutorial program. The tutorial program is based on the C program that sorts ten random data items in ascending or descending order. The tutorial program performs ...
Page 52
Running the HDI To run the HDI, select [HDI for E10A H8Sxxxx] from the [Start] menu. For the procedure of running the HDI, refer to section 2.5, System Check. 26 Figure 3.1 [Start] Menu ...
Page 53
Window The key functions of the HDI are described in section 4, Descriptions of Windows. Numbers in figure 3.2 indicate the following: 1. Menu bar: Gives the user access to the HDI commands for using the HDI debugger. ...
Page 54
Setting up the Emulator The following MCU conditions must be set up on the emulator before downloading the program: Device type Execution mode The following describes how to set up the emulator for the tutorial programs. 3.5 Setting the ...
Page 55
Set options as follows: Table 3.2 Setting the [Configuration] Dialog Box Option Mode Emulation mode Step option (Disables interrupt during single step execution) JTAG clock Operating Mode Flash memory synchronization Click the [OK] button to set any changes in the ...
Page 56
Downloading the Tutorial Program 3.6.1 Downloading the Tutorial Program Download the object program to be debugged. Select [Load Program...] from the [File] menu. The [Load Program] dialog box is displayed. Enter the [Offset] edit box and [File name] list ...
Page 57
Displaying the Source Program The HDI allows the user to debug a program at the source level. Select [Source...] from the [View] menu. The [Open] dialog box is displayed. Select the C source file that corresponds to the object ...
Page 58
Select [Sort.c] and click the [Open] button. The [Program] window is displayed. Figure 3.7 [Program] Window (Displaying the Source Program) If necessary, select the [Font...] option from the [Customize] submenu on the [Setup] menu to select a clear font and ...
Page 59
Setting the Software Breakpoint A breakpoint is one of the easy debugging functions. The [Program] window provides a very simple way of setting a software breakpoint at any point in a program. For example, to set a breakpoint at ...
Page 60
Setting Registers Set values of the program counter and the stack pointer before executing the program. Select [Registers] from the [View] menu. The [Registers] window is displayed. To change the value of the program counter (PC), double-click the value ...
Page 61
The following dialog box is then displayed. Figure 3.11 [Register] Dialog Box (ER7) Set the value of the stack pointer to H’FFFC00 in this tutorial program, and click the [OK] button. ...
Page 62
Executing the Program Execute the program as described in the following: To execute the program, select [Go] from the [Run] menu, or click the [Go] button on the toolbar. Or, select [Reset Go] from the [Run] menu or click ...
Page 63
The user can see the cause of the break that occurred last time in the [System Status] window. Select [Status] from the [View] menu. After the [System Status] window is displayed, open the [Platform] page, and check the status of ...
Page 64
The [System Status] window displays the following items in each page. Table 3.3 Contents of the [System Status] Window Page Item [Session] Target System Session Name Program Name [Platform] Connected To: CPU Run status Cause of last break Run time ...
Page 65
Reviewing Breakpoints The user can see all the breakpoints set in the program in the [Breakpoints] window. Select [Breakpoints] from the [View] menu. The pop-up menu, opened by clicking the [Breakpoints] window with the right mouse button, also allows ...
Page 66
Viewing Memory The user can view the contents of a memory block in the [Memory] window. For example, to view the memory contents corresponding to the main in word size: Select [Memory …] from the [View] menu, enter main ...
Page 67
Watching Variables As the user steps through a program possible to watch that the values of variables used in the user program are changed. For example, set a watch on the long-type array a declared at the ...
Page 68
Click [Add Watch] button to add a variable to the [Watch] window. Figure 3.20 [Watch] Window (Displaying the Array) The user can also add a variable to the [Watch] window by specifying its name. Click the [Watch] window with the ...
Page 69
The [Watch] window will now also show the long-type variable max. Figure 3.22 [Watch] Window (Displaying the Variable) The user can double-click the + symbol to the left of any variable in the [Watch] window to watch the all elements ...
Page 70
Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging. Table 3.4 Step Option Menu Command Description Step In Executes each statement, including statements within functions. Step Over Executes a function ...
Page 71
Executing [Step In] Command The [Step In] steps into the called function and stops at the first statement of the called function. To step through the sort function, select [Step In] from the [Run] menu, or click the [Step ...
Page 72
Executing [Step Out] Command The [Step Out] steps out of the called function and stops at the next statement of the calling statement in the main function. To step out of the sort function, select [Step Out] from the ...
Page 73
To execute two steps, use [Step In] twice. Figure 3.28 [Program] Window (Step In The value of max displayed in the [Watch] window is changed to the maximum data value. Step In) 47 ...
Page 74
Executing [Step Over] Command The [Step Over] executes a function call as a single step and stops at the next statement of the main program. Using [Step Over], execute two steps to reach the change function statement. Figure 3.29 ...
Page 75
Figure 3.31 [Program] Window (Step Over) When the last statement of the change function is executed, the data of variable a, which is displayed in the [Watch] window, is sorted in descending order. 49 ...
Page 76
Displaying Local Variables The user can display local variables in a function using the [Locals] window. For example, we will examine the local variables in the main function, which declares five local variables min, and max. ...
Page 77
Break Function The emulator has software and hardware break functions. With the HDI, a software breakpoint can be set using the [Breakpoints] window, and a hardware break condition can be set using the [Break condition 1] dialog box. An ...
Page 78
The [Break] dialog box is displayed. The [Point] page is displayed as a default. Figure 3.34 [Point] Page ([Break] Dialog Box) Click the [Add...] button to display the [Breakpoint] dialog box. 52 ...
Page 79
Enter H'10a4 to the [Value] edit box. Figure 3.35 [Breakpoint] Dialog Box Click the [OK] button. 53 ...
Page 80
The [Break] dialog box is displayed. The address set in the value field of [Breakpoint] is displayed. Figure 3.36 [Point] Page ([Break] Dialog Box) (After Software Breakpoint Setting) Click the [Close] button. 54 ...
Page 81
The software breakpoint that has been set is displayed in the [Breakpoints] window. Figure 3.37 [Breakpoints] Window (Software Breakpoint Setting) To stop the tutorial program at the breakpoint, the following procedure must be executed: Close the [Breakpoints] window. Set the ...
Page 82
Figure 3.38 [Program] Window at Execution Stop (Software Break) 56 ...
Page 83
The [System Status] window displays the following contents. Figure 3.39 Displayed Contents of the [System Status] Window (Software Break) Note: The items that can be displayed in this window differ according to the product. For the items that can be ...
Page 84
Hardware Break Function A method is given below in which the address bus condition and the read cycles for the state condition are set under Break condition 1 as hardware break conditions. Select [Breakpoint Window] from the [View] menu. ...
Page 85
The [Break] dialog box is displayed. To set hardware break conditions, select [Condition] in the [Break] dialog box to display the [Condition] page. Figure 3.41 [Condition] Page ([Break] Dialog Box two breakpoints can be set independently for the ...
Page 86
Highlight the first point in the [Break condition] list box. Click the [Edit...] button. The [Break condition 1] dialog box is displayed. Clear the [Don't care] check box in the [Address] page. Select the [Only program fetched address after] radio ...
Page 87
Figure 3.43 [Break] Dialog Box (After Hardware Break Condition Setting) Note: Note that the number of hardware break conditions differs according to the product. For the number that can be specified for each product, refer to the on-line help. Click ...
Page 88
The newly set hardware breakpoint is displayed in the [Breakpoints] window. With this setting, Break condition 1 is displayed in [Type] in the [Breakpoints] window. This completes the setting of the Break condition 1 hardware break condition. When the program ...
Page 89
The program runs then stops at the condition specified under Break condition 1. Figure 3.45 [Program] Window at Execution Stop (Break condition 1) 63 ...
Page 90
The [System Status] window displays the following contents. Figure 3.46 Displayed Contents of the [System Status] Window (Break condition 1) Note: The items that can be displayed in this window differ according to the product. For the items that can ...
Page 91
Trace Function The trace function of the E10A emulator is described. The branch source addresses, mnemonics, operands, and source lines are displayed. Since this function uses the trace buffer built into the MCU, a realtime trace can be acquired. ...
Page 92
What Next? This tutorial has described the major features of the emulator and the use of the HDI. Sophisticated debugging can be carried out by using the emulation functions that the emulator offers. This provides for effective investigation of ...
Page 93
Section 4 Descriptions of Windows 4.1 HDI Windows HDI window menu bars and the corresponding pull-down menus are listed in table 4.1. Where a description of a menu is included in the Hitachi Debugging Interface User's Manual or in this ...
Page 94
Table 4.1 HDI Window Menus and Related Manual Entries (cont) Menu Bar Pull-Down Menu View Menu Breakpoints Command Line Disassembly... I/O Registers Labels Locals Memory... Performance Analysis Profile-List Profile-Tree Registers Source… Status Trace Watch Run Menu Reset CPU Go Reset ...
Page 95
Table 4.1 HDI Window Menus and Related Manual Entries (cont) Menu Bar Pull-Down Menu Memory Menu Refresh Load Save Verify Test Fill Copy Compare Setup Menu Status bar Options Radix Customise Configure Platform… Window Menu Cascade Tile Arrange Icons Close ...
Page 96
Descriptions of Each Window This section describes each window. Figures in this section are used as examples. Each E10A emulator type has explanatory notes. Read section 6, H8S/xxxx E10A Emulator Specifications. 4.2.1 [Configuration] Dialog Box Function: This dialog box ...
Page 97
Description: The [Configuration] dialog box consists of the [General] page listed in table 4.2. Table 4.2 [Configuration] Dialog Box Page Page Name [General] Clicking the [OK] button sets the emulation conditions. If the [Cancel] button is clicked, this dialog box ...
Page 98
Page ([Configuration] Dialog Box) Function: This page sets the operational conditions for the emulator. The MCU name is displayed, the emulation mode and interrupts during step execution are set, the JTAG clock (TCK) is displayed and set, and ...
Page 99
Description: Table 4.3 [General] Page Options Option [Mode] combo box [Emulation mode] combo box [Step option] combo box [JTAG clock] combo box [Operating mode] combo box [Flash memory synchronization] combo box [Driver] group box Note: The range of frequencies that ...
Page 100
When a driver changed with the [Change…] button, the following message is displayed. When the [Yes] button is clicked, the [E10A Driver Details] dialog box is displayed. When the [No] button is clicked, the display returns to ...
Page 101
Driver Details] Dialog Box When the [OK] button is clicked, the [E10A Driver Details] dialog box will appear to select the driver software used by the interface to the emulator. Since the emulator is reinitialized after this dialog ...
Page 102
When the PCMCIA card emulator is used, [E10A PC Card Driver 5] is selected. When the PCI card emulator is used, [E10A PCI Card Driver 5] is selected. Note: When the HDI is not linked up even if the above ...
Page 103
Description: The [Breakpoints] window displays breakpoint setting information. The items listed in the following tables are displayed. Table 4.5 [Breakpoints] Window Display Items Item Description [Enable] Indicates whether the break condition is enabled or disabled. Symbol shows ...
Page 104
Dialog Box Function: This dialog box displays the break condition settings. Window: 78 Figure 4.6 [Break] Dialog Box ...
Page 105
Description: The [Break] dialog box consists of the pages listed in table 4.7. Table 4.7 [Break] Dialog Box Pages Page Name [Point] [Condition] The dialog boxes which set or modify break conditions can be displayed from the pages above. Clicking ...
Page 106
Page ([Break] Dialog Box) Function: This page displays software breakpoint settings. In this page, software breakpoints can be set, changed, and cleared. Window: Figure 4.7 [Point] Page ([Break] Dialog Box) 80 ...
Page 107
Description: Table 4.8 [Point] Page Options Option Description [Breakpoint] list box Lists the software breakpoints currently being set. The display contents are as follows: <breakpoint address> [Add...] button Sets software breakpoints. Clicking this button displays the [Breakpoint] dialog box. [Edit...] ...
Page 108
Page ([Break] Dialog Box) Function: This page displays the Break Condition settings. These conditions can also be set or cleared in this page. Window: Figure 4.8 [Condition] Page ([Break] Dialog Box) Note: Note that the number of hardware ...
Page 109
Description: Table 4.9 [Condition] Page Options Option Description [Break condition] list box Displays the Break condition settings. The display at system initiation is as follows: When conditions are set, Enable is displayed. When no conditions are set, Empty is displayed. ...
Page 110
Dialog Box Function: This dialog box sets software breakpoints. Window: Note: The items that can be set in this window differ according to the product. For the settings for each product, refer to the on-line help. 84 Figure ...
Page 111
Description: The [Address] page options are as follows: Table 4.10 [Address] Page Options Option [Value] edit box Clicking the [OK] button enables breakpoints to be set. If the [Cancel] button is clicked, this dialog box is closed without setting breakpoints. ...
Page 112
Dialog Box Function: This dialog box sets hardware break conditions. Window: Figure 4.10 [Break condition 1] Dialog Box Note: The items that can be set in this window differ according to the product. For the settings for ...
Page 113
Description: The [Break condition] dialog box consists of the [condition] page. Sets the conditions for halting the program. Contents to be set by this page are described in section 4.2.7, [Break condition] Dialog Box Pages. Clicking the [OK] button sets ...
Page 114
Dialog Box Pages The [Break condition] dialog box page allows a number of hardware break conditions to be set. Some functions may not be supported by some types of emulators. The setting conditions may differ from those ...
Page 115
Page Function: This page sets the address bus, data bus, and read/write cycle conditions. Window: Note: The items that can be set in this window differ according to the product. For the settings for each product, refer to ...
Page 116
Description: The [Address] group box sets the address bus conditions. Table 4.13 [Address] Group Box Options Option Description [Don’t care] check box Does not set address conditions. [Address] radio button Sets use of the normal address bus as break conditions. ...
Page 117
The [Read/Write] group box sets the read/write cycle conditions. Table 4.16 [Read/Write] Group Box Options Option [Read/Write] radio button [Read] radio button [Write] radio button Related Items: [Condition] page BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command Description Sets the ...
Page 118
Window Function: This window displays the trace buffer contents. The contents are displayed in both C and assembly languages to simplify debugging. Window: Note: The number of branch instructions that can be acquired by a trace differs according ...
Page 119
Description: This window displays the trace buffer contents. The items listed in table 4.17 are displayed. Table 4.17 [Trace] Window Display Items Item Description [IP] Displays the instruction pointer (signed decimal). [TYPE] Displays the branch source. BRANCH: Branch source [ADDR] ...
Page 120
Status] Window Function: This window lists information, such as conditions that have been set to the emulator and execution results. Window: Note: The items that can be displayed in this window differ according to the product. For the ...
Page 121
Description: The items listed in the following table are displayed in the [System Status] window. Table 4.18 [System Status] Window Display Items Page Item [Session] Target System Session Name Program Name [Platform] Connected To CPU Run status Cause of last ...
Page 122
96 ...
Page 123
Section 5 Command-line Functions 5.1 Table and Symbol Description This section describes the format used in section 5.2, Command Descriptions. The descriptions of some commands are given over two or more pages. 5.1.1 Format The input format for each command ...
Page 124
Examples These are actual input examples. For commands whose execution results in a specific display output, an example of the display is given. 5.1.4 Related Items Related E10A HDI commands (abbreviations) and dialog boxes are shown. (Refer to section ...
Page 125
Command Descriptions The command list of the E10A emulator is shown below. Table 5.1 E10A HDI Commands No Command 1 BREAKCONDITION_ CLEAR 2 BREAKCONDITION_ DISPLAY 3 BREAKCONDITION_ ENABLE 4 BREAKCONDITION_ SET 5 BREAKPOINT 6 BREAKPOINT_CLEAR 7 BREAKPOINT_DISPLAY 8 BREAKPOINT_ENABLE ...
Page 126
BREAKCONDITION_CLEAR: BCC Description: Clears hardware breakpoints that have been set. Format: bcc [<channel>] <channel> = channel <channel_number> Table 5.2 BREAKCONDITION_CLEAR Command Parameter Parameter Type None Examples: To clear all hardware breakpoints: > bcc (RET) To clear all hardware breakpoints ...
Page 127
BREAKCONDITION_DISPLAY: BCD Description: Displays hardware breakpoints that have been set. The display contents include enable or disable of the setting, and setting conditions. Format: bcd [<channel>] <channel> = channel <channel_number> Table 5.3 BREAKCONDITION_DISPLAY Command Parameter Parameter Type None Examples: ...
Page 128
BREAKCONDITION_ENABLE: BCE Description: Enables or disables hardware breakpoints that have been set. Format: bce [<channel>] <mode> <channel> = channel <channel_number> Table 5.4 BREAKCONDITION_ENABLE Command Parameter Parameter Type <mode> Keyword Examples: To enable all hardware breakpoints: > bce enable (RET) ...
Page 129
BREAKCONDITION_SET: BCS Description: Sets hardware breakpoints. Note: The function will be different according to the MCUs used. For functions of each emulator product, refer to section 6.5.2, Hardware Break Functions. Format: bcs <channel> <option> [<option> ... ] <channel> = ...
Page 130
Table 5.5 BREAKCONDITION_SET Command Parameters Parameter Type <address> Numerical value, character string <addrcycle> Keyword <maskdata> Keyword <data> Numerical value <size> Keyword <direction> Keyword Note: The parameters for this command vary with the product. For the specifications of each product, refer ...
Page 131
Examples: To set the following conditions as a hardware breakpoint: Address condition: An address bus value of H'1000, Data condition: A data bus value of H'55 and lower 8-bit byte access, Read/write cycle condition: Read cycle. > bcs address 1000 ...
Page 132
BREAKPOINT: BP Description: Sets software breakpoints. Note: The function will be different according to the MCUs used. Format: bp <address> Table 5.6 BREAKPOINT Command Parameter Parameter Type <address> Numerical value, character string Note: The parameters for this command vary ...
Page 133
BREAKPOINT_CLEAR: BC Description: Clears software breakpoints that have been set. Format: bc [<address>] Table 5.7 BREAKPOINT_CLEAR Command Parameter Parameter Type <address> Numerical value, character string Note: When no parameters are set, all software breakpoints are cleared. Note: The parameters ...
Page 134
BREAKPOINT_DISPLAY: BD Description: Displays software breakpoints that have been set. Format: bd Table 5.8 BREAKPOINT_DISPLAY Command Parameter Parameter Type None Example: To display the software breakpoints that have been set: > bd (RET) The display format is as follows: ...
Page 135
BREAKPOINT_ENABLE: BE Description: Enables or disables software breakpoints that have been set. Format: be <address> <mode> Table 5.9 BREAKPOINT_ENABLE Command Parameters Parameter Type <address> Numerical value, character string <mode> Keyword Examples: To enable software breakpoints that have been set: ...
Page 136
DEVICE_TYPE: DE Description: Displays MCU type currently selected. Format: de Table 5.10 DEVICE_TYPE Command Parameter Parameter Type None Example: To display the currently selected MCU: > de (RET) The display format is as follows: >de Current device = H8S/xxxx ...
Page 137
GO_OPTION: GP Description: Sets or displays the emulation mode during user program execution. Format: gp Displays emulation mode for user program execution. gp <eml_opt> <eml_opt> = eml_mode <eml_mode> Sets emulation mode for user program execution. Table 5.11 GO_OPTION Command ...
Page 138
JTAG_CLOCK: JCK Description: Displays or sets the JTAG clock (TCK) frequency. Format: JCK Displays the JTAG clock (TCK). JCK <jck_opt> Sets the JTAG clock (TCK). Table 5.12 JTAG_CLOCK Command Parameter Parameter Type <jck_opt> Numerical value Note: The range of ...
Page 139
Examples: (when PCMCIA used): To set the JTAG clock (TCK) frequency: > JCK 1 (RET) JTAG Clock 15MHz To display the JTAG clock (TCK) frequency: > JCK (RET) JTAG Clock 15MHz (when PCI used): To set the JTAG clock (TCK) ...
Page 140
REFRESH: RF Description: Updates the HDI memory information to the latest contents. Format: rf Table 5.13 REFRESH Command Parameter Parameter Type None Example: To update the HDI memory information: > rf (RET) 114 Description ...
Page 141
RESET: RE Description: Resets the H8S/xxxx. The breakpoint settings are retained. After the reset, the registers will be in the same state as when power is supplied. Format: re Table 5.14 RESET Command Parameter Parameter Type None Example: To ...
Page 142
STATUS: STS Description: Displays emulator status information. Format: sts Table 5.15 STATUS Command Parameter Parameter Type None Example: To display status information of the emulator: > sts (RET) The display format is as follows: >sts Emulator Status Connected to: ...
Page 143
STEP_INTERRUPT: SI Description: Sets or displays the enable or disable status of interrupts during step execution. When interrupts occur when they are disabled, execution stops at the top address of the interrupt routine. Format: si Displays the enable or ...
Page 144
TRACE_DISPLAY: TD Description: Displays acquired trace information. Format: td Table 5.17 TRACE_DISPLAY Command Parameter Parameter Type None Example: To display acquired trace information: > td (RET) The display format is as follows: >td IP TYPE -D’xxxx BRANCH -D’xxxx BRANCH ...
Page 145
... Overview of the Emulator The H8S/2339F E10A emulator supports the H8S/2339EF, H8S/2329EF, and H8S/2319EF. The MCU operating modes and 7 are supported and realtime emulation can be performed. Table 6.1 lists the components of the emulator. Table 6.1 Components of the Emulator (HS2339KCM01H or HS2339KCI01H) Classi- fication Component Hard- ...
Page 146
Pin Arrangement of the Hitachi-UDI Port Connector Figure 6.1 shows the pin arrangement of the Hitachi-UDI port connector. Note that the pin number assignment of the Hitachi-UDI port connector differs from that of the connector manufacturer. Pin 1 mark ...
Page 147
Example of Emulator Connection The following shows an example of connecting the user system to the emulator. 14-pin connector with a 2.54-mm pitch (3M Limited: 2514-6002 ...
Page 148
Notes: 1. The emulator uses P34 and P80 to P83 in the H8S/2339EF, P34 and P60 to P63 in the H8S/2329EF, and P20 to P21, P31, P33, and P35 in the H8S/2319EF. Pull up the emulator and MCU pins and ...
Page 149
Hitachi-UDI port connector is a signal line in which the emulator outputs signals to the MCU. #RES of pin 7 of the Hitachi-UDI port connector is a signal line in which the emulator ...
Page 150
When H8S/2339EF and H8S/2329EF are connected to the emulator, SCI0 (serial communication interface channel 0) cannot be used. 9. When H8S/2319EF is connected to the emulator, SCI1 (serial communication interface channel 1) cannot be used. 10. When H8S/2339EF, H8S/2329EF, ...
Page 151
Differences between the H8S/2339EF, H8S/2329EF, H8S/2319EF, and the Emulator 1. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 6.3. Table 6.3 Register Initial Values at Emulator ...
Page 152
... Emulator Driver Selection Table 6.4 shows drivers which can be selected in the [E10A Driver Details] dialog box. Table 6.4 Type Name and Driver Type Name HS2339KCM01H HS2339KCI01H 6.5.2 Hardware Break Functions Hardware Break Conditions: In the H8S/2339F E10A emulator, two break conditions can be set (Break Condition 1,2) ...
Page 153
Table 6.6 Conditions Set in [Break condition] Dialog Box Condition Address Bus Dialog Box Condition [Break condition 1] [Break condition 2] Note: O: Can be set by checking the radio button in the dialog box. Table 6.7 lists the combinations ...
Page 154
Notes on Setting the [Breakpoint] Dialog Box 1. When an odd address is set, the address is rounded down to an even address software break is accomplished by replacing instructions. Accordingly, it can be set only to ...
Page 155
Notes on HDI 1. Note on Moving Source File Position after Creating Load Module When the source file is moved after creating the load module, the [Open] dialog box may be displayed to specify the source file during the ...
Page 156
Example: Array display When array elements exceed 1000, elements from after 1000 will not be displayed. 6. Memory Load Function When [Load...] is selected from the [Memory] menu, the Memory Load function can be used although it takes time to ...
Page 157
Example: 9. Note on Initiating HDI When the emulator is initiated by using another card emulator after it has been initiated by using the PCI card emulator, delete the [TARGET] line from the C:\windows\HDI.INI file. 10. Usage with Another HDI ...
Page 158
Registers] window Display and modification Do not change values in the [I/O Registers] window because the emulator uses the address break controller. Note that the E10A emulator does not support the display of the invalid module or bit ...
Page 159
Number of Software Breakpoint and [Stop At] Settings in the [Run...] Menu The maximum number of software breakpoints and [Stop At] settings allowed in the [Run...] menu is 255. Therefore, when 255 software breakpoints are set, specification by [Stop ...
Page 160
Note on Starting or Halting User Program When the user program execution is started or halted, the program for the H8S/2339F E10A emulator will write or read the flash memory. The write or read processing will take about a ...
Page 161
Watchdog Timer When the emulator is connected to operate the watchdog timer (WDT) during using the H8S/2339EF, H8S/2329EF, and H8S/2319EF, the WDT continues operation during a break. 1) When a counter value overflows during a break in the watchdog ...
Page 162
136 ...