HP H8/3003 User Manual
HP H8/3003 User Manual

HP H8/3003 User Manual

Emulator terminal interface
Table of Contents

Quick Links

HP 64784
H8/3003 Emulator
Terminal Interface
User's Guide
HP Part No. 64784-97010
August 1995
Edition 6
Table of Contents
loading

Summary of Contents for HP H8/3003

  • Page 1 HP 64784 H8/3003 Emulator Terminal Interface User’s Guide HP Part No. 64784-97010 August 1995 Edition 6...
  • Page 3 HP is a trademark of Hewlett-Packard Company. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Limited. H8/3003™ is a registered trademark of Hitachi Ltd. Hewlett-Packard Company P.O. Box 2197 1900 Garden of the Gods Road Colorado Springs, CO 80901-2197, U.S.A.
  • Page 4 Printing History New editions are complete revisions of the manual. The date on the title page changes only when a new edition is published. A software code may be printed 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.
  • Page 5 Using This Manual This manual is designed to give you an introduction to the HP 64784 H8/3003 Emulator. This manual will also help define how these emulators differ from other HP 64700 Emulators. This manual will: give you an introduction to using the emulator...
  • Page 6 Organization Chapter 1 An introduction to the H8/3003 emulator features and how they can help you in developing new hardware and software. Chapter 2 A brief introduction to using the H8/3003 Emulator. You will load and execute a short program, and make some measurements using the emulation analyzer.
  • Page 7: Table Of Contents

    Introduction ......1-1 Purpose of the H8/3003 Emulator ....1-1 Features of the H8/3003 Emulator .
  • Page 8 Installing the 64784E PGA adaptor ....3-6 Installing the H8/3003 microprocessor ....3-9 Using Low Voltage Adaptor .
  • Page 9 Where to Find More Information ....4-19 H8/3003 Emulator Specific Command Syntax CONFIG_ITEMS ......A-2 Summary .
  • Page 10 Illustrations Figure 1-1. HP 64784 Emulator for the H8/3003 ..1-2 Figure 2-1. Sample Program Listing ....2-5 Figure 3-1.
  • Page 11: Introduction

    H8/3003 Emulator the microprocessor in your application hardware (usually refer to as the target system). The H8/3003 emulator performs just like the H8/3003 microprocessor, but is a device that allows you to control the H8/3003 microprocessor directly. These features allow you to easily debug software before any hardware is available, and ease the task of integrating hardware and software.
  • Page 12: Figure 1-1. Hp 64784 Emulator For The H8/3003

    Figure 1-1. HP 64784 Emulator for the H8/3003 1-2 Introduction to the H8/3003 Emulator...
  • Page 13: Table 1-1. Supported Microprocessors

    Features of the H8/3003 Emulator Supported The HP 64784A H8/3003 emulator supports the microprocessors listed in Table 1-1. Microprocessors Table 1-1. Supported Microprocessors Supported Microprocessor QFP Adaptor PGA Adaptor Board Board/ Type Package System On-chip ROM Supply Voltage QFP probe...
  • Page 14 2.7 to 5.25V *1 When you do in-circuit emulation for H8/3001 with mode 3/4 or H8/3004/5 with mode 3, you must use HP 64784-66509 shipped with HP 64784J/K. Refer to the "In-Circuit Emulation" Chapter in this manual for more details.
  • Page 15: Clock Speeds

    The H8/3003 emulator is provided without any QFP adaptors and PGA adaptor(HP 64784E) with QFP probe. To emulate each processor with your target system, you need to purchase appropriate QFP adaptor or PGA adaptor with QFP probe listed in Table 1-1. To purchase them, contact your local HP sales representative.
  • Page 16: Table 1-2. Clock Speeds

    H8/3040 H8/3041 H8/3042 H8/3003 with system From 1 up to 24MHz From 1 up to 20MHz clock divider (System clock is from (System clock is from 0.5 up to 12MHz) 0.5 up to 10MHz) 1-6 Introduction to the H8/3003 Emulator...
  • Page 17: Emulation Memory

    Emulation memory The H8/3003 emulator is used with one of the following Emulation Memory Cards. HP 64726A 128K byte Emulation Memory Card HP 64727A 512K byte Emulation Memory Card HP 64728A 1M byte Emulation Memory Card HP 64729A 2M byte Emulation Memory Card You can define up to 16 memory ranges (at 512 byte boundaries and least 512 byte in length.) The emulator occupies 6K byte, which is...
  • Page 18: Reset Support

    Emulator features performed in real time include: running and analyzer tracing. Emulator features not performed in real time include: display or modification of target system memory, load/dump of target memory, display or modification of registers. 1-8 Introduction to the H8/3003 Emulator...
  • Page 19: Limitations, Restrictions

    Reset Output Enable The RSTOE (Reset output enable bit) is used to determine whether the H8/3003 processor outputs reset signal when the processor is reset by the watch dog timer. However, the H8/3003 emulator ignores the configuration of the RSTOE, and works as it is configured with the modify configuration command.
  • Page 20: Evaluation Chip

    Evaluation chip Hewlett-Packard makes no warranty of the problenm caused by the H8/3003 Evaluation chip in the emulator. 1-10 Introduction to the H8/3003 Emulator...
  • Page 21: Introduction

    Introduction This chapter will lead you through a basic, step by step tutorial designed to familiarize you with the use of the HP 64700 emulator for the H8/3003 microprocessor. When you have completed this chapter, you will be able to perform these tasks:...
  • Page 22: Before You Begin

    HP 64700 Support Services Guide. The guide gives basic troubleshooting procedures. If this fails, call the local HP sales and service office listed in the Support Services Guide. In any case, you must have a command prompt on your terminal screen before proceeding with the tutorial.
  • Page 23: A Look At The Sample Program

    A Look at the The sample program "COMMAND_READER" used in this chapter is shown figure 2-1. The program emulates a primitive command Sample Program interpreter. Data Declarations Msg_A, Msg_B and Msg_I are the messages used by the program to respond to various command inputs. Initialization The locations of stack and input area(Cmd_Input) are moved into address registers for use by the program.
  • Page 24 Using the various features of the emulator, we will show you how to load this program into emulation memory, execute it, monitor the program’s operation with the analyzer, and simulate entry of different commands utilizing the memory access commands provided by the HP 64700 command set. 2-4 Getting Started...
  • Page 25: Figure 2-1. Sample Program Listing

    002000 .SECTION Table,DATA,LOCATE=H’2000 002000 Msgs 002000 5448495320495320 Msg_A .SDATA "THIS IS MESSAGE A" 002008 4D45535341474520 002010 41 002011 5448495320495320 Msg_B .SDATA "THIS IS MESSAGE B" 002019 4D45535341474520 002021 42 002022 494E56414C494420 Msg_I .SDATA "INVALID COMMAND" 00202A 434F4D4D414E44 002031 End_Msgs 001000 .SECTION Prog,CODE,LOCATE=H’1000 ;****************************************************...
  • Page 26 ;**************************************************** ;* An invalid command is entered. ;**************************************************** 001046 FB0F Cmd_I MOV.B #End_Msgs-Msg_I,R3L 001048 7A0400002022 MOV.L #Msg_I,ER4 ;**************************************************** ;* The destination area is cleared. ;**************************************************** 00104E 7A05000FF804 Write_Msg MOV.L #Msg_Dest,ER5 001054 FE20 Clear_Old MOV.B #H’20,R6L 001056 68D8 Clear_Loop MOV.B R0L,@ER5 001058 0B05 ADDS.L #1,ER5...
  • Page 27: Using The Help Facility

    - processor specific grammar - system commands emul - emulation commands - highlevel commands (hp internal use only) - analyzer trace commands - all command groups You can type the ? symbol instead of typing help. For example, if you want a list of commands in the emul command group, type: R>...
  • Page 28: Initialize The Emulator To A Known State

    -t - download extended tek hex format load -S - download sysmbol file load -h - download hp format (requires transfer protocol) load -a - reserved for internal hp use load -e - write only to emulation memory load -u...
  • Page 29: Set Up The Proper Emulation Configuration

    Set Up the Proper Emulation Configuration Set Up Emulation To set the emulator’s configuration values to the proper state for this tutorial, do this: Conditions 1. Type: R> cf You should see the following configuration items displayed: cf ba=en cf chip=3042 cf clk=int cf dbc=en cf drst=dis...
  • Page 30 For example, if you have the following configuration items displayed (those in bold indicate items different from the list above): cf ba=en cf chip=3042 cf clk=ext cf dbc=en cf drst=dis cf mode=7 cf nmi=en cf rrt=en cf rsp=9 cf tdma=en cf trfsh=en cf trst=en To make these configuration values agree with the desired...
  • Page 31: Mapping Memory

    bc -d bp #disable bc -d rom #disable bc -d bnct #disable bc -d cmbt #disable bc -e trig1 #enable bc -e trig2 #enable (items in bold indicate improper values for this example) Type the following commands to set the break conditions correctly for this example: R>...
  • Page 32: Transfer Code Into Emulation Memory

    You will see: # remaining number of terms : 15 # remaining emulation memory : 6e800h bytes map 0000000..000ffff erom # term 1 other tram You must map internal ROM as emulation memory. Note You don’t have to map internal RAM, since the emulator maps internal Note RAM as emulation RAM.
  • Page 33 R> m 002020..00202f=20,42,49,4e,56,41,4c,49,44,20,43,4f,4d,4d,41,4e R> m 002030=44 You could also type the following line instead: R> m 002000="THIS IS MESSAGE ATHIS IS MESSAGE BINVALID COMMAND" 2. You should now verify that the data area of the program is correct by typing: R>...
  • Page 34 4. You should now verify that the program area is correct by typing: R> m 001000..00106f You should see: 001000..00100f 7a 07 00 0f f9 04 7a 01 00 0f f8 00 f8 00 6a a8 001010..00101f 00 0f f8 00 6a 2a 00 0f f8 00 aa 00 47 f6 aa 41 001020..00102f 58 70 00 0a aa 42 58 70 00 10 58 00 00 18 fb 11 001030..00103f...
  • Page 35: Transferring Code From A Host Hp 64700 In Transparent Configuration

    01b, which is the ASCII character.) The sequence "*" toggles the transparent mode software within the HP 64700 for the duration of one command (that is, any valid line of HP 64700 commands (not exceed 254 characters) concatenated by semicolons and terminated by a ).
  • Page 36 When finished, save the program to filename "sampprog.src". If you need help learning how to log in to your HP-UX host system or Note use other features of the system, such as editors, refer to the HP-UX Concepts and Tutorials guides and your HP-UX system administrator.
  • Page 37 HP 64000 transfer utility. Typing "*" tells the system to return to the emulator after transferring the code. The "##" marks returned by the system indicates that the emulator loaded two records from the host.
  • Page 38: Looking At Your Code

    Looking at Your Now that you have loaded your code into emulation memory, you can display it in mnemonic format. Type: Code R> m -dm 1000..106f You will see: 0001000 MOV.L #000ff904,ER7 0001006 MOV.L #000ff800,ER1 000100c MOV.B #00,R0L 000100e MOV.B R0L,@0ff800 0001014 MOV.B @0ff800,R2L 000101a...
  • Page 39: Familiarize Yourself With The System Prompts

    You should gain some familiarity with the HP 64700 emulator command prompts by doing the following: 1. Ignore the current command prompt. Type: *>...
  • Page 40: Running The Sample Program

    The emulator changes state from background to foreground and begins running the sample program from location 1000 hex. The default number base for address and data values within HP 64700 Note is hexadecimal. Other number bases may be specified. Refer to the Tutorials chapter of this manual or the HP 64700 User’s Reference...
  • Page 41 6. Verify that the input area command byte was cleared during initialization. Type: U> m -db 0ff800 You will see: 00ff800..00ff800 The input byte location was successfully cleared. 7. Now we will use the emulator features to make the program work.
  • Page 42: Stepping Through The Program

    Tracing Program Execution Predefined Trace Three trace labels are predefined in the H8/3003 emulator. You can view these labels by entering the tlb (trace label) command with no Labels options. M> tlb #### Emulation trace labels tlb addr 16..39...
  • Page 43: Predefined Status Equates

    The complex configuration allows more powerful measurements, but requires more interaction from you to set up those measurements. For more information on easy and complex analyzer configurations and the analyzer, refer to the HP 64700 Analyzer User’s Guide and the User’s Reference. Getting Started 2-23...
  • Page 44 Now, let’s set the trigger specification. Type: M> tg addr=0ff804 To store only the accesses to the address range ff804 through ff815 hex, type: M> tsto addr=0ff804..0ff815 Let’s change the data format of the trace display so that you will see the output message writes displayed in ASCII format: M>...
  • Page 45 Line addr,H data,A count,R ----- ------ ------ --------- 0ff804 0ff805 0.760 uS 0ff806 0.720 uS 0ff807 0.760 uS 0ff808 0.760 uS 0ff809 0.760 uS 0ff80a 0.720 uS 0ff80b 0.760 uS 0ff80c 0.760 uS 0ff80d 0.760 uS 0ff80e 0.720 uS 0ff80f 0.760 uS 0ff810 0.760 uS...
  • Page 46 Line addr,H data,A count,R ----- ------ ------ --------- 0ff804 0ff805 0.760 uS 0ff806 0.720 uS 0ff807 0.760 uS 0ff808 0.760 uS 0ff809 0.760 uS 0ff80a 0.720 uS 0ff80b 0.760 uS 0ff80c 0.760 uS 0ff80d 0.760 uS 0ff80e 0.720 uS 0ff80f 0.760 uS 0ff810 0.760 uS...
  • Page 47: Using Software Breakpoints

    Note with the software breakpoint instruction, you cannot define software breakpoints in target ROM. You can, however, copy target ROM into emulation memory by cim command. (Refer to HP 64700 Terminal Interface User’s Reference manual.) Displaying and Before you can define software breakpoints, you must enable software breakpoints with the bc (break conditions) command.
  • Page 48: Defining A Software Breakpoint

    bc -d trig1 #disable bc -d trig2 #disable M> bc -e bp Defining a Software Now that the software breakpoint is enabled, you can define software breakpoints. Enter the following command to break on the address of Breakpoint the Write_Msg label. M>...
  • Page 49: Searching Memory For Strings Or Numeric Expressions

    Searching The HP 64700 Emulator provides you with tools that allow you to search memory for data strings or numeric expressions. For example, Memory for you might want to know exactly where a string is loaded. To locate the Strings or position of the string "THIS IS MESSAGE A"...
  • Page 50: Trace Analysis Considerations

    You should always reset the coverage status before making a coverage Note measurement. Any emulator system command which accesses emulation memory will affect the coverage status bit, resulting in measurement errors if the coverage status is not reset. Now, run the program and input the three commands: M>...
  • Page 51 U> tl 0..20 Line addr,H H8/3042 mnemonic,H count,R ----- ------ ----------------------------------- --------- 00101e aa41 fetch mem 001014 MOV.B @0ff800,R2L 0.120 uS 001016 000f fetch mem 0.120 uS 001018 f800 fetch mem 0.120 uS 00101a CMP.B #00,R2L 0.120 uS 0ff800 00xx read mem byte 0.120 uS...
  • Page 52: Store Condition And Disassembling

    Line addr,H H8/3042 mnemonic,H count,R ----- ------ ----------------------------------- --------- 00101c BEQ 001014 0.120 uS 00101e aa41 fetch mem 0.120 uS 001014 MOV.B @0ff800,R2L 0.120 uS 001016 000f fetch mem 0.120 uS 001018 f800 fetch mem 0.120 uS 00101a CMP.B #00,R2L 0.160 uS 0ff800 41xx...
  • Page 53 Line addr,H H8/3042 mnemonic,H count,R ----- ------ ----------------------------------- --------- 001016 000f fetch mem 001018 f800 fetch mem 0.120 uS 00101a CMP.B #00,R2L 0.160 uS 0ff800 00xx read mem byte 0.120 uS 00101c BEQ 001014 0.120 uS 00101e aa41 fetch mem 0.120 uS 001014 MOV.B @0ff800,R2L...
  • Page 54: Triggering The Analyzer By Data

    As you can see, the executions of CMP.B instruction are not disassembled. This occurs when the analyzer cannot get necessary information for disassembling because of the store condition. Be careful when you use the store condition. Triggering the You may want to trigger the emulation analyzer when specific data appears on the data bus.
  • Page 55 On the other hand, to trigger 12 hex to the odd address located 8 bit data bus. U> tg data=0xx12 Notice that you always need to specify "xx" value to capture byte access to 8 bit data bus area. Be careful to trigger the analyzer by data. You’re now finished with the "Getting Started"...
  • Page 56 Notes 2-36 Getting Started...
  • Page 57 In-Circuit Emulation When you are ready to use the H8/3003 emulator in conjunction with 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.
  • Page 58: Installing The Target System Probe

    Power Down Target System. Turn off power to the user target system and to the H8/3003 emulator before attaching and detaching the QFP adaptor to the emulator or target system to avoid circuit damage resulting from voltage transients or mis-insertion of the QFP board.
  • Page 59: Qfp Adaptor

    QFP socket/adaptor provided with the QFP adaptor. PGA adaptor To emulate each processor with your target system, you need to use HP 64784E PGA adaptor as shown in Figure 3-2. The PGA adaptor allows you to connect the emulation probe to QFP socket/adapter on your target system through the QFP probe listed in Table 1-1.
  • Page 60: Qfp Socket/Adaptor

    QFP socket/adaptor The QFP socket/adaptor is provided with the QFP adaptor and QFP probe, and designed for H8/3003 microprocessor. To do in-circuit emulation, you must attach the QFP socket/adaptor to your target system and connect with the QFP adaptor or PGA adaptor.
  • Page 61: Figure 3-1. Installing The Qfp Adaptor

    Installing the QFP Adaptor 1. Attach the QFP socket/adaptor to your target system. 2. Connect the QFP adaptor to the emulation probe. 3. Install the QFP adaptor to the QFP socket/adaptor on your target system as shown in Figure 3-1. Figure 3-1.
  • Page 62: Figure 3-2 Installing The Pga Adaptor (General)

    2. Connect the 64784E PGA adaptor to the emulation probe. 3. Install the 64784E PGA adaptor to the QFP socket/adaptor on your target system through QFP probe(or QFP probe and HP 64784-66509) as shown in Figure 3-2,3-3 and 3-4. Figure 3-2 Installing the PGA adaptor (General)
  • Page 63: Figure 3-3 Installing The Pga Adaptor (3001 Mode 3/4)

    Figure 3-3 Installing the PGA adaptor (3001 mode 3/4) 3-7 In-Circuit Emulation...
  • Page 64: Figure 3-4 Installing The Pga Adaptor (3004/5 Mode 3)

    Figure 3-4 Installing the PGA adaptor (3004/5 mode 3) 3-8 In-Circuit Emulation...
  • Page 65: Figure 3-5 Installing The H8/3003 Microprocessor

    Installing the H8/3003 You can replace the QFP/PGA adaptor with H8/3003 microprocessor. Refer to the Figure 3-5. microprocessor Figure 3-5 Installing the H8/3003 microprocessor 3-9 In-Circuit Emulation...
  • Page 66: Table 3-1. Dc Characteristics Of Input High Voltage

    2.7V up to 5.25V. Specification You must conform input high voltage(Vih) to the specification of Table 3-1, when you use the low voltage adaptor with the H8/3003 emulator. Table 3-1. DC Characteristics of input high voltage Item...
  • Page 67: Figure 3-6 Installing The Pga Adaptor (General)

    2. Connect the 64797B PGA adaptor to the emulation probe. 3. Install the 64797B PGA adaptor to the QFP socket/adaptor on your target system through QFP probe(or QFP probe and HP 64784-66509) as shown in Figure 3-6. Figure 3-6 Installing the PGA adaptor (General)
  • Page 68: Run From Target System Reset

    You have to use HP 64784-66509 when you emulate H8/3001 with Note mode 3/4 or H8/3004/05 with mode 3. Run from Target You can use "r rst" command to execute program from target system reset. You will see T> system prompt when you enter "r rst". In this System Reset status, the emulator accept target system reset.
  • Page 69: Table 3-2. Bus Timing (Vcc = 5.0V, F = 16Mhz)

    Electrical The AC characteristics of the HP 64784 H8/3003 emulator are listed in the following table. Characteristics Table 3-2. Bus timing (Vcc = 5.0V, f = 16MHz) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit...
  • Page 70 Table 3-2. Bus timing (Vcc = 5.0V, f = 16MHz) (Cont’d) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit f = 16MHz HP 64784x typ *1 worst typ *1 worst -24.1 10.6 -23.2 Address setup time 1 41.4...
  • Page 71 Table 3-2. Bus timing (Vcc = 5.0V, f = 16MHz) (Cont’d) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit f = 16MHz HP 64784x typ *1 worst typ *1 worst 26.2 60.9 22.6 54.7 WAIT setup time -23.6...
  • Page 72: Table 3-3. Refresh Controller Timing (Vcc = 5.0V, F = 16Mhz)

    Table 3-3. Refresh controller timing (Vcc = 5.0V, f = 16MHz) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit f = 16MHz HP 64784x typ *1 worst typ *1 worst 23.6 41.6 17.8 39.0 RAD1 RAS delay time 1 22.2...
  • Page 73: Table 3-4. Control Signal Timing

    Table 3-4. Control signal timing (Vcc = 5.0V, f = 16MHz) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit f = 16MHz HP 64784x typ *1 worst typ *1 worst 281.9 275.7 RESS RES setup time...
  • Page 74: Table 3-5. Timing Condition Of On-Chip Supporting

    Table 3-5. Timing condition of On-chip supporting modules (Vcc = 5.0V, f = 16MHz) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit f = 16MHz HP 64784x typ *1 worst typ *1 worst 65.9 59.7...
  • Page 75 Table 3-5. Timing condition of On-chip supporting modules (Cont’d) (Vcc = 5.0V, f = 16MHz) H8/3003 Probe Type HP 64784E HP 64784D Characteristics Symbol Vcc = 5V Unit f = 16MHz HP 64784x typ *1 worst typ *1 worst tcyc...
  • Page 76: Table 3-6. Bus Timing (Vcc = 3.0V, F = 10Mhz)

    Table 3-6. Bus timing (Vcc = 3.0V, f = 10MHz) H8/3003 Probe Type HP 64797B Characteristics Symbol Vcc = 3V Unit f = 10MHz HP 64784x typ *1 worst Clock cycle time 42.8 31.5 Clock pulse low width 46.0 31.5 Clock pulse high width 17.3...
  • Page 77 Table 3-6. Bus timing (Vcc = 3.0V, f = 10MHz) (Cont’d) H8/3003 Probe Type HP 64797B Characteristics Symbol Vcc = 3V Unit f = 10MHz HP 64784x typ *1 worst 29.4 -6.3 Address setup time 1 79.7 42.4 Address setup time 2 38.4...
  • Page 78 Table 3-6. Bus timing (Vcc = 3.0V, f = 10MHz) (Cont’d) H8/3003 Probe Type HP 64797B Characteristics Symbol Vcc = 3V Unit f = 10MHz HP 64784x typ *1 worst 30.2 63.1 WAIT setup time -27.6 -13.0 WAIT set hold time 78.1...
  • Page 79: Table 3-7. Control Signal Timing (Vcc = 3.0V, F = 10Mhz)

    Table 3-7. Control signal timing (Vcc = 3.0V, f = 10MHz) H8/3003 Probe Type HP 64797B Characteristics Symbol Vcc = 3V Unit f = 10MHz HP 64784x typ *1 worst 284.1 RESS RES setup time tcyc RESW RES pulse width 110.3...
  • Page 80: Table 3-8. Timing Condition Of On-Chip Supporting

    Table 3-8. Timing condition of On-chip supporting modules (Vcc = 3.0V, f = 10MHz) H8/3003 Probe Type HP 64797B Characteristics Symbol Vcc = 3V Unit f = 10MHz HP 64784x typ *1 worst 111.6 TOCD Timer output delay time 88.1...
  • Page 81 Table 3-8. Timing condition of On-chip supporting modules (Cont’d) (Vcc = 3.0V, f = 10MHz) H8/3003 Probe Type HP 64797B Characteristics Symbol Vcc = 3V Unit f = 10MHz HP 64784x typ *1 worst 111.6 PORT Output data delay time 88.1...
  • Page 82: Target System Interface

    Target System Interface ø /RES, /STBY, NMI MD0-2 3-26 In-Circuit Emulation...
  • Page 83 /RESO P1, P2, P5 (A0-23) P3, P4 (D0-15) 3-27 In-Circuit Emulation...
  • Page 84 P6, P8, P9, PA, PB, PC 3-28 In-Circuit Emulation...
  • Page 85 P7, AVcc, Vref, AVss 3-29 In-Circuit Emulation...
  • Page 86: Types Of Emulator Configuration

    Configuring the H8/3003 Emulator In this chapter, we will discuss: how to configure the HP 64700 emulator for H8/3003 microprocessor to fit your particular measurement needs. some restrictions of HP 64700 emulator for H8/3003 microprocessor. Types of Emulator Configuration Emulation Processor These are the commands which are generally thought of as "configuration"...
  • Page 87: Coordinated Measurements

    HP Measurements 64700 emulators connected via the CMB (Coordinated Measurement Bus). These commands are covered in the HP 64700 CMB User’s Guide and in the HP 64700 Terminal Interface Reference Manual. Analyzer The analyzer configuration commands are those commands which actually specify what type of measurement the analyzer is to make.
  • Page 88: Emulation Processor To Emulator/Target System

    Emulation As noted before, these commands determine how the emulation processor will interact with the emulator’s memory and the target Processor to system during an emulation measurement. Emulator/Target System The cf command defines how the emulation processor will respond to certain target system signals.
  • Page 89 cf ba The ba (bus arbitration) configuration item defines how your emulator responds to bus request signals from the target system. M> cf ba=en When bus arbitration is enabled, the /BREQ (bus request) signal from the target system is responded to exactly as it would be if only the emulation processor was present without an emulator.
  • Page 90 Valid are the following: Description 3001 Emulate H8/3001 microprocessor. 3002 Emulate H8/3002 microprocessor. 3003t Emulate H8/3003 microprocessor. 3003 Emulate H8/3003 microprocessor with system clock divider. 3004 Emulate H8/3004 microprocessor. 3005 Emulate H8/3005 microprocessor. 3030 Emulate H8/3030 microprocessor. 3031 Emulate H8/3031 microprocessor.
  • Page 91: Table 4-1. Clock Speeds

    Clock source Chip Without 64797B With 64797B Internal H8/3001 16MHz 8MHz H8/3002 (System clock) (System clock) H8/3003T H8/3004 H8/3005 H8/3030 H8/3031 H8/3032 H8/3040 H8/3041 H8/3042 H8/3003 with system 8MHz 8MHz clock divider (System clock) (System clock) 4-6 Configuring the Emulator...
  • Page 92 H8/3004 H8/3005 H8/3030 H8/3031 H83032 H8/3040 H8/3041 H8/3042 H8/3003 with system From 1 up to 24MHz From 1 up to 20MHz (System clock is from clock divider (System clock is from 0.5 up to 12MHz) 0.5 up to 10MHz) Executing this command will drive the emulator into the reset state.
  • Page 93 You use the dbc option to avoid target system interaction problems. For example, your target system interaction scheme may depend on the constant repetition of bus cycles. In such case, using the dbc option will help avoid the problem. Refresh cycles, internal DMA cycles and target memory access are Note always driven to the target system regardless of this configuration.
  • Page 94 The RSTOE (Reset output enable bit) is used to determine whether the Note H8/3003 processor outputs reset signal when the processor is reset by the watchdog timer. However, the H8/3003 emulator ignores the configuration of the RSTOE, and works as it is configured with cf drst command.
  • Page 95 The emulator will operate in mode 6. (single chip normal mode) The emulator will operate in mode 7. (single chip advanced mode) It is recommended to specify operation mode number in this Note configuration, since the emulator does not work fine when MD0,MD1 and MD2 are not steady.
  • Page 96 cf nmi The nmi (non maskable interrupt) configuration item determines whether or not the emulator responds to NMI signal from the target system during foreground operation. M> cf nmi=en Using the above command, you can specify that the emulator will respond to NMI from the target system.
  • Page 97 Commands which cause the emulator to break to the monitor and return, such as reg, m (for target memory display), and others will be rejected by the emulator. If your target system circuitry is dependent on constant execution of Caution program code, you should set this option to cf rrt=en.
  • Page 98 Without a stack pointer, the emulator is unable to make the transition to Note the run state, step, or perform many other emulation functions. However, using this option does not preclude you from changing the stack pointer value or location within your program; it just sets the initial conditions to allow a run to begin.
  • Page 99 Note /RES and /STBY signals are always ignored during background operation regardless of this configuration. The H8/3003 dose not support hardware standby mode, and /STBY Note input will be given the emulator /RES input. 4-14 Configuring the Emulator...
  • Page 100: Memory Mapping

    You use the map command to define memory ranges and types for the emulator. The H8/3003 emulator memory mapper allows you to define up to 16 different map terms; each map term has a minimum size of 512 bytes. If you specify a value less than 512 byte, the emulator will automatically allocate an entire block.
  • Page 101 As you can see, the mapper rounded up the second term to 512 bytes block, since those are minimum size blocks supported by the H8/3003 emulator. When you use the internal ROM, you must map that area to emulation Note memory.
  • Page 102 Note behaved like external memory overlapped with internal RAM. However the H8/3003 emulator is always accessed internal RAM area mapped by the emulator. And if you map internal RAM as guarded memory, the emulator prohibits to access to this area by m commands.
  • Page 103: Break Conditions

    For further information on mapping, refer to the examples in earlier chapters of this manual and to the HP 64700 Terminal Interface User’s Reference manual. Break Conditions The bc command lets you configure the emulator’s response to various emulation system and external events.
  • Page 104: Where To Find More Information

    Where to Find Due to the architecture of the HP 64700 emulators, there are a wide variety of items that affect how the emulator interacts with your More Information system, controller, and other measuring instruments.
  • Page 105 Notes 4-20 Configuring the Emulator...
  • Page 106 H8/3003 Emulator Specific Command Syntax The following pages contain descriptions of command syntax specific to the H8/3003 emulator. The following syntax items are included (several items are part of other command syntax): . May be specified in the cf (emulator configuration) and help cf commands.
  • Page 107: Config_Items

    CONFIG_ITEMS Summary H8/3003 emulator configuration items. Syntax A-2 H8/3003 Emulator Specific Command Syntax...
  • Page 108: Description

    Description The H8/3003 emulator has several dedicated configuration items which allow you to specify the emulator’s interaction with the target system and the rest of the emulation system. These items are: Enable/disable bus arbitration with target system. chip Select processor to be emulated.
  • Page 109: Examples

    MODE Summary Specify the memory display format or the size of memory locations to be modified. Syntax Byte. Memory is accessed in a byte format, and when memory locations are modified, bytes are changed. A-4 H8/3003 Emulator Specific Command Syntax...
  • Page 110: Defaults

    Related Information Refer to the mo syntax information in the User’s Reference manual for further information on use of the mode command. H8/3003 Emulator Specific Command Syntax A-5...
  • Page 111: Address

    ADDRESS Summary Address specification used in emulation commands. Description The
    parameter used in emulation commands is specified in 24 bits address information. Examples m 1000 m 200000..2000ff A-6 H8/3003 Emulator Specific Command Syntax...
  • Page 112: Register Class And Name

    REGISTER CLASS and NAME Summary H8/3003 register designators. All available register class names and register names are listed below. Description * (All basic registers) Program counter Condition code register Register ER0 Register ER1 Register ER2 Register ER3 Register ER4...
  • Page 113 Transfer count register 0A ioar0a I/O address register 0A dtcr0a Data transfer control register 0A mar0b Memory address register 0B etcr0b Transfer count register 0B ioar0b I/O address register 0B dtcr 0b Data transfer control register 0B A-8 H8/3003 Emulator Specific Command Syntax...
  • Page 114 Transfer count register 3A ioar3a I/O address register 3A dtcr3a Data transfer control register 3A mar3b Memory address register 3B etcr3b Transfer count register 3B ioar3b I/O address register 3B dtcr 3b Data transfer control register 3B H8/3003 Emulator Specific Command Syntax A-9...
  • Page 115 Port 4 input pull up MOS control register *4,5 p4pcr p5pcr Port 5 input pull up MOS control register *1,4 *1 Except 3002 *2 Except 3003 *3 Except 3042 *4 NOT effective *5 Except 3030, 3031, 3032 A-10 H8/3003 Emulator Specific Command Syntax...
  • Page 116 Timer control register 2 tior2 Timer I/O control register 2 tier2 Timer interrupt enable register 2 tsr2 Timer status register 2 tcnt2 Timer counter 2 gra2 General register A2 grb2 General register B2 H8/3003 Emulator Specific Command Syntax A-11...
  • Page 117 Next date enable register B ndrb Next data register B (address: 0xxffa4h) ndrb2 Next data register B (address: 0xxffa6h) wdt (Watch dog timer) wdtcsr Timer control/status register wdtcnt Timer counter rstcsr Reset control/status register A-12 H8/3003 Emulator Specific Command Syntax...
  • Page 118 A/D control register dac (D/A converter) The following registers does not exist in 3002, 3003, 3030, 3031, and 3032 dadr0 D/A data register 0 dadr1 D/A data register 1 dacr D/A control register H8/3003 Emulator Specific Command Syntax A-13...
  • Page 119 Register R0H Register R0L Register R1H Register R1L Register R2H Register R2L Register R3H Register R3L Register R4H r4 h Register R4L Register R5H Register R5L Register R6H Register R6L Register R7H Register R7L A-14 H8/3003 Emulator Specific Command Syntax...
  • Page 120: Emulator Specific Error Messages

    Emulator Specific The following is the error messages which are specific to the H8/3003 emulator. The cause of the errors is described, as well as the action you Error Messages must take to remedy the situation. Message 140 : Stack is in I/O registers...
  • Page 121 Notes A-16 H8/3003 Emulator Specific Command Syntax...
  • Page 122 Index ADDRESS syntax, A-6 Analyzer configuration, 2-23 configuration commands, 4-2 halting, 2-25 matters to be attended to, 2-30 pipeline, 2-25 storage specification, 2-23 - 2-24 trace, 2-22 trace list display, 2-24 trace list format, 2-24 trigger, 2-23 trigger specification, 2-23 triggering by data, 2-34 analyzer status predefined equates, 2-23...
  • Page 123 Command, 4-13 cf trst Command, 4-14 cim Command, 2-27 Clock selection for microprocessor, 4-6 Command help, 2-7 Command prompts, 2-19 Command syntax, specific to H8/3003 emulator, A-1 Commands analyzer configuration, 4-2 b, 2-19 bc, 2-10, 2-27, 4-18 bp, 2-27, 4-18...
  • Page 124 r, 2-19 - 2-20 reg, 2-20 rst, 2-19 s, 2-22 ser, 2-29 system, 4-2 t, 2-24 tf, 2-24 tg, 2-24 th, 2-25 tinit, 2-30 tl, 2-24 tp, 2-31 tsto, 2-24, 2-32 xp, 2-15 CONFIG_ITEMS syntax, A-2 Configuration analyzer, 4-2 breaks, 4-18 bus arbitration, 4-4 clock selection, 4-6 displaying, 4-3...
  • Page 125 Emulator limitations, 1-9 Emulator specific command syntax, A-1 equates predefined for analyzer status, 2-23 Evaluation chip, 1-10 Function codes memory mapping, 4-15 H8/3003 microprocessor installation procedure, 3-9 Halting the analyzer, 2-25 Help, 2-7 help Command, 2-7 In-circuit emulation H8/3001 with mode 3/4, 3-3...
  • Page 126 QFP adaptor, 3-3 QFP probe, 3-4 QFP socket/adaptor, 3-4 Information help, 2-7 init Command, 2-8 Initializing the Emulator, 2-8 installing H8/3003 microprocessor, 3-9 Installing target system probe target system probe, 3-2 internal RAM mapping, 4-17 Internal ROM access, 4-16 Interrupts...
  • Page 127 Memory Display, 2-21 mnemonic format, 2-18 Memory mapping, 4-15 defining memory type to emulator, 4-15 function codes, 4-15 sequence of map/load commands, 4-17 Memory search, 2-29 Mnemonic display format, 2-18 notes /STBY input will give the emulator /RES input, 4-14 mapping of internal RAM, 4-17 PGA adaptor, 3-3 installation procedure, 3-6, 3-11...
  • Page 128 Stack pointer predefining, 4-12 Starting a trace, 2-24 stat (emulation analyzer status) trace label, 2-23 Storage qualifier, 2-24 Syntax (command), specific to H8/3003 emulator, A-1 System commands, 4-2 t Command, 2-24 target system H8/3001 with mode 3/4, 3-3 H8/3004/5 with mode 3, 3-3...
  • Page 129 trace labels, predefined, 2-22 Trace list display, 2-24 Trace list format, 2-24 Tracing program execution, 2-22 Transfer utility, 2-15 Transparent mode, 2-15 Trigger signals break upon, 4-19 tsto Command, 2-24 effect on the analyzer, 2-32 Types of configuration, 4-1 xp Command, 2-15 8-Index...

Table of Contents