COP8-EMFLASH-00 National Semiconductor, COP8-EMFLASH-00 Datasheet

no-image

COP8-EMFLASH-00

Manufacturer Part Number
COP8-EMFLASH-00
Description
EMULATOR COP8FLASH
Manufacturer
National Semiconductor
Series
COP8™r
Type
In-Circuit Emulator Systemr

Specifications of COP8-EMFLASH-00

Contents
PCB, Cables, Null Target Board, Dev CD, Software and Power Supplies
For Use With/related Products
COP8FLASH Families
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Home
R
®
iceMASTER
-WA
COP8-EM/DM/IM-Flash
User’s Manual
®
®
for Microsoft
Windows
Document Version: 1.1

Related parts for COP8-EMFLASH-00

COP8-EMFLASH-00 Summary of contents

Page 1

... COP8-EM/DM/IM-Flash User’s Manual for Microsoft Document Version: 1.1 ® -WA ® ® Windows Home R ...

Page 2

... MetaLink Corporation and may only be used to describe MetaLink products. ™ National Semiconductor is a trademark of National Semiconductor Corporation. ™ MOLE is a trademark of National Semiconductor Corporation. ® ® Microsoft and Windows are registered trademarks of Microsoft Corporation. MetaLink Corporation reserves the right to make improvements in the products described in this manual, as well as the ...

Page 3

... Table of Contents ................................................................................................................................................................i Chapter 1: Introduction ......................................................................................................................................................1 The Emulator .................................................................................................................................................................1 Recommended References .............................................................................................................................................1 What You Need To Know..............................................................................................................................................1 Chapter 2: Hardware Installation .......................................................................................................................................2 iceMASTER-WA COP8-EM/DM/IM-Flash Hardware.................................................................................................2 Warnings ....................................................................................................................................................................2 Hot-Plugging..........................................................................................................................................................2 Power On/Off Sequence.........................................................................................................................................2 Power-Up ...........................................................................................................................................................2 Power-Down ......................................................................................................................................................2 Chapter 3: Hardware Description.......................................................................................................................................4 Target Board to Emulator Connection ...........................................................................................................................4 RS-232 Modular Interface..............................................................................................................................................5 LEDs ..............................................................................................................................................................................6 Red LED (Power).......................................................................................................................................................6 Green LED (Status)....................................................................................................................................................6 Switches .........................................................................................................................................................................6 SW1— ...

Page 4

FLEX Bit in the OPTION Register ..............................................................................................................................22 RAM Memory|Data|Fill Command..............................................................................................................................24 Exiting the Debugger Software ....................................................................................................................................27 Run|Go From a Break-Point.........................................................................................................................................28 New Instructions ..........................................................................................................................................................29 Trace Operand/Instruction Value Information .............................................................................................................30 Command Window ......................................................................................................................................................31 Chapter 6: Operational Considerations ............................................................................................................................34 Emulation Notes...........................................................................................................................................................34 Static ............................................................................................................................................................................35 Power ...

Page 5

... The iceMASTER-WA can be operated in one of three configurations: Connected to a standard 2x7 header in your Target System. Connected to an optional Probe Card that plugs into a socket for the COP8 Flash device in your Target System. The Probe Card contains the necessary 2x7 header for connection to the iceMASTER-WA emulator. ...

Page 6

... COP8-EM/DM/IM-Flash Hardware Connect one of the modular adapters to a serial communication port on the Host Computer. Be sure you are using Communication Port 1 (COM1), 2 (COM2), 3 (COM3 (COM4). Use the modular-to-DB-25 adapter for a PC type Host Computer (one with a 25-pin serial communication port connection at the back of the computer). ...

Page 7

... If you apply power in a different sequence and your target system does not have a “good” Power-On Reset circuit you are using the Null Target board, flash memory in the COP8 flash device could be corrupted. Without a “good” Power-On Reset circuit, the COP8 processor could start executing “randomly” in the device’s Boot ROM code; it could execute some code that writes to, or mass erases, the flash memory in the part ...

Page 8

... To use the emulator with the COP8 device soldered on the target system PCB, you would design your PCB with a 2x7 header pattern located next to the G Port of the COP8 flash device. The connections to this header pattern are: The characteristics of the 2x7 header are: 100 mil spacing between all pins. (100 mils = 0.1” ...

Page 9

RS-232 Modular Interface Host PC Cable Connector Signal Pin Female Female DB-25 DB-9 TxD 2 RxD 3 RTS 4 CTS 5 Ground 7 DTR 20 The communication link to the Host Computer is based on the serial RS-232-C specification. The ...

Page 10

... Once RS-232 communication with the host computer and debugger has been established, the red LED stays on (steadily). Green LED (Status) The green LED turns on when the interface between the emulator and the COP8 flash device in the target system is established. The green LED turns off when the COP8 processor is “inactive”: Upon RESET In Halt/Idle mode ...

Page 11

... Installation and Initial Startup The host software package that comes with the iceMASTER-WA COP8-EM/DM/IM-Flash emulator can be used with the following products: iceMASTER-AD Model 400 Emulator iceMASTER-DM Debug Module iceMASTER-WA / COP8-EM/DM/IM-Flash products: iceMASTER-WA Model 100 COP8-EM-Flash iceMASTER-WA Model 400 COP8-DM-Flash iceMASTER-WA Model 500 COP8-IM-Flash ...

Page 12

After that, you must select the COMn port on your PC that you are using for the emulator: 8 ...

Page 13

... Watchdog feature in the COP8 device. HALT Mode: The selection made here is, if necessary, written to the OPTION register and enables or disables HALT mode in the COP8 device. The Initial Code Value is disabled (low-lighted) and shows the value (0x00) that the COP8 chip uses for a Flash Erase operation. 9 ...

Page 14

After the system initializes completely, the information describing the particular emulator and model is displayed in the Configure|Identification window, as well as in the main window’s title bar: 10 ...

Page 15

Overview/Features This chapter contains an overview of some of the features of the software and a guide to help you understand the layout of the screen. Note that context sensitive help is available for every command. Windows You can have ...

Page 16

Click on the Stop toolbar button. Select the Stop(Esc) command in the Emulating window. Select the Run|Stop command from the Main Menu window. Press the Esc key. Help Detailed and context sensitive Help is available on-line using the Help Key ...

Page 17

Default Screen Layout The picture above shows the default screen layout. The windows shown (Source, RAM Memory, Core Registers, Registers (SFR), and Status) are just a subset of the available windows. The available windows are described below. Available Windows Break ...

Page 18

Code Memory The Code Memory Window displays memory as hexadecimal bytes and their ASCII equivalent. In addition, from the Code Memory Window you may fill or copy blocks of memory, compare two blocks of memory and search memory for a ...

Page 19

Watch The Watch Window is used to display information about watch expressions. You can think of watch expressions as peepholes into memory where you specify the starting address symbolically (the name of a program variable, register or bit) or numerically ...

Page 20

... In this way, you can load all the debugging information from the program file, but avoid actually writing to flash memory if you are sure that the contents of the flash memory in the COP8 device already matches the contents of the file. Actually, this “manual” intervention is somewhat unnecessary because the software employs the ...

Page 21

... The value written to the OPTION register has the Security (SEC) bit set (enabled), then the software verifies that all the values in that Page now read as 0xFF (i.e., Security enabled). In the COP8CBR, the OPTION register is at address 0x7FFF and the Page containing the OPTION register is the Page at 0x7F80- 0x7FFF ...

Page 22

... COP8 part whenever you want: Because this command clears your program from flash memory (i.e., all bytes in the flash code memory in the COP8 device are set to a value of 0x00), you must confirm the command selection before the flash memory will actually be ...

Page 23

19 ...

Page 24

If you do choose to Mass Erase flash memory, the debugger will remember the value in the OPTION register before erasing. Then, after Mass Erasing and if appropriate, the software will prompt you to see if you want to restore ...

Page 25

... Flash Memory Security When the Security bit (SEC) in the OPTION register is set, security in the COP8 device is enabled. In such a case, the debugger software can neither read/write flash memory, nor can it update the FLEX bit in the OPTION register to reflect your Configure|Flash... choices. If the Security bit is set (enabled), the software will prompt you as follows: Again, because this command clears your program from flash memory (i ...

Page 26

... FLEX Bit in the OPTION Register The FLEX bit in the OPTION register determines whether the COP8 device will start executing in the flash memory or in the Boot ROM upon exiting reset. This bit is set to reflect the choice you make in the Configure|Flash... dialog: 22 ...

Page 27

If the part is configured to start executing in the Boot ROM upon exiting RESET, when you select either the Run|Reset|Emulator or the Run|Reset|Target command, you will be prompted to confirm the command selection: This confirmation is requested because it ...

Page 28

RAM Memory|Data|Fill Command If you specify an address range in the Fill dialog that spans the SFR (Register, I/O) area in one or more data segments: 24 ...

Page 29

The software now gives you the option of filling only the “true” data locations in each segment (lower end) and skipping the SFR (register) portion of each segment (upper end): The result of pressing ‘No’ above looks something like the ...

Page 30

26 ...

Page 31

... Exiting the Debugger Software When you exit the debugger, there may be software breakpoints set in the flash memory of the COP8 flash device. If that is the case, you will be prompted as follows: In general usually a good idea to respond ‘Yes’ to this prompt (unload the software break-points). In this way, the flash memory in the COP8 flash device will contain exactly the code memory image bytes that you last loaded there. If you respond ‘ ...

Page 32

However, the instance of the debugger that you are running in this new debugging session did not set (“plant”) those breakpoints. Also, see the Troubleshooting chapter. Run|Go From a Break-Point The implementation of the Run|Go command (Go button) ...

Page 33

... However, the Single-Line Assembler does not support them. If you do “patch in” a BRK instruction (by changing the value in a code memory location to 0x62), the emulator will break (stop emulating) when the COP8 processor executes the BRK instruction at that location. However, in such a case, the software will issue the following diagnostic: Unsolicited breakpoint encountered at 0xhhhh ...

Page 34

... Trace Operand/Instruction Value Information In the Model 500 emulators (COP8-IM-Flash), the Trace contains information about the instruction that was executed. This includes such things as operand values (memory contents), Stack Pointer “before” and “after” values, etc. Right- click on the currently-selected line and select the ‘Operand Info’ command to view this information: ...

Page 35

... As you scroll the currently-selected line through the Trace Window, the information in the pop-up information box will be updated to reflect the value(s) for the instruction at the currently-selected line. Command Window Several commands are available in the Command Window to configure and manipulate the COP8 flash device: FLASH_INIT Initialize the emulator based on previously specified FLASH_... commands (described below). Note that none of the settings specified using any of the FLASH_ ...

Page 36

... The format of the display is "number: description". FLASH_ERASE File|Erase Flash: Mass Erase the flash memory in the COP8 device. No questions are asked. The OPTION register is left in its erased state, so you must follow this command with any appropriate FLASH_... and FLASH_INIT configuration commands. ...

Page 37

SWBREAKPOINTS str Configure|Preferences|Use Software Breakpoints: (iceMASTER-WA Model 500 only) Specify whether you want to use software code breakpoints or hardware code breakpoints, where str is one of the following: ON Use software code breakpoints. OFF Use hardware code breakpoints. 33 ...

Page 38

... If your application code contains BRK instructions, the emulator behaves as though a breakpoint occurred when the COP8 CPU executes a BRK instruction, but will display the following message to alert you: Unsolicited breakpoint encountered at 0xhhhh. (The program contains a non-breakpoint BRK instruction breakpoint is set on an instruction that could potentially be skipped, emulation will break only when that instruction is actually executed ...

Page 39

Static Perhaps the most difficult problem anyone who uses MOS devices will face is static. You may go for years with no fault traceable to static, or you may blow every part you touch. The iceMASTER-WA emulator can be as ...

Page 40

... If you notice that all memory contents (RAM, Code, Registers) suddenly change to a value of 0x37 or 0x45, it means that the synchronization of the interface between the control processor in the emulator and the COP8 flash device in your target system has been lost. This condition could be caused by having too low a voltage going to the COP8 flash device in your target system. 36 ...

Page 41

... DVCC and DGND, you may use the port pins to drive external hardware. Note that the null target’s probe pin footprints for CKI and G7 are not attached to the COP8’s CKI and G7. If you wish to probe these signals, you must probe the COP8’s pins directly. ...

Page 42

... Volt-Powered Emulators Emulators shipped after June 2000 are configured to use a 9 volt power supply. These units support a COP8 flash device operating over the full, wide voltage range (2.7 volts – 5.5 volts). Power is supplied with a standard 2.5mm phone plug and jack, tip positive. The power supply must provide +9 volts 5%, at 300 milliamps ...

Page 43

Emulation Problems In stand-alone mode, load and run one of the demo programs that are supplied on the distribution diskettes. If the program runs correctly, the problem may not be with the emulator but with the target interface. Keep an ...

Page 44

... The following table is a comparison of the features in the various models of the iceMASTER-WA COP8-EM/DM/IM- Flash emulator: Basic Features Real-time Emulation Maximum Frequency (MHz) Map Clock to Target User-Programmable Clock Low Voltage Support Programming Capability Pinouts Supported Packages Supported Connection to PC Maximum Baud Rate ...

Page 45

Run|Reset|Emulator Run|Reset|Target Run|Go Run|From... Run|Until... Run|Slow Motion|Instruction Run|Slow Motion|Line Run|Step Run|Line Run|Over Run|To Run|Repetition|Count Run|Stop Execution Timer Reset Processor During Emulation 1 : The breakpoint type is selectable dynamically: either 32K hardware breakpoints or 32K software breakpoints Hardware ...

Related keywords