background image

 

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. Each factor can be masked or ignored. 
 
Since the event breakpoint is still under development, user can use the PFG Breakpoints instead. 

3.7.2  PFG Function – PFG Breakpoint 

Two PFG breakpoints can be downloaded into the PFG. The PFG Event Breaks have the following 
conditions: 

• 

Address 

• 

Data 

• 

Access (Read/Write) 

 

 

3.8 Run 

Time 

Measurement 

The run time counter is set to measure the instances when the user program is executed. The resolution 
of the timer is 50ns. There is no time limit for this counter.  
 
The runtime can be observed in the Status window during the run mode. 

3.9  PFG Function - Trace 

There is no permanent trace provided. However, user can download the Trace Function into the PFG to 
keep track of the program. The Trace provided is a 256-cycle trace. The Trace function will display the 
last 256 cycles of information upon encountering a break condition.  
 
In each trace cycle, the available displayed data are 

• 

24-bit Address 

• 

16-bit Data 

• 

Read / Write 

• 

MCU status 

• 

The Executed Code (C or assembly) 

 
 
 
 
 

 

32

www.DataSheet4U.com

Содержание CE2000-H8S Series

Страница 1: ...Microcomputer Development Environment System 2003 10 16 CE2000 H8S Series Compact Emulator www DataSheet4U com...

Страница 2: ...Blank Page www DataSheet4U com...

Страница 3: ...ghts reserved Trademarks a General All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations b Specific Microsoft MS and MS...

Страница 4: ...ol for systems employing the H8S series microcomputer This emulator product must only be used for the above purpose Improvement Policy Renesas System Solutions Asia Pte Ltd hereafter collectively refe...

Страница 5: ...exclusively to the replacement of defective materials or workmanship DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITA...

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

Страница 7: ...Note 1 Describes the various functions used in the CE2000 H8S 2238 emulator Section 4 H8S Function Support Usage Note 2 Covers the emulation of the peripherals and features for the H8S microcomputer...

Страница 8: ...er 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 High pe...

Страница 9: ...TION SYSTEM 19 2 8 1 Creating new workspace 19 2 9 CONFIGURE THE PLATFORM 20 2 9 1 Device and Package Selection 21 2 9 2 Operating Mode Selection 21 2 9 3 Clock Selection 21 2 9 4 User Signal Masking...

Страница 10: ...WDT 38 4 7 16 BIT TIMER PULSE UNIT TPU AND 8 BIT TIMER 38 4 8 SERIAL COMMUNICATIONS INTERFACE SCI 38 4 9 PROGRAMMABLE PULSE GENERATOR PPG 38 4 10 DMA CONTROLLER DMAC 38 4 11 DATA TRANSFER CONTROLLER...

Страница 11: ...efining a PFG Breakpoint 62 7 11 WATCHING LOCAL VARIABLES 65 7 12 USING THE TRACE BUFFER 66 7 12 1 Displaying the Trace Buffer 66 7 13 PIN VIEW 67 7 14 SAVE THE SESSION 67 SECTION 8 DIAGNOSTIC 68 8 1...

Страница 12: ...ory Mapping dialog 22 Figure 2 21 Editing the Memory Mapping 23 Figure 2 22 User Interface Cable Direct Connection 24 Figure 2 23 User Interface Cable Actual Footprint 24 Figure 2 24 Addition of Optio...

Страница 13: ...dividual Elements in an Array 61 Figure 7 23 Step In 61 Figure 7 24 Step Over 62 Figure 7 25 Breakpoint Setting Dialog 63 Figure 7 26 PFG Programming 63 Figure 7 27 Eventpoints Window 64 Figure 7 28 P...

Страница 14: ...les 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 www Data...

Страница 15: ...lect and download different emulation features It has a built in Self Test module that will inform user of its working condition through the LED indicator Moreover it has integrated a PinView module t...

Страница 16: ...ble to connect to target system Part No 8822E 080 171 40 AC 2 x KEL connector plugs for the target system Part No 8830E 080 170S 1 x 5V 2 6A power supply adaptor Ratings 110 240V 50 60Hz 1 2 2 Softwar...

