background image

MMDS Target Componen t

4.10  Bus Analyzer

4–48

MMDS0508 Target Interface

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...

 menu selection to specify items for display.

4.10.4.3 Textual Display

If you choose the 

Textual

 format, the software displays all the frames of the trace 

buffer contents, in a textual form, as shown in 

Figure 4.20

. Use the vertical scroll bar 

to scroll to other frames. Use the horizontal scroll bar to scroll to other signals.

Each display line gives the data of one frame: text below explains these data items. 
You can add or remove data items. (Please see the section 

Adding / Removing Items in 

the Trace Window

.) The marker consists of two horizontal lines, which facilitate 

reading the data items for a specific frame; the analyzer highlights the number of the 
marked frame. 

Figure 4.20

Trace Textual Format Display

Frame 

This column lists the cycle (or frame) number of each frame: identifying 

integers, from 1 to 8191. The most recently stored frame has number 8191 (or the 
highest number all the frames stored).

4.10.4.3.1 Events 

This column lists identifiers of matching events. That is, if frame data matches any 
event data definitions, the analyzer displays the event identifiers (A, B, C, or D) in this 
column.

Freescale Semiconductor, Inc.

For More Information: www.freescale.com

Summary of Contents for M68MMDS0508

Page 1: ...MMDS0508 Target Interface Revised 2002 04 30 Freescale Semiconductor Inc For More Information www freescale com...

Page 2: ...ot been designed tested manufactured or intended for use in developing applications where the failure malfunction or any inaccuracy of the application carries a risk of death serious bodily injury or...

Page 3: ...er Connection 14 2 5 2 Bus State Analyzer Connection 14 2 5 3 Target Cable Connection 15 2 5 4 Power Connection 15 3 Connector Information 17 3 1 Introduction 17 3 2 Reset Switch 17 3 3 RS232 Serial C...

Page 4: ...y MEM Files 32 4 8 4 Signals Emulation 34 4 8 5 Bus Tracing 35 4 9 Default Target Setup 36 4 9 1 Motorola ESL Parameters 36 4 10 Bus Analyzer 37 4 10 1 Introduction to the Bus Analyzer 37 4 10 2 Using...

Page 5: ...arget cable assembly The EM completes MMDS functionality for a particular MCU or MCU family 1 2 MMDS Features MMDS features include Real time non intrusive in circuit emulation Real time bus state ana...

Page 6: ...ces eight logic clips Eight software selections for the time tag clock source permitting wide time variance between analyzer events 16 general purpose logic clips five of which can be used to trigger...

Page 7: ...s Separately purchased components are Emulation module EM a printed circuit board that completes MMDS functionality for one or more MCUs The two DIN connectors on the bottom of the EM fit into connect...

Page 8: ...General Description System Components 1 8 MMDS0508 Target Interface Freescale Semiconductor Inc For More Information www freescale com...

Page 9: ...tion module with the access panel open Callouts indicate the reset switch and power LED on the front of the station module and the logic cable A and B connectors on the right side of the station modul...

Page 10: ...Installation Introduction 2 10 MMDS0508 Target Interface Figure 2 1 M68MMDS0508 Station Module Right Side Freescale Semiconductor Inc For More Information www freescale com...

Page 11: ...or ports A through D NOTE Before shipping the MMDS factory personnel configure the platform board correctly for virtually all users You should not reconfigure platform board headers unless your EM use...

Page 12: ...ader J4 is the control for port C or D whichever pertains to your EM The diagram Figure 2 4 shows the factory configuration The jumpers between pins 1 and 2 of these headers set the 5 volt level for a...

Page 13: ...f appropriate 5 Reposition the access panel securing it with the screws NOTE Many EM boards have 64 pin female DIN connectors Like their 96 pin counterparts these smaller connectors also mate with the...

Page 14: ...ents Logic clip connections also let you input external clock signals for the emulator and analyzer The pod A and pod B connectors are on the right side of the station module Pod A is nearest the stat...

Page 15: ...e s emulator terminal to the EM target connectors 4 Connect the target cable s head terminator to the appropriate target head adapter NOTE The EM user s manual should identify the target head adapter...

Page 16: ...Installation Making Cable Connections 2 16 MMDS0508 Target Interface Freescale Semiconductor Inc For More Information www freescale com...

Page 17: ...initializes the control board from its startup point If the host serial port does not implement handshaking you must reset the MMDS manually To do so find the reset switch which is recessed behind the...

Page 18: ...that indicates detection of an acceptable carrier signal 2 RX RECEIVE DATA Serial data output line 3 TX TRANSMIT DATA Serial data input line 4 DTR DATA TERMINAL READY Input signal that indicates on l...

Page 19: ...command to select an external source Table 3 2 Pod and Logic Cable Pin Assignments Pod Pin Pod A Signal Pod B Signal Probe Color 1 LC0 LC8 Brown BRN 2 GND GND 3 LC1 LC9 Red RED 4 GND GND 5 LC2 LC10 O...

Page 20: ...upply 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 2 shows this assembly with its door...

Page 21: ...assembly door which swings open to the left 3 Remove the fuse holder from the switch connector assembly Remove the fuse from the holder 4 Insert the replacement fuse into the holder Then re install th...

Page 22: ...Connector Information Power Supply Fuse Replacement 3 22 MMDS0508 Target Interface Freescale Semiconductor Inc For More Information www freescale com...

Page 23: ...his interface you can download an executable program from the debugger environment The destination of this program is an external target system based on a Motorola MCU that executes the program The de...

Page 24: ...stem for CPU05 or CPU08 MCUs that provides emulation memory and a bus state analyzer 4 2 2 Configuration The functions above are specific for the MMDS0508 so are available only with this emulator comp...

Page 25: ...Server The MMDS hardware access library that interfaces across the RS 232 port to the MMDS0508 station 4 3 4 Modal Dialog A dialog that requires a response before you can continue 4 3 5 MCU Micro Cont...

Page 26: ...L driver automatically detects the MMDS However if the driver detects nothing an error message informs you that the target is not connected to the expected port Additionally the Communications Device...

Page 27: ...get or MotoSIL menu in the main menu bar as show in Figure 4 5 Figure 4 5 Loading MMDS Target 4 6 Communication Configuration In most situations the debugger uses its default values to set communicati...

Page 28: ...ndicated the Communications Device Specification dialog box appears as shown in Figure 4 7 Figure 4 7 Communication Device Specification Type the name of an available communication device in the Commu...

Page 29: ...S0508 Communication Communication speeds of 1200 through 115200 baud are available depending on the host computer hardware 4 7 The Debugger Status Bar for the MMDS Once you have loaded the MMDS Target...

Page 30: ...host computer supports You can modify this baud rate as text below explains 4 8 1 1 Communication Select MMDS0508 Communication to display the Communication Device Specification dialog box as shown i...

Page 31: ...d I O card may allow the maximum rate of 115200 for any host computer The default value is 9600 4 8 1 3 Show Protocol If you check the Show Protocol checkbox the system reports all commands and respon...

Page 32: ...e Open button To save modifications to the current configuration click the Save button 4 8 3 Personality MEM Files For proper operation the Motosil target must load the personality file MEM file that...

Page 33: ...ty 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 reapp...

Page 34: ...area lets you specify the base address and enable Real Time Memory To specify the base address enter the desired value in the Base Address edit box To Enable the Real Time Memory check the Enable che...

Page 35: ...es back to the MMDS0508 Check the Save and Reload checkbox to have the system save the configuration then reload this configuration the next time you start the debugger 4 8 4 1 MCU Clock The MCU Clock...

Page 36: ...ndow4 Data 0 40 50 25 Window5 Command 0 65 50 20 Window6 Module 0 85 50 15 Target Motosil Motorola ESL COMDEV COM2 BAUDRATE 57600 SHOWPROT 1 NOTE For more information about the PROJECT INI file please...

Page 37: ...onses give this parameter the value 1 To have the system not do this reporting give this parameter the value 0 Another way to specify reporting is checking the Show Protocol checkbox of the Communicat...

Page 38: ...trace buffer for each bus cycle When trigger events occur in a specified sequence the system stores only the specified number of additional frames 4 10 1 4 Textual or Graphical The bus analyzer displa...

Page 39: ...as 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 b...

Page 40: ...tion dialog box as shown in Figure 4 17 Figure 4 17 Bus Analyzer Trigger Setup Use the Triggers page to define a trigger in terms of one two three or four events For each term define the read write ac...

Page 41: ...ignals of your target system as it runs under software control When a trigger occurs a breakpoint shows you the states of significant logic signals before at and after the trigger 4 10 2 2 6 Invert To...

Page 42: ...yzer Alternatively an event can be the negation of a defined pattern You can define each signal to be asserted negated or ignored don t care Figure 4 18 Bus Analyzer Sequence Setup Click on one of the...

Page 43: ...our events in one of four sequences Each event has a specified count each trigger requires that specified count for each event Each count is a minimum the event can occur additional times An event is...

Page 44: ...6 cycles 4 10 2 7 Counted Sequential Recording Mode This paragraph explains how to switch beetween Counted and Sequential Recording Mode 4 10 2 7 1 Terminal Count Post Trigger Cycles 1 8191 For a coun...

Page 45: ...neral the faster clock rates provide higher resolution so are appropriate for faster emulator clock rates If you specify a programmable clock you must enter the Hz frequency 50 to 50 000 in the edit b...

Page 46: ...Run Continue menu selection or enter any other command that starts program execution Emulation continues until a breakpoint a watchpoint the bus analyzer or you stop the emulation When emulation stops...

Page 47: ...or the next trigger event Subsequent events can occur while the bus analyzer collects post trigger cycles for the first event In such a case the analyzer continues collecting post trigger cycles but m...

Page 48: ...gives the data of one frame text below explains these data items You can add or remove data items Please see the section Adding Removing Items in the Trace Window The marker consists of two horizontal...

Page 49: ...he number of time tag clock cycles If the time tag clock was a different clock this column shows a number of seconds or fractions of seconds 4 10 4 3 5 Time Measuring To assign the time tag value 0 to...

Page 50: ...me The rest of the display presents those data values graphically or with greater resolution In a graphical display the marker consists of two vertical bars that enclose the information of the current...

Page 51: ...race Zoom Out menu selection or press the O key of the keyboard The Figure 4 23 show below is a zoomed out graphical display Figure 4 23 Trace Zoom In Display Dragging the marker over a bus analyzer d...

Page 52: ...ly updates the source and assembly windows 4 10 4 5 3 Add Remove Items in the Trace Window You can add new items to the Trace window The default items are Frame Events Address Data Time Tag Instructio...

Page 53: ...search for a specific pattern as the Figure 4 26 illustration below indicates Figure 4 26 Search Menu 4 10 5 1 Search for a Frame To search for a frame choose the Trace Go to Frame menu selection to o...

Page 54: ...ately click OK 4 10 5 2 2 Forward To search forward for the next frame that matches your event specification click Forward 4 10 5 2 3 Backward To search backward for the next frame that matches your e...

Page 55: ...ssing the keyboard P key without activating the Trace menu is another way to activate this search If this search finds a matching frame the marker moves to the frame If necessary the system scrolls th...

Page 56: ...ystem as it runs under software control When a trigger occurs a breakpoint shows you the states of significant logic signals before at and after the trigger Such states can be a search pattern to be m...

Page 57: ...he dumped frames 4 10 6 1 1 Select Click the Select button to open a standard file select dialog box You can use this dialog box to specify the filename value for the Dump File edit box 4 10 6 1 2 Fra...

Page 58: ...r 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 w...

Page 59: ...ud Rate Command BAUD A 1 1 1 Short Description sets the communication baud rate A 1 1 2 Syntax BAUD rate rate Specifies the new baud rate must be one of these decimal integer constants 1200 2400 4800...

Page 60: ...2 1 Short Description clear triggers A 1 2 2 Syntax CT list list A list of trigger identifiers A B C or D All triggers A 1 2 3 Description The CT command clears definition values of specified bus ana...

Page 61: ...can use the dialog box to set the trigger value interactively id The id of the analyzer trigger A B C or D The inversion operator for the entire trigger definition Specifying as well as an address dat...

Page 62: ...mask If you include a mask value the system comparison involves only the value bits that correspond to ones 1s of the mask data range A range of data values to trip the trigger To specify a range use...

Page 63: ...er set trigger value but disable trigger LIR Trigger on a specific value for LIR signal LIR H triggers when LIR is high LIR L triggers when LIR is low LIR X triggers when LIR is high or low If either...

Page 64: ...8 STC 8 10 20 Sets analyzer triggers C and D to match accesses having the value 20 at any address from 8 to 10 NOTE Mask bits that have the value 0 are Don t Care bits for those positions of an addre...

Page 65: ...o clear triggers Example TD A B Disables triggers A and B Example TD Disables all triggers TE A 1 2 10 Short Description trigger enable A 1 2 11 Syntax TE list list A list of trigger identifiers A B C...

Page 66: ...Syntax ARM 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 Arming the analyzer clears the current conten...

Page 67: ...d search without this option the command directs a forward search list A list of events A B C or D separated by space or comma characters A 1 3 9 Description The GE command searches in the analyzer tr...

Page 68: ...e 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 Example GF 4096 Moves the cursor...

Page 69: ...e If no search pattern is defined this command searches for any pattern that is the line cursor moves to the next line or preceding line Example GP Searches forward for the next frame that matches the...

Page 70: ...es OSC1MHZ 1 Mhz oscillator OSC2MHZ 2 Mhz oscillator OSC4MHZ 4 Mhz oscillator OSC8MHZ 8 Mhz oscillator OSC16MHZ 16 Mhz oscillator EXT external clock BUS bus clock PROGRAM programmable clock frequency...

Page 71: ...k sources interactively Example SC PROGRAM 100 Sets the programmable clock running at 100Hz as the time clock source Example SC OSC8MHZ Sets the 8 Mhz oscillator as the time tag clock source SP A 1 3...

Page 72: ...ition The omitted item matches any value of its type so is a don t care entry data Data part of the pattern specified as value mask If you include a mask value the system comparison involves only the...

Page 73: ...ets accesses at address 1000 to be part of the analyzer search pattern SP 4 Sets accesses with the data value 4 at any address to be part of the analyzer search pattern SP 8 20 Sets accesses with the...

Page 74: ...of count frames of the appropriate type When the number of frames recorded reaches the count value the analyzer stops recording and is disarmed If this command has no count value the analyzer records...

Page 75: ...arms itself and stops recording Example SQ EVENT 10 S Specifies recording 10 event cycles then stopping the emulator TT A 1 3 28 Short Description display time tag difference A 1 3 29 Syntax TT sframe...

Page 76: ...A 1 3 31 Short Description analyzer view A 1 3 32 Syntax VA MODE MIX INS GRAPH MODE When followed by one of the three following keywords specifies the mode of the bus analyzer window display MIX Mixe...

Page 77: ...from the target system DISABLE Disconnect the signal from the target system A 1 4 3 Description The SIG command enables or disables control signals from the target MCU If the command specifies any sig...

Page 78: ...MCU and does a GO from Reset Reset Resets the MCU and stops default setting A 1 6 Other Commands LOADMAP A 1 6 1 Short Description loads memory map A 1 6 2 Syntax LOADMAP fileName MCUID fileName a st...

Page 79: ...8 Note that the MCUID identifies an MCU not an EM Board The memory map filename has this format 0nnnnVvv MEM where nnnn is the four digit hexadecimal MCU ID and vv is a two digit version number MEM A...

Page 80: ...five internally generated frequencies 16 Mhz 8 Mhz 4 Mhz 2 Mhz or 1 Mhz or an external clock source The firmware sets the default emulator clock rate adapting it to the current frequency Entering thi...

Page 81: ...ow does not log commands or responses in the log file A 1 6 12 Description The PROTOCOL command controls reporting commands and responses in the command line window Entering this command without a par...

Page 82: ...les 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 Freesc...

Page 83: ...Only 49 Textual 48 DLL 25 Dual Port RAM 34 Dumping 57 Dynamic Linking 25 E EM Installing 13 Removing 13 Emulation 34 F Fuse Replacement 20 G GE 67 GF 68 GP 68 H Hardware Installation Configuring the...

Page 84: ...riggered 43 MotoSIL 26 Motosil 36 N Nth Event 44 O OSC 80 P Personality file 32 Pin Assignments Connector 17 Platform Board Configuration 11 Pod 19 Port Voltage Control Jumper Headers J2 J4 12 PROJECT...

Page 85: ...IG 77 Signals 34 SP 71 SQ 74 ST 61 Status Bar 29 System Components 6 Connections 14 T Target 26 Target Setup 36 TD 64 TE 65 Textual Display 48 Time Tag Clock 45 Trace Buffer 38 Trace Modes 38 Trigger...

Page 86: ...IDX 86 MMDS0508 Target Interface Freescale Semiconductor Inc For More Information www freescale com...

Reviews: