HP 64793
H8/338/329 EmulatorSoftkey Interface
User’s Guide
HP Part No. 64793-97002Printed in U.S.A.October 1992
Edition 1
Page 1: ...HP 64793 H8 338 329 Emulator Softkey Interface User s Guide HP Part No 64793 97002 Printed in U S A October 1992 Edition 1 ...
Page 2: ...oftware on equipment that is not furnished by Hewlett Packard Copyright 1992 Hewlett Packard Company This document contains proprietary information which is protected by copyright All rights are reserved No part of this document may be photocopied reproduced or translated to another language without the prior written consent of Hewlett Packard Company The information contained in this document is ...
Page 3: ...before the date this indicates the version level of the software product at the time the manual was issued Many product updates and fixes do not require manual changes and manual corrections may be done without accompanying product changes Therefore do not expect a one to one correspondence between product updates and manual revisions Edition 1 64793 97002 October 1992 ...
Page 4: ...HD6433388CP HD6413388CP HD6473378CP HD6433378CP HD6413378CP HD6433368CP H8 338 H8 338 H8 338 H8 337 H8 337 H8 337 H8 336 HP 64793B H8 329 emulator HD6473298P HD6473298C HD6433298P HD6413298P HD6433288P HD6473278P HD6473278C HD6433278P HD6413278P HD6433268P H8 329 H8 329 H8 329 H8 329 H8 328 H8 327 H8 327 H8 327 H8 327 H8 326 For the most part the H8 329 and H8 338 emulators all operate the same wa...
Page 5: ...hows you how to use the emulator in circuit connected to a target system Shows you how to configure the emulator for your development needs Topics include restricting the emulator to real time execution selecting a target system clock source This manual does not Show you how to use every Softkey Interface command and option the Softkey Interface is described in the Softkey Interface Reference ...
Page 6: ... step through programs run programs set software breakpoints search memory for data and use the analyzer Chapter 3 In Circuit Emulation This chapter shows you how to plug the emulator into a target system and how to use the in circuit emulation features Chapter 4 Configuring the Emulator You can configure the emulator to adapt it to your specific development needs This chapter describes the option...
Page 7: ...s options and parts of command syntax bold italic Commands options and parts of command syntax which may be entered by pressing softkeys normal User specified parts of a command Represents the HP UX prompt Commands which follow the are entered at the HP UX prompt RETURN The carriage return key ...
Page 8: ...rictions 1 6 Foreground Monitor 1 6 Monitor Break at Sleep Standby Mode 1 6 Store Condition and Trace 1 6 Step Command and Interrupts 1 6 RAM Enable Bit 1 6 Software Performance Measurement 1 6 2 Getting Started Introduction 2 1 Before You Begin 2 2 Prerequisites 2 2 A Look at the Sample Program 2 2 Sample Program Assembly 2 6 Linking the Sample Program 2 6 Generate HP Absolute file 2 6 Entering t...
Page 9: ...Through the Program 2 20 Displaying Registers 2 21 Using the Analyzer 2 22 Specifying a Simple Trigger 2 22 Displaying the Trace 2 23 Displaying Trace with Time Count Absolute 2 24 Changing the Trace Depth 2 25 H8 338 Analysis Status Qualifiers 2 26 Trace Analysis Considerations 2 27 How to Specify Trigger Condition 2 27 Store Condition and Trace 2 28 Triggering the Analyzer by Data 2 30 For a Com...
Page 10: ... 7 Processor operation mode 4 8 Enable NMI input from the target system 4 9 Enable RES input from the target system 4 9 Reset value for stack pointer 4 9 Debug Trace Configuration 4 10 Break processor on write to ROM 4 10 Trace background or foreground operation 4 10 Simulated I O Configuration 4 11 Interactive Measurement Configuration 4 11 External Analyzer Configuration 4 11 Saving a Configurat...
Page 11: ...rements 5 7 Register Classes and Names H8 338 Emulator 5 8 Register Classes and Names H8 329 Emulator 5 13 Illustrations Figure 1 1 HP 64793 Emulator for the H8 338 Processor 1 2 Figure 2 1 Sample Program Listing 2 3 Figure 2 2 Linkage Editor Subcommoand File 2 6 Figure 2 3 Softkey Interface Display 2 8 Figure 3 1 Installing the Probe H8 338 emulator 3 4 Figure 3 2 Installing the Probe H8 329 emul...
Page 12: ... in your target system so you can control operation of the microprocessor in your application hardware usually referred to as the target system The H8 338 emulator performs just like the H8 338 microprocessor but is a device that allows you to control the H8 338 directly These features allow you to easily debug software before any hardware is available and ease the task of integrating hardware and...
Page 13: ...Figure 1 1 HP 64793 Emulator for the H8 338 Processor 1 2 Introduction to the H8 338 Emulator ...
Page 14: ...6413378CP H8 337 HD6433368CP H8 336 HP 64793B H8 329 emulator HD6473298P H8 329 HD6473298C H8 329 HD6433298P H8 329 HD6413298P H8 329 HD6433288P H8 328 HD6473278P H8 327 HD6473278C H8 327 HD6433278P H8 327 HD6413278P H8 327 HD6433268P H8 326 Each model provides with an emulation probe designed for its support microprocessors By replacing the emulation probe the HP64793 can support processors other...
Page 15: ...gram Analysis The HP64793 H8 338 emulator is used with one of the following analyzers which allows you to trace code execution and processor activity HP 64703 64 channel Emulation Bus Analyzer and 16 channel State Timing Analyzer HP 64704 80 channel Emulation Bus Analyzer HP 64706 48 channel Emulation Bus Analyzer The Emulation Bus Analyzer monitors the emulation processor using an internal analys...
Page 16: ...out of the user program into the monitor the emulator replaces the original opcode See the Using Software Breakpoints section of the Getting Started chapter for more information Reset Support The emulator can be reset from the emulation system under your control or your target system can reset the emulation processor Real Time Execution Real time signifies continuous execution of your program at f...
Page 17: ... the monitor and a suspended interrupt is existed When the emulator is in the monitor and a level sensed interrupt is existed including interrupts from internal I O device Refer to Chapter 5 of this manual RAM Enable Bit The internal RAM of H8 338 processor can be enabled disabled by RAME RAM enable bit However once you map the internal RAM area to emulation RAM the emulator still accesses emulati...
Page 18: ...erface This chapter will Tell you what must be done before you can use the emulator as shown in the tutorial examples Describe the sample program used for this chapter s example This chapter will show you how to Start up the Softkey Interface Load programs into emulation and target system memory Enter emulation commands to view execution of the sample program Getting Started 2 1 ...
Page 19: ...covers HP64700 system architecture A brief understanding of these concepts may help avoid questions later You should read the Softkey Interface Reference manual to learn how to use the Softkey Interface in general For the most part this manual contains information specific to the H8 338 emulator A Look at the Sample Program The sample program used in this chapter is listed in figure 2 1 The progra...
Page 20: ... Cmd_Input R2L CMP B H 00 R2L BEQ Scan A command has been entered Check if it is command A command B or invalid command Exe_Cmd CMP B H 41 R2L BEQ Cmd_A CMP B H 42 R2L BEQ Cmd_B BRA Cmd_I Command A is entered R3L the number of bytes in message A R4 location of the message Jump to the routine which writes the message Cmd_A MOV B Msg_B Msg_A R3L MOV W Msg_A R4 BRA Write_Msg Command B is entered Cmd_...
Page 21: ...e destination area is cleared Write_Msg MOV W Msg_Dest R5 Clear_Old MOV B h 20 R6L Clear_Loop MOV B R0L R5 ADDS W 1 R5 DEC B R6L BNE Clear_Loop Message is written to the destination MOV W Msg_Dest R5 Write_Loop MOV B R4 R6L MOV B R6L R5 ADDS W 1 R5 DEC B R3L BNE Write_Loop Go back and scan for next command BRA Clear SECTION Data COMMON Command input byte Cmd_Input RES B 1 RES B 1 Destination of th...
Page 22: ...n is transferred to the instructions at Cmd_I The instructions at Cmd_A Cmd_B and Cmd_I each load register R3L with the length of the message to be displayed and register R4 with the starting location of the appropriate message Then execution transfers to Write_Msg which writes the appropriate message to the destination location Msg_Dest Prior to writing the message Clear_Old clears the destinatio...
Page 23: ... absolute file format converter program The h8cnvhp converter is provided with HP 64876 H8 300 Assembler Linkage Editor To generate HP Absolute file enter following command h83cnvhp cmd_rds RETURN You will see that cmd_rds X cmd_rds L and cmd_rds A are generated These are sufficient throughout this chapter Note You need to specify debug command line option to both assembler and linker command to g...
Page 24: ...338 emulator you can do so with the following commands First you must initialize the measurement system with the following command MEAS_SYS msinit RETURN After the measurement system has been initialized enter the configuration interface with the following command msconfig RETURN To define a measurement system for the H8 338 emulator enter make_sys emh8338 RETURN Now to add the emulator to the mea...
Page 25: ...ommand above is the logical emulator name given in the HP 64700 emulator device table usr hp64000 etc 64700tab HP64793 19031 A 04 00 25Oct92 H8 338 EMULATION SERIES 64700 A Hewlett Packard Software Product Copyright Hewlett Packard Co 1992 All Rights Reserved Reproduction adaptation or translation without prior written permission is prohibited except as allowed under copyright laws RESTRICTED RIGH...
Page 26: ... first is by using the Softkey Interface help facility The second method allows you to access the firmware resident Terminal Interface on line help information Softkey Driven Help To access the Softkey Interface on line help information type either help or on the command line you will notice a new set of softkeys By pressing one of these softkeys and RETURN you can cause information on that topic ...
Page 27: ...d above shows SYSTEM COMMANDS displays the possible help files help displays the possible help files fork a shell specified by shell variable SH shell cmd fork a shell and execute a shell command cd directory change the working directory pwd print the working directory cws SYMB change the working symbol the working symbol also gets updated when displaying local symbols and displaying memory mnemon...
Page 28: ...cient for the sample program Pod Commands Time Command 10 00 00 help m m display or modify processor memory space m addr display memory at address m d dtype addr display memory at address with display option m addr addr display memory in specified address range m dm addr addr display memory mnemonics in specified range m addr display 128 byte block starting at address A m addr value modify memory ...
Page 29: ... you must include the name of the source file in which the symbols are defined For example display local_symbols_in cmd_rds src RETURN Global symbols in cmd_rds Static symbols Symbol name ___________________ Address range ___ Segment ____________ Offset Cmd_Input FC00 0000 Init 1000 0000 Msg_Dest FC02 0002 Msgs 2000 0000 Filename symbols Filename ___________________________________________________...
Page 30: ... displayed Symbols in cmd_rds src Static symbols Symbol name ___________________ Address range ___ Segment ____________ Offset Clear 1004 0004 Clear_Loop 1038 0038 Clear_Old 1036 0036 Cmd_A 101C 001C Cmd_B 1024 0024 Cmd_I 102C 002C Cmd_Input FC00 0000 Data FC00 0000 END_Msgs 00002031 Exe_Cmd 1012 0012 Init 1000 0000 Msg_A 2000 0000 Msg_B 2011 0011 Msg_Dest FC02 0002 Msg_I 2022 0022 STATUS cws cmd_...
Page 31: ...7907FF80 MOV W FD80 R7 1004 F800 MOV B 00 R0L 1006 6A88FE80 MOV B R0L FC00 100A 6A0AFE80 MOV B FC00 R2L 100E AA00 CMP B 00 R2L 1010 47F8 BEQ 100A 1012 AA41 CMP B 41 R2L 1014 4706 BEQ 101C 1016 AA42 CMP B 42 R2L 1018 470A BEQ 1024 101A 4010 BRA 102C 101C FB11 MOV B 11 R3L 101E 79041100 MOV W 2000 R4 1022 400E BRA 1032 1024 FB11 MOV B 11 R3L 1026 79041111 MOV W 2011 R4 STATUS H8 338 Running in monit...
Page 32: ...n from transfer_address RETURN From Reset The run from reset command specifies that the emulator begin executing from target system reset see Running From Reset section in the In Circuit Emulation chapter Memory mnemonic file cmd_rds src address label data 1000 Init 7907FF80 MOV W FD00 R7 1004 cmd_rd Clear F800 MOV B 00 R0L 1006 6A88FE80 MOV B R0L Cmd_Input 100A cmd_rds Scan 6A0AFE80 MOV B Cmd_Inp...
Page 33: ...llowing command modify memory Cmd_Input bytes to 41h RETURN Or Memory bytes blocked repetitively address data hex ascii FC02 09 54 48 49 53 20 49 53 20 T H I S I S FC0A 11 4D 45 53 53 41 47 45 20 M E S S A G E FC12 19 41 00 00 00 00 00 00 00 A FC1A 21 00 00 00 00 00 00 00 00 FC22 29 00 00 00 00 00 00 00 00 FC2A 31 00 00 00 00 00 00 00 00 FC32 39 00 00 00 00 00 00 00 00 FC3A 41 00 00 00 00 00 00 00...
Page 34: ...he following command break RETURN Using Software Breakpoints Software breakpoints are provided with an H8 338 special code This special code 5770 hexadecimal is H8 338 undefined instruction When you define or enable a software breakpoint the emulator will replace the opcode at the software breakpoint address with the special code Note You must set software breakpoints only at memory locations whic...
Page 35: ...special code is opcode of your target program execution still breaks to the monitor and an Undefined software breakpoint status message is displayed When software breakpoints are disabled the emulator replaces the special code with the original opcode Up to 32 software breakpoints may be defined Enabling Disabling Software Breakpoints When you initially enter the Softkey Interface software breakpo...
Page 36: ...y Cmd_Input bytes to 41h RETURN You will see the line of the software breakpoint is displayed in Memory mnemonic file cmd_rds src address label data 1000 Init 7907FF80 MOV W FF80 R7 1004 cmd_rd Clear F800 MOV B 00 R0L 1006 6A88FE80 MOV B R0L Cmd_Input 100A cmd_rds Scan 6A0AFE80 MOV B Cmd_Input R2L 100E AA00 CMP B 00 R2L 1010 47F8 BEQ cmd_rds src Scan 1012 cmd_ Exe_Cmd AA41 CMP B 41 R2L 1014 4706 B...
Page 37: ...e list and the original opcode is restored if the breakpoint was pending To clear all software breakpoints you can enter the following command modify software_breakpoints clear RETURN Stepping Through the Program The step command allows you to step through program execution an instruction or a number of instructions at a time Also you can step from the current program counter or from a specific ad...
Page 38: ...ass and Name section in Chapter 5 When you enter the step command with registers displayed the register display is updated every time you enter the command step RETURN RETURN RETURN Registers Next_PC 1022 PC 1022 SP FF80 CCR 80 i MDCR E7 R0 0000 R1 0000 R2 0041 R3 0011 R4 1100 R5 FE82 R6 0020 R7 FF80 STATUS H8 338 Stepping complete_____________________________________ R display registers run trace...
Page 39: ...s the B 42 hex command from the command input byte To do this you would trace after the analyzer finds a state in which a value of 42xxh is read from the Cmd_Input byte The following command makes this trace specification trace after Cmd_Input data 42xxh status read RETURN Registers Next_PC 1022 PC 1022 SP FD00 CCR 80 i MDCR E7 R0 0000 R1 0000 R2 0041 R3 FE11 R4 2000 R5 FC02 R6 0020 R7 FE80 Step_P...
Page 40: ...us time count Base symbols hex mnemonic w symbols relative after Cmd_Input 42FF 42 read mem byte 001 cmd_rds s 0010 47F8 BEQ cmd_rds src Scan 200 nS 002 cmd_rds Exe_Cmd AA41 CMP B 41 R2L 200 nS 003 cmd_rds src Scan 6A0A 6A0A fetch mem 200 nS 004 cmd_rds s 0014 4706 BEQ cmd_rds sr Cmd_A 200 nS 005 cmd_rds s 0016 AA42 CMP B 42 R2L 200 nS 006 cmd_rds sr Cmd_A FB11 FB11 fetch mem 200 nS 007 cmd_rds s ...
Page 41: ...6 cmd_rd Clear_Old FE20 MOV B 20 R6L 200 nS 017 cmd_r Clear_Loop 68D8 MOV B R0L R5 200 nS 018 cmd_rds s 003A 0B05 ADDS 1 R5 200 nS 019 Msg_Dest 0000 00 write mem byte 200 nS 020 cmd_rds s 003C 1A0E DEC R6L 200 nS 021 cmd_rds s 003E 46F8 BNE cmd_r Clear_Loop 200 nS 022 cmd_rds s 0040 7905 7905 fetch mem 200 nS 023 cmd_r Clear_Loop 68D8 MOV B R0L R5 200 nS 024 cmd_rds s 003A 0B05 ADDS 1 R5 200 nS 02...
Page 42: ...bs 2010 47F8 BEQ cmd_rds src Scan 200 nS 002 cmd_rds Exe_Cmd AA41 CMP B 41 R2L 400 nS 003 cmd_rds src Scan 6A0A 6A0A fetch mem 600 nS 004 abs 2014 4706 BEQ cmd_rds sr Cmd_A 800 nS 005 abs 2016 AA42 CMP B 42 R2L 1 0 nS 006 cmd_rds sr Cmd_A FB11 FB11 fetch mem 1 2 uS 007 abs 2018 470A BEQ cmd_rds sr Cmd_B 1 4 uS 008 abs 201A 4010 4010 fetch mem 1 6 uS 009 cmd_rds sr Cmd_B FB11 MOV B 11 R3L 1 8 uS 01...
Page 43: ... 000C FC00 FC00 fetch mem 74 20 uS 355 cmd_rds s 000E AA00 CMP B 00 R2L 74 40 uS 356 Cmd_Input 00FF 00 read mem byte 74 60 uS 357 cmd_rds s 0010 47F8 BEQ cmd_rds src Scan 74 80 uS 358 cmd_rds Exe_Cmd AA41 AA41 fetch mem 75 00 uS 359 cmd_rds src Scan 6A0A MOV B Cmd_Input R2L 75 20 uS STATUS H8 338 Running user program Emulation trace complete______ display trace run trace step display modify break ...
Page 44: ... trace Trace List Offset 0 Label Address Data Opcode or Status time count Base symbols hex mnemonic w symbols absolute after cmd_rds Exe_Cmd AA41 AA41 fetch mem 001 cmd_rds src Scan 6A0A MOV B Cmd_Input R2L 200 nS 002 cmd_rds s 000C FE80 FE80 fetch mem 400 nS 003 cmd_rds s 000E AA00 CMP B 00 R2L 600 nS 004 Cmd_Input 00FF 00 read mem byte 800 nS 005 cmd_rds s 0010 47F8 BEQ cmd_rds src Scan 1 0 uS 0...
Page 45: ...w symbols absolute after cmd_rds s 0014 4706 BEQ cmd_rds sr Cmd_A 001 cmd_rds s 0016 AA42 AA42 fetch mem 200 nS 002 cmd_rds sr Cmd_A FB11 MOV B 11 R3L 400 nS 003 cmd_rds s 001E 7904 MOV W 2000 R4 600 nS 004 cmd_rds s 0020 2000 2000 fetch mem 800 nS 005 cmd_rds s 0022 400E BRA cmd_rd Write_Msg 1 0 uS 006 cmd_rds sr Cmd_B FB11 FB11 fetch mem 1 2 uS 007 cmd_rd Write_Msg 7905 MOV W FE82 R5 1 4 uS 008 ...
Page 46: ...00 fetch mem 2 8 uS STATUS H8 338 Running user program Emulation trace complete______ trace after Exe_Cmd run trace step display modify break end ETC Trace List Offset 0 Label Address Data Opcode or Status time count Base symbols hex mnemonic w symbols absolute after cmd_rds Exe_Cmd AA41 AA41 fetch mem 001 cmd_rds src Scan 6A0A MOV B Cmd_Input R2L 240 nS 002 cmd_rds s 000C FE80 FE80 fetch mem 400 ...
Page 47: ...the data is performed by byte access This is because the analyzer is designed so that it can capture data on internal data bus which has 16 bits width The following table shows the way to specify the trigger condition by data For example to trigger the analyzer when the processor performs word access to data 1234 hex in internal ROM you can do any of the following trace after data 1234h RETURN tra...
Page 48: ...d and selecting the measurement system display or another module End Release System To exit the Softkey Interface releasing the emulator so that other users may use the emulator enter the following command end release_system RETURN Ending to Continue Later You may also exit the Softkey Interface without specifying any options this causes the emulator to be locked When the emulator is locked other ...
Page 49: ...ftkey Interface via pmon and MEAS_SYS you have the option to select the measurement system display or another module in the measurement system when exiting the Softkey Interface This type of exit is also locked that is you can continue the emulation session later For example to exit and select the measurement system display enter the following command end select measurement_system RETURN This opti...
Page 50: ...h actual target system hardware there are some special considerations you should keep in mind installing the emulator probe properly configure the emulator We will cover the first topic in this chapter For complete details on in circuit emulation configuration refer to Chapter 4 3 1 In Circuit Emulation ...
Page 51: ...the user plug in the socket Failure to do so may result in damage to the emulator circuitry Protect Against Static Discharge The H8 338 Emulator contains devices which are susceptible to damage by static discharge Therefore operators should take precautionary measures before handling the user plug to avoid emulator damage Protect Target System CMOS Components If your target system includes any CMO...
Page 52: ...ector that prevents damage to the probe when inserting and removing the probe from the target system microprocessor socket Do not use the probe without a pin protector installed If the target system probe is installed on a densely populated circuit board there may not be enough room for the plastic shoulders of the probe socket If this occurs another pin protector may be stacked onto the existing ...
Page 53: ...mulator we recommend that you use ITT CANNON LCS 84 series 84 pin PLCC socket to make sure the contact between emulator probe and target system microprocessor socket Figure 3 1 Installing the Probe H8 338 emulator 3 4 In Circuit Emulation ...
Page 54: ...us Same as foreground Data Bus Always high impedance otherwise you direct the emulator to modify target memory AS Same as foreground RD Same as foreground WR Always high otherwise you direct the emulator to modify target memory Others Same as foreground Figure 3 2 Installing the Probe H8 329 emulator 3 5 In Circuit Emulation ...
Page 55: ...ected to 74HCT14 through 51 ohm series resistor and 10K ohm pull up resistor P1 7 0 P5 2 0 P2 7 0 P6 7 0 P3 7 0 P8 6 0 P4 7 0 P9 6 0 These signals are connected to H8 338 emulation processor through 51 ohm series resistor and 10K ohm pull up resistor 3 6 In Circuit Emulation ...
Page 56: ...gnal are connected to H8 338 emulation processor and GAL20V8 through 51 ohm series resistor P7 7 0 These signals are connected to H8 338 emulation processor through 51 ohm series resister 3 7 In Circuit Emulation ...
Page 57: ...re connected to 74HCT14 through 51 ohm series resistor and 10K ohm pull up resistor P1 7 0 P4 6 0 P2 7 0 P5 2 0 P3 7 0 P6 7 0 These signals are connected to H8 329 emulation processor through 51 ohm series resistor and 10K ohm pull up resistor 3 8 In Circuit Emulation ...
Page 58: ...gnal are connected to H8 329 emulation processor and GAL20V8 through 51 ohm series resistor P7 7 0 These signals are connected to H8 329 emulation processor through 51 ohm series resister 3 9 In Circuit Emulation ...
Page 59: ...system Enabling Disabling RES input from the target system You can configure the emulator to accept the RES input from the target system Running the Emulator from Target Reset You can specify that the emulator begins executing from target system reset When the target system RES line becomes active and then inactive the emulator will start reset sequence operation as actual microprocessor To specif...
Page 60: ...mands request access of target system resources target system memory register contents etc The emulator is a flexible instrument and may be configured to suit your needs at any stage of the development process This chapter describes the options available when configuring the HP 64793 emulator The configuration options are accessed with the following command modify configuration RETURN After enteri...
Page 61: ...ter Debug Trace Configuration Enabling breaks on writes to ROM Specifying tracing of foreground background cycles Enabling tracing bus release cycles Simulated I O Configuration Simulated I O is described in the Simulated I O reference manual Interactive Measurement Configuration See the chapter on coordinated measurements in the Softkey Interface Reference manual External Analyzer Configuration S...
Page 62: ... system clock Note Changing the clock source drives the emulator into the reset state The emulator may later break into the monitor depending on how the following Enter monitor after configuration question is answered Enter monitor after configuration This question allows you to select whether the emulator will be running in the monitor or held in the reset state upon completion of the emulator co...
Page 63: ...cepted by the emulator yes When runs are restricted to real time and the emulator is running the user program all commands that cause a break except reset break run and step are refused For example the following commands are not allowed when runs are restricted to real time Display modify registers Display modify internal I O registers Display modify target system memory Load store target system m...
Page 64: ...lows you to specify whether a certain range of memory is present in the target system or whether you will be using the emulation memory for that address range You can also specify whether the target system memory is ROM or RAM and you can specify that emulation memory be treated as ROM or RAM The default memory mapping is shown below emulation ROM erom emulation RAM eram H8 338 emulator 0 BFFF F78...
Page 65: ...le you can reflect this by mapping the I O ports to target system memory space and the rest of memory to emulation memory space delete all RETURN 1000h thru 2fffh emulation rom RETURN 0f000h thru 0f1ffh emulation ram RETURN end RETURN When mapping memory for your target system programs you may wish to characterize emulation memory locations containing programs and constants locations which should ...
Page 66: ...or select this item 337 When you are going to emulate H8 337 microprocessor select this item 338 When you are going to emulate H8 338 microprocessor select this item H8 329 Emulator 326 When you are going to emulate H8 326 microprocessor select this item 327 When you are going to emulate H8 327 microprocessor select this item 328 When you are going to emulate H8 328 microprocessor select this item...
Page 67: ...tor out of circuit when external is selected the emulator will operate in mode 3 When mode_1 through mode_3 is selected the emulator will operate in selected mode regardless of the mode setting by the target system Selection Description mode_1 The emulator will operate in mode 1 Internal ROM is disabled mode_2 The emulator will operate in mode 2 Internal ROM is enabled mode_3 The emulator will ope...
Page 68: ... from the target system This configuration allows you to specify whether or not the emulator responds to RES signal from the target system during foreground operation While running the background monitor the emulator ignores RES signal otherwise the emulator status is Awaiting target reset see the Running the Emulation from Target Reset section in the In Circuit Emulation chapter yes The emulator ...
Page 69: ...gh the write to ROM break is enabled yes Causes the emulator to break into the emulation monitor whenever the user program attempts to write to a memory region mapped as ROM no The emulator will not break to the monitor upon a write to ROM The emulator will not modify the memory location if it is in emulation ROM Note The wrrom trace command status options allow you to use write to ROM cycles as t...
Page 70: ...I O Configuration The simulated I O feature and configuration options are described in the Simulated I O reference manual Interactive Measurement Configuration The interactive measurement configuration questions are described in the chapter on coordinated measurements in the Softkey Interface Reference manual Examples of coordinated measurements that can be performed between the emulator and the e...
Page 71: ...EB The file with the EA extension is the source copy of the file and the file with the EB extension is the binary or loadable copy of the file Ending out of emulation with the end command saves the current configuration including the name of the most recently loaded configuration file into a continue file The continue file is not normally accessed Loading a Configuration Configuration files which ...
Page 72: ... discuss in more detail other features of the emulator This chapter discusses Features available via pod_command Limitations and restrictions of the emulator Register classes and names Debugging C Programs Accessing target system devices using E clock synchronous instruction This chapter shows you how to Store the contents of memory into absolute files Make coordinated measurements Use a command f...
Page 73: ... configuration files in particular assume that the configuration of the HP 64700 pod is NOT changed except by the Softkey Interface Be aware that what you see in modify configuration will NOT reflect the HP 64700 pod s configuration if you change the pod s configuration with this command Also commands which affect the communications channel should NOT be used at all Other commands may confuse the ...
Page 74: ...n the current directory You can use this file as a command file to execute these commands automatically Suppose that your configuration file and program are named cmd_rds To load configuration load configuration cmd_rds RETURN To load the program into memory load cmd_rds RETURN To display memory 1000 hex through 1020 hex in mnemonic format display memory 1000h thru 1020h mnemonic Now to disable lo...
Page 75: ...You can display source lines highlighted with the following command set source on inverse_video on RETURN To display only source lines use the following command set source only RETURN Specifying Address with Line Numbers You can specify addresses with line numbers of C source program For example to set a breakpoint to line 20 of main c program enter the following command modify software_breakpoint...
Page 76: ...ound Monitor Foreground monitor is not supported for the H8 338 emulator Sleep and Software Stand by Mode When the emulator breaks into the monitor the H8 338 sleep or software stand by mode is released and comes to normal processor mode If you use the display register command see the Displaying Registers section of the Getting started chapter at the sleep or software stand by mode the emulation p...
Page 77: ...ntents of registers will be the same as those before the issue of the step command RAM Enable Bit The internal RAM of H8 338 processor can be enabled disabled by RAME RAM enable bit However once you map the internal RAM area to emulation RAM the emulator still accesses emulation RAM even if the internal RAM is disabled by RAME Software Performance Analysis Program activity measurement using the So...
Page 78: ...and store memory 1000h thru 1042h to absfile RETURN The command above causes the contents of memory locations 1000 hex through 1042 hex to be stored in the absolute file absfile X Notice that the X extension is appended to the specified filename Coordinated Measurements For information on coordinated measurements and how to use them refer to the Coordinated Measurements chapter in the Softkey Inte...
Page 79: ...4 R5 R6 R7 SP MDCR Program counter Condition code register Register 0 Register 1 Register 2 Register 3 Register 4 Register 5 Register 6 Register 7 Stack pointer Mode control register SYS class System control registers Register name Description STCR SYSCR MDCR ISCR IER Serial timer control register System control register Mode control register IRQ sense control register IRQ enable register 5 8 Usin...
Page 80: ...a register Port 5 data register Port 6 data register Port 7 data register Port 8 data register Port 9 data register Port 1 input pull up MOS control register Port 2 input pull up MOS control register Port 3 input pull up MOS control register FRT class 16 bit free running timer Register name Description TIER FRTCSR FRC OCRA OCRB FRTCR TOCR ICRA ICRB ICRC ICRD Timer interrupt enable register Timer c...
Page 81: ... name Description TCR1 TCSR1 TCORA1 TCORB1 TCNT1 Timer control register Timer control status register Timer constant register A Timer constant register B Timer counter PWM0 class PWM timer 0 Register name Description PWMTCR0 DTR0 PWMTCNT0 Timer control register Duty register Timer counter PWM1 class PWM timer 1 Regsiter name Description PWMTCR1 DTR1 PWMTCNT1 Timer control register Duty register Ti...
Page 82: ...communication interface 1 Register name Description SMR1 BRR1 SCR1 TDR1 SSR1 RDR1 Serial mode register Bit rate register Serial control register Transmit data register Serial status register Receive data register ADC class A D converter Register name Description ADDRA ADDRB ADDRC ADDRD ADCSR ADCR A D data register A A D data register B A D data register C A D data register D A D control status reg...
Page 83: ...mes are not included in any register class Register name Description R0H R0L R1H R1L R2H R2L R3H R3L R4H R4L R5H R5L R6H R6L R7H R7L Register 0 H Register 0 L Register 1 H Register 1 L Register 2 H Register 2 L Register 3 H Register 3 L Register 4 H Register 4 L Register 5 H Register 5 L Register 6 H Register 6 L Register 7 H Register 7 L 5 12 Using the Emulator ...
Page 84: ... R3 R4 R5 R6 R7 SP MDCR Program counter Condition code register Register 0 Register 1 Register 2 Register 3 Register 4 Register 5 Register 6 Register 7 Stack pointer Mode control register SYS class System control Register name Description STCR SYSCR MDCR ISCR IER Serial timer control register System control register Mode control register IRQ sense control register IRQ enable register Using the Emu...
Page 85: ...a register Port 2 data register Port 3 data register Port 4 data register Port 5 data register Port 6 data register Port 7 data register Port 1 input pull up MOS control register Port 2 input pull up MOS control register Port 3 input pull up MOS control register FRT class 16 bit free running timer Register name Description FRTCR FRTCSR FRC OCRA OCRB ICR FNCR Timer control register Timer control st...
Page 86: ... 1 Register name Description TCR1 TCSR1 TCORA1 TCORB1 TCNT1 Timer control register Timer control status register Timer constant register A Timer constant register B Timer counter SCI class Serial communication interface Register name Description SMR BRR SCR TDR SSR RDR Serial mode register Bit rate register Serial control register Transmit data register Serial status register Receive data register...
Page 87: ...register No Class The following register names are not included in any register class Register name Description R0H R0L R1H R1L R2H R2L R3H R3L R4H R4L R5H R5L R6H R6L R7H R7L Register 0 H Register 0 L Register 1 H Register 1 L Register 2 H Register 2 L Register 3 H Register 3 L Register 4 H Register 4 L Register 5 H Register 5 L Register 6 H Register 6 L Register 7 H Register 7 L 5 16 Using the E...
Page 88: ...k command 2 17 guarded memory accesses 4 6 software breakpoints 1 5 2 17 write to ROM 4 10 C C program debugging 5 4 displaying in mnemonic memory display 5 4 displaying in trace listing 5 4 caution statements internal memory must be assigned as emulation memory 4 6 real time dependent target system circuitry 4 4 characterization of memory 4 5 clearing software breakpoints 2 20 clock source extern...
Page 89: ...registers 2 21 symbols 2 12 trace 2 23 E emul700 command to enter the Softkey Interface 2 8 2 32 emulation analyzer 1 4 2 22 emulation memory 1 4 loading absolute files 2 11 RAM and ROM characterization 4 5 size of 4 5 emulator before using 2 2 clock speed 1 4 configuration 4 1 device table file 2 8 features of 1 3 limitations 5 5 prerequisites 2 2 purpose of 1 1 running from target reset 3 10 sup...
Page 90: ...ion tracing 4 10 G getting started 2 1 prerequisites 2 2 global symbols 2 13 displaying 2 12 guarded memory accesses 4 6 H h8cnvhp converter 2 6 hardware installation 2 2 help on line 2 9 pod command information 2 10 softkey driven information 2 9 I in circuit configuration options 3 10 installation hardware 2 2 software 2 2 Installing target system probe target system probe 3 2 interactive measur...
Page 91: ...nt system 2 32 creating 2 7 initialization 2 7 memory characterization 4 5 copying 5 2 emulation 1 4 mapper resolution 1 4 mapping 4 5 mnemonic display 2 13 mnemonic display with C sources 5 4 modifying 2 16 repetitively display 2 16 searching for strings or expressions 5 2 memory mapping maximum number of terms 4 5 sequence of map load commands 4 7 microprocessors supported by HP 64736 emulator 1...
Page 92: ...ironment variable 2 6 2 8 pin guard conductive pin guard for H8 325 emulator 3 3 non conductive pin guard for H8 338 emulator 3 3 target system probe 3 2 pin protector target system probe 3 3 pmon User Interface Software 2 7 2 32 pod_command 2 10 features available with 5 2 help information 2 10 predefining stack pointer 4 9 prerequisites for using the emulator 2 2 processor operation mode 4 8 pur...
Page 93: ...reset 3 10 S s Command step command and interrupts 1 6 5 6 sample program description 2 2 sample program linking 2 6 saving the emulator configuration 4 12 simulated I O 4 11 softkey driven help information 2 9 Softkey Interface entering 2 7 exiting 2 31 on line help 2 9 software breakpoints 1 5 2 17 clearing 2 20 enabling disabling 2 18 setting 2 18 software installation 2 2 special code software...
Page 94: ...installation procedure 3 3 pin guard 3 2 pin protector 3 3 Terminal Interface 2 10 trace display with C source lines 5 4 trace about 2 28 trace displaying the 2 23 trace displaying with time count absolute 2 24 trace reducing the trace depth 2 25 trace specifying trigger condition 2 27 tracing background operation 4 10 transfer address running from 2 15 trigger condition 2 27 trigger state 2 23 tr...
Page 95: ...Notes 8 Index ...