General Description 1.1 Introduction The M68MMDS05/08 Motorola Modular Development System (MMDS) is a tool for developing embedded systems based on an MC68HC05 or MC68HC08 microcontroller unit (MCU). A modular emulation system, the MMDS provides interactive control of a microcontroller application when connected to your target system.
G e n er a l De s cr ip t io n System Components • 64 hardware instruction breakpoints over the 64-kilobyte memory map • A personality file for each EM. (Each personality file defines a memory-map.) • Latch-up resistant design (47-Ω series resistor on I/O connections to the target system) to make power-up sequencing unimportant.
Page 7
• 9-lead RS-232 serial cable: the cable that connects the station module to the host- computer RS-232 port. • Serial adapter: a DB9M-to-DB25F RS-232 adapter, for use with a 25-pin host- computer serial port. • Two logic clip cable assemblies: twisted-pair cables that connect the station module to your target system, a test fixture, a clock, an oscillator, or any other circuitry useful for evaluation or analysis.
Page 8
Freescale Semiconductor, Inc. G e n er a l De s cr ip t io n System Components 1–8 MMDS0508 Target Interface For More Information: www.freescale.com...
Installation Installation 2.1 Introduction Complete MMDS installation consists of: • Configuring the platform board, • Configuring the emulation module (EM), • Installing the EM, and • Making system cable connections. This section explains all items except EM configuration. (As EM configuration is specific to each EM, you must follow the instructions of your EM user's manual.) Additionally, this sections explains how to remove an EM from the station module.
Freescale Semiconductor, Inc. Ins t a ll at ion Introduction Figure 2.1 M68MMDS0508 Station Module (Right Side) 2–10 MMDS0508 Target Interface For More Information: www.freescale.com...
Figure 2.2 M68MMDS0508 Station Module (Left Side) Power Cord Socket Power Switch 9-Pin Serial Connector +5V Out 2.2 Configuring the Platform Board The MMDS platform board has four jumper headers, all located near the front. Jumper header J1 is for factory test. Jumper headers J2, J3, and J4 control the voltage levels for ports A through D.
Ins t a ll at ion Configuring the Platform Board Figure 2.3 Factory Test Header (J1) (Ignore the alternate jumper position, which is reserved for factory tests.) 2.2.2 Port Voltage Control Headers (J2–J4) Jumper headers J2 through J4, near the right front corner of the platform board, set the voltage levels for ports A through D.
2.3 Installing the EM CAUTION Be sure to turn off power to the MMDS when you install or remove an EM. This prevents power surges that could damage MMDS circuits. Follow these steps to install an EM in the MMDS enclosure: 1.
Ins t a ll at ion Making Cable Connections 2.5 Making Cable Connections You must connect the station module to the host computer and to line power. According to your specific application, you also may need to connect the EM to your target system, or to connect the logic clip cable assemblies.
If you need the second logic cable assembly, connect it in the same way to the remaining pod connector of the station module. Make target-system connections as for the first cable. 2.5.3 Target Cable Connection To connect the MMDS to a target system, you must use a target cable assembly: a target cable and a target head.
Page 16
Freescale Semiconductor, Inc. Ins t a ll at ion Making Cable Connections 2–16 MMDS0508 Target Interface For More Information: www.freescale.com...
Connector Information 3.1 Introduction This section provides pin assignments and signal descriptions for connectors common to all MMDS systems. For similar information about EM connectors, see the corresponding EM user's manual. Additionally, this section explains the reset switch, and fuse replacement. 3.2 Reset Switch RS-232 handshake signals control MMDS resets.
C o n n e ct o r I n f o rm at i o n Logic Cables and Connectors Table 3.1 . Serial Connector and Cable Pin Assignments Connector Pin Mnemonic 3.4 Logic Cables and Connectors The diagram below shows the pin numbering for both pod A and pod B logic cable connectors.
Page 19
Table 3.2 . Pod and Logic Cable Pin Assignments Pod Pin Note these points: • Pins 19 of both pods provide connection to an external ground. • Pod A pin 17 is the external clock input for the emulator. To use this source, make the desired clock connection to the white probe tip, then use the OSC command to select an external source.
C o n n e ct o r I n f o rm at i o n Power Supply Fuse Replacement • Pod B pin 17 is the external timetag input for the bus state analyzer. To use this source, make the desired clock connection to the white probe tip, then use the TIMETAG command to select an external time tag source for the analyzer.
Page 21
2. Insert a small screwdriver at the tab on the right edge of the switch/connector assembly. (Figure 1 shows where to insert the screwdriver.) Gently pry open the assembly door, which swings open to the left. 3. Remove the fuse holder from the switch/connector assembly. Remove the fuse from the holder.
Page 22
Freescale Semiconductor, Inc. C o n n e ct o r I n f o rm at i o n Power Supply Fuse Replacement 3–22 MMDS0508 Target Interface For More Information: www.freescale.com...
MMDS Target Component 4.1 Introduction An advanced feature of the debugger for the embedded systems development world is the ability to load different target components, which implement the interface with target systems. This document introduces the MMDS0508 Modular Development System for the MC68HC05 and MC68HC08 MCU families. The MMDS is a Motorola interface that the debugger uses to communicate with an external system (also called a target system).
MM D S T a r g e t C o mp o n en t 4.2 General 4.2 General This chapter describes the specific features of the MMDS0508, including emulation memory mapping, as well as the function and purpose of the bus analyzer. The explanations of windows and dialog boxes are with the explanations of corresponding MMDS0508 features.
4.3 Definitions, Acronyms and Abbreviations 4.3.1 DLL Dynamic Link Library: A Microsoft Windows library file for dynamic linking. 4.3.2 Dynamic Linking Dynamic Linking: A Windows process that links a function call in one module to the actual function (in the library module), at run time. 4.3.3 MMDS0508 Server The MMDS hardware access library that interfaces across the RS-232 port to the MMDS0508 station.
MM D S T a r g e t C o mp o n en t 4.5 Loading the MMDS0508 Target computer to be a data terminal, so that it sends data on the TxD lead and receives data on the RxD lead (as shown in explains).
The MotoSIL driver automatically tries to find the MMDS target, behaving as text above explains. If MotoSIL does not detect a target, the MotoSIL item remains in the main menu bar as shown in Figure 4.4: Figure 4.4 Loading MotoSIL Target But after successful target loading, the MMDS0508 menu replaces the Target or MotoSIL menu in the main menu bar as show in Figure 4.5...
MM D S T a r g e t C o mp o n en t 4.6 Communication Configuration Figure 4.6 MotoSIL Communication Configuration Make sure that host-computer parameter values are correct; make sure that the serial- communication setting is correct. Otherwise, communication between the debugger and the target is not possible.
NOTE Saving the communication device and the baud rate through this dialog box overrides environment variables BAUDRATE and COMDEV of the default.env file. 4.6.2 Data Format The MMDS0508 data format is 8 data bits, 1 stop bit, no parity, and a variable baud rate.
MM D S T a r g e t C o mp o n en t 4.8 MMDS0508 Menu Entries Figure 4.9 MMDS Menu Entries 4.8.1 Communication Baud Rate You should specify the baud rate for host-computer-to-MMDS0508 communication early in a session. The system operates most efficiently at the maximum baud rate that the host computer supports.
4.8.1.2 Maximum Baud Rate The maximum baud rate depends on the speed and interrupt load of the host computer. For slow book computers, or for computers running in a network, the maximum baud rate may be as low as 19200. A buffered I/O card may allow the maximum rate of 115200 for any host computer.
MM D S T a r g e t C o mp o n en t 4.8 MMDS0508 Menu Entries Figure 4.11 Memory Configuration This dialog box shows the target’s memory setup. The system automatically loads this setup if you check the Auto select according to MCU-Id checkbox. The debugger identifies and sets the memory map through the processor MCU-Id.
Page 33
Figure 4.12 Error Message Click Cancel to open the Communication Device Specification dialog box, instead of establishing the connection. Click Retry to bring up the Open Personality File dialog box show in Figure 4.13 Open Personality File This dialog box lets you browse to find and open the necessary .MEM file. If you select another invalid .MEM file, the error message box and the Configuration Device Specification dialog box reappear.
MM D S T a r g e t C o mp o n en t 4.8 MMDS0508 Menu Entries If you have checked the Auto Select according MCU-ID checkbox, the system automatically loads the default personality file for the MCU-ID. If this checkbox is clear, the system automatically loads the most recently opened or saved memory map file.
Figure 4.14 Target Signals This dialog box lets you specify the MCU clock and the reset signal connection. Warning: in order to use any of these clock signals, you must configure EM jumper headers correctly. This dialog box displays settings that the system reads from the MMDS0508. Click Ok to close the dialog box, and to write values back to the MMDS0508.
MM D S T a r g e t C o mp o n en t 4.9 Default Target Setup 4.9 Default Target Setup As with any target, you can use the Target menu to load the MMDS target component, or you can set the MMDS target component as a default in the PROJECT.INI file.
For a PC: Any valid communication device (COM1,COM2,etc.). Example:COMDEV=COM2 For SUN:Any valid communication device (/dev/ttya, etc.). Example:comdev=/dev/ttyb 4.9.1.2 BAUDRATE This parameter specifies the communication baud rate between the host computer and the target system. The debugger default is 9600 baud, but you may set any of these baud rates: Example:BAUDRAUTE=19200 4.9.1.3 SHOWPROT...
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer 4.10.1.1 Watchpoints The MMDS0508 automatically maps available watchpoints to a proper bus analyzer trigger pattern. You may use the bus analyzer to implement watchpoints. If you do, however, you should not use the bus analyzer for other purposes! 4.10.1.2 Trace Modes To gather pertinent bus data, you can operate the bus analyzer in different modes.
Page 39
Figure 4.15 Bus Analyzer 4.10.2.1 The Trace window popup menu Figure 4.16 Trace Window popup The bus analyzer has setup pages for these functions: • Triggers • Search pattern • Sequencer • Clock timing These tabbed setup pages are part of the Bus Analyzer Configuration dialog box. The Bus Analyzer Configuration dialog box lets you define symbolic names for address values.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer symbolic name values must match. If there is an inconsistency, the system prompts you to: • Use the address and remove the symbol. •...
4.10.2.2.1 Term Use this area to specify the term displayed for editing. The term identifies an event; that is, an event is a frame that satisfies the term. 4.10.2.2.2 Address In this edit box, specify the address to which the system writes data or from which the system reads data.
Page 42
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer In triggered modes, the analyzer uses your term definitions to track the occurrence of events, then stop data collection according to some combination of the events. Each term has an associated Pre Event count that counts events for that term.
Page 43
4.10.2.4.2 Continuous: Events Only Stores all the events that you defined in the Triggers page. 4.10.2.5 Counted Modes In counted modes, data collection stops when the analyzer collects the specified number of frames. 4.10.2.5.1 Counted: All Cycles Records a specified number of cycles; you can trace that many cycles, of all types. 4.10.2.5.2 Counted: Events Only Stores all events until it reaches the specified count.
Page 44
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer 4.10.2.6.3 Sequential: A + B -> C + D Select this option to start bus-analyser recording when either of two sequences occurs: (1) event A, followed by either event C or event D, or (2) event B, followed by either event C or event D.
4.10.2.8 Time Tag Clock Setup Each frame of the trace buffer includes a time reference value, or time tag. You can specify the clock signal that the analyzer uses for these time tags. To do so, choose the Trace>Setup... menu selection, to open the Bus Analyzer Configuration dialog box as shown in Figure 4.19.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer 4.10.3 Collecting Data When your have initialized the emulator and the bus analyzer have been initialized, and when you have connected any logic clips that you defined, emulation can begin. 4.10.3.1 Arming the Analyzer Before you can start data collection, you must arm the bus analyzer.
4.10.3.7 Recording Bus Data When data collection begins, the bus analyzer starts recording bus data into the buffer. When it reaches the end of the buffer, the Bus analyzer wraps around to the first buffer frame and continues recording. This process continues until you disarm the analyzer, until the analyzer records the specified number of frames, or until the analyzer records the specified number of post-trigger cycles following the trigger event.
Page 48
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer The analyzer can display its contents as text or as a graphic. You can have a textual display of all frames, or a textual display of only instruction-start frames. Additionally, you can choose the Trace>Items...
4.10.4.3.2 Address This column lists frame address bus values, as four hexadecimal digits. Each value is the address on the address bus at the time the analyzer strobed the frame into the trace buffer. 4.10.4.3.3 Data This column lists frame data bus values, as two hexadecimal digits. Each value is the values on the data bus at the time the analyzer strobed the frame into the trace buffer.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Figure 4.21 Trace Instructions Only Format Display 4.10.4.5 Graphical Display The figure below shows the graphical display of bus analyzer data. Selections of the Trace menu let you switch between formats easily, at any time.
Page 51
Figure 4.22 Trace Zoom Display The figure above is a zoomed-in graphical display. To zoom out, choose the Trace>Zoom Out menu selection, or press the O key of the keyboard. The Figure 4.23 Figure 4.23 Trace Zoom In Display Dragging the marker over a bus analyzer display may also generate updates in component windows, such as the source and assembly windows.
Page 52
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer moving the marker over a bus analyzer textual or graphical display lets you view and thoroughly examine data in continually updated windows. 4.10.4.5.2 ShowLocation To activate the ShowLocation selection for a frame, select the frame, click the right mouse button to activate the Trace menu, then select ShowLocation.
Figure 4.25 Item Content 4.10.5 Scrolling the Display You can use display scrollbars as you would those of other Windows applications, or you can scroll to a specific trace buffer frame. It is also possible to search for one or more trigger events, or to search for a specific pattern, as the below indicates.
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Figure 4.27 Search Frame 4.10.5.2 Search for Events To search for an event occurrence, choose the Trace>Search>Event... menu selection. This opens the Search Event Specification dialog box as shown in 4.28.
Page 55
finds a matching frame, the marker moves to the frame. If necessary, the system scrolls the bus analyzer window to make the frame visible. If the search does not find a matching frame, an error message reports that fact. 4.10.5.2.5 Previous Event To search for the previous occurrence of the specified event, choose the Trace>Search >Previous Event menu selection.
Page 56
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Use this page to define the search pattern, in the same way you completed the Triggers page. The bus analyzer will look at specific collected cycles, match the frame that shows the pattern, then display this frame in the debugger window.
4.10.6 Dumping the Bus analyzer data to a file To dump the Bus analyzer data to a file, choose the Trace>Dump... menu selection. This opens the Dump Bus Analyzer Frames dialog box as shown in Figure 4.30 Dump Bus Analyzer Frames 4.10.6.1 Dump File This dialog box lets you specify frames in the bus analyzer window, then dump those frames to a file.
Page 58
MM D S T a r g e t C o mp o n en t 4.10 Bus Analyzer Figure 4.31 Analyzer Dump Only Frame 4.10.6.1.5 OK Button Click the OK button to close the dialog box and dump the bus analyzer data to the file. 4.10.6.1.6 Cancel Button Click the Cancel button to close the dialog box without dumping any data.
Appendix A.1 MMDS Commands This section describes MMDS-specific commands. Use MMDS-specific commands as you would any other commands, typing them in the Command Line component, or inserting them into a command file. For further details about debugger commands, please see the debugger manual sections Appendix, Debugger Commands and Command Line Component.
Ap p en d ix MMDS Commands Without a rate value, the command displays the Communications Baud Rate Specification dialog box for interactive rate selection. If the system does not support the requested rate, the red message, “Error: <baud rate> is not a supported baud rate.” appears in the Command Line window.
Page 61
CT * Clears all triggers. This command clears both triggers of a range definition, even though just one of the triggers is a parameter value. Example: If triggers C and D define a range, CT C clears both the triggers. A.1.2.4 Short Description set trigger.
Page 62
Ap p en d ix MMDS Commands address range: A range of addresses to trip the trigger. To specify a range, use starting and ending constants, or use a starting address and a length value: start-address start-address If you include a mask value, the system comparison involves only the address bits that correspond to ones (1s) of the mask.
Page 63
of Term A to H. Without a mask, the ST command uses the unmasked value 0x1F for the clips. Each trigger clip line has three options: H - High L - Low X - Don’t Care The bits of the clips and mask words are: Bit: Signal: Group A- BRN...
Page 64
Ap p en d ix MMDS Commands A bit set in both the clips and masks sets the trigger to high (-H). A bit clear in clips, but set in masks, sets the trigger to low (-L). A bit clear in a mask means that the trigger does not depend on the state of the clip.
Page 65
list: A list of trigger identifiers (A, B, C, or D), separated by comma or space characters. *: All triggers. A.1.2.9 Description The TD command disables specified triggers. Use the Set Trigger (ST) command to set triggers; use the Trigger Enable (TE) command to enable triggers. Use the Clear Triggers (CT) command to clear triggers.
Ap p en d ix MMDS Commands TE A B Enables triggers A and B. Example: TE * Enables all triggers. A.1.3 Bus Analyzer Commands A.1.3.1 Short Description arm bus analyser. A.1.3.2 Syntax A.1.3.3 Description The ARM command arms the bus analyzer. When armed, the analyzer records bus cycles while the emulator is executing user code.
Page 67
A.1.3.5 Syntax DARM A.1.3.6 Description The DARM command disarms the bus analyzer. When disarmed, the analyzer does not record bus cycles. If the bus analyzer is disarmed already, this command does nothing. ARM arms the analyzer A.1.3.7 Short Description go to event. A.1.3.8 Syntax GE list | * [;B] ;B: Specifies a backward search;...
Page 68
Ap p en d ix MMDS Commands A.1.3.10 Short Description go to frame. A.1.3.11 Syntax GF frame frame: Frame number, in the range 1..8191. This number must be decimal number, regardless of the current default number base. A.1.3.12 Description The GF command moves the cursor to a specified trace buffer frame. If the command’s frame-number value is greater than the number of frames stored in the buffer, the command moves your display to the buffer’s last frame.
Page 69
A.1.3.15 Description The GP command searches the analyzer trace buffer for a frame that matches the defined search pattern. (Use the SP command to define the pattern.) A forward search begins at the frame immediately following the current frame. A backward search begins at the frame immediately preceding the current frame.
Page 70
Ap p en d ix MMDS Commands LF logfile Open the logging file. Example: Copy all the trace buffer to the logging file. Example: NOLF Close the logging file. A.1.3.19 Short Description set analyzer clock. A.1.3.20 Syntax SC [timetag [frequency]] timetag: One of these values: OSC1MHZ (1 Mhz oscillator) OSC2MHZ (2 Mhz oscillator)
Page 71
500,000 Hz divided by an integer. Thus, 50000 is valid, but 49000 is not. (If you specify 49000, the system rounds the value up the the next higher valid frequency: 50000.) A.1.3.21 Description The SC command sets the source for the time tag clock, which increments the trace buffer time tag.
Page 72
Ap p en d ix MMDS Commands The inversion operator, which applies to a single address or data value. Specifying !sets a pattern on addresses or data values other than the specified address or data value. address: Address part of the pattern, specified with an address constant: address [:mask] If you include a mask value, the system comparison involves only the address bits that correspond to ones (1s) of the mask.
Page 73
Bit: ;R: Search for a read bus cycle only. ;W : Search for a write bus cycle only. ;RW: Search for either a read or write bus cycle. LIR: Search for a specific LIR-signal value: LIR=H searches for LIR high. LIR=L searches for LIR low.
Page 74
Ap p en d ix MMDS Commands would trip the trigger: 0xC000, 0xC001, 0xC002, or 0xC003. For Address 0x00B0, Mask 0xFFF0, any address in the range 0x00B0..0x00BF would trip the trigger. A.1.3.25 Short Description set sequencer. A.1.3.26 Syntax SQ [mode [count] [;S] ] mode: One of these values: ALL (records all bus cycles) EVENT (records only events)
Page 75
A.1.3.27 Description The SQ command sets the analyzer sequencer mode. If this command includes no parameter values, the command interpreter opens the Bus Analyzer Configuration dialog box: select the Sequencer Setup dialog box to program the sequencer interactively. Selecting from the Setup menu is another way to open the Sequencer Setup dialog box.
Page 76
Ap p en d ix MMDS Commands Displays the difference between the beginning and ending frames in the trace buffer. Example: TT 80 Displays the difference between frame 80 and the ending frame in the trace buffer. Example: TT 10 40 Displays the difference between frames 10 and 40 in the trace buffer.
A.1.4 Target Signal Emulation Commands A.1.4.1 Short Description set emulator signals. A.1.4.2 Syntax SIG [ [ENABLE] signal {signal}] [ DISABLE signal {signal}] signal: The signal to be enabled or disabled: RESETIN or RESETOUT. ENABLE: Connect the signal from the target system. DISABLE: Disconnect the signal from the target system.
Ap p en d ix MMDS Commands A.1.5.2 Syntax RESET [GO|STOP] GO: Resets the MCU and does a Go from Reset. STOP: Resets the MCU and stops (default). A.1.5.3 Description The RESET command resets the target MCU. Examples: Reset Go Resets the MCU and does a GO from Reset.
Page 79
A.1.6.3 Description The LOADMAP command loads a memory map from a file. The file specification must be the full pathname. If the file is in the current directory, the characters “.\” must precede the name (for example: LOADMAP .\00123V22.MEM). Example: LOADMAP 0xC17 Loads a memory map from a file that matches this MCU identifier (68HC08AX48).
Page 80
Ap p en d ix MMDS Commands 3E00..FDFF FE00..FE1F PRU or TOP NONE FE20..FFDB NONE FFDC..FFFE FFFF..FFFF special ram for cop RT MEM 0.. 3FF (disabled) ------------------------------------------------------- A.1.6.7 Short Description selects Emulator Clock Frequency command. A.1.6.8 Syntax OSC [rate | source] A.1.6.9 Description The OSC command selects the emulator clock frequency: one of five internally generated frequencies (16 Mhz, 8 Mhz, 4 Mhz, 2 Mhz, or 1 Mhz), or an external clock...
Page 81
Example: emulator clock. PROTOCOL A.1.6.10 Short Description controls Show Protocol functionality. A.1.6.11 Syntax PROTOCOL [ON | OFF] ON: Reports commands and responses in the command line window (default value for this command). OFF: Does not report commands or responses in the command line window; does not log commands or responses in the log file.
Page 82
Ap p en d ix MMDS Commands ;D: Disables the real time memory block. A.1.6.15 Description The RTMEM command lets you enable or disable real time memory. Example: RTMEM 0x1000 ;D Disables the real time memory block at base address $1000. A–82 MMDS0508 Target Interface For More Information: www.freescale.com...
Page 83
Index Symbols .MEM 32 ARM 66 Arming 46 BAUD 59 BAUDRATE 36 Bus Analyzer 37 Cables, Connecting Host Computer 14 Power 15 Target 15 Collecting Data 46 COM1 28 COMDEV 36 Commands 59 Communication Baud Rate 30 Communication Configuration 25 Configuration 24 Memory 31 Continuous 42...
Need help?
Do you have a question about the Target Interface MMDS0508 and is the answer not in the manual?
Questions and answers