Страница 17: ...ws 98 2nd Edition Me 2000 Xp Memory capacity at least 128 Mbytes 256 Mbytes or more recommended Hard disk drive 100 MB or more capacity necessary for full installation 1 4 Supported MCU Series by CE20...

Страница 18: ...ft Windows 2000 Xp 98 2nd Edition Me Host Interface USB Ver 1 1 12Mbps Supported File Formats Motorola S type ELF Dwarf ELF Dwarf2 Interface Software HEW Pure Debugger 32 bit Windows based interface p...

Страница 19: ...break by ESC key Two Events breaks address address mask access under development Programmable Function Generator User configurable emulator functions Current function includes 256 cycles of Trace Buf...

Страница 20: ...30E 080 170S on both sides of the emulator and user target Provided in package Selected actual footprint user cables for each microcomputer series are also available Not in package Voltage Follower Au...

Страница 21: ...rature and humidity Protect the emulator from dust Avoid subjecting the emulator to excessive vibration Protect the emulator from excessive impact and stresses Check the emulators specifications such...

Страница 22: ...Blank Page 8 www DataSheet4U com...

Страница 23: ...ill go into Self Test mode Run HEW USB Interface Power Supply Compact Emulator Figure 2 1 Basic Setup of CE2000 H8S 2238 Emulator The following topics detail the essential steps before proper emulatio...

Страница 24: ...H8S 2238 only the installation is simple by just running the CE2000 exe In order to use HEW Pure Debugger for CE2000 H8S 2238 and H8S H8 300 Series C C Compiler a user need to install the hew package...

Страница 25: ...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 11 www DataSheet4U com...

Страница 26: ...ware 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 Figure 2 5 Found New Device Click Next to search for a s...

Страница 27: ...ecting 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 13 www D...

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

Страница 29: ...d Logic through the USB interface Ensure that the optional memory SODIMM is disconnected User can also activate the CE Programmer at any time to upgrade the system The CE Programmer is located in the...

Страница 30: ...on 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 Click on the Close button...

Страница 31: ...ulator Logic will fail if the SODIMM is attached 3 User can perform the upgrade at any time by executing the CE Programmer exe if necessary 2 5 Installation Details The installer creates the following...

Страница 32: ...go into self test mode The POWER LED changes its colour from RED to ORANGE when it has entered the self test mode This test takes about 1 2 minutes At the end of the test the POWER LED starts to blink...

Страница 33: ...e HEW start up menu Figure 2 17 Execute HEW from Start Menu 2 8 1 Creating new workspace A new project workspace can be generated for device of H8S 2238 Series by clicking menu File New workspace as f...

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

Страница 35: ...of 100KHz in Options Emulator Systems The emulator will generate the requested clock for the running processor For external target clock user can either input an oscillating clock into the EXTAL pin o...

Страница 36: ...Usually user does not require to change this setting However it may be changed for the following reasons Addition of target system with memory Addition of optional SODIMM memory The nine available at...

Страница 37: ...HEW will indicate User Cable connected in the status platform window NOTE Do not connect the user system interface cable to the emulator without user system connection i e without target user supply T...

Страница 38: ...et System Figure 2 22 User Interface Cable Direct Connection NOTE User has to connect the signal CABLE_IN_N to ground For Actual Footprint Target System CE2000 Figure 2 23 User Interface Cable Actual...

Страница 39: ...read write Emulator read only or Emulator Guarded NOTE 2Mbytes Four banks of 512 Kbytes of Optional Memory purchase separately can be used in the CE2000 H8S 2238 emulator User can map the memory mini...

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

Страница 41: ...Blank Page 27 www DataSheet4U com...

Страница 42: ...her be a preset condition eg PC Break Event Break or a force break condition Hit ESC key During Break mode user can manipulate their target system memory by accessing the I O Memory windows During Run...

Страница 43: ...ccess to the HEW debugging commands for controlling CE2000 Emulator Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands Workspace Window Displays the list of so...

Страница 44: ...ice in graphical and text forms 3 4 Go Reset Go Go at PC Goto Cursor Real time execution in Debug Go by the H8S chip based on the user setting There is no cycle steal during the execution mode 3 5 Res...

Страница 45: ...Breakpoint Setting dialog or when the pre fetch cycle of the CPU agrees with the specified states 2 PFG Break Hardware Break A break occurs when the CPU matches with a condition specified in the Break...

Страница 46: ...ollowing conditions Address Data Access Read Write 3 8 Run Time Measurement The run time counter is set to measure the instances when the user program is executed The resolution of the timer is 50ns T...

Страница 47: ...ons as a traffic controller to direct the MCU to access the intended area of memory In general there are three types of memory area namely On Chip Memory Optional Emulator Memory External Target Memor...

Страница 48: ...nge this default setting i e To access external target memory Set External Guarded to External Read Write or External Read Only To access optional SODIMM memory Set External Guarded to Emulator Read W...

Страница 49: ...s Registers value settings PFG function loading 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 in...

Страница 50: ...e 4 2 Memory Area The H8S has a maximum memory area of 16 Mbytes The four classification of memory are 4 2 1 Internal ROM Area The emulator has a substitute RAM for the H8S internal ROM Access to this...

Страница 51: ...by the STBY signal input This signal will initialise the emulator registers In default the STBY signal is masked in the Configure Platform dialog The status of the STBY signal from the user s target s...

Страница 52: ...at a break and enabled when emulation resumes 4 7 16 bit Timer Pulse Unit TPU and 8 bit Timer The TPU and the 8 bit timer operate during the break mode as well as the user mode i e the timer pins are...

Страница 53: ...IT pin is always valid during refresh cycles 4 13 I O Ports The H8S I O ports can be used as peripheral module I O pins or as an address data bus depending on the operation mode or internal register s...

Страница 54: ...The I mask is set to 1 and the other bits are undefined B 1 The I mask is set to 1 and the other bits are undefined B 1 EXR Trace bit is set to 0 and the interrupt bits are set to 1 B 0 111 Trace bit...

Страница 55: ...adation Load capacitance of the emulator as compared to the actual chip will be larger Crystal oscillator can only used if the actual footprint user cable is used there is an oscillating circuitry bui...

Страница 56: ...cessary In general the one way propogation delay of the cabling is about 4ns However the user clock signal is delayed for approximately 25 ns All signals are connected to the MCU with no buffering wit...

Страница 57: ...Figure 6 1 Basic Bus Cycle Timing in Expanded mode 43 www DataSheet4U com...

Страница 58: ...inView PinView 47 User Vcc PinView Emulator Control Emulator Control 47 User Vcc PinView H8S Microcomputer All Port Pins Analogue Pins RESET NMI STBY MD 0 2 EXTAL CABLE_IN_N VCC AVCC AVREF AVSS Figure...

Страница 59: ...Blank Page 45 www DataSheet4U com...

Страница 60: ...238 emulator and verify that it is working correctly with the HEW software The CE2000 H8S 2238 emulator need not be connected to any user system when using this tutorial User has to be familiar with t...

Страница 61: ...function initial values define NAME short 0 define AGE short 1 define ID short 2 define LENGTH 8 struct namelist char name LENGTH short age long idcode struct namelist section1 Naoko 17 1234 Midori 22...

Страница 62: ...f strcmp list j name name 0 name list j name k j worklist list i list i list k list k worklist break case AGE for i 0 list i age 0 i min list i age k i for j i 1 list j age 0 j if list j age min min l...

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

Страница 64: ...to be configured device type memory map The following sections describe how to setup the CE2000 H8S 2238 emulator for running the tutorial program 7 5 1 Configuring the Platform To setup the target c...

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

Страница 66: ...ied The CE2000 H8S 2238 emulator allows you to configure the attribution of the mapped memory Please refer to Section 3 for more details of memory mapping For this tutorial user will be using the defa...

Страница 67: ...Options Debug Settings to open Debug Settings dialog as below Figure 7 7 Debug Settings Dialog Click Add button to specify the download module Click Debug Download modules menu to download the specifi...

Страница 68: ...point in the program 7 7 1 Setting a Program Count PC Breakpoint The program window provides a very simple way of setting a program breakpoint For example set a breakpoint at address H 80C as follows...

Страница 69: ...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 This can be viewed under Last Break Cause in the Status wi...

Страница 70: ...he Eventpoints Window button in the toolbar Figure 7 12 Eventpoints Window The Eventpoints window also allows user to perform the following Define new breakpoints Delete existing breakpoints Disable e...

Страница 71: ...isters 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 The registers values can be changed...

Страница 72: ...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 Choose Memory from the View menu or click the Memory Window button in the t...

Страница 73: ...ion the blinking cursor on the word section1 Within the Program Window Tutorial c perform a right mouse button click to display a pop up menu and choose Instant Watch The Instant Watch dialog will be...

Страница 74: ...tch 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 symbol to the left of any symbol in...

Страница 75: ...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 Figure 7 23 Step In The program is now stop at...

Страница 76: ...atching at the same time such as address data 7 10 1 Defining a PFG Breakpoint Now define a PFG Breakpoint to monitor this part as follows Choose Eventpoints from the View menu to display the Eventpoi...

Страница 77: ...e 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 Enter H 82A in the Address Lo edit box Click OK button...

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

Страница 79: ...ave not yet been entered In another words user target program execution should halt within a function with local variables to show any variables within Locals Window In this tutorial once when the exe...

Страница 80: ...ing the Trace Buffer The trace buffer will display the captured bus cycle and decode the data in the trace window Open the Trace Window by choosing Trace from the View menu or click on the Trace Windo...

Страница 81: ...resumed instantly with the same configuration at the next debugging session Choose Save Session from the File menu Choose Exit from the File menu to exit from HEW What Next This tutorial has introduc...

Страница 82: ...use of the PC communication problem The testing steps are Power on the CE2000 H8S 2238 emulator the POWER LED lights up in RED Ensure the USB cable is not connected between the PC and CE2000 H8S 2238...

Страница 83: ...ontact Change the USB cable Cannot link to PC Target System Is user supply provided to the target HEW Setup Has HEW been setup in the PC Clock setting Is clock set to target Is there any clock signal...

Страница 84: ...70 Blank Page www DataSheet4U com...

Страница 85: ...C1 A1 A 30 RESERVED A 10 PC2 A2 B 30 RESERVED B 10 PC3 A3 A 29 RESERVED A 9 PC4 A4 B 29 RESERVED B 9 PC5 A5 A 28 VSS A 8 PC6 A6 B 28 PG0 IRQ6_N B 8 PC7 A7 A 27 PG1 CS3_N IRQ7_N A 7 VSS B 27 PG2 CS2_N...

Страница 86: ...3 SCK3 A 32 P26 A 12 P76 RxD3 B 32 P27 B 12 P77 TxD3 A 31 VSS A 11 VSS B 31 P30 TxD0 B 11 P80 A 30 P31 RxD0 A 10 P81 B 30 P32 SCK0 SDA1 IRQ4_N B 10 P82 A 29 P33 TxD1 SCL1 A 9 P83 B 29 P34 RxD1 SDA0 B...

Страница 87: ...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 User is advised to refer to the cable...

Страница 88: ...Part Number 8830E 080 170S Unit mm inch B 2 www DataSheet4U com...

Страница 89: ...Appendix C User Connector Pin Layout CON2 CON1 Compact Emulator Component View At Target C 1 www DataSheet4U com...

Страница 90: ...to optional memory SODIMM Connection to target system 6x 2mm Screws For fastening daughter board to main board 4x 3mm Screws For fastening cover to the base of the casing 4x 3mm Screws For fastening...

Страница 91: ...0m User Interface Cable Length 0 3m Environmental Conditions Item Specification Temperature Operating 10o C to 35o C Relative Humidity non condensing Operating 30 to 85 Corrosive Gas None Electrical...

Страница 92: ...AN T THE OTP WORK AS ACCORDINGLY 16 WHY IS THE SELECTION OF TARGET CLOCK NOT AVAILABLE IN THE SYSTEM SETUP WINDOW 1 Why didn t the clock input toggle in the PinView window The pinview window read the...

Страница 93: ...is lo the emulator will know that target is connected and the power supply will be switched to follow the target power supply 9 How about Mode Clock RES NMI STBY signals How does the emulator control...

Страница 94: ...intends to use the whole memory at a starting address that is not multiple of 512Kbytes user will not be able to utilize the full memory capacity e g if the external address begin at H 20000 However...

Страница 95: ...Renesas Technology Asia Sales Offices URL http www renesas com G 1 www DataSheet4U com...

Страница 96: ...CE2000 www DataSheet4U com...

Отзывы: