background image

HP 64147

7750/51 Emulator
Terminal Interface

User’s Guide

HP Part No. 64147-97000
Printed in Japan
April 1995

Edition 1

Summary of Contents for 7750

Page 1: ...HP 64147 7750 51 Emulator Terminal Interface User s Guide HP Part No 64147 97000 Printed in Japan April 1995 Edition 1 ...

Page 2: ......

Page 3: ...ced or translated to another language without the prior written consent of Hewlett Packard Company The information contained in this document is subject to change without notice HP is a trademark of Hewlett Packard Company UNIX is a registered trademark in United States and other countries licenced exclusively through X Open Company Limited MELPS is a registered trademark of Mitsubishi Electric Co...

Page 4: ... 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 64147 97000 April 1995 ...

Page 5: ...iffer from other HP 64700 Emulators This manual will give you an introduction to using the emulator explore various ways of applying the emulator to accomplish your tasks show you emulator commands which are specific to the 7750 51 Series Emulator This manual will not tell you how to use each and every emulator analyzer command refer to the User s Reference manual ...

Page 6: ... 7750 51 Series Emulator You will load and execute a short program and make some measurements using the emulation analyzer Chapter 3 How to plug the emulator probe into a target system Chapter 4 Configuring the emulator to adapt it to your specific measurement needs Appendix A Using a foreground monitor program advantages and disadvantages Appendix B HP 64147A 7750 51 Series Emulator Specific Comm...

Page 7: ...eration 1 6 Coverage Measurements 1 6 Reset Support 1 6 Watch Dog Timer 1 6 Easy Products Upgrades 1 6 Limitations Restrictions 1 7 Clock Speed 1 7 Access to Internal RAM 1 7 Trace Internal RAM 1 7 Step Command to Internal RAM 1 7 DMA Support 1 7 Watch Dog Timer in Background 1 7 Step Command with Foreground Monitor 1 7 Step Command and Interrupts 1 8 Emulation Commands in Stop Wait Mode 1 8 RDY H...

Page 8: ...ntry 2 23 Using Macros 2 23 Command Recall 2 24 Tracing Program Execution 2 24 Using Software Breakpoints 2 27 Displaying and Modifying the Break Conditions 2 28 Defining a Software Breakpoint 2 28 Searching Memory for Strings or Numeric Expressions 2 29 Making Program Coverage Measurements 2 30 Trace Analysis Considerations 2 31 Restriction of the Analyzer 2 31 3 Using the 7750 51 Series Emulator...

Page 9: ...essing External Memory Area in SFR 4 22 High Speed Bus Mode 4 22 RMPA Instruction 4 22 Stack Address 4 22 Evaluation Chip 4 22 A Using the Optional Foreground Monitor Comparison of Foreground and Background Monitors A 1 Background Monitors A 1 Foreground Monitors A 2 An Example Using the Foreground Monitor A 3 Modify Location Declaration Statement A 3 Modify Chip Name Statement A 4 Configure the E...

Page 10: ...B 6 ADDRESS B 7 Summary B 7 Syntax B 7 Description B 7 Examples B 7 REGISTERS B 8 Summary B 8 REG_NAME B 8 Related Commands B 8 mx Command B 9 Syntax B 9 Summary B 9 Illustrations Figure 1 1 HP 64147 Emulator for MELPS 7750 51 Series 1 2 Figure 2 1 Connecting the Emulation Pod 2 2 Figure 2 2 Sample Program Listing 2 5 Figure 3 1 Installing the Probe to LCC80 Socket 3 3 Figure 3 2 Installing the Pr...

Page 11: ...your target system so you can control operation of the processor in your application hardware usually referred to as the target system The emulator performs just like the MELPS 7700 50 51 Series microprocessor but is a device that allows you to control the MELPS 7700 50 51 Series directly These features allow you to easily debug software before any hardware is available and ease the task of integr...

Page 12: ...Figure 1 1 HP 64147 Emulator for MELPS 7750 51 Series 1 2 Introduction ...

Page 13: ...rt List for HP MELPS emulators to determine if your microprocessor is supported or not The HP 64147A 001 emulator is provided with no emulation pod You need to purchase appropriate emulation pod and emulation processor To purchase emulation pod or emulation processor contact the address listed in the manual provided with your emulation pod Features of the 7750 51 Series Emulator This section intro...

Page 14: ...mulation ROM erom target system RAM tram target system ROM trom or guarded memory grd The HP 64147A 7750 51 Series emulator will attempt to break to the emulation monitor upon accessing guarded memory additionally you can configure the emulator to break to the emulation monitor upon performing a write to ROM which will stop a runaway program Analysis The HP 64147A 7750 51 Series emulator is used w...

Page 15: ... system resource is through the emulation processor For example when you enter a command to modify target system memory it is the execution of monitor program instructions that cause the new values to be written to target system memory The Background Monitor On emulator power up or after initialization the emulator uses the background monitor program The background monitor does not occupy processo...

Page 16: ...uested such as displaying target system memory Emulator features performed in real time include running and analyzer tracing Emulator features not performed in real time include display or modify of target system memory load dump of target memory display or modification of registers and single step Coverage Measurements Coverage memory is provided for the processor s external program memory space ...

Page 17: ...y when the following conditions are met The emulator is used with the M37780 81 82 83 85 95 96 emulation pod The processor is operating in the memory expansion or microprocessor mode with 8 bit external bus Step Command to Internal RAM Step command to internal RAM area is not available DMA Support Direct memory access to emulation memory is not allowed Watch Dog Timer in Background Watch dog timer...

Page 18: ...RDY HOLD input while in background monitor Accessing External Memory Area in SFR When operation mode is memory expansion or microprocessor mode there is external memory area in SFR However accessing to this area is not allowed High Speed Bus Mode Always set bus mode as low speed bus mode when you use M37751 emulation pod HP 64147A 7750 51 emulator does not support high speed bus mode Note that bus...

Page 19: ...e completed this chapter you will be able to perform these tasks Set up an emulation configuration for out of circuit emulation use Transfer a small program into emulation memory Use run stop controls to control operation of your program Use memory manipulation features to alter the program s operation Use analyzer commands to view the real time execution of your program Getting Started 2 1 ...

Page 20: ...d to use for your work Standalone configuration Transparent configuration Remote configuration References The HP 64700 Series Installation Service manual 2 Connected the emulation pod to the emulator Connect the emulation pod to the emulator as shown in Figure 2 1 Caution Turn off power of the emulator before inserting the cable to the emulation pod to avoid circuit damage Figure 2 1 Connecting th...

Page 21: ...es a primitive command interpreter Note This sample program is written for Mitsubishi RASM77 Assembler Data Declarations INPUT_POINTER and OUTPUT_POINTER define the address locations of an input area and an output area to be used by the program MESSAGE_A MESSAGE_B and INVALID_INPUT are the messages used by the program to respond to various command inputs Initialization First the INIT routine set u...

Page 22: ...C008 428D0001 L STA B DT INPUT_POINTER 25 00C00C AD0001 L READ_INPUT LDA A DT INPUT_POINTER 26 00C00F C900 CMP A 00H 27 00C011 F0F9 L BEQ READ_INPUT 28 29 INDEX 8 30 00C013 E210 SEP X 31 00C015 A200 CLEAR_OUTPUT LDX 00H 32 00C017 A020 LDY 20H 33 00C019 429D0002 L CLEAR_LOOP STA B DT OUTPUT_POINTER X 34 00C01D E8 INX 35 00C01E 88 DEY 36 00C01F D0F8 L BNE CLEAR_LOOP 37 38 INDEX 16 39 00C021 C210 CLP...

Page 23: ... OUTPUT First the base address of the output area is moved to index register Y Finally the proper message is written to the output area by the MVN instruction When done OUTPUT jumps back to CLEAR_INPUT and the command monitoring process begins again 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 ...

Page 24: ...level commands hp internal use only trc 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 emul emul emulation commands b break to monitor dump dump memory r run user code bc break condition es emulation status reg registers bp breakpoints io input output rst reset cf configuration lo...

Page 25: ...us of the emulator before and after the commands execute These prompts may seem cryptic at first but there are two ways you can find out what a certain prompt means Using help proc to View Prompt Description The first way you can find information on the various system prompts is to look at the proc help text R help proc Address format Address format is XXXXXX i where XXXXXXX is a 24 bit address Op...

Page 26: ...se is using the emulator To initialize the emulator enter the following command R init Limited initialization completed The init command with no options causes a limited initialization also known as a warm start initialization Warm start initialization does not affect system configuration However the init command will reset emulator and analyzer configurations The init command Resets the memory ma...

Page 27: ...80 27f cf irom 0c000 0ffff cf ipmr 05e cf mode single cf mon bg cf clk int cf int en cf rdy dis cf rush dis cf wdog dis cf rsp 27f cf rrt dis cf dmdt dis cf tdma dis cf trfsh dis cf thold dis Note The individual configuration items won t be explained in this example refer to Chapter 4 of this manual and the User s Reference manual for details 2 You need to select chip you emulate You can select ch...

Page 28: ...ot in latest version of Terminal Interface contact your local HP sales representative 3 Now set up reset value for the stack pointer R cf rsp 27f Note Without a stack pointer the emulator is unable to make the transition to the run state step or perform many other emulation functions 4 Let s go ahead and set up the proper break conditions Type R bc You will see bc d bp disable bc d rom disable bc ...

Page 29: ...e 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 bc d rom this enables the write to ROM break R bc d trig1 trig2 this disables break on triggers from the analyzer 5 To avoid problems later while modifying and displaying memory locations type R mo ab db...

Page 30: ...map You will see similar display to the following remaining number of terms 15 remaining emulation memory 1b800h bytes map 000c000 000ffff erom term 1 map other tram Note You don t have to map the internal RAM area since the emulator uses the internal RAM of emulation processor to perform emulation If your processor has no internal RAM map address 100 hex through 2ff hex with the following command...

Page 31: ...3 53 41 47 45 20 R m 0d010 0d01f 41 54 48 49 53 20 49 53 20 4d 45 53 53 41 47 45 R m 0d020 0d02f 20 42 49 4e 56 41 4c 49 44 20 43 4f 4d 4d 41 4e R m 0d030 44 You could also type the following line instead R m 0d000 THIS IS MESSAGE ATHIS IS MESSAGE BINVALID COMMAND You should now verify that the data area of the program is correct by typing R m 0d000 0d030 You should see 000d000 000d00f 54 48 49 53...

Page 32: ...ram area is correct by typing R m 0c000 0c047 You should see 000c000 000c00f a2 7f 02 9a f8 42 a9 00 42 8d 00 01 ad 00 01 c9 000c010 000c01f 00 f0 f9 e2 10 a2 00 a0 20 42 9d 00 02 e8 88 d0 000c020 000c02f f8 c2 10 c9 41 f0 06 c9 42 f0 09 80 0e a9 11 a2 000c030 000c03f 00 d0 80 0c a9 11 a2 11 d0 80 05 a9 0f a2 22 d0 000c040 000c047 a0 00 02 54 00 00 80 bd If this is not correct you can correct the ...

Page 33: ...a Softkey Interface a file format converter is provided with it The converter can convert MELPS 7700 Hex format files into HP Absolute files Refer to the Softkey Interface User s Guide for more details Downloading the HP Absolute requires the transfer protocol The example below assumes that the transfer utility has been installed on the HP 9000 700 host computer R load hbo RETURN transfer rtb cmd_...

Page 34: ...hould see 000c000 000c00f a2 7f 02 9a f8 42 a9 00 42 8d 00 01 ad 00 01 c9 000c010 000c01f 00 f0 f9 e2 10 a2 00 a0 20 42 9d 00 02 e8 88 d0 000c020 000c02f f8 c2 10 c9 41 f0 06 c9 42 f0 06 80 0e a9 11 a2 000c030 000c03f 00 d0 80 0c a9 11 a2 11 d0 80 05 a9 0f a2 22 d0 000c040 000c047 a0 00 02 54 00 00 80 bd 2 16 Getting Started ...

Page 35: ... 0c000 0c047 You will see 000c000 LDX 027fH 000c003 TXS 000c004 SEM 000c005 LDA B 00H 000c008 STA B DT 0100H 000c00c LDA A DT 0100H 000c00f CMP A 00H 000c011 BEQ 00c00cH 000c013 SEP 10H 000c015 LDX 00H 000c017 LDY 20H 000c019 STA B DT 0200H X 000c01d INX 000c01e DEY 000c01f BNE 00c019H 000c021 CLP 10H 000c023 CMP A 41H 000c025 BEQ 00c02dH 000c027 CMP A 42H 000c029 BEQ 00c034H 000c02b BRA 00c03bH 0...

Page 36: ...pecifying the mx command the last setting is used to disassemble the memory contents Type R m 0c015 0c02f 000c015 LDX a000H 000c018 JSR PG 9d42H 000c01b BRK 000c01d INX 000c01e DEY 000c01f BNE 00c019H 000c021 CLP 10H 000c023 CMP A 41H 000c025 BEQ 00c02dH 000c027 CMP A 42H 000c029 BEQ 00c034H 000c02b BRA 00c03bH 000c02d LDA A 11H 000c02f LDX d000H As you can see the memory contents is not disassemb...

Page 37: ...ed to be complete explanations of each command the information is only provided to give you some idea of the meanings of the various command prompts you may see and reasons why the prompt changes as you execute various commands You should gain some familiarity with the HP 64700 emulator command prompts by doing the following Ignore the current command prompt Type rst You will see R The rst command...

Page 38: ...prompt indicates that the emulator is running in the monitor Running the Sample Program Type M r 0c000 The emulator changes state from background to foreground and begins running the sample program from location 0c000 hex Note The default number base for address and data values within HP 64700 is hexadecimal Other number bases may be specified Refer to the HP 64700 User s Reference manual for furt...

Page 39: ...specific messages to the output area depending on what the input byte location contains Type U m 100 41 This modifies the input byte location to the hex value for an ASCII A Now let s check the output area for a message U m 200 21f You will see 0000200 000020f 54 48 49 53 20 49 53 20 4d 45 53 53 41 47 45 20 0000210 000021f 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 These are the ASCII values ...

Page 40: ...d emulation memory In this case you can display the data written to emulation memory without suspending user program execution Refer to chapter 4 of this manual for more details Stepping Through the Program You can also direct the emulator processor to execute one instruction or number of instructions Type M s 1 0c000 reg This command steps 1 instruction from address 0c000 hex and displays registe...

Page 41: ...want to continue stepping through the program displaying registers after each step You could continue entering s commands followed by reg commands but you may find this tiresome It is easier to use a macro to perform a sequence of commands which will be entered again and again Macros allow you to combine and store commands For example to define a macro which will display registers after every step...

Page 42: ...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 manual Now let s use the emulation analyzer to trace execution of the program Suppose that you would like to start the trace when the analyzer begins writing data to the message output area You ...

Page 43: ...ce list type U tl 0 10 You will see Line addr H data A M37750 51 Mnemonic H count R seq 0 000200 xx00H data write mx 1 000201 00xxH data write mx 56 00 uS 2 000202 xx00H data write mx 56 00 uS 3 000203 00xxH data write mx 56 00 uS 4 000204 xx00H data write mx 56 00 uS 5 000205 00xxH data write mx 56 00 uS 6 000206 xx00H data write mx 56 00 uS 7 000207 00xxH data write mx 56 00 uS 8 000208 xx00H da...

Page 44: ...The reason for this is that the analyzer has a storage pipeline which holds states that have been acquired but not yet written to trace memory To see all of the states halt the analyzer by typing U th You will see Emulation trace halted Now display the trace list U tl 30 40 You will see Line addr H data A M37750 51 Mnemonic H count R seq 30 00021e xx00H data write mx 56 00 uS 31 00021f 00xxH data ...

Page 45: ...tware breakpoint to a certain address the emulator will replace the opcode with BRK instruction as software breakpoint instruction When the emulator detects the BRK instruction user program breaks to the monitor and the original opcode will be placed at the breakpoint address A subsequent run or step command will execute from this address If the BRK instruction was not inserted as the result of bp...

Page 46: ...re you can define software breakpoints you must enable software breakpoints with the bc break conditions command To view the default break conditions and change the software breakpoint condition enter the following commands M bc bc d bp disable bc d rom disable bc d bnct disable bc d cmbt disable bc d trig1 disable bc d trig2 disable M bc e bp Defining a Software Breakpoint Now that the software b...

Page 47: ... IS ENABLED bp 000c040 disabled Searching Memory for Strings or Numeric Expressions The HP 64700 Emulator provides you with tools that allow you to search memory for data strings or numeric expressions For example you might want to know exactly where a string is loaded To locate the position of the string THIS IS MESSAGE A in the sample program Type M ser 0c000 0dfff THIS IS MESSAGE A pattern matc...

Page 48: ...he program To make this measurement we must first reset the coverage status M cov r Note You should always reset the coverage status before making a coverage 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 following commands M r 0c000 U c...

Page 49: ... 0100H 2 000 uS 1 00c00e c901H opcode fetch mx 6 000 uS 2 000100 xxffH data read mx 4 000 uS 3 00c00f CMP A 00H 2 000 uS 4 00c010 f000H opcode fetch mx 6 000 uS 5 00c011 BEQ 00c00cH 2 000 uS 6 00c012 e2f9H opcode fetch 6 000 uS 7 00c014 a210H opcode fetch 8 000 uS 8 00c00c 00adH opcode fetch 8 000 uS 9 00c00c LDA A DT 0100H 2 000 uS 10 00c00e c901H opcode fetch mx 6 000 uS 11 000100 xxffH data rea...

Page 50: ...Notes 2 32 Getting Started ...

Page 51: ...njunction 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 In Circuit Emulation 3 1 ...

Page 52: ...ug Orientation Make certain that Pin 1 of the target system microprocessor socket and Pin 1 of the user plug are properly aligned before inserting the user plug in the socket Failure to do so may result in damage to the emulator circuitry Protect Against Static Discharge The HP 64147A 7750 51 Series Emulator contains devices which are susceptible to damage by static discharge Therefore operators s...

Page 53: ...ulation pod 2 Remove the 7750 51 Series microprocessor from the target system socket Note the location of pin 1 on the processor and on the target system socket 3 Store the microprocessor in a protected environment such as antistatic foam 4 Install the target system probe into the target system microprocessor socket See figure 3 1 5 Turn on power of your target system and then turn on the emulator...

Page 54: ...When your target system uses 64 pin shrink DIP socket use the adapter as shown in figure 3 2 Figure 3 2 Installing the Probe to SDIP64 Socket 3 4 In Circuit Emulation ...

Page 55: ...ter the following command R r rst Now you can see T system prompt When the target system RESET line becomes active and then inactive the 7750 51 emulator will start reset sequence as actual microprocessor Note In the Awaiting target reset status T you can not break into the monitor If you want to exit this status you need to enter rst command In Circuit Emulation 3 5 ...

Page 56: ...3 6 In Circuit Emulation ...

Page 57: ...onships between the emulation processor and the target system such as determining how the emulator responds to requests for the processor bus Also these commands determine how the emulation processor interacts with the emulator itself memory mapping and the emulator s response to certain processor actions are some of the items which can be configured These commands are the ones which are covered i...

Page 58: ... Reference manual Analyzer The analyzer configuration commands are those commands which actually specify what type of measurement the analyzer is to make Some of the analyzer commands are covered earlier in this manual You can also refer to the HP 64700 Terminal Interface Analyzer User s Guide and the HP 64700 Terminal Interface User s Reference manual System This last group of commands is used by...

Page 59: ...ed and optionally defines the location of that monitor in emulation memory To see the default configuration settings defined by the cf command type M cf You will see cf chip 7702M2 cf isfr 0 07f cf iram 080 27f cf irom 0c000 0ffff cf ipmr 05e cf mode single cf mon bg cf clk int cf int en cf rdy dis cf rush dis cf wdog dis cf rsp 27f cf rrt dis cf dmdt dis cf tdma dis cf trfsh dis cf thold dis Let ...

Page 60: ... cf iram cf irom cf ipmr and cf rsp by yourself Note Executing this command will drive the emulator into the reset state cf isfr The isfr internal Special Function Register SFR configuration item defines the location of SFR area Note This item is automatically set up by cf chip command Therefore you don t have to set up this item when your processor can be specified by cf chip command If your proc...

Page 61: ...ed by cf chip command If your processor is not supported by cf chip command when you select other for the configuration item you need to set up proper value for cf iram command M cf iram address address address address You can specify the start address and end address of internal RAM area by above command The start address and end address can be defined on 16 byte boundaries M cf iram none When th...

Page 62: ...mand The start address and end address can be defined on 16 byte boundaries M cf irom none When there is no internal ROM in your processor you should select none to this configuration item Note Executing this command will drive the emulator into the reset state cf ipmr The ipmr processor mode register configuration item defines the location of the processor mode register Note This item is automati...

Page 63: ...ion item defines operation mode of the processor and data bus width M cf mode mode Valid mode are following mode Description single The emulator will operate in single chip mode ext8 The emulator will operate in memory expansion mode with 8 bits external data bus width ext16 The emulator will operate in memory expansion mode with 16 bits external data bus width proc8 The emulator will operate in m...

Page 64: ...egister contents in an array of memory locations then returns to executing your program The background monitor provided with the emulator offers the greatest degree of transparency to your target system that is your target system should generally be unaffected by monitor execution However in some cases you may require an emulation monitor tailored to the requirements of your system In this case yo...

Page 65: ...memory mapper term is automatically created when you execute the cf mon fg command to reserve 2K bytes of memory space for the foreground monitor The memory map is reset any time cf mon fg is entered It is only reset when cf mon bg if the emulator is not already configured to use the background monitor Note Executing this command will drive the emulator into the reset state cf clk The clk clock op...

Page 66: ...te with one of the following methods Providing the RDY from the target system Configuring the emulator to generate the RDY signal Refer to the section describing the cf rdy command Note When the external clock is selected your target system must have a clock generation circuit The emulation pod cannot generate clock signal using a ceramic or quartz crystal resonator Note Executing this command wil...

Page 67: ...tem Refer to the manual provided with your emulation pod Note Executing this command will drive the emulator into the reset state cf rdy The rdy configuration item defines whether or not the emulator introduces RDY input when it accesses any memory This feature is used to run the emulator with clock faster than 16 MHz M cf rdy dis You can disable the RDY input by the emulator with above command Wh...

Page 68: ...eed access mode with the above command When you enable the high speed access mode The emulator can access emulation memory with no wait state up to 25 MHz You can map the emulation memory only to the following location Memory Monitor Available location 128K Background 000000 01F7FF 128K Foreground 000000 01FFFF 512K Background 000000 07F7FF 512K Foreground 000000 07FFFF 1M Background 000000 0FF7FF...

Page 69: ...ternal RAM rsp is set to FFF hex R cf rsp XXXX where XXXX is a 16 bits address will set the stack pointer to that value upon entry to the emulation monitor after an emulation reset When the emulator breaks to the background monitor the monitor program needs 5 bytes of stack For example to set the stack pointer to 27f hex type R cf rsp 27f Now if you break the emulator to monitor using the b comman...

Page 70: ...the processor through a piece of code returns to monitor after each step 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 Caution If your target system circuitry is dependent on constant execution of program code you should set this option to cf rrt en This will help insure that target system da...

Page 71: ...f trfsh en When you enable this item with the above command refresh cycles are traced by the emulation analyzer M cf trfsh dis When disabled refresh cycles are not traced by the analyzer cf thold The thold trace hold cycles configuration item defines whether or not the emulator traces hold cycles M cf thold en When you enable this item with the above command the emulation analyzer will trace hold ...

Page 72: ...lation memory location mapped as ROM the emulator will not permit the write even if the memory at the given location is actually RAM You can optionally configure the emulator to break to the monitor upon such occurrence with the bc e rom command Also if the emulation processor attempts to access a non existent location known as guarded the emulator will break to the monitor You use the map command...

Page 73: ...g commands R map d R map 500 580 tram R map 0c000 0dfff erom R map remaining number of terms 14 remaining emulation memory 7df00h bytes map 0000500 00005ff tram term 1 map 000c000 00dfff eram term 2 map other tram As you can see the mapper rounded up the second term to 256 bytes block since those are minimum size blocks supported by the HP 64147A 7750 51 Series emulator Note When you use backgroun...

Page 74: ...e emulator so that write cycles are performed to both internal RAM or SFR and emulation memory In this case you can see the data written to emulation memory without suspending program execution To use this feature you need to map these area to emulation RAM eram When you do this you can display the contents of emulation memory with m command without suspending user program execution You still can ...

Page 75: ...n 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 Write to ROM If you want the emulator to break into the emulation monitor whenever the user program attempts to write to a memory region mapped ...

Page 76: ...he HP 64700 emulator provides four different trigger signals which allow you to selectively start or stop measurements depending on the signal state These are the bnct rear panel BNC input cmbt CMB trigger input trig1 and trig2 signals provided by the analyzer You can configure the emulator to break to the monitor upon receipt of any of these signals Simply type M bc e signal For example to have t...

Page 77: ...en the following conditions are met The emulator is used with the M37780 81 82 83 85 95 96 emulation pod The processor is operating in the memory expansion or microprocessor mode with 8 bit external bus Step Command to Internal RAM Step command to internal RAM area is not available DMA Support Direct memory access to emulation memory is not allowed Watch Dog Timer in Background Watch dog timer sus...

