Renesas CE2000-H8S Series User Manual
Renesas CE2000-H8S Series User Manual

Renesas CE2000-H8S Series User Manual

Compact emulator
Table of Contents

Advertisement

Quick Links

www.DataSheet4U.com
16
CE2000
H8S Series Compact Emulator
Microcomputer Development Environment System
2003.10

Advertisement

Table of Contents
loading

Summary of Contents for Renesas CE2000-H8S Series

  • Page 1 www.DataSheet4U.com CE2000 H8S Series Compact Emulator Microcomputer Development Environment System 2003.10...
  • Page 2 www.DataSheet4U.com - Blank Page -...
  • Page 3 : Renesas System Solutions Asia Pte. Ltd. Date : October 3 , 2003, Version 2.0 Copyright(C) Renesas System Solutions Asia Pte. Ltd. All rights reserved. Trademarks a) General All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations.
  • Page 4 This emulator product must only be used for the above purpose. Improvement Policy: Renesas System Solutions Asia Pte. Ltd. (hereafter collectively referred to as Renesas) pursues a policy of continuing improvement in design, performance, and safety of the emulator product. Renesas reserves the right to change, wholly or partially, the specifications, design, user’s manual, and other...
  • Page 5 No warranty of fitness for a particular purpose is offered. The user assumes the entire risk of using the product. Any liability of Renesas is limited exclusively to the replacement of defective materials or workmanship.
  • Page 6 Failure to do so could result in damage to the equipment. All Right Reserved: This user’s manual and emulator product are copyrighted and all rights are reserved by Renesas. No part of this user’s manual, all or part, any be reproduced or duplicated in any form, in hardcopy or machine-readable form, by any means available without Renesas‘s prior written consent.
  • Page 7 www.DataSheet4U.com PREFACE About this manual This manual explains how to setup the Compact Emulator for usage of the H8S series microcomputers. Operation using High-performance Embedded Workshop(HEW) as pure debugger is also detailed in the context. Section 1 Introduction Gives an introduction to the system package and specification. It also highlights the precautionary measures when using the emulator.
  • Page 8 www.DataSheet4U.com Assumptions This manual assumes that the user has a working knowledge of • High-performance Embedded Workshop (Compiler, Assembler and Linker) • H8S Architecture • General Hardware Interface Circuitry • General Personal Computer Operation • MS-Window programs Related Manuals: • H8S, H8/300 Series C/C++ Compiler Package Manual (Installed with HEW) •...
  • Page 9: Table Of Contents

    www.DataSheet4U.com Table of Contents SECTION 1. INTRODUCTION......................1 .......................... 1 VERVIEW ......................2 ACKAGE ONTENTS 1.2.1 Hardware ......................2 Components 1.2.2 Software Components ......................2 1.2.3 Optional Components ......................2 ....................... 3 YSTEM EQUIREMENT MCU S CE2000-H8S/2238 E ........... 3 UPPORTED ERIES BY MULATOR...
  • Page 10 www.DataSheet4U.com ....................32 EASUREMENT PFG F ....................32 UNCTION RACE 3.10 ......................33 EMORY UNCTIONS 3.11 (POTF) ..................33 ARALLEL 3.12 ......................33 EMORY APPING 3.13 I/O R ..................34 EGISTERS CCESS 3.14 ..........................35 ESSION 3.15 ..................35 SOURCE EVEL EBUGGING SECTION 4.
  • Page 11 APPENDIX B : USER CONNECTOR SPECIFICATION ..............B-1 APPENDIX C : USER CONNECTOR PIN LAYOUT ................ C-1 APPENDIX D : CASING ASSEMBLY ....................D-1 APPENDIX E : TECHNICAL SPECIFICATION ................E-1 APPENDIX F : FREQUENTLY ASKED QUESTIONS ..............F-1 RENESAS TECHNOLOGY (ASIA SALES OFFICES)
  • Page 12 www.DataSheet4U.com List of Figures Figure 1-1 CE2000-H8S/2238 Emulator ..................... 1 Figure 1-2 CE2000-H8S/2238 Emulator Package................2 Figure 2-1 Basic Setup of CE2000-H8S/2238 Emulator..............9 Figure 2-2 Compact Emulator ......................9 Figure 2-3 Installing HEW package with Tool chain ................ 10 Figure 2-4 Installing HEW(Pure Debugger)..................
  • Page 13 www.DataSheet4U.com Figure 7-17 Memory Window ......................58 Figure 7-18 Instant Watch dialog..................... 59 Figure 7-19 Watch Window......................59 Figure 7-20 Add Watch Dialog ......................60 Figure 7-21 Watch Window......................60 Figure 7-22 Displaying Individual Elements in an Array............61 Figure 7-23 Step In ..........................
  • Page 14 www.DataSheet4U.com List of Tables Table 1-1 CE2000-H8S/2238 Emulator Functions ................4 Table 3-1 Types of Breaks Encountered During Emulation............31 Table 4-1 MCU Operating Modes....................36 Table 5-1 Differences between H8S and Emulator................40...
  • Page 15: Introduction

    Section 1. Introduction Overview The CE2000-H8S/2238 Compact Emulator is one of the Renesas’s Development Tool series. It is produced as a cost-effective, easy-to-use support tools. The CE2000-H8S/2238 emulator has an easy to setup USB link and a common user-friendly Windows- based interface High-performance Embedded Workshop(HEW).
  • Page 16: Package Contents

    Debugger) does not include Renesas’s Toolchain of Compiler. Before proceeding, user has to check that all the items listed in the packing list. Please contact the relevant Renesas Sales Office if any item is missing. 1.2.3 Optional Components The following items can be purchased to further enhance the emulation capability: •...
  • Page 17: System Requirement

    www.DataSheet4U.com System Requirement The following items are not supplied but they are required to be used with the CE2000-H8S/2238 emulator. • A minimum Pentium or equivalent based processor personal computer with USB version 1.1. • Microsoft Windows 98(2 Edition)/Me/2000/Xp • Memory capacity: at least 128 Mbytes;...
  • Page 18: Summary Of Ce2000-H8S/2238 Emulator Functions

    www.DataSheet4U.com Summary of CE2000-H8S/2238 Emulator Functions Table 1-1 CE2000-H8S/2238 Emulator Functions Items Specifications • Supported H8S/2214 series - H8S/2214 • Microcomputers H8S/2215 series - H8S/2215 • H8S/2238 series - H8S/2236(R )(W), 2238(R )(W) • H8S/2237 series - H8S/2233, 2235, 2237 •...
  • Page 19 www.DataSheet4U.com Items Specifications • Emulation Memory 512Kbytes internal ROM (max) • 128Kbytes internal RAM (max) • Provision of 4 banks of selectable optional memory block − 2Mbytes SODIMM. (Not in Package) • Memory Functions Copy, Search, Fill, Load and Save memory functions. •...
  • Page 20 www.DataSheet4U.com Items Specifications • Clock selection Software selection of 2 types of clocks: • User system clock (via user cable) • Emulator internal clock 2−16 MHz at 100KHz resolution • Execution time Measure the start (run) till end (break) of an execution. •...
  • Page 21: Precautionary Measures

    www.DataSheet4U.com Precautionary Measures The emulator must be handled with care. Otherwise, it may not work as intended. Before Power On • Check all components by referring to the packing list • Never place heavy objects on the casing Observe the following conditions in which the emulator is to be used: •...
  • Page 22 www.DataSheet4U.com - Blank Page -...
  • Page 23: Setup

    www.DataSheet4U.com Section 2. Setup Express Setup Steps • Unpack and verify parts against the packing list. • Power up PC. • Install HEW by running setup file. • Power up the CE2000-H8S/2238 emulator. • Connect USB cable from PC to the emulator within 10 seconds. Otherwise, the CE2000-H8S/2238 emulator will go into Self Test mode.
  • Page 24: Installing Hew Software

    www.DataSheet4U.com Installing HEW software HEW(Pure Debugger) for CE2000-H8S/2238 can be used alone as pure debugger which users can only do debugging on the download module. If a user has HEW compiler package with Hitachi’s Toolchain, he can use HEW(Pure Debugger) for CE2000-H8S/2238 with integration with the Toolchain.
  • Page 25 www.DataSheet4U.com C:\Program Files\HEW Figure 2-4 Installing HEW(Pure Debugger) HEW(Pure Debugger) for CE2000-H8S/2238 can be uninstalled by using the Add/Remove Programs wizard of Control panel.
  • Page 26: Installing The Usb Driver

    www.DataSheet4U.com Installing the USB Driver The two methods to install the USB drivers are as follows: • Select the Add/Remove Hardware in the Control Panel. • Another method is to link the emulator to the PC through the USB cable. This will activate Windows auto-detect feature.
  • Page 27 Figure 2-7 Selecting the USB Driver Location • Click on Browse… and select either • C:\ProgramFiles\hew\Tools\Renesas\DebugComp\Platform\Emulator\CE2238\Driver\Win2K directory or Figure 2-8 Win2K Driver Location...
  • Page 28 • C:\Program Files\hew\Tools\Renesas\DebugComp\Platform\Emulator\CE2238\Driver\Win9x directory Figure 2-9 Win 9x Driver Location • Select the file available Figure 2-10 Selected Driver File Window • Click on Next to install the driver...
  • Page 29: Ce Programmer (Os And Logic Upgrade)

    www.DataSheet4U.com Figure 2-11 Compact Emulator USB Driver Installed • Click on Finish to complete the installation CE Programmer (OS and Logic Upgrade) During the installation of the HEW, the installer checks the OS and Logic version of the emulator (if it is connected).
  • Page 30 www.DataSheet4U.com Figure 2-12 CE Programmer Window • Click on the Program button (The OS is programmed first and it takes approximately 25 seconds. This is followed by the Logic, which takes approximately 40 seconds). Figure 2-13 CE OS and Logic Programming •...
  • Page 31: Installation Details

    www.DataSheet4U.com Figure 2-14 End of Programming • Restart the emulator. Note: 1. Make sure that there is no interruption during the programming. Otherwise, reprogramming will not be possible and user will need to send the emulator back for the upgrade work. 2.
  • Page 32: Power Up The Emulator

    www.DataSheet4U.com Power Up the Emulator A power supply is included in the CE2000-H8S/2238 emulator package. It can accommodate 110-240V 50-60Hz AC supply. The unit is capable of a regulated 5V, 2.6A output. The following diagram shows the polarity of the power-supply plug: CENTRE POSITIVE 2.1 mm Phone - J GROUND...
  • Page 33: Activation Of The Emulation System

    www.DataSheet4U.com Activation of the Emulation System To activate the emulation system, user has to: • Ensure that the CE2000-H8S/2238 emulator is powered up i.e., check that the POWER LED is illuminated and the colour is RED. • Ensure that the USB cable is linked between the emulator and PC. •...
  • Page 34: Configure The Platform

    www.DataSheet4U.com Figure 2-18 Creating new workspace Configure the Platform Before any emulation can proceed, user is advised to configure the platform for the desired application. This will ensure a proper control over the targeted application. All the following can be configured by selecting menu Options->Emulator->Systems…. Figure 2-19 Configure Platform dialog Figure 2-19 shows the Configure Platform dialog for platform configuration.
  • Page 35: Device And Package Selection

    www.DataSheet4U.com 2.9.1 Device and Package Selection User has to select the desired device and package. The selection will determine the mapping window setting. The package selection will also determine the type of graphical display in the pinview window. 2.9.2 Operating Mode Selection There are five mode selections: •...
  • Page 36: Memory Mapping

    www.DataSheet4U.com 2.10 Memory Mapping After the selection of Device, Package and Mode, the default mapping will be generated. This can be viewed under the Options->Emulator->Memory Resource…. Figure 2-20 Memory Mapping dialog Usually, user does not require to change this setting. However, it may be changed for the following reasons: •...
  • Page 37: Connection To Target System

    www.DataSheet4U.com To change the setting, user has to: • Click on the Add button in the Memory Mapping dialog. • Key in the desired address at From and To. • Select the attribute. Figure 2-21 Editing the Memory Mapping For the details of the memory mapping, please refer to section 3. 2.11 Connection to Target System 2.11.1 Target Power Supply The CE2000-H8S/2238 emulator has an automatic voltage follower.
  • Page 38 www.DataSheet4U.com For Direct Connection, Target System CE2000 Figure 2-22 User Interface Cable – Direct Connection NOTE: User has to connect the signal CABLE_IN_N to ground. For Actual Footprint. CE2000 Target System Figure 2-23 User Interface Cable – Actual Footprint...
  • Page 39: Optional Sodimm Memory Selection

    www.DataSheet4U.com 2.12 Optional SODIMM Memory Selection Optional SODIMM memory is used when user wants to access external memory area when the target system is not available. If SODIMM is purchased, user has to open the casing and fix the SODIMM in the correct socket (Please refer to the SODIMM user manual).
  • Page 40 www.DataSheet4U.com Figure 2-25 Memory Mapping Window Figure 2-26 Mapping of Optional Memory Shown in Status Window The Memory page of Status window in Figure 2-26 details the usage of the different banks of optional memory. Please refer to Section 3.13 for the details in Memory Mapping setting.
  • Page 41 www.DataSheet4U.com - Blank Page -...
  • Page 42: Emulation Functions

    www.DataSheet4U.com Section 3. Emulation Functions Overview 3.1.1 Emulation The CE2000-H8S/2238 emulator operates in two modes: Break and User modes. To execute the user program, user can either Single-Step, Run at current program counter or Reset Go. This will cause it to operate in the User mode. To terminate the User Run state, a break condition has to be asserted to bring the emulator to the Break mode.
  • Page 43 www.DataSheet4U.com Menu Help button Tool- Workspace window Status window Output window Figure 3-1 HEW desktop window The key features of HEW are described in the following sections: Menus : Gives user access to the HEW debugging commands for controlling CE2000 Emulator. Toolbar : Provides convenient buttons as shortcuts for the most frequently used menu commands.
  • Page 44: Programmable Function Generator (Pfg)

    As at the current date, the available function is the “Integrated 256 Cycles of Bus Trace and Two Event Breaks”. More functions will be generated later. Please approach the relevant Renesas Sales Office for further information.
  • Page 45: Break Functions

    www.DataSheet4U.com Step-out performs program stepping out of a function. Step… will execute multiple Step-in as specified by the user. Break Functions Breaks are events used to interrupt the normal program execution when a specific condition is matched. There are six types of break in CE2000. These break functions are classified into two classes, mainly hardware Event and software PC break.
  • Page 46: Event Breakpoint

    www.DataSheet4U.com 3.7.1 Event Breakpoint For the CE2000-H8S/2238 emulator, two event breakpoints are supplied permanently. The conditions to determine the breaks are • Address • Access (Read/Write) The break condition occurs in a “AND” condition. If the factors defined are not fulfilled, the particular break condition will be ignored.
  • Page 47: Memory Functions

    www.DataSheet4U.com 3.10 Memory Functions General functions such as fill, copy, search, save and load memory are supported, by means of clicking the mouse button. Modification of memory can be made via byte, word, or long word access. NOTE: User has to set the bus state controller correctly before the external memory can be accessed. These functions can be applied on all the three memory type of the emulator, namely: •...
  • Page 48: Cpu And I/O Registers Access

    www.DataSheet4U.com Figure 3-2 Modification of Mapping Memory At startup, when user select the Device, Package and Mode in the Configure Platform dialog, default mapping for the application will be generated. This can be viewed under Memory Mapping dialog. In default, if the device has an external address space, it will be set to be external guarded. Upon connecting the emulator to a target system or accessing the optional SODIMM, user has to change this default setting i.e., To access external target memory...
  • Page 49: Session

    3.15 C-source Level Debugging If user compiles and links the code with the Debug option enabled, the Renesas object format (.abs) file with the debugging information is generated. This enables user to debug the code in C-source level i.e. , •...
  • Page 50: H8S Function Supported

    www.DataSheet4U.com Section 4. H8S Function Supported The CE2000-H8S/2238 emulator can support the H8S series of microcomputer. The various functions support for the H8S are detailed below. MCU Operating Mode Setting The CE2000-H8S/2238 emulator supports the four operating modes of the H8S. User can select the MCU operating mode via the Configure Platform dialog.
  • Page 51: External Area

    www.DataSheet4U.com External Area 4.2.4 The external target area will be accessed as long as the area does not belong to: • Internal ROM • Internal RAM • Internal I/O • Mapped Emulator Optional Memory User has to set the area to be read/write or write protected, in order to access the area. Otherwise, the area will be treated as Access inhibited or Guarded.
  • Page 52: Interrupts

    www.DataSheet4U.com Interrupts During emulation, the user can interrupt the H8S. If an interrupt occurs while the emulator is in the break mode, the interrupt is not processed. However, if an edge-sensitive interrupt occurs while the emulator is in the break mode, the emulator latches the interrupt and executes the interrupt processing routine when the GO command is instructed again.
  • Page 53: Data Transfer Controller (Dtc)

    www.DataSheet4U.com 4.11 Data Transfer Controller (DTC) The DTC operates during emulation execution and in the break mode. When a transfer request occurs, the emulator carries out DTC transfer. The DTC RAM data is not accessable during run mode i.e., no POTF is possible for DTC RAM.
  • Page 54: Differences Between H8S Microcomputer And Emulator

    www.DataSheet4U.com Section 5. Differences between H8S Microcomputer and Emulator Power up and reset When the emulator initialises the system or resets the Microcomputer as a result of a command such as switching the clock, or when the reset command is used, note that the general-purpose registers and part of the control registers are initialized.
  • Page 55: User Interface

    www.DataSheet4U.com User Interface User may have to adjust the target system as follows: • The emulator’s user system interface is provided with pull-up resistors and/or a buffer, causing the signals to be delayed slightly. • The pull-up resistors will change high-impedance signals to high level signals. •...
  • Page 56: User System Interface

    www.DataSheet4U.com Section 6. User System Interface The user target system is connected to the emulator via the interface cable. Interface circuitry is inserted in between to remove noise and protect the emulator. When connecting the user target system to the emulator, user has to consider the adjustment of the user system hardware.
  • Page 57 www.DataSheet4U.com Figure 6-1 Basic Bus Cycle Timing in Expanded mode...
  • Page 58 www.DataSheet4U.com User Vcc PinView 47 ΚΩ All Port Pins PinView Analogue Pins User Vcc PinView 47 ΚΩ RESET STBY MD [0..2] Emulator Control User Vcc PinView Microcomputer 47 ΚΩ EXTAL Emulator Control User Vcc User Vcc Emulator Supply 47 ΚΩ CABLE_IN_N AVCC AVREF...
  • Page 59 www.DataSheet4U.com - Blank Page -...
  • Page 60: Tutorial

    www.DataSheet4U.com Section 7. Tutorial The following describes a sample debugging session, designed to introduce the main features of the CE2000-H8S/2238 emulator used conjunction with High-performance Embedded Workshop(HEW) software. The tutorial is designed to run in the CE2000-H8S/2238 emulator’s resident memory so that it can be used without connecting the CE2000-H8S/2238 emulator to any external user system.
  • Page 61: How The Tutorial Program Works

    www.DataSheet4U.com How the Tutorial Program Works The first part of the program includes a series of header files: #include "machine.h" #include "string.h" The program then gives prototypes for the constants, structures, and function initial values: #define NAME (short)0 #define AGE (short)1 #define ID (short)2...
  • Page 62 www.DataSheet4U.com The remainder of the program defines the functions called from main: void sort(list, key) struct namelist list[]; short key; short i,j,k; long min; char *name; struct namelist worklist; switch(key){ case NAME : for (i = 0 ; *list[i].name != 0 ; i++){ name = list[i].name;...
  • Page 63: Running Hew

    www.DataSheet4U.com Running HEW Execute HEW from start up menu. Figure 7-1 Execute HEW from Start Menu 7.4.1 Opening Tutorial workspace Open the “Tutorial” workspace for CE2000 target by clicking menu File->Open workspace… in the installed directory. Note: On a first time loading of the tutorial, a dialog box prompting the move of workspace from previous installed directory is displayed.
  • Page 64: Setting Up The Hew(Pure Debugger) For Ce2000-H8S/2238

    www.DataSheet4U.com Setting up the HEW(Pure Debugger) for CE2000-H8S/2238 Before downloading a program to the CE2000-H8S/2238 emulator, the following items need to be configured: • device type • memory map The following sections describe how to setup the CE2000-H8S/2238 emulator for running the tutorial program.
  • Page 65: Mapping The Memory

    www.DataSheet4U.com 7.5.2 Mapping the Memory The next step is to map the emulation memory of CE2000-H8S/2238 emulator for the application you are developing. • To display the current memory mapping, choose Options->Emulator->Memory Resource… menus. The Memory Mapping dialog… shown in the following figure:. Figure 7-4 Memory Mapping Dialog Click on the Close button to end the Memory Mapping configuration and open Status window under the...
  • Page 66 www.DataSheet4U.com • Target Device Configuration : Display the memory configuration of the specific target device selected. • System memory resources : Display the optional memory resource available to user during their emulation process • Loaded Memory Areas : Display the memory space that the loaded program has occupied The CE2000-H8S/2238 emulator allows you to configure the attribution of the mapped memory.
  • Page 67: Downloading The Tutorial Program

    www.DataSheet4U.com Downloading the Tutorial Program Once the CE2000-H8S/2238 emulator has been setup, user can download the object program for debugging. 7.6.1 Loading the Download Module • Specify the download module by selecting Options->Debug Settings…to open Debug Settings dialog as below. Figure 7-7 Debug Settings Dialog •...
  • Page 68: Using Breakpoints

    www.DataSheet4U.com Figure 7-8 resetprg.c file after RESET CPU Using Breakpoints The simplest debugging aid is the program breakpoint, it causes execution to stop when a particular point in the program is reached. You can then examine the state of the MCU and memory at that point in the program.
  • Page 69: Executing The Program

    www.DataSheet4U.com 7.7.2 Executing the Program To run the program from reset: • Choose Reset Go from the Debug menu The program is executed up to the breakpoint you inserted, and the statement will be highlighted in the program window to show that the program has halted. Figure 7-10 Program Break The message Break = PC Break is displayed in the status window to show the cause of the break.
  • Page 70: Reviewing The Breakpoints

    www.DataSheet4U.com 7.7.3 Reviewing the Breakpoints The list of all the breakpoints set in the program can be viewed in the Eventpoints window. • Choose Eventpoints from the View menu, or click the Eventpoints Window button in the toolbar: Figure 7-12 Eventpoints Window The Eventpoints window also allows user to perform the following: •...
  • Page 71: Examining Mcu Registers

    www.DataSheet4U.com 7.7.4 Examining MCU Registers While the program is halted, you can examine the contents of the H8S/2238 Series MCU registers. These are displayed in the Registers Window. • Choose Registers from the View menu, or click the Registers Window button in the toolbar: Figure 7-14 CPU Registers Window As expected, the value of the program counter (PC) is the same as the highlighted statement, H'80C.
  • Page 72: Examining Memory And Variables

    www.DataSheet4U.com Examining Memory and Variables The behavior of a program can be monitored by examining the contents of an area of memory, or by displaying the values of variables used in the program. 7.8.1 Viewing Memory The contents of a block of memory can be viewed in the Memory Window. For example, to view memory: •...
  • Page 73: Watching Variables

    www.DataSheet4U.com 7.8.2 Watching Variables It is useful to be able to watch the values of variables as the program is being stepped. For example, set a watch on the struct variable section1, which is declared at the beginning of the program, using the following procedure: •...
  • Page 74 www.DataSheet4U.com The Add Watch dialog appears. Figure 7-20 Add Watch Dialog • Type the variable count and click OK. The Watch Window will show the content of the variable label count (note that you might be getting different result of count). Figure 7-21 Watch Window You can click on the...
  • Page 75: Stepping Through A Program

    www.DataSheet4U.com Figure 7-22 Displaying Individual Elements in an Array Stepping Through a Program The CE2000-H8S/2238 emulator provides a range of options for stepping through a program, executing an instruction or statement at a time. 7.9.1 Stepping • Step In(F11) - Set PC = H’80C. - Execute Step In 2 times.
  • Page 76: Using The Pfg Breakpoint

    www.DataSheet4U.com Figure 7-24 Step Over The program is now stop at address H’816 and step over function void sort(list, key). 7.10 Using the PFG Breakpoint The PFG Breakpoint allows user to halt the program based on several conditions matching at the same time (such as address, data, …).
  • Page 77 www.DataSheet4U.com Figure 7-25 Breakpoint Setting Dialog • Select radio button PFG Break • A message box will be displayed to allow user to program this PFG function before it can be used as shown in Figure 7-26. Click Yes button. Figure 7-26 PFG Programming •...
  • Page 78 www.DataSheet4U.com Figure 7-27 Eventpoints Window • Run the program from the current position, by choosing Go from the Debug menu, or click the Go button in the toolbar. Execution will stop as below: Figure 7-28 PFG Break • The system status window will display Last Break Cause = PFG Break to indicate the type of break that has occurred.
  • Page 79: Watching Local Variables

    www.DataSheet4U.com 7.11 Watching Local Variables The localised variables within a function can be viewed using the Local Variables Window. For example, in order to examine the local variables in the function sort. • Open the Local window by choosing Local… from the View menu. Note: The Local Window will be empty if there is no local variable declared or local variables have not yet been entered.
  • Page 80: Using The Trace Buffer

    www.DataSheet4U.com 7.12 Using the Trace Buffer The trace buffer allows us to look back over previous H8S/2238 Series MCU operation cycles to see exactly what the H8S/2238 Series MCU has been doing prior to a specified event (break) such as an Event breakpoint.
  • Page 81: Pin View

    www.DataSheet4U.com 7.13 Pin View The Pin View window is displayed as shown in the following figure which has 2 types of display(Text Tree view and Graphical Chip view). It provides pin-state information of the device when it is running a program or in the idle state.
  • Page 82: Section 8. Diagnostic

    www.DataSheet4U.com Section 8. Diagnostic The CE2000-H8S/2238 emulator is designed to have all possible protective measures, but it is still subjected to damage by user system or other unforeseen means. The CE2000-H8S/2238 emulator has a built-in test modes: Standalone Test, in which all the internal functions and pins are tested thoroughly. Standalone Self Test The test is implemented to allow user to have a quick check of the hardware, before linking it to the PC.
  • Page 83: Section 9. Trouble-Shooting

    www.DataSheet4U.com Section 9. Trouble-Shooting The following are a few suggestions on how to perform a basic troubleshooting, if the emulator does not respond to the user’s commands. Symptoms Checks Expected Observation & Action Cannot link to Power Supply POWER LED lights up in Red. PC Bios setup USB must be enabled Window Device...
  • Page 84 www.DataSheet4U.com - Blank Page -...
  • Page 85: Appendix A : User Connector Pin Assignment

    www.DataSheet4U.com Appendix A : User Connector Pin Assignment User Connector 1 - Pin Assignment Column Description Column Description AVSS PE0/D0 AVCC PE1/D1 AVCC PE2/D2 AVSS PE3/D3 VREF PE4/D4 AVSS PE5/D5 PE6/D6 WDTOVF PE7/D7 * CABLE_IN_N PD0/D8 STBY_N PD1/D9 RES_N PD2/D10 PD3/D11 PD4/D12 PD5/D13...
  • Page 86 www.DataSheet4U.com User Connector 2 - Pin Assignment Column Description Column Description RESERVED P10/TIOCA0/A20 P11/TIOCB0/A21 P12/TIOCC0/TCLKA/A22 P13/TIOCD0/TCLKB/A23 P14/TIOCA1/IRQ0_N P15/TIOCB1/TCLKC P16/TIOCA2/IRQ1_N P17/TIOCB2/TCLKD P70/TMRI01/TMCI01/CS4_N P71/TMRI23/TMCI23/CS5_N P72/TMO0/CS6_N P73/TMO1/CS7_N P74/TMO2/MRES_N P75/TMO3/SCK3 P76/RxD3 P77/TxD3 P30/TxD0 P31/RxD0 P32/SCK0/SDA1/IRQ4_N P33/TxD1/SCL1 P34/RxD1/SDA0 P35/SCK1/SCL0/IRQ5_N P40/AN0 P41/AN1 P42/AN2 P43/AN3 P44/AN4 P45/AN5 P96/DA0 P46/AN6 P97/DA1...
  • Page 87: Appendix B : User Connector Specification

    www.DataSheet4U.com Appendix B : User Connector Specification Part Number of User Connectors: KEL 1.27mm(50mil) PITCH Plug = 8830E-080-170S KEL Cable Assembly = 8822E-080-171-040-AC NOTE: The pin assignement of the user connector in Appendix A refers to the definiation of the pins at the target side, but not the Compact emulator side.
  • Page 88 www.DataSheet4U.com Part Number: 8830E-080-170S Unit :mm (inch)
  • Page 89: Appendix C : User Connector Pin Layout

    www.DataSheet4U.com Appendix C : User Connector Pin Layout CON2 CON1 Compact Emulator Component View At Target...
  • Page 90: Appendix D : Casing Assembly

    www.DataSheet4U.com Appendix D : Casing Assembly 6x Ø2mm Screws 4x Ø3mm Screws For fastening daughter board to main board For fastening PCB to casing Connection to target system Connection to optional memory, SODIMM 4x Ø3mm Screws For fastening cover to the base of the casing...
  • Page 91: Appendix E : Technical Specification

    www.DataSheet4U.com Appendix E : Technical Specification Physical Characteristics Item Specification CE2000 main unit Dimensions 145 x 120 x 60 mm (l x w x h) Weight Power Supply Adaptor Dimensions 85 x 45 x 35 mm (l x w x h) Weight 0.2Kg Power Supply Adaptor Cable...
  • Page 92: Appendix F : Frequently Asked Questions

    www.DataSheet4U.com Appendix F : Frequently Asked Questions WHY DIDN’T THE CLOCK INPUT TOGGLE IN THE PINVIEW WINDOW? CAN CE WORK WITH OTHER USB DEVICES? WHAT IS POTF? WHAT CAN IT DO? HOW TO DISABLE THE POTF FUNCTION? HOW TO MINIMIZE THE INTRUSION OF THE POTF? HOW MUCH CURRENT WILL THE EMULATOR DRAW FROM THE TARGET SYSTEM? WHY IS THE PROGRAM HALTED AT AN ADDRESS THAT IS NOT...
  • Page 93 www.DataSheet4U.com How to minimize the intrusion of the POTF? POTF will be activated based on the HEW commands, such as memory edit or refresh. If several memory windows are opened, HEW will read back all the windows content. Thus, user is advised to open the memory window at minimal size, in order to avoid unnecessary intrusion.
  • Page 94 www.DataSheet4U.com Why is the state changes of port not reflected in the Pinview window? The pinview module gives an snapshot of the microcomputer pins at constant interval. It is not an ocsilloscope that can snap signal as fast as 2ns. It is a tool used to help user to have a feel of the status of the microcomputer pins.
  • Page 95: Renesas Technology (Asia Sales Offices)

    Renesas Technology (Asia Sales Offices) URL: http://www.renesas.com...
  • Page 96 www.DataSheet4U.com CE2000...

This manual is also suitable for:

Ce2000-h8s/2238

Table of Contents