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.
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.
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.
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.
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...
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...
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...
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.
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...
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:...
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.
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...
- 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>...
-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...
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...
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>...
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...
01b, which is the ASCII <ESC>character.) The sequence "<ESC>*" 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 <carriage return>).
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 "<ESC>*" 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.
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...
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.
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...
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...
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.
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>...
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"...
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...
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...
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 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.
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.
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.
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.
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.
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)
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...
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...
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)
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.
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...
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...
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...
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...
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...
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...
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...
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"...
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.
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.
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...
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.
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.
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 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): <CONFIG_ITEMS>. May be specified in the cf (emulator configuration) and help cf commands.
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.
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...
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...
ADDRESS Summary Address specification used in emulation commands. Description The <ADDRESS> 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...
REGISTER CLASS and NAME Summary H8/3003 register designators. All available register class names and register names are listed below. <REG_CLASS> <REG_NAME> 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...
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 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...