Page 78: ...Y HOLD input while in background monitor Accessing External Memory Area in SFR When operation mode is memory expansion or microprocessor mode there is external memory area in SFR However accessing to this area is not allowed High Speed Bus Mode Always set bus mode as low speed bus mode when you use M37751 emulation pod HP 64147A 7750 51 emulator does not support high speed bus mode Note that bus m...

Page 79: ...ce with a separate memory region Entry into the monitor is normally accomplished by jamming the monitor addresses onto the processor s address bus Usually a background monitor will be easier to work with in starting a new design The monitor is immediately available upon powerup and you don t have to worry about linking in the monitor code or allocating space for the monitor to use the emulator No ...

Page 80: ...as your program You link this monitor with your code so that when control is passed to your program the emulator can still service real time events such as interrupts or watchdog timers For most multitasking interrupt intensive applications you will need to use a foreground monitor You can tailor the foreground monitor to meet your needs such as servicing target system interrupts However the foreg...

Page 81: ...e first comment section of the monitor program listing You should see the line below LOCATE_ADRS EQU 0B800H start monitor on 2k boundary in bank 0 rather than sfr iram area PROCMODEREG EQU 0005EH processor mode register s address You can specify the monitor location by modifying this label LOCATE_ADRS For example if you want locate the monitor program at a000 hex make above line to as below LOCATE...

Page 82: ...HIP7751 WORD 1 7751 Configure the Emulator Before configuring the emulator you should initialize the emulator to a known state Type R init Select processor you are going to emulate Type R cf chip chip_name You need to tell the emulator that you will be using a foreground monitor and allocate the memory space for the monitor This is all done with one configuration command To locate the monitor on a...

Page 83: ...nitor Type R cf rsp 27f Load the Program Code Now it s time to load the sample program and monitor Assemble and link the monitor program In the example shown we re loading the program from a host with the emulator in Transparent Configuration If you re using the standalone configuration with a data terminal you will need to enter the data using the m command You can get the data from your assembly...

Page 84: ...cim Command cim command is not available when you are using the foreground monitor Synchronized measurements You cannot perform synchronized measurements over the CMB when using a foreground monitor If you need to make such measurements set the foreground background configuration option to cf mon bg A 6 Using A Foreground Monitor ...

Page 85: ...ntax CONFIG_ITEMS May be specified in the cf emulator configuration and help cf commands DISPLAY_MODE May be specified in the mo display and access mode m memory and ser search memory for data commands The display mode is used when memory locations are displayed or modified ADDRESS May be specified in emulation commands which allow addresses to be entered REG_NAME May be specified in the reg regis...

Page 86: ...CONFIG_ITEMS Summary 7750 51 Series emulator configuration items Syntax B 2 Specific Command Syntax ...

Page 87: ...ster mode Select operation mode of the processor rush Enable disable high speed access mode mon Select background or foreground monitor clk Select internal external clock source int Enable disable interrupts from target system rdy Enable disable RDY input by the emulator wdog Enable disable the Watch Dog Timer rsp Specify reset value of the stack pointer rrt Restrict emulator to real time runs tdm...

Page 88: ...ex disabled the real time runs restriction and ask processor clock source Notice that items which are changed do not have status printed you could explicitly request the new status by repeating the configuration item on the command line after the change but without a value For example R cf mon fg 2000 mon cf mon fg 2000 Related information Refer to the cf syntax pages in the User s Reference manua...

Page 89: ...d in mnemonic format that is the contents of memory locations are inverse assembled into mnemonics and operands When memory locations are modified the last non mnemonic display mode specification is used You cannot specify this display mode in the ser search memory for data command Defaults The DIPLAY_MODE is b at power up initialization Display mode specifications are saved that is when a command...

Page 90: ...tions during target system memory accesses such as memory modification or display note that it does not affect how that data is displayed on screen which is controlled by the display mode Defaults The ACCESS_MODE is b at power up initialization Display mode specification are saved that is when a command changes the access mode the new access mode becomes the current default Related Information Ref...

Page 91: ...e area to emulation RAM data write cycles are performed to both internal RAM or SFR and emulation memory Therefore you can display the data written to emulation memory without suspending user program execution To display internal RAM or SFR you need to specify i after address expression When you don t map internal RAM and SFR to emulation memory you can access the actual RAM or SFR without specify...

Page 92: ...available pg Program Bank Register pc Program Counter ps Processor Status Register dt Data Bank Register sp Stack Pointer a Accumulator A b Accumulator B x Index Register X y Index Register Y dpr Direct Page Register Related Commands reg register display modify B 8 Specific Command Syntax ...

Page 93: ...x register length The inverse assembler of emulator needs to know the value of these flags to disassemble the memory contents The mx command tells the emulator the value of M flag and or X flag The c option can be specified to set the current value of M and X flag in processor status register Specific Command Syntax B 9 ...

Page 94: ...Notes B 10 Specific Command Syntax ...

Page 95: ...2 24 Analyzer trace starting 2 25 B b Command 2 20 Background monitor A 1 bc Command 2 10 2 28 4 19 Before using the emulator 2 2 bp Command 4 20 Break write to ROM 4 19 Break condition 2 28 break conditions after initialization 2 8 breakpoints 2 8 C cf chip Command 4 4 cf Command 2 9 cf ipmr Command 4 6 cf iram Command 4 5 cf irom Command 4 6 cf isfr Command 4 4 cf map Command 4 12 cf mode Comman...

Page 96: ...ts 2 19 Commandhelp 2 6 Commands b 2 20 bc 2 10 2 28 4 19 bp 2 27 4 20 cf 2 9 cf chip 2 9 cf map 4 12 cf rdy 4 11 cf rsp 4 13 cf thold 4 15 cf trfsh 4 15 cim 2 28 configuration 4 1 cov 2 30 equ 2 27 help 2 6 m 2 13 2 21 map 2 12 4 16 measurement 4 1 mx 2 17 r 2 20 recalling 2 24 reg 2 21 rst 2 19 s 2 22 t 2 25 tf 2 25 tg 2 24 th 2 26 tl 2 25 tsto 2 24 2 Index ...

Page 97: ...1 memory mapping 4 16 processor to emulator target system 4 3 system 4 2 types of 4 1 Coordinated measurement commands 4 2 cov Command 2 30 Coverage measurement 2 30 D Displaying configuration 4 3 registers 2 21 trace list 2 25 DT register 4 15 E emulation memory after initialization 2 8 mapping internal RAM and SFR area 4 18 Emulation pod ordering information 1 3 Emulation processor ordering info...

Page 98: ...RDY HOLD input in background cycles 1 8 RMPA instruction 1 8 stack pointer 1 8 step command to Interanl RAM 1 7 step command with foreground monitor 1 7 step fails when an interrupt exists 1 8 trace internal RAM 1 7 watch dog timer 1 7 Emulator specific command syntax B 1 equ Command 2 27 es emulator status command 2 8 evaluation chip 1 8 4 22 F Foreground monitor address requirements 4 9 cim comm...

Page 99: ...rnal RAM 4 21 accessing external memory in SFR area 4 22 clock speed 4 21 DMA support 4 21 emulation command fails in stop wait mode 4 22 high speed bus mode 4 22 RDY HOLD input in background cycles 4 22 RMPA instruction 4 22 stack pointer 4 22 step command to Interanl RAM 4 21 step command with foreground monitor 4 21 step fails when an interrupt exists 4 22 trace internal RAM 4 21 watch dog time...

Page 100: ...mat 2 17 Monitor select foreground background monitor 4 8 monitor program 1 5 background 1 5 foreground 1 5 Monitors background A 1 comparison of foreground background A 1 mx Command 2 17 N notes foreground monitor is written for RASM77 A 3 P Prerequisites for using the emulator 2 2 Program loads 2 13 prompts 2 7 emulator command 2 19 help information on 2 7 using es command to describe 2 8 Purpos...

Page 101: ...ation 2 23 software breakpoints 4 20 after initialization 2 8 defining in internal RAM 2 28 defining in target ROM 2 28 stack pointer 1 8 4 22 Starting a trace 2 25 Storage qualifier 2 24 supported microprocessors 1 3 Syntax command specific to 7750 51 Series emulator B 1 T t Command 2 25 Target system dependency on executing code 4 14 Target system probe cautions for installation 3 2 installation...

Page 102: ...Transfer utility 2 14 Transparent mode 2 14 Trigger signals break upon 4 20 tsto Command 2 24 Types of configuration 4 1 W wait mode 1 8 4 22 warm start initialization 2 8 watch dog imer enable disable 4 12 X xp Command 2 14 8 Index ...

Reviews: