Summary of Contents for Freescale Semiconductor Motorola MMDS0508
Page 1
Freescale Semiconductor, Inc. MMDS0508OM/D MMDS M O D U L A R D E V E L O P M E N T S Y S T E M f o r 6 8 H C 0 5 a n d...
Page 2
Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
Page 3
Freescale Semiconductor, Inc. MMDS0508 Motorola Modular Development System Operations Manual MMDS0508OM/D MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 4
Freescale Semiconductor, Inc. Motorola reserves the right to make changes without further notice to any products herein to improve reliability, function, or design. Motorola does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others.
Page 5
Freescale Semiconductor, Inc. Revision History Revision History This table summarizes differences between this revision and the previous revision of this emulation module user’s manual. Previous None Revision Current Original release Revision Date 08/96 MMDS0508OM/D MOTOROLA For More Information On This Product,...
Page 6
Freescale Semiconductor, Inc. Revision History MMDS0508OM/D MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. General Description Development Tool Selector Guide , order number SG173/D, for a complete list of available emulator modules and the appropriate user's manual for EM installation instructions. For connection to a target system, a separately purchased target cable with the appropriate target head also is needed.
Freescale Semiconductor, Inc. General Description System Features System Features The MMDS is a full-featured development system that provides in-circuit emulation. Its features include: • Real-time, non-intrusive, in-circuit emulation • Real-time bus state analysis • MC68HC11K1 system controller for fast command transfer •...
Page 14
Freescale Semiconductor, Inc. General Description – Trace buffer can be filled while single-stepping through user software – 16-bit time tag, or an optional 24-bit time tag that sacrifices eight logic clips – Eight software selections for the time tag clock source, permitting wide time variance between analyzer events –...
Freescale Semiconductor, Inc. General Description System Components Connections, configuration, and other related information is explained in the installation section of this document. For similar information with regard to EMs, see the corresponding EM user's manual. System Components The following items are included with the MMDS: •...
Freescale Semiconductor, Inc. General Description Separately purchased Motorola personality products include: • An emulation module (EM): One of many printed circuit boards that complete MMDS functionality for one or more particular MCUs. The two DIN connectors on the bottom of the EM fit into connectors on the top of the MMDS0508 platform board for power and signal connections.
Freescale Semiconductor, Inc. General Description Acronyms For improved product performance, additional system enhancements can be added. These are: 80386- or 80486-based systems, a hard disk drive, and a high-resolution color monitor with either an EGA or VGA graphics adapter card. The MMDS system software also supports a Microsoft, Logitech, or IBM mouse.
Page 18
Freescale Semiconductor, Inc. General Description MMDS0508OM/D General Description MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. Installation Introduction Complete MMDS installation consists of configuring the platform board, configuring and installing the appropriate emulation module (EM), and making system cable connections. Consult the system components section on page 9 for a list of all the system parts, including a separately purchased EM.
Page 21
Freescale Semiconductor, Inc. Installation Introduction Pod A Pod B Connector Recessed Hardware Reset Switch Power LED Figure 1. M68MMDS0508 Station Module (Right Side) MMDS0508OM/D MOTOROLA Installation For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. Installation Panel Power Cord Socket Power Switch 9-Pin Serial Connector +5V Out Figure 2. M68MMDS0508 Station Module (Left Side) Configuring the Platform Board The MMDS platform board has four jumper headers, all located near the front of the platform board. Jumper header J1 is for factory test.
Freescale Semiconductor, Inc. Installation Configuring the Platform Board Factory Test This diagram shows the factory configuration of jumper header J1. The Header (J1) fabricated jumper between pins 1 and 2 is correct for MMDS operation. BOOT FABRICATED JUMPER The alternate jumper position has significance only for factory personnel.
Freescale Semiconductor, Inc. Installation Port Voltage Jumper headers J2 through J4, located near the right front corner of the Control Headers platform board, set the voltage levels for ports A through D. The (J2–J4) following diagram shows the factory configuration. The fabricated jumpers between pins 1 and 2 of these headers set the +5-volt level for all ports.
Freescale Semiconductor, Inc. Installation Installing the EM Installing the EM Perform these steps to install an EM in an MMDS enclosure: • Ensure that station module power is off. • Remove the panel from the station module top by first turning each of the two 1/4-turn speed fasteners to the released position.
Freescale Semiconductor, Inc. Installation Making System Connections The specific application determines the number of MMDS connections required. At the very least, the platform board and EM must be connected to the host computer and to a power supply. Cable connections are explained in the sections that follow.
Freescale Semiconductor, Inc. Installation Making System Connections connect the probe tips to the ball clips that come with the cable assembly, then connect the ball clips to appropriate external test points. NOTE: The white probe of pod A is the external clock input for the emulator and the white probe of pod B is the external clock input for the analyzer.
Freescale Semiconductor, Inc. Installation This completes cable connections. Refer to Loading and Initialization on page 35 for information on communicating with the MMDS. Make sure the power to the MMDS is turned off when installing the EM or removing the EM from the station module. Sudden power surges can damage MMDS circuits.
Page 29
Freescale Semiconductor, Inc. Installation Serial Connector and Cable Information Table 1. Serial Connector and Cable Pin Assignments Connector Pin Mnemonic Signal DATA CARRIER DETECT — Output signal that indicates detection of an acceptable carrier signal RECEIVE DATA — Serial data output line TRANSMIT DATA —...
Freescale Semiconductor, Inc. Installation Logic Cables and The diagram below shows the pin numbering for both pod A and pod B Connectors logic cable connectors of the station module. Table 2 details the pinout designations where an LC assignment gives each logic clip connection a name.
Page 31
Freescale Semiconductor, Inc. Installation Serial Connector and Cable Information Table 2. Pod and Logic Cable Pin Assignments Pod Pin Pod A Signal Pod B Signal Probe Color Brown (BRN) Red (RED) LC10 Orange (ORG) LC11 Yellow (YEL) LC12 Green (GRN)
Freescale Semiconductor, Inc. Installation Power Supply Fuse Replacement The station module power switch/connector assembly contains a standard 1/4 x 1 1/4 inch, 1.6-ampere, 250-volt ceramic, time-delay fuse. Figure 3 shows this assembly with its door open (for fuse replacement). Power Cord Socket...
Page 33
Freescale Semiconductor, Inc. Installation Power Supply Fuse Replacement To replace the fuse, perform these steps: • Press the power switch OFF and disconnect the power cord. • Insert a small screwdriver at the tab on the right edge of the switch/connector assembly.
Page 34
Freescale Semiconductor, Inc. Installation MMDS0508OM/D Installation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. Loading and Initialization Software Distribution Format MMDS software is distributed on 3.5-inch high-density diskettes. The install process places the RAPID environment files and the MMDS software files in the directory designated during the install process. Table 3 describes the system files required to control the MMDS system, where x denotes a version number.
Freescale Semiconductor, Inc. Loading and Initialization Personality Files Personality Files Various designs of MCUs require different configurations of the MMDS system. The appropriate setup for each MCU is specified in a unique personality file. NOTE: These files are shipped with separately purchased EMs.
Freescale Semiconductor, Inc. Loading and Initialization Running MMDS05 To call the debugger executable directly from the DOS prompt, type this command: C:\MMDS05>MMDS05 Note these five options for the startup command: 1. If the MMDS05 is connected to COM2, COM3, or COM4, add the corresponding integer to the command: C:\MMDS05>MMDS05 2...
Freescale Semiconductor, Inc. Loading and Initialization Using MMDS Software Running MMDS08 To call the debugger executable directly from the DOS prompt, type this command: C:\MMDS08>MMDS08 Note these five options for the startup command: 1. If the MMDS08 is connected to COM2, COM3, or COM4, add the corresponding integer to the command: C:\MMDS08>MMDS08 2...
Freescale Semiconductor, Inc. Loading and Initialization MMDS Communication The host program establishes communications with the MMDS system and displays the appropriate debug screen as shown in the section on user screens. If the host program fails to establish communications, an error screen appears and the system operation is returned to DOS.
Freescale Semiconductor, Inc. User Screens Introduction The user interface screen to the MMDS development system consists of a status area, five static main windows and several pop-up windows. The screen displays the code, data and status information required for the user to control the emulation environment. This section provides a description of the screen functionality, including mouse operation.
Page 43
Freescale Semiconductor, Inc. User Screens Main Window Screens MMDS0508OM/D MOTOROLA User Screens For More Information On This Product, Go to: www.freescale.com...
Page 44
Freescale Semiconductor, Inc. Main Window Screens MMDS0508OM/D User Screens MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. User Screens Main Window Screens Table 4. Key Functionality of Debug Screen Windows Description Activate the HELP pop-up window Activate the Code F2 window (if object code is displayed) Activate the Memory F3 window View the bus state analyzer data screen...
Page 46
Freescale Semiconductor, Inc. User Screens Table 5. Status Area Indicators Indicator, Position Status, Meaning Bus analyzer state, left Armed — bus analyzer is armed and waiting for a trigger screen edge, below Disarmed — bus analyzer is disarmed variables F8 window Bus analyzer Continuous all —...
Freescale Semiconductor, Inc. User Screens Main Window Screens CPU Window The CPU window is located at the upper left of the debug screen. This window displays the contents of the accumulator (A register), the index register (X register), the program counter (PC), the stack pointer (SP), and the condition code register (CCR).
Freescale Semiconductor, Inc. User Screens Source Window When a .MAP file exists in the same directory as the .S19 file, the MMDS software loads both files at the same time and the source code generated from the .MAP file is available for use in the debug process.
Freescale Semiconductor, Inc. User Screens Main Window Screens Table 6. Source Window Key Commands Name Description Breakpoint Alt-B Sets or removes a breakpoint at highlighted line Exit Alt-X Terminates debug session Finds the first occurrence of the specified string in the...
Freescale Semiconductor, Inc. User Screens Memory F3 The memory F3 window, located at the right side of the debug screen, Window displays the contents of 32 memory locations. The value stored at a specific location is displayed in both hexadecimal and ASCII format. In the ASCII area to the right in the window, control and other non-printing characters appear as periods (.).
Freescale Semiconductor, Inc. User Screens Pop-Up Windows The MMDS maintains a command buffer of commands entered on the ↓ ↑ command line. The mouse can be used to select the arrow symbols to sequence forwards or backwards through the command buffer.
Freescale Semiconductor, Inc. User Screens Stack Window The temporary stack window appears near the center of the debug screen when the STACK command is entered. As Figure 6 shows, this window displays the contents of the SP register at the top of the window.
Freescale Semiconductor, Inc. User Screens Pop-Up Windows Set Memory The temporary set memory window (Figure 7) appears near the center Window of the debug screen. Enter the set memory (SETMEM) command to customize the memory map. The SETMEM command allows mapping over memory defined as RAM, ROM, or undefined.
Freescale Semiconductor, Inc. User Screens Baud Window The temporary baud window (Figure 8) appears near the center of the debug screen when the baud (BAUD) command is entered. The BAUD command sets the baud rate for communications between the system controller and the host computer.
Freescale Semiconductor, Inc. User Screens Pop-Up Windows For the MMDS08, six clock frequencies are available. The five internally generated clock frequencies are available: 16 MHz, 8 MHz, 4 MHz, 2 MHz, and 1 MHz and an external clock source. The default emulator...
Freescale Semiconductor, Inc. User Screens Mouse Operation MMDS software supports a Microsoft, Logitech, or IBM mouse. Install the mouse according to the manufacturer's instructions, using the accompanying mouse driver software. Mice made by other manufacturers may be compatible, but Motorola does not guarantee their performance with the MMDS system.
Page 57
Freescale Semiconductor, Inc. User Screens Mouse Operation • Source Window – Set the PC to the address of the instruction on a highlighted line — Click on PC at the bottom of the source window. – Set or clear a breakpoint at the highlighted instruction in the source window —...
Freescale Semiconductor, Inc. User Screens Changing Screen Colors To change screen colors, enter the COLORS command from the debug screen; the colors window appears. This window includes a list of screen elements and a matrix of foreground/background color combinations. Each color combination has a 2-digit hexadecimal number.
Freescale Semiconductor, Inc. Operation Fundamentals Introduction An emulation system gives the user the tools needed to develop an embedded MCU application in the most efficient way possible. This section describes the basic operation of the MMDS. Detail of specific commands is available in Command-Line Commands.
Freescale Semiconductor, Inc. Operation Fundamentals System Initialization Setting For best system performance, communications between the host and Communications the station module should be at the maximum available baud rate. At Baud Rate power-up, the MMDS system automatically negotiates the maximum baud for the system.
Freescale Semiconductor, Inc. Operation Fundamentals Custom Memory For creating custom memory configurations, use the customize memory Mapping map (SETMEM) command. When this command is entered, the set memory window appears over the debug screen. Via this window, as many as four blocks of RAM and four blocks of ROM can be defined.
Freescale Semiconductor, Inc. Operation Fundamentals System Initialization Initializing the The MMDS platform board can supply an oscillator clock source for the Clock Speed MCU’s OSC1 input. Clock control is available via the OSC command. Note that many EMs require a specific jumper configuration so that this clock source can be used.
Freescale Semiconductor, Inc. Operation Fundamentals Initializing The assemble instructions (ASM) command is important for making Assembly minor alterations to object code. This command displays the specified Language address and its contents followed by a prompt. Enter a valid instruction and press <CR>. The command assembles the code, stores the code in memory at the indicated address, and displays the instruction.
Freescale Semiconductor, Inc. Operation Fundamentals System Initialization Initializing Memory The block fill (BF) command allows placement of numeric values in a Data block of memory addresses. This command defines a block of memory, then places a byte or word pattern throughout the range.
Freescale Semiconductor, Inc. Operation Fundamentals System Commands System commands for the MMDS perform these functions: • Executing commands contained in script files • Obtaining information about the emulator and the host system • Capturing and saving data displayed on the screen in a log file •...
Freescale Semiconductor, Inc. Operation Fundamentals System Commands The REM command adds a display comment to a script file. When the script file is executed, the system displays this comment. NOTE: All other MMDS commands can be contained in the script file.
Freescale Semiconductor, Inc. Operation Fundamentals The display memory map (SHOWMEM) command displays the RAM and ROM range of the current map. The display help information (HELP) command displays a dialog window from which to access the MMDS help system. Note that the help system is context sensitive: Highlight an element of a screen, then press the F1 help key for corresponding help information.
Freescale Semiconductor, Inc. Operation Fundamentals System Commands NOTE: The LF command does not automatically append a filename extension to log files. Motorola recommends that the extension .log for log files be used. The save screen (SNAPSHOT) command will save the debug screen to an opened log file.
Freescale Semiconductor, Inc. Operation Fundamentals The resize source window (ZOOM) command toggles the size of the source window between normal and enlarged. The enlarged window can be helpful by allowing improved visibility of comments in the source file. The enlarged window will remove the CPU registers window from the debug screen.
Freescale Semiconductor, Inc. Operation Fundamentals Debug Commands Debug Commands The MMDS commands that apply to the debugging phase of system development are described in this section. Setting CPU The contents of the CPU registers and the condition code register are Registers displayed in the CPU window.
Freescale Semiconductor, Inc. Operation Fundamentals As many as 32 variables can be declared in the variables F8 window. The window shows 11 variables at a time. If a map file has been loaded, symbols (labels) from the source code can be used as arguments.
Freescale Semiconductor, Inc. Operation Fundamentals Debug Commands A properly defined breakpoint permits analysis of the contents of registers and memory locations and the states of various signals at designated addresses in the program. NOTE: The idle status also occurs if the system attempts to execute code at an address not defined as a valid memory address.
Freescale Semiconductor, Inc. Operation Fundamentals Bus State Analyzer Commands The bus state analysis (BSA) feature of the MMDS allows for analyzing the operation of the MCU being emulated. The address, data, free- running timer value, and select test points can be captured and analyzed using this powerful feature.
Page 75
Freescale Semiconductor, Inc. Operation Fundamentals Bus State Analyzer Commands command will specify the format for displaying timetag data in the analyzer data screen. The set BSA display mode (BSAMODE) command will specify the format for displaying records in the analyzer data screen.
Page 76
Freescale Semiconductor, Inc. Operation Fundamentals MMDS0508OM/D Operation Fundamentals MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. Bus State Analysis Introduction The MMDS bus state analyzer (BSA) shows the logical state of the target MCU bus. Next to emulation of a target-system MCU, this is the most important capability of a development tool: it enables you to determine what is occurring in a system without actually disturbing the system.
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer Operating the Bus Analyzer To operate the bus state analyzer, you must define events (or terms), select the bus state analyzer mode, specify any options, collect data, then view the data. The following paragraphs explain these actions.
Page 80
Freescale Semiconductor, Inc. Operating the Bus Analyzer MMDS0508OM/D Bus State Analysis MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 81
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer Table 8. Event Definition Values Field Values Meaning Trm en – Term enable Enable the term Blank Disable the term Brk en – Breakpoint enable Make the term a data breakpoint...
Page 82
Freescale Semiconductor, Inc. Bus State Analysis Table 9. Setup Screen Key Commands Name Description ↓ Move Down Moves cursor down to lower line. ↑ Move Up Moves cursor up to higher line. ← Move Left Moves cursor to selection to the left.
Page 83
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer Part of event definition can be defining ranges from one term to another. To establish a range, you put an X in the range field of a term-definition line of the setup screen. But note that the event A line does not have a range field.
Freescale Semiconductor, Inc. Bus State Analysis Selecting the To select a mode, put an X in one of the nine mode fields in the bottom Trigger Mode half of the bus state analyzer setup screen. Table 10 explains the modes.
Page 85
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer Table 10. Analyzer Modes (Continued) Mode Description When you enter the ARM and GO commands, the trace A→B→C!D buffer begins storing data from all cycles. This continues through the occurrence of three events, A, B, and C, in order, if event D does not occur.
Freescale Semiconductor, Inc. Bus State Analysis Other function keys in the setup screen allow for clearing of the setup screen as well as storing and using setup files. To cancel the entire bus state analyzer setup, press <ESC>. To clear the setup screen, making it ready to redefine events and reselect a mode, press the F8 key.
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer If you select Programmable , you must enter a frequency in the range of 50 Hz to 50 kHz, as the pop-up window requests. The MMDS will provide a frequency close to the desired frequency and display it to the screen.
Freescale Semiconductor, Inc. Bus State Analysis Viewing Data To view bus analyzer data, press the F4 function key from the debug screen; this key brings up the bus state analyzer data screen (Figure 12). The word loading flashes in the upper right corner of the screen as the software loads trace-buffer contents into the host computer.
Page 89
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer MMDS0508OM/D MOTOROLA Bus State Analysis For More Information On This Product, Go to: www.freescale.com...
Page 90
Freescale Semiconductor, Inc. Bus State Analysis Table 11. Data Screen Key Commands Name Description ↓ Scroll Down Scrolls cursor down to next line. ↑ Scroll Up Scrolls cursor up to preceding line. Page Page down Scrolls down to next page.
Page 91
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer Figure 12 shows the data screen as it displays raw bus cycles. Figure shows this screen's display of instructions, Figure 14 shows a mixed instructions and raw bus cycle display, and...
Page 92
Freescale Semiconductor, Inc. Operating the Bus Analyzer MMDS0508OM/D Bus State Analysis MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 93
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer MMDS0508OM/D MOTOROLA Bus State Analysis For More Information On This Product, Go to: www.freescale.com...
Page 94
Freescale Semiconductor, Inc. Operating the Bus Analyzer MMDS0508OM/D Bus State Analysis MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer Searching the The bus state analyzer includes a search utility, enabling you to search Trace Buffer the trace buffer for a frame that contains a specific bit configuration. To start this utility, press the F3 key from the data screen. This brings up the...
Freescale Semiconductor, Inc. Bus State Analysis The address and data fields are hexadecimal. In these fields, you can specify a range by using the Xs for the less-significant digits. For example, 03XX in the Address field searches for addresses in the range of 0300--03FF.
Page 97
Freescale Semiconductor, Inc. Bus State Analysis Operating the Bus Analyzer For example, if the beginning time tag is 3.26778887E03 and the ending time tag is 3.2677928E03, the difference is 0.00000400 seconds, or 4 µs. If the time tag is represented in clock periods, the procedure is the same, ∆...
Page 98
Freescale Semiconductor, Inc. Bus State Analysis MMDS0508OM/D Bus State Analysis MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 100
Freescale Semiconductor, Inc. Command-Line Commands HELP — Display Help Information ......132 HOMEBSA — Go to Trace Buffer Start ....133 HREG —...
Page 102
Freescale Semiconductor, Inc. Command-Line Commands Introduction Keyboard entry is the primary means of MMDS control. Individual commands are entered at the command-line prompt in the debug F10 window. The commands are used to initialize emulation memory, display and store data, debug user code, and control flow of code execution.
Page 103
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Table 13. Argument Types Argument Type Syntax Indicators Explanation Hexadecimal values, unless otherwise noted. Leading zeros can be omitted. For decimal values, use the prefix ! Numeric <n>, <count>, <data> or the suffix T. For binary values, use the prefix % or the suffix Q.
Page 104
Freescale Semiconductor, Inc. Command-Line Commands Table 14. Command Sumary Table 14. Command Sumary (Continued) Mnemonic Description Mnemonic Description Set accumulator Set HX index register Set accumulator Set/Clear I Bit Arm Bus State Analyzer INFO Display Line Information Assemble Instruction Log File...
Page 105
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Table 14. Command Sumary (Continued) Table 14. Command Sumary (Continued) Mnemonic Description Mnemonic Description SCREENBSA Log Bus State Analyzer Screen SYSINFO System Information SCRIPT Execute Script File Single Step (Trace) SETMEM Customize Memory Map...
Page 106
Freescale Semiconductor, Inc. Command-Line Commands Set Accumulator The A command sets the accumulator to a specified value. (The A and ACC commands are identical.) Syntax: A < n > Where: < n > The value to be loaded into the accumulator.
Page 107
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set Accumulator The ACC command sets the accumulator to a specified value. The ACC and A commands are identical. Syntax: ACC < n > Where: < n > The value to be loaded into the accumulator Example: >ACC 20 Set the accumulator to 20.
Page 108
Freescale Semiconductor, Inc. Command-Line Commands Arm Bus State Analyzer The ARM command arms the bus state analyzer. When armed, the analyzer records bus cycles while the emulator is executing user code. Arming the analyzer clears the current contents of the analyzer trace buffer.
Page 109
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Assemble Instructions The ASM command assembles M68HC05 Family or M68HC08 Family instruction mnemonics and places the resulting machine code into memory at a specified address. The command displays the specified address, its contents, and a prompt for an instruction.
Page 110
Freescale Semiconductor, Inc. Command-Line Commands BAUD BAUD Set Communications Baud Rate The BAUD command changes the baud rate for communications between the system controller and the host computer. For best performance of the system, communications should be at the maximum available baud rate.
Page 111
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations BAUDCHK BAUDCHK Baud Rate Check The BAUDCHK command sets the communication rate between the host software and the MMDS system. The command first checks communication at the maximum possible rate of 57600 baud and successively lowers the rate until communication with the MMDS is established.
Page 112
Freescale Semiconductor, Inc. Command-Line Commands BELL BELL Sound Bell The BELL command sounds the computer bell the specified hexadecimal number of times. The bell sounds once if an argument is not entered. To turn off the bell as it is sounding, press any key.
Page 113
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Block Fill The BF command fills a block of memory with a specified byte or word. If the system cannot verify a write to one of the designated memory locations, it will stop command execution and report an error condition.
Page 114
Freescale Semiconductor, Inc. Command-Line Commands Set Instruction Breakpoint The BR command sets an instruction breakpoint at a specified address or range of addresses. If a map file has been loaded, symbols (or labels) from the source code can be used as arguments. The maximum number of all instruction breakpoints is 64.
Page 115
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations BSAMODE BSAMODE BSA Display Mode The BSAMODE command sets the bus state analyzer display mode to raw, instruction, mixed, or source. This command is equivalent to the BSA data screen F4 key. Syntax: Display BSA <...
Page 116
Freescale Semiconductor, Inc. Command-Line Commands BSATT BSATT BSA Timetag Mode This command sets the bus state analyzer timetag mode to absolute, relative, none, or cycles. This command is equivalent to the BSA data screen F8 key. Syntax: BSA TT < n >...
Page 117
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set/Clear C Bit The C command sets the C bit of the condition code register (CCR) to the specified value. NOTE: The CCR bit designators are located at the lower right of the CPU window.
Page 118
Freescale Semiconductor, Inc. Command-Line Commands Set Condition Code Register The CCR command sets the condition code register (CCR) to the specified hexadecimal value. NOTE: The CCR bit designators are located at the lower right of the CPU window. The CCR pattern is V11HINZC (V is two’s complement overflow for M68HC08 MCU only and is 1 for M68HC05 MCU, H is half-carry, I is IRQ interrupt mask, N is negative, Z is zero, and C is carry).
Page 119
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations CHIPINFO CHIPINFO Chip Help Information The CHIPINFO command accesses register, memory-map, vector, and pin-out information about the emulation MCU. Entering this command brings up the topics window as shown in Figure 17. Select a topic to bring up a subordinate window.
Page 120
Freescale Semiconductor, Inc. Command-Line Commands CLEARMAP CLEARMAP Remove Symbols The CLEARMAP command removes the symbol definitions in the host computer. If a map file is loaded, symbols (or labels) from the source code can be used as arguments for many other commands.
Page 121
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations COLORS COLORS Set Screen Colors The COLORS command sets the screen colors. Entering this command brings up the colors window. This window includes a list of screen elements and a matrix of foreground/background color combinations;...
Page 122
Freescale Semiconductor, Inc. Command-Line Commands DARM DARM Disarm Bus State Analyzer The DARM command disarms the bus state analyzer. When disarmed, the analyzer does not record bus cycles. The word Disarmed appears in the status area of the debug screen. (If the bus state analyzer is already disarmed, this command does nothing.)
Page 123
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations DASM DASM Disassemble Instructions The DASM command disassembles three or more machine instructions, displaying the addresses and the contents as disassembled instructions. Disassembly begins at the specified address. The valid address range is $0000 to $FFFF.
Page 124
Freescale Semiconductor, Inc. Command-Line Commands ENDBSA ENDBSA Go to Trace Buffer End The ENDBSA command sets the trace buffer pointer to the last record of trace data. This command requires an open log file and loaded uploaded trace buffer data. Subsequent execution of the SCREENBSA command logs the last 20 records of analyzer data to the open log file.
Page 125
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations EVAL EVAL Evaluate Argument The EVAL command performs mathematical operations on two numerical arguments. It displays the value of the result in hexadecimal, decimal, octal, and binary formats denoted by the suffixes H, T, O, and Q.
Page 126
Freescale Semiconductor, Inc. Command-Line Commands EXIT EXIT Terminate Host Session The EXIT command terminates the host session and returns to DOS. The EXIT and QUIT commands are identical. Another way to end a host session is to enter the ALT-X keyboard combination.
Page 127
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Begin Program Execution The G command starts execution of code in the emulator at the current address or at a specified address. If one address is entered, it is the starting address. If two addresses are entered, execution begins at the first and stops at the second.
Page 128
Freescale Semiconductor, Inc. Command-Line Commands GETBSA GETBSA Upload Trace Buffer The GETBSA command uploads the contents of the bus state analyzer trace buffer to the host computer. This is convenient when using a script file in conjunction with the bus state analyzer. Alternatively, the trace buffer data can be retrieved and displayed using the F4 function key.
Page 129
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Begin Program Execution The GO command starts execution of code in the emulator at the current address or at a specified address. If one address is entered, it is the starting address. If two addresses are entered, execution begins at the first and stops at the second.
Page 130
Freescale Semiconductor, Inc. Command-Line Commands GOTIL GOTIL Execute Program until Address The GOTIL command executes the program in the emulator, beginning at the address in the program counter (PC). Execution continues until the program counter contains the specified address during an opcode fetch cycle.
Page 131
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set/Clear H Bit The H command sets the H bit of the condition code register (CCR) to the specified value. NOTE: The CCR bit designators are at the lower right of the CPU window. The CCR pattern is V11HINZC (V is two’s complement overflow for...
Page 132
Freescale Semiconductor, Inc. Command-Line Commands HELP HELP Display Help Information The HELP command displays a list of help topics such as commands and function keys. If commands are selected, the software displays an alphabetic index of the command set from which a command can be selected. To select help for a command, highlight the command using the page up/down keys and the arrow keys, then press <CR>.
Page 133
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations HOMEBSA HOMEBSA Go to Trace Buffer Start The HOMEBSA command sets the trace buffer pointer to the first record of trace data. This command requires an open log file and loaded uploaded trace buffer data. Subsequent execution of the SCREENBSA command logs the first 20 records of analyzer data to the open log file.
Page 134
Freescale Semiconductor, Inc. Command-Line Commands HREG HREG Set H Register NOTE: This command is for the MMDS08 only. The HREG command sets the upper byte of the index register to the specified value. Syntax: HREG < n > Where: < n >...
Page 135
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set H:X Index Register NOTE: This command is for the MMDS08 only. The HX command sets both bytes of the concatenated index register (H:X) to the specified value. Syntax: HX < n >...
Page 136
Freescale Semiconductor, Inc. Command-Line Commands Set/Clear I Bit The I command sets the I bit in the condition code register (CCR) to the specified value. NOTE: The CCR bit designators are at the lower right of the CPU window. The CCR pattern is V11HINZC (V is two’s complement overflow for...
Page 137
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations INFO INFO Display Line Information The INFO command displays information about the highlighted line in the source window. This information includes the name of the file being displayed in the window, the line number, address, corresponding object code, and the disassembled instruction.
Page 138
Freescale Semiconductor, Inc. Command-Line Commands Log File The LF command starts or stops logging of commands and responses to an external file. If logging is not enabled, enter this command to start logging. While logging remains in effect, any line that is appended to the command log window also is written to the log file.
Page 139
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations LOAD LOAD Load S19 File The LOAD command loads a file in .S19 format (and any map file with the same name) into the emulator. If no argument is supplied, the command pops up a file select window.
Page 140
Freescale Semiconductor, Inc. Command-Line Commands LOADMAP LOADMAP Load Symbols The LOADMAP command loads a map file that contains symbol information from source code. If no argument is supplied, the command pops up a file select window. Syntax: LOADMAP [< filename >] Where: <...
Page 141
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations LOADMEM LOADMEM Load Personality File Personality files are used to customize the emulation memory map for a specific microcontroller device. A personality file to be loaded could have been shipped with an emulation module (EM) or could have been created by pressing the F6 key in the SETMEM window.
Page 142
Freescale Semiconductor, Inc. Command-Line Commands LOADTRIGGERS LOADTRIGGERS Load Bus State Analyzer Setup The LOADTRIGGERS command loads the bus state analyzer setup information from the specified file. To write such a file, use the bus state analyzer setup screen to define the triggers, then press the F6 key.
Page 143
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Memory Display The MD command displays (in the memory F3 window) the contents of 32 emulation memory locations. The specified address is the first of the 32 locations. If a log file is open, this command also writes the first 16 values to the log file.
Page 144
Freescale Semiconductor, Inc. Command-Line Commands Memory Modify The MM command lets the user interactively examine and modify contents of memory locations. Writes to memory are verified and a "write did not verify" is displayed if the write could not be verified. Note that this message may be acceptable in some situations, such as writing to registers that have write-only bits.
Page 145
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Memory Modify Where: < data > The value to be stored at the < address > argument. < terminator > The command terminator character controls the next step in the command flow. The four choices are: a.
Page 146
Freescale Semiconductor, Inc. Command-Line Commands Set/Clear N Bit The N command sets the N bit of the condition code register (CCR) to the specified value. NOTE: The CCR bit designators are at the lower right of the CPU window. The CCR pattern is V11HINZC (V is two’s complement overflow for...
Page 147
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations NEXTA NEXTA Go to Next A Event The NEXTA command displays the next occurrence of an A event in the debug window. If a log file is open, this command also writes that frame to the log file.
Page 148
Freescale Semiconductor, Inc. Command-Line Commands NEXTB NEXTB Go to Next B Event The NEXTB command displays the next occurrence of a B event in the debug window. If a log file is open, this command also writes that frame to the log file. If the NEXTB event cannot be found, the last captured event in the trace buffer is displayed.
Page 149
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations NEXTC NEXTC Go to Next C Event The NEXTC command displays the next occurrence of a C event in the debug window. If a log file is open, this command also writes that frame to the log file.
Page 150
Freescale Semiconductor, Inc. Command-Line Commands NEXTD NEXTD Go to Next D Event The NEXTD command displays the next occurrence of a D event in the debug window. If a log file is open, this command also writes that frame to the log file. If the NEXTD event cannot be found, the last captured event in the trace buffer is displayed.
Page 151
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations NEXTE NEXTE Go to Next Event The NEXTE command positions the bus state analyzer display at the next occurrence of any event. The data record is displayed in the debug window. If a log file is open, this command also writes that frame to the log file.
Page 152
Freescale Semiconductor, Inc. Command-Line Commands NOBR NOBR Clear Breakpoints The NOBR command clears one instruction breakpoint, all instruction breakpoints, or all instruction breakpoints within an address range. If a map file has been loaded, symbols (or labels) from the source code can be used as arguments.
Page 153
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Select Emulator Clock Frequency The MMDS platform board can supply an oscillator clock source for the MCU’s OSC1 input. For the MMDS05, five clock frequencies are available. The four internally generated clock frequencies are available: 8 MHz, 4 MHz, 2 MHz, and 1 MHz and an external clock source.
Page 154
Freescale Semiconductor, Inc. Command-Line Commands Set Program Counter The PC command sets the program counter (PC) to the specified address. Syntax: PC < address > Where: < address > The new address value for the PC Example: PC 0500 Set the PC to 0500.
Page 155
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations QUIT QUIT Terminate Host Session The QUIT command terminates the host session and returns to DOS. The QUIT and EXIT commands are identical. Another way to end a host session is to enter the ALT-X keyboard combination.
Page 156
Freescale Semiconductor, Inc. Command-Line Commands Display Registers The REG command displays the contents of the CPU registers in the debug F10 window. The command also will display the instruction pointed to by the current program counter value. Syntax: Example: >REG...
Page 157
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Add Comment to Script File The REM command adds a display comment to a script file. When the script file is executed, the system displays this comment. Syntax: REM < text > Where: <text>...
Page 158
Freescale Semiconductor, Inc. Command-Line Commands RESET RESET Reset Emulation MCU The RESET command resets the emulation MCU and sets the program counter to the contents of the reset vector. This command does not start execution of user code. To reset and execute user code, use the RESETGO or WAIT4RESET command.
Page 159
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations RESETGO RESETGO Reset and Restart MCU The RESETGO command resets the emulation MCU, sets the program counter (PC) to the contents of the reset vector, then starts execution from that address. Syntax: RESETGO Example: >RESETGO...
Page 160
Freescale Semiconductor, Inc. Command-Line Commands RESETIN RESETIN Reset Input Enable The RESETIN command makes it possible for the target system to reset the emulating MCU. Entering this command toggles the MMDS state with regard to a reset signal from the target system. If this state is enabled, a reset signal from the target system resets the emulating MCU.
Page 161
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations RESETOUT RESETOUT Reset Output Enable The RESETOUT command makes it possible for the MMDS RESET command to reset the target system. Entering this command toggles the MMDS state with regard to resetting the target system. If this state is enabled, entering the RESET command resets both the emulating MCU and the target system.
Page 162
Freescale Semiconductor, Inc. Command-Line Commands RTMEM RTMEM Set Real-Time Memory Block The RTMEM command enables real-time-memory, starting at a specified address. The real-time memory consists of 32 bytes of dual-ported memory that is assigned to any valid memory address by this command.
Page 163
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations RTVAR RTVAR Display Real-Time Variable The RTVAR command displays the specified address and its contents in the variables F8 window as a real-time variable. If a MAP file is loaded, symbols from the source code can be used as arguments.
Page 164
Freescale Semiconductor, Inc. Command-Line Commands RTVAR RTVAR Display Real-Time Variable Examples: >RTVAR 100 Display (in hexadecimal and binary) the byte address 100 >RTVAR.B 110 Display (in hexadecimal and binary) the byte address 110 >RTVAR.W 102 Display (in hexadecimal and decimal) the...
Page 165
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations SCREENBSA SCREENBSA Log Bus State Analyzer Screen The SCREENBSA command copies the current bus state analyzer display to an open log file. Syntax: SCREENBSA Example: >SCREENBSA Copy the bus state analyzer display to the log file.
Page 166
Freescale Semiconductor, Inc. Command-Line Commands SCRIPT SCRIPT Execute Script File The SCRIPT command executes a script file, which contains a sequence of emulator commands. Executing the script file has the same effect as executing the individual commands one after another. This makes a script file convenient for any sequence of commands that is needed often, such as unit test or initialization command sequences.
Page 167
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations SETMEM SETMEM Customize Memory Map The SETMEM command allows customizing of the memory map. Entering this command brings up the custom map window as shown in Figure 18. The current RAM and ROM configuration will be shown in the window.
Page 168
Freescale Semiconductor, Inc. Command-Line Commands SETMEM SETMEM Customize Memory Map The SETMEM command allows mapping over undefined memory or memory defined as RAM or ROM. Do not map over such internal resources as option RAM, I/O, or EEPROM. The SETMEM command automatically maps around internal resources.
Page 169
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations SHELL SHELL Access DOS The SHELL command allows access to DOS in the host computer. To return to MMDS from DOS, enter EXIT at the DOS prompt. MMDS continues to run during the shell to DOS. This could mean that the memory for other software is insufficient.
Page 170
Freescale Semiconductor, Inc. Command-Line Commands SHOWBSA SHOWBSA Display Trace Buffer This command copies a specified range of the current BSA display to the debug window and an open log file. Syntax: SHOWBSA < range > Where: < range > The range of BSA frames a beginning frame and an ending frame separated by a space.
Page 171
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations SHOWMEM SHOWMEM Display Memory Map The SHOWMEM command displays only the MMDS resources. That is memory that is resident on the control board during emulation. Use the CHIPINFO command memory map feature to view internal I/O, option RAM, and EEPROM locations.
Page 172
Freescale Semiconductor, Inc. Command-Line Commands SHOWTRIGGER SHOWTRIGGER Print Trigger The SHOWTRIGGER command displays the trigger frame of the bus state analyzer buffer. If a log file is open, this command also writes the trigger frame to the log file. Syntax:...
Page 173
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations SNAPSHOT SNAPSHOT Save Screen The SNAPSHOT command saves a copy of the main screen to the open log file. A log file must be open or this command has no effect. NOTE: The main screen includes certain extended ASCII characters. When subsequently viewing a screen snapshot, a standard ASCII editor will display a few characters that do not match the original screen.
Page 174
Freescale Semiconductor, Inc. Command-Line Commands SOURCE SOURCE Source Window Display The SOURCE command toggles between source code and disassembled code in the source/code F2 window, located at the upper right of the debug screen. On entering MMDS software, the window defaults to disassembled code, the window title is CODE F2, and window contents are a disassembled representation of MCU memory.
Page 175
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Single Step (Trace) The ST command executes a specified hexadecimal number of instructions, beginning at the current program counter (PC) address value. If a number is not specified, this command executes one instruction. The ST, STEP, and T commands are identical.
Page 176
Freescale Semiconductor, Inc. Command-Line Commands STACK STACK Display Stack The temporary stack window appears near the center of the debug screen when the STACK command is entered. As Figure 19 shows, this window displays the contents of the SP register at the top of the window.
Page 177
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations STEP STEP Single Step (Trace) The STEP command executes a specified hexadecimal number of instructions, beginning at the current program counter (PC) address value. If a number is not specified, this command executes one instruction.
Page 178
Freescale Semiconductor, Inc. Command-Line Commands STEPFOR STEPFOR Step Forever The STEPFOR command begins continuous instruction execution, beginning at the current program counter (PC) address value. Execution stops when a key is pressed. Syntax: STEPFOR NOTE: Do not use any step command (ST, STEP, STEPFOR, STEPTIL, or T) if the PC points to internal RAM (for instance, option RAM) or EEPROM or if the code branches into internal RAM or EEPROM.
Page 179
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations STEPTIL STEPTIL Single Step to Address The STEPTIL command continuously executes instructions from the current program counter (PC) address value until the PC reaches the specified address. Syntax: STEPTIL < address > Where: <...
Page 180
Freescale Semiconductor, Inc. Command-Line Commands STOP STOP Stop Program Execution The STOP command stops user program execution and updates the debug screens with current data. Syntax: STOP Example: >STOP Stop program execution and update the debug screen. MMDS0508OM/D Command-Line Commands...
Page 181
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set Multiplexer The SXB command sets the analyzer to capture either a 16-bit timetag counter and the eight pod B logic clips or a 24-bit timetag counter. The default is to use the 16-bit timetag and pod B.
Page 182
Freescale Semiconductor, Inc. Command-Line Commands SYSINFO SYSINFO System Information The SYSINFO command calls to DOS for the amount of memory available, then displays this information in the debug F10 window. Syntax: SYSINFO Example: >SYSINFO Show system information. Total memory available: 187488...
Page 183
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Single Step (Trace) The T command executes a specified hexadecimal number of instructions beginning at the current program counter (PC) address value. If a number is not specified, this command executes one instruction. The T, ST, and STEP commands are identical.
Page 184
Freescale Semiconductor, Inc. Command-Line Commands TIMETAG TIMETAG Time Tag Clock Source The TIMETAG command selects the source and frequency for the analyzer time tag clock. Entering this command with no parameter values brings up the time tag window, from which you can select a frequency or a source.
Page 185
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations TIMETAG TIMETAG Time Tag Clock Source <rate> The frequency for the timetag clock. When specifying the internal source, the value is in MHz with 1, 2, 4, 8, and 16 as the possible options. The programmable timetag source requires an integer value between 50 and 50,000 Hz.
Page 186
Freescale Semiconductor, Inc. Command-Line Commands Set/Clear V Bit NOTE: This command is for the MMDS08 only. The V command sets the V bit in the condition code register (CCR) to the specified value. NOTE: The CCR bit designators are at the lower right of the CPU window. The CCR pattern is V11HINZC (V is overflow, H is half-carry, I is IRQ interrupt mask, N is negative, Z is zero and C is carry).
Page 187
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Display Variable The VAR command displays the specified address and its contents in the variables F8 window. If a map file has been loaded, symbols and labels from the source code can be used as arguments.
Page 188
Freescale Semiconductor, Inc. Command-Line Commands Display Variable Examples: >VAR 100 Display (in hexadecimal and binary) the byte at address 100 >VAR.B 110 Display (in hexadecimal and binary) the byte at address 110 >VAR.W 102 Display (in hexadecimal and decimal) the word address 102 >VAR.S 200 5Display the 5-character ASCII string starting at...
Page 189
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Display Version The VER command displays the version of the host software and of the current personality (.MEM) file. The abbreviated VER is equivalent to the VERSION command. Syntax: Example: >VER Display the version numbers of the host software and the currently loaded personality file.
Page 190
Freescale Semiconductor, Inc. Command-Line Commands VERSION VERSION Display Version The VERSION command displays the version of the host software and of the current personality (.MEM) file. The abbreviated VER form of this command also can be used. Syntax: VERSION Example: >VERSION...
Page 191
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations View File The VF command allows the user to view any file. If no argument is supplied, the command pops up a file select window. Syntax: VF [< filename >] Where: < filename >...
Page 192
Freescale Semiconductor, Inc. Command-Line Commands WAIT WAIT Pause between Commands The WAIT command causes the command interpreter to pause for a specified hexadecimal number of seconds. (The default is five.) This command is useful primarily in script files. Syntax: WAIT [< n >] Where: <...
Page 193
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations WAIT4RESET WAIT4RESET Wait for Target Reset The WAIT4RESET command puts the emulation MCU into the reset state until the target system provides a reset signal. For this command to function properly, enable the state of the MMDS with a reset signal from the target system.
Page 194
Freescale Semiconductor, Inc. Command-Line Commands WHEREIS WHEREIS Display Symbol Value The WHEREIS command displays a symbol or address. If the argument is a symbol, this command displays the symbol's address. If the argument is an address, this command displays the corresponding symbol, if one is assigned.
Page 195
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set X Index Register The X command sets the index register (X) to the specified value. The X command is identical to the XREG command. Syntax: X < n > Where: < n >...
Page 196
Freescale Semiconductor, Inc. Command-Line Commands XREG XREG Set X Index Register The XREG command sets the index register (X) to the specified value. The XREG command is identical to the X command. Syntax: XREG < n > Where: < n >...
Page 197
Freescale Semiconductor, Inc. Command-Line Commands Command Explanations Set/Clear Z Bit The Z command sets the Z bit in the condition code register (CCR) to the specified value. NOTE: The CCR bit designators are at the lower right of the CPU window. The CCR pattern is V11HINZC (V is two’s complement overflow for...
Page 198
Freescale Semiconductor, Inc. Command-Line Commands ZOOM ZOOM Resize Source Window The ZOOM command toggles the size of the source window between normal and enlarged. Another way to resize the source window is to enter the ALT-Z keyboard combination. Syntax: ZOOM Example: >ZOOM...
Freescale Semiconductor, Inc. S-Record Information S-Record Content When observed, S-records are essentially character strings made of several fields which identify the record type, record length, memory address, code/data, and checksum. Each byte of binary data is encoded as a two-character hexadecimal number: the first character representing the high-order four bits and the second the low-order four bits of the byte.
Freescale Semiconductor, Inc. S-Record Information S-Record Types S-Record Types Eight types of S-records have been defined to accommodate the several needs of the encoding, transportation, and decoding functions. The various Motorola upload, download, and other record transportation control programs, as well as cross assemblers, linkers, and other file-creating or debugging programs, utilize only those S-records which serve the purpose of the program.
Freescale Semiconductor, Inc. S-Record Information S-Record Creation S-record format programs may be produced by dump utilities, debuggers, cross assemblers, or cross linkers. Several programs are available for downloading a file in S-record format from a host system to an 8-bit or 16-bit microprocessor-based system.
Page 203
Freescale Semiconductor, Inc. S-Record Information S-Record Example The first S1 record is explained in Table Table 17. S1 Record Description S-Record Field Description Entry Type S-record type S1, indicating a code/data record to be loaded/verified at a two-byte address. Record...
Page 204
Freescale Semiconductor, Inc. S-Record Information The S9 termination record is explained in Table Table 18. S9 Record Description S-Record Field Description Entry Type S-record type S9, indicating a termination record. Record Hexadecimal 03, indicating three character pairs Length (three bytes) follow.
Page 205
Freescale Semiconductor, Inc. Index Power ......27 Target ......27 .
Page 206
Freescale Semiconductor, Inc. Index ..... 57, 73, 129 SHOWBSA ..... 170 GOTIL .
Page 207
Freescale Semiconductor, Inc. Index CPU Registers Reset Switch .....28 Setting ......71 Signal Descriptions, Connector .
Page 208
Freescale Semiconductor, Inc. Index LOADMEM ......141 LOADTRIGGERS ....142 .
Page 209
Freescale Semiconductor, Inc. Index MMDS08 Debug Screen ... . 44 SYSINFO ......182 Set Memory Window .
Page 210
Freescale Semiconductor, Inc. Index MMDS0508OM/D Index MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 211
Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
Page 212
Freescale Semiconductor, Inc. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages.
Need help?
Do you have a question about the Motorola MMDS0508 and is the answer not in the manual?
Questions and answers