background image

Corelis, Inc.

13100 Alondra Blvd. Cerritos, CA 90703

Telephone: 562.926.6727 • Fax: (562) 404-6196

CORELIS

1

BusPro-I

I2C Bus Analyzer, Exerciser, Programmer, and Tester

User’s Manual

Содержание BusPro-I

Страница 1: ...Corelis Inc 13100 Alondra Blvd Cerritos CA 90703 Telephone 562 926 6727 Fax 562 404 6196 CORELIS 1 BusPro I I2C Bus Analyzer Exerciser Programmer and Tester User s Manual...

Страница 2: ......

Страница 3: ...otected by copyright All rights reserved No part of this document may be reproduced or translated to other languages without the prior written consent of CORELIS This manual is a CORELIS proprietary d...

Страница 4: ...ped pre paid and clearly display a Return Merchandise Authorization RMA number on the shipping carton Freight collect items will NOT be accepted Customers or authorized sales representatives must firs...

Страница 5: ...17 Chapter 3 Getting Started 23 Overview 23 Tutorial Using Demo Mode 23 Tutorial Using Live Mode 74 Chapter 4 Connecting to a Target 91 Connecting the I 2 C Signals 91 Interface Setup 93 Chapter 5 Bus...

Страница 6: ...d Preferences 173 Configuration Manager 173 Preferences Dialog 187 Using Project Files 192 Calibration 194 Chapter 9 Third Party Application Interface 197 Overview 197 Dynamic Link Library DLL 198 Gen...

Страница 7: ...w Right Click Pop up Menu 29 Figure 27 Monitor Window Trace List Positioned on Trigger Line 30 Figure 28 Monitor Window Right Click Pop up Menu Selecting Trigger Settings 31 Figure 29 Configuration Ma...

Страница 8: ...itor Window Trace List with Trigger at Line Zero Numbering 69 Figure 73 Monitor Window Trace List with Trigger is Time Zero Timestamps 70 Figure 74 Monitor Window Trace List with Relative Timestamps 7...

Страница 9: ...er Monitor Window Layout 134 Figure 129 Monitor File Menu 135 Figure 130 Monitor Trace Menu 136 Figure 131 Trace Execute Submenu 137 Figure 132 Run Status Tab on Monitor Tools Window 138 Figure 133 Tr...

Страница 10: ...66 Files Pane 186 Figure 167 Monitor Colors Pane 187 Figure 168 Monitor Options Pane 188 Figure 169 Debugger Options Pane 189 Figure 170 Programmer Options Pane 190 Figure 171 Formats Pane 191 Figure...

Страница 11: ...Table 6 Monitor Tool Bar Functions 147 Table 7 Debugger Script Keywords 155 Table 8 Debugger Window Layout 159 Table 9 Debugger Tool Bar Functions 161 Table 10 Programmer Function Descriptions 165 Ta...

Страница 12: ......

Страница 13: ...debug scripts and working with EEPROM devices Although it is possible to explore the capabilities of the BusPro I on your own working through this chapter will provide you with an immediate feel for...

Страница 14: ...nces dialogs Chapter 9 Third Party Application Interface This chapter provides a reference on all of the function calls available for use in third party software applications that control the BusPro I...

Страница 15: ...ter receivers The I 2 C bus supports a multi master bus methodology including collision detection and arbitration to avoid data corruption if two or more masters simultaneously initiate data transfer...

Страница 16: ...anced instrument is used to Monitor and log I 2 C bus traffic in real time Generate traffic to exercise the bus and communicate with its slave components Program and read in system EEPROMs Because of...

Страница 17: ...ating I O patterns to facilitate external signal observation Storing and restoring files allows saving of received data for post analysis and reuse of previously sent message scripts A callable API li...

Страница 18: ...ce The BusPro I does not support USB 1 1 ports Software Programmable Voltage Levels and Pull Up Resistors The I 2 C bus reference voltage can be programmed as target driven Target Supplied mode throug...

Страница 19: ...ilable to stimulate the target system or sense target conditions in coordination with its testing Each line is programmable as an input a TTL output or an open drain output The voltage level of these...

Страница 20: ...the BusPro I The PC on which it will be installed should meet the following minimum requirements One available USB 2 0 Port Windows XP SP2 Windows Vista Windows 7 or Windows 8 3 2 GHz Pentium 4 Proces...

Страница 21: ...ce Cable consisting of flying leads with test clips Part 15438 2 Corelis I2C Bus Analyzer Exerciser Programmer and Tester CD ROM containing the I2C Exerciser application support software and example t...

Страница 22: ...and configure the BusPro I the first time it is detected in your system Administrator rights are required to install the software on Windows XP If the I2C Exerciser is already installed on your syste...

Страница 23: ...hen Run The Run dialog box will appear as shown in Figure 4 Type D setup exe where D is the CD ROM drive letter Click on the OK button to run the installation program Figure 4 Windows Run Dialog Click...

Страница 24: ...ement and then click on the Next button The Customer Registration screen shown in Figure 6 will then be displayed Figure 6 Customer Registration Screen Type in or change the Full Name and Organization...

Страница 25: ...e your installation by selecting the Change button It is strongly recommended that the application be installed in the default folder Figure 7 Destination Folder Screen Click on the Next button and th...

Страница 26: ...ll place a shortcut icon for the I2C Exerciser on your desktop If you do not wish this shortcut to be created uncheck the checkbox on this screen Figure 8 Select Program Folder Screen Click on the Nex...

Страница 27: ...the Next button and the installation process will begin Figure 9 Completing the Installation Wizard Screen The installer copies the program files to the specified folder and support files to the Windo...

Страница 28: ...utton to safely ignore the warnings and proceed with the installation Figure 10 Windows 7 Security Warning Pop up Window If you are running Windows XP the software installation may be interrupted by t...

Страница 29: ...the installation may appear to be hung Bring the warning pop up windows to the foreground by clicking on the Software Installation button on the Windows task bar as shown in Figure 12 Then click on t...

Страница 30: ...The Installation Completed screen shown in Figure 13 will appear to indicate that the installation is complete Click on the Finish button to exit from the installation program Figure 13 Installation C...

Страница 31: ...nit configuration and operation Installation Steps 1 You should have already installed the I2C Exerciser at this point If not please do so before continuing with hardware installation 2 Connect a USB...

Страница 32: ...nstallation 5 The dialog shown in Figure 15 will pop up Click on Install the software automatically Recommended and click on the Next button Figure 15 Found New Hardware Wizard Install Options Windows...

Страница 33: ...s installed with the I2C Exerciser software Under Windows XP a warning dialog box will pop up as shown in Figure 16 You can safely ignore the warning and continue the installation process by pressing...

Страница 34: ...er the necessary files are copied to the system the dialog box shown in Figure 17 will appear indicating that the driver has been successfully installed Figure 17 Found New Hardware Wizard Installatio...

Страница 35: ...he Hardware tab and then click on the Device Manager button An entry named Corelis BusPro I 9101 should be listed in the Universal Serial Bus controllers section as shown in Figure 18 Figure 18 Window...

Страница 36: ...22 Installation...

Страница 37: ...rompted to calibrate the BusPro I The calibration feature fine tunes the electrical outputs of the BusPro I for use when it is providing the voltage source for an attached target bus Feel free to skip...

Страница 38: ...ser window will appear with the Monitor window active By default the program will try to detect if the BusPro I is connected and will enter Live Data mode if the controller is found If the BusPro I is...

Страница 39: ...the PC when you started I2C Exerciser you will have to select this menu item to force the program into Demo Mode You can also verify that the program is in Demo Mode by observing the programs status...

Страница 40: ...to begin Monitor data collection of the simulated bus activity Figure 22 Begin Monitor Data Collection When the program is in Demo Mode and a Run command is invoked an informational pop up window as...

Страница 41: ...ce list lines and timing display as shown in Figure 24 Step by step color highlighted progress milestones are provided in the Run Status tab This tab also displays the number of bus transactions colle...

Страница 42: ...ndow which shows a portion of the trace buffer content If a user specified trigger is encountered while acquiring bus traffic the trace list will automatically be centered on the transaction that sati...

Страница 43: ...n line one and the newest entry will be on the last line in the trace list Each bus message is displayed as multiple lines in the trace listing and consists of a master address read write cycle follow...

Страница 44: ...r column This flag is set or unset by double clicking on the trace list line The Find tool discussed later in this tutorial can also use this tagging mechanism to identify transactions throughout the...

Страница 45: ...op up menu as shown in Figure 28 The Trigger dialog will appear as shown in Figure 29 Figure 28 Monitor Window Right Click Pop up Menu Selecting Trigger Settings The Trigger dialog allows the user to...

Страница 46: ...etting Started In Demo mode the trigger condition is fixed internally and this screen is non functional Click on the Close button to close this dialog Figure 29 Configuration Manager Trigger Setup Scr...

Страница 47: ...ss of the related message This column can be displayed in hexadecimal decimal or binary format The display format is shown in parenthesis in the column heading AddrType Identifies the address type as...

Страница 48: ...inary format The current display format is shown in parenthesis in the column heading Time Displays the timestamp assigned to the beginning time of each transaction Supported time display units are na...

Страница 49: ...Getting Started 35 Figure 33 Monitor Window Trace List Showing Symbolic Address and Data Entries...

Страница 50: ...select the Symbols pop up menu entry This will cause the Configuration Manager Symbols definition screen to be displayed as shown in Figure 34 This screen allows the user to add new symbol definition...

Страница 51: ...field type DAC which is an acronym for Digital to Analog Converter In the Addr field type 18 This will cause the string DAC to be displayed in the address column for any trace list entries with a 7 b...

Страница 52: ...Manager Symbols screen will now contain the newly added DAC entry as shown in Figure 36 Click on the Close button to close the Configuration Manager Symbols screen Figure 36 Configuration Manager Symb...

Страница 53: ...now all displaying the symbol DAC in the address column instead of the raw address value of 18 Lines 46 through 50 lines 78 through 82 and lines 94 through 98 are similarly affected The trace list dis...

Страница 54: ...umeric display format to either hexadecimal binary or decimal These settings work independently for the Addr and Data Byte columns Right click on the Data Byte column heading and select the Disable Sy...

Страница 55: ...Getting Started 41 Figure 39 Monitor Window Trace List Data Column with Symbols Disabled...

Страница 56: ...t menu entry as shown in Figure 40 Observe that the Data Byte column is now displaying values in binary format as shown in Figure 41 Figure 40 Monitor Window Trace List Data Byte Column Right Click Po...

Страница 57: ...ding pop up menu also allows the toggling of Compact Mode This special mode displays all of the data bytes for each message on a single line in the trace list Enable Compact Mode by right clicking on...

Страница 58: ...ear making it possible to view and scroll through all data in the selected message Click on line 18 in the Data Byte column and the pop up window shown in Figure 44 will appear allowing you to see all...

Страница 59: ...t Mode with Data Bytes Pop up Window When you have finished viewing the trace list in Compact Mode close the Data Bytes pop up window Then select the Normal Mode selection from the Data Bytes column h...

Страница 60: ...drag and drop column headings to change the order that the columns are displayed in Right click on the I O 2 column heading and select Hide Column as shown in Figure 45 Click on the I O 1 column headi...

Страница 61: ...Getting Started 47 After hiding the I O 2 column and repositioning the I O 1 column the Monitor window should now look like Figure 47 Figure 47 Monitor Window Trace List with Rearranged I O Columns...

Страница 62: ...state right click on any column heading and select the Trace Layout menu The Trace Layout dialog will appear as shown in Figure 48 showing each column and whether or not it is visible Click on the De...

Страница 63: ...or data transaction A The current address or data transaction is being acknowledged ACK N The current address or data transaction is being not acknowledged NAK The Field row provides a higher level d...

Страница 64: ...r after the visible range of timing information You can click on these markers and drag them left or right to move the corresponding cursor into the visible range of timing information When in the vis...

Страница 65: ...e zoom function focuses around the center of the display Clicking on either the or zoom buttons in the Scale area will change the time scale and cause the display to zoom out or zoom in allowing you t...

Страница 66: ...rted Notice that the time scale has been reduced from 50 s div to 20 s div and that the edges appear much larger now revealing more detail Figure 52 Monitor Window Timing Display Showing Edges Zoomed...

Страница 67: ...ollows the cursor and constantly updates to show you the current absolute time of the current cursor position and the difference in time between Cursors A and B Once Cursor A is positioned over the la...

Страница 68: ...ring the trace list view to the first entries in the trace listing This will also cause the first line in the trace list to be highlighted The Find function will now search for entries starting with t...

Страница 69: ...Getting Started 55 Click on the Find tool bar button as shown in Figure 55 below It will bring up the Find dialog shown in Figure 56 Figure 55 Find Tool Bar Button Figure 56 Find Dialog...

Страница 70: ...e end of the buffer if reached the search will wrap and continue at the start of the trace buffer The various fields are intuitive for defining search criteria and allow searching over a wide range of...

Страница 71: ...o to the start of the trace list using the Go to Start tool bar button as previously shown Then in the Find window enter the value 2E into the Data Byte Value field as shown in Figure 57 Figure 57 Fin...

Страница 72: ...rted Click on the Find Next button and the trace listing will go to the only line containing this data value which is on line 13 as shown in Figure 58 Figure 58 Monitor Window Trace List Showing Find...

Страница 73: ...wn Change the Data Byte Value field to 72 as shown in Figure 59 Click on the Tag All button and you will be prompted to clear all existing tags in the trace listing as shown in Figure 60 Click on the...

Страница 74: ...y trace lines matched the search criteria Click on the OK button and the trace list will display the first tagged line as shown in Figure 62 Lines 22 and 80 will be tagged since they contain the data...

Страница 75: ...e to the second search result as shown in Figure 64 Repeatedly clicking on the Go to Tagged Row tool bar button will cause the trace list to alternate between the two tagged lines Figure 63 Go to Tagg...

Страница 76: ...ences screen to the right side of the Monitor window as shown in Figure 65 The Monitor Colors tab affects the various coloring elements of the Monitor window These settings allow the user to change th...

Страница 77: ...iguration items work Click on the Cursor A Background control and select the color Blue from the pop up color picker as shown in Figure 66 Using the same method click on the Cursor A Text control and...

Страница 78: ...t the Cursor A line in the Monitor window trace list has immediately been painted with the newly selected colors as shown in Figure 67 All of the other items on the Monitor Colors tab can be similarly...

Страница 79: ...ternating color per message address transaction and all conveyed data to from that address The default setting is Alternate color per message but the user may prefer a different setting Click on the C...

Страница 80: ...sulting effect as shown in Figure 69 Click on the Use Defaults button to reset all of the options on the Monitor Colors tab back to their default settings Click on the Close button to close the Prefer...

Страница 81: ...o to Trigger from the pop up menu Use the vertical scroll bar on the right side of the trace list to position the line containing the trigger into the middle of the window as shown in Figure 70 Figure...

Страница 82: ...ls Preferences menu entry and the Preferences screen will appear Click on the Monitor Options tab and move the Preferences screen to the middle of the Monitor window as shown in Figure 71 Figure 71 Mo...

Страница 83: ...start at number one and increment sequentially This is the default setting When set to Trigger is line 0 the line containing the trigger will be zero lines before the trigger will be negative and line...

Страница 84: ...setting When set to Trigger is time 0 the line entry containing the trigger will have a timestamp of zero with lines before the trigger having a negative timestamp and lines after having a positive ti...

Страница 85: ...h entry is the elapsed time since the last transaction was recorded Click on the Relative option and observe how the Time column changes around the Trigger line as shown in Figure 74 Figure 74 Monitor...

Страница 86: ...ex format In FE mode the LSB will always be zero and the 7 bits of address will be left justified within the byte This is the default setting In 7F mode the MSB will always be zero and the 7 bits of a...

Страница 87: ...s are effectively divided by two since the seven address bits are now displayed in a right justified format within the byte Click on the FE mode selection to return this setting to its default state C...

Страница 88: ...vided USB cable between the USB port on the back of the BusPro I and an available USB 2 0 port on the host computer Refer to the Installation chapter for detailed installation instructions No target s...

Страница 89: ...t project Because you have no target connected during this tutorial you can expect to see the warning message shown in Figure 79 below Figure 79 Analyzer Supplied Mode Prompt If you see this message c...

Страница 90: ...receiving data back from slave devices You can see fields on both sides for specifying the bus address and address type Both sides also have a No Stop checkbox that allows you to generate a message wi...

Страница 91: ...ow as shown below in Figure 81 Note that the option to echo the sent data default can be controlled in the Debugger preferences Tools Preferences Debugger Options If turned off the sent data would not...

Страница 92: ...with this is the only value that should ever be received since the bus is floating high Enter the number 3 in the Bytes field and then click on the Receive button again to tell the debugger to read th...

Страница 93: ...Run Status tab on the Monitor Tools window will open and the Monitor will begin capturing data You may want to minimize the Monitor Tools window if it obstructs your view of the Debugger and Monitor w...

Страница 94: ...Exerciser Demo Find this subfolder and select the file named tutorial dcf and then click on the Open button This debugger control file script will load into the Debugger window as shown in Figure 84 b...

Страница 95: ...t will be echoed to the Receive area text box Then return to the Monitor window to view the captured data You will see in the trace list that the bytes were sent to various bus addresses as specified...

Страница 96: ...ck on the Close button when you are finished Figure 86 Set Discrete I O Modes Return to the Debugger window by clicking on the Debugger Shortcut Bar icon Click on the File menu and then click on New D...

Страница 97: ...hown in Figure 87 below Click on the Monitor entry in the Shortcut Bar to return to the Monitor window As shown below in Figure 88 the trace list will display the messages that were sent to the 10 bit...

Страница 98: ...minimized state if you had minimized it earlier Since you are done capturing data click on the Close button at the bottom of the window Click on the Debugger entry in the Shortcut Bar to return to the...

Страница 99: ...hese can be done in any order collect the data associate a decoding file with a device address and switch to SMBus Mode Trace data for this step has already been collected and saved in the file tc74 t...

Страница 100: ...Sensor In order to understand the messages you need to use an SMBus decoder file containing protocol information for this device Click on the Tools menu and then click on Configuration Manager Then c...

Страница 101: ...d tc74 smb Then click on the Select button and the File field of the SMBus Decoder File dialog window will be filled in Now click on the Update button to automatically fill in the rest of the fields w...

Страница 102: ...Byte column will now be decoded for you as well as the device name in the Addr column as shown below in Figure 94 Figure 93 Switch to SMBus Mode Figure 94 SMBus Decoded Data If the text of the decoded...

Страница 103: ...Figure 95 Decoded SMBus Message ToolTip You can also open up a window containing the full decoded SMBus message by clicking on the Data Byte column entry Click on that entry for line number 18 and th...

Страница 104: ...90 Getting Started This completes the I2C Exerciser tutorial Please refer to chapters 5 and on for more detailed information on the I2C Exerciser graphical user interface...

Страница 105: ...luded in the standard BusPro I package terminates in sleeved flying leads with detachable mini clips for arbitrary target test point hookup The pin assignments of this cable are presented in Table 2 T...

Страница 106: ...mpatible with the Philips demo board The cable is designed to mate with Molex part number 22 23 2041 or equivalent Table 3 shows the pin assignments of this cable Target Pin Signal Name Signal Descrip...

Страница 107: ...nsider when configuring the I2C Exerciser include Whether a target is connected Whether the target has its own pull up voltage source Whether the target is expected to exhibit slow signal rise times b...

Страница 108: ...Most setup options are found in the Settings pane of the Configuration Manager as shown in Figure 98 The Configuration Manager can be opened from the I2C Exerciser s menu bar by selecting Tools Confi...

Страница 109: ...the Setting Details section later in this chapter 1 Adjust Bus Signal Threshold levels from the automatic defaults if required when considering hysteresis and noise avoidance issues with the target 2...

Страница 110: ...bove Note that the Pull up Resistance setting is enabled only when the Analyzer Supplied voltage source is selected as seen in Figure 100 When the BusPro I is to supply pull ups examine the following...

Страница 111: ...ry Scenario 3 No Target This scenario occurs when no target is attached to the bus Because a nonexistent target means that there will be a lack of pull up voltage the software will behave as in Case 2...

Страница 112: ...Figure 101 This can be opened by pressing F8 or selecting Tools Configuration Manager from the menu bar and then selecting the Settings tab Each of the setting groupings is described in the following...

Страница 113: ...es the voltage level that will be provided by the target so that appropriate bus signal threshold levels can be automatically set Pull up Resistance In Analyzer Supplied mode this specifies the pull u...

Страница 114: ...target I 2 C bus master s quiet while the BusPro I drives the bus when collision detection is disabled Accelerated Rising Edge Drive In general when a driver on the bus makes a positive signal transi...

Страница 115: ...esponding signal threshold values Function These settings control the inward outward direction of the discrete I O signals I O 1 Specifies the discrete signal I O 1 to be an input an output TTL driver...

Страница 116: ...r trace data is saved to files as described below The trace data is stored in files with the extension tdf each of which holds up to 1M of consecutive I 2 C bus transactions The trace data path and ba...

Страница 117: ...asily acquired and traversed for review The Monitor main screen is shown in Figure 106 Typical applications include Passively collecting and storing I 2 C bus traffic Examining transaction details suc...

Страница 118: ...g description in the Configuration and Preferences chapter Marker This column is used to mark particular lines of interest It may contain one of the following identifiers Trigger A trigger is a specia...

Страница 119: ...display a popup menu that allows selection of the display format If symbols are enabled and there is an address symbol defined for the target slave then that symbolic name will appear in place of the...

Страница 120: ...saction is decoded into a text SMBus message if the value is associated in an SMBus decoding file refer to the SMBus section later in this chapter In this mode positioning the mouse pointer over a dat...

Страница 121: ...cycle during which target slave address bits are conveyed along with the transfer direction indicator bit Data Designates the data cycle during which data bytes are conveyed to and from a slave Idle D...

Страница 122: ...to jump to that transaction line The Link Edge Marker will then attach to the beginning of the transaction waveform and the graph will center on this new location Line buttons These left and right arr...

Страница 123: ...s into the waveform by one scale step at the right clicked point Zoom Out Zooms out from the waveform by one scale step at the right clicked point Go To Jumps the display to the points of interest suc...

Страница 124: ...dividually activated or not via the checkbox beside the filter s name and the activated filters are combined using OR logic unless the AND Filter Conditions Together option is set The combined selecti...

Страница 125: ...in the dialog s list box A filter from the list can be selected by the user for editing or removal Using the Add button beneath the list box a new filter can be defined and appended to the list The Ed...

Страница 126: ...112 Bus Traffic Monitor Figure 111 Filter Definition Dialog similar to Edit...

Страница 127: ...ntain symbolic text strings along with associated parameters that specify the criteria which determine where the symbolic text will replace a numeric value in the trace listing and other related dialo...

Страница 128: ...Data Bytes the value located at a specific byte number position in a message can define a certain symbol which might relate to a device specific structure For example the n th byte of a slave device m...

Страница 129: ...sses and SMBus devices Device entries shaded gray are reserved by the SMBus Specification v 2 0 Those devices cannot be removed but their associated addresses can be re associated with a different dev...

Страница 130: ...r the entire list of associations When using the Add or Edit buttons the SMBus Decoder File dialog is displayed as shown in Figure 115 Click on the Browse button to select the decoder file Click on th...

Страница 131: ...s of the trigger and cursor backgrounds and text in the trace listing It also enables the background color pattern color scheme between line groupings to be changed The options for the color scheme ar...

Страница 132: ...colors of the SDA SCL IO1 and IO2 signals in the Timing Field Other Specifies one of the three coloring schemes No color no coloring of messages Alternate color per message default each complete trans...

Страница 133: ...h earlier transactions being negative Timestamp Start Sets whether time zero starts at the first entry default or at the trigger with earlier transactions being negative Timestamp Display Controls how...

Страница 134: ...ll be flagged for the messages not meeting the specified minimum value Formats This pane enables selection of how a 7 binary bit address representation is formatted for hexadecimal display does not ap...

Страница 135: ...ird party tools can be triggered for further data capturing and analysis I2C Exerciser provides an advanced trigger mechanism which enables tracking of a series of events on the bus and triggering whe...

Страница 136: ...mbol Types Available in START States TRIGGER Events TxType Address AddrType R W Ack Nak Error IO1 IO2 DataByte Counter States Start N A N A N A Trigger N A N A N A User Defined N A N A N A State Logic...

Страница 137: ...value in a data transaction The possible values are one or more 8 bit hex numbers In addition the mask bits and offset values can be specified with the data bytes Counter The current value of the cou...

Страница 138: ...ugh post trigger transactions have been collected to fill the buffer such that the trigger s position in the buffer space reaches that which is specified by the Trigger Buffer Position setting of Earl...

Страница 139: ...rio 1 Trigger on Single Event Goal Trigger when Event A occurs Figure 120 Trigger on Single Event START Action Go to State 1 State 1 If Event A happens Action Go to TRIGGER Else Action Do nothing stay...

Страница 140: ...et counter C1 3 Action Go to State 1 State 1 If C1 1 and Event A happens Action Decrement C1 by 1 and Stay at State 1 Else If C1 1 and Event A happens Action Go to TRIGGER TRIGGER Action stop the moni...

Страница 141: ...Events START Action Go to State 1 State 1 If Event A happens Action Go to State 2 Else Action Do nothing stay at State 1 State 2 If Event B happens Action Go to TRIGGER Else Action Do nothing stay at...

Страница 142: ...Go to State 1 State 1 If Event A happens Action Go to State 2 Else Action Do nothing stay at State 1 State 2 If Event B happens Action Go to TRIGGER Else Action Go to State 1 go back to State 1 TRIGGE...

Страница 143: ...which provides a list of Trigger templates that can be used as the basis for creating a new Trigger Open button Loads a previously saved Trigger definition from a file Save button Saves the currently...

Страница 144: ...on tree is right clicked a context popup menu will appear as shown in Figure 125 This menu allows you to insert edit delete cut copy and paste various nodes representing the States ELSEIF THEN block E...

Страница 145: ...Figure 126 This dialog lets you browse and select from sample templates which can be used as the basis for creating a new trigger definition Clicking on the items in the Templates list on the left sid...

Страница 146: ...nsactions collected before the trigger event occurs At any time the capturing of transactions can be stopped by the user in which case the rules for the positioning of the trigger transaction in the b...

Страница 147: ...Bus Traffic Monitor 133 Figure 127 Active Trigger Operation Status...

Страница 148: ...ption 1 Menu Bar Contains the menu bar for the active Monitor window Refer to the following Menu Bar section in this chapter 2 Tool Bar Provides quick single click access to commonly used tools for th...

Страница 149: ...to save it Save Project Saves all settings data and window positions to the current project If the project has not been given a name you will be prompted for a filename Save Project As This item perfo...

Страница 150: ...ts and clears the trace list and timing display If the current data has not yet been saved you will be prompted to save it This prompt can be disabled from the Tools Preferences Monitor Options window...

Страница 151: ...gression of this activity until it completes either by the trace buffer becoming full or by the user manually stopping acquisition The trace listing will scroll and update as new traffic is detected o...

Страница 152: ...about when the trace buffer becomes full or wraps in addition to displaying how many transactions have been collected so far The Run Status will remain open while trace buffer collection is active and...

Страница 153: ...ring the next tagged line into view at the top of the screen Start Causes the quick positioning of visible trace lines to bring the first trace buffer line into view at the top of the screen End Cause...

Страница 154: ...yed to or from a target slave device during a transaction one byte per trace listing line Compact Mode Causes the Data Byte column display to switch to Compact mode When using Compact mode all data by...

Страница 155: ...search for the same set of conditions frequently clicking on the Less button will cause the dialog to shrink to its compact size This allows the user to repeatedly search for the current transaction...

Страница 156: ...care Error Indicates that a transaction with a protocol error or no protocol error is being searched for Select Any to specify don t care I O 1 Indicates that discrete I O line 1 should have a specifi...

Страница 157: ...The Trace Layout dialog shown in Figure 137 controls which columns will be displayed in the trace listing The dialog also allows you to restore the factory defaults for column widths visibility and o...

Страница 158: ...s between Demo Mode and Live Data Mode A check mark is placed to the left of this menu item to indicate that the I2C Exerciser application is in the demo mode Self Test Launches a test sequence to val...

Страница 159: ...rtion of this menu will contain a numbered list of the currently open windows You can quickly activate any window by clicking on its number Monitor Help Menu The Help menu shown in Figure 140 accesses...

Страница 160: ...ffic acquisition which will continue forever until the user stops the process See the Trace Execute submenu Run Repetitive entry described earlier Pause Pauses bus traffic acquisition and enables all...

Страница 161: ...usion or exclusion from the trace listing Triggers Provides access to the Trigger dialog allowing the user to view or edit the trigger condition The trigger defines conditions to mark a special transa...

Страница 162: ...148 Bus Traffic Monitor...

Страница 163: ...ces During this process the BusPro I analyzer essentially acts as a master on the bus The Debugger main screen is shown in Figure 142 Typical applications include Generating I 2 C bus traffic and conf...

Страница 164: ...of recently used address values and all of the currently defined address symbols Note that 7 bit I 2 C addresses are represented as 8 bit hexadecimal values and their format is dependant on the curre...

Страница 165: ...this chapter Send button Clicking on this button begins the operation of writing to a target slave device During the Send operation this button becomes a Stop button that allows the operation to be c...

Страница 166: ...rently defined address symbols Note that 7 bit I 2 C addresses are represented as 8 bit hexadecimal values and their format is dependant on the current address mode setting FE mode or 7F mode Please r...

Страница 167: ...eceive button Clicking on this button begins the operation of reading from a target slave device Depending on the user preference that has been set the Debugger may abort its Receive operation if a me...

Страница 168: ...mediate analysis of the target I 2 C bus The left side of the Debugger Script text area contains a gutter that is used to mark errors when a syntax error occurs and can optionally display line numbers...

Страница 169: ...ated as the end of a message and disables the Stop cycle at its conclusion regardless of the No Stop checkbox setting Any immediately following bytes start a new message ie a new address cycle PAUSE P...

Страница 170: ...05 06 07 08 09 0A 0B 0C 0D 0E 0F wait for write to complete spec 5 msec min PAUSE 30 ms address A0 new wrt 10 address ptr data bytes 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F PAUSE 30 ms SETDIS...

Страница 171: ...r options are described below Figure 145 Debugger Options Pane Track Transactions If selected data sent by the BusPro I is tracked by the Monitor and the transaction times out if matching data does no...

Страница 172: ...led Abort Message if Address is NAK d If selected the debugger aborts sending the message data bytes if the address is NAKed This option is available only when the Track Transaction option is enabled...

Страница 173: ...he active Debugger window Refer to the following Menu Bar section in this chapter 2 Tool Bar Provides quick single click access to commonly used tools for the active Debugger window Refer to the Tool...

Страница 174: ...splayed to save it Open Debugger Command File Opens a previously saved command file and restores the saved debugger commands and data to the Debugger window s Send text box If the text box contains ex...

Страница 175: ...n of the command Figure 148 Debugger Tool Bar Icon Name Function Description New Command File Clears the Debugger window s Send text box in preparation for entering new debugger commands and data If t...

Страница 176: ...162 Interactive Debugger...

Страница 177: ...down list of known manufacturers and types whose standard address and address type 7 or 10 bit width is preloaded This latter information can be overwritten by the user for non standard systems In ad...

Страница 178: ...in the menu bar or from the Programmer icon in the shortcut bar It allows the user to program most common I 2 C EEPROM devices using a common data file format such as a Motorola S Record file Intel H...

Страница 179: ...gured to use an address other than the manufacturer default that address can be entered into this field The address format complies with the Preference option in force FE mode is an 8 bit format with...

Страница 180: ...Programmer Read Window Icon Name Description Go to Beginning Moves to the beginning of the EEPROM memory Go to End Moves to the end of the EEPROM memory Back Moves one page backward in the EEPROM mem...

Страница 181: ...operation the progress dialog box shown in Figure 151 will pop up to show the programming status Figure 151 Programming Progress Window Verify Button The Verify button allows you to verify the content...

Страница 182: ...es dialog To open the Preferences dialog press F7 or select Preferences from the Tools menu Once the Preferences dialog appears select the Programmer Options pane as shown in Figure 154 Figure 154 Pro...

Страница 183: ...f the I2C Exerciser Programmer window Figure 155 I2C Exerciser Programmer Window Component Description 1 Menu Bar Contains the menu bar for the active Programmer window 2 Tool Bar Provides quick singl...

Страница 184: ...ts defaults If the active Programmer configuration contains unsaved settings you will be prompted to save the configuration Open Programmer Configuration File Loads a previously saved configuration fr...

Страница 185: ...cribes the tool bar functions Positioning the mouse cursor over each tool bar button will also display a pop up tooltip providing a short description of the command Figure 157 Programmer Tool Bar Icon...

Страница 186: ...172 Serial EEPROM Programmer...

Страница 187: ...rs and Trigger toolbar in the Monitor window The user can also access the most recently used Configuration Manager tab by using the Tools Configuration Manager menu command accessible from all windows...

Страница 188: ...ious settings controlling the behavior of the BusPro I and I2C Exerciser The user can access the Configuration Manager using the Tools menu The major features are grouped under separate panes of this...

Страница 189: ...project Table 14 Configuration Manager Panes Filters Pane A filter defines a class of transactions by specifying a set of particular transaction features Each filter can be individually activated or...

Страница 190: ...ayed in the dialog s list box A filter from the list can be selected by the user for editing or removal Using the Add button beneath the list box a new filter can be defined and appended to the list T...

Страница 191: ...Configuration and Preferences 177 Figure 160 Filter Definition Dialog similar to Edit...

Страница 192: ...can contain symbolic text strings along with associated parameters that specify the criteria which determine where the symbolic text will replace a numeric value in the trace listing and other relate...

Страница 193: ...a slave device might be a register the contents of which may be appropriately shown using some symbolic text instead of the numeric value Symbols can also operate in the reverse direction That is a s...

Страница 194: ...180 Configuration and Preferences Figure 163 SMBus Pane...

Страница 195: ...ion or the entire list of associations When using the Add or Edit buttons the SMBus Decoder File dialog is displayed as shown in Figure 164 Click on the Browse button to select the decoder file Click...

Страница 196: ...wn in Figure 165 allows setting of the various electrical and bus features of the analyzer There are some settings that depend on others and may be grayed out accordingly All of the controls present i...

Страница 197: ...nalyzer Default values for these settings are based on the pull up voltage selected in the Voltage dropdown box Bus Signal Threshold Low Level This value establishes the maximum voltage that a bus sig...

Страница 198: ...e state of the I O 1 line to the AT1 SMB connector on the BusPro I for signaling external instruments Not applicable when I O 1 is an input I O 2 Specifies the discrete signal I O 2 to be an input an...

Страница 199: ...n not in high speed mode will allow better driving clock rate range since the analyzer will force rising edges up quickly despite the excess capacitance This of course only fixes the bus when the anal...

Страница 200: ...186 Configuration and Preferences Figure 166 Files Pane...

Страница 201: ...bugger options programmer options and formats Monitor Colors This pane enables altering of the colors of the trigger and cursor backgrounds and text in the trace listing It also enables the background...

Страница 202: ...r with earlier transactions being negative Timestamp Start sets whether time zero starts at the first entry default or at the trigger with earlier transactions being negative Timestamp Display control...

Страница 203: ...ugger Options This pane enables altering of preferences for the Debugger window The first option sets whether or not data that is sent by the analyzer is tracked by the Monitor and times out if matchi...

Страница 204: ...figuration and Preferences Programmer Options This pane enables setting of whether or not the Programmer performs a verification of written data after programming a device Figure 170 Programmer Option...

Страница 205: ...r to non hex representations such as symbolic The FE format default shows the hexadecimal byte value with the 7 address bits left justified in the byte The 7F format shows the 7 address bits right jus...

Страница 206: ...og including o Monitor colors and options o Debugger options o Programmer options o Address format options All settings from the Trigger dialog Window sizes and positions of the Monitor Debugger Progr...

Страница 207: ...save the changes or not You may choose not to save it to preserve your original project settings or to save the latest changes to the project for next time Along with the configuration settings prefe...

Страница 208: ...ay a prompt as shown in Figure 175 Figure 175 Calibration Prompt The calibration process can be skipped and the I2C Exerciser will not prompt again until the next time the application is launched howe...

Страница 209: ...pull up resistors and SDA pull up resistors The progress of each step is reported in the Calibration Status window as shown in Figure 177 When all steps have completed successfully the status window...

Страница 210: ...196 Configuration and Preferences...

Страница 211: ...and performing bus measurements This effectively provides such software with a portal to the connected I 2 C bus One set of common third party applications includes the National Instruments LabWindow...

Страница 212: ...ided in the I2C Exerciser installation folder The I2C_DLL dll or I2C_DLL_64 dll and i2c_fpga_bin bin files are required in order to execute third party programs calling the I2C_DLL functions Additiona...

Страница 213: ...d target operations I2C_ShutdownHardware required shut down and disconnection from PC USB port The first and last function calls are mandatory The first function call will enable most of the other ope...

Страница 214: ...om_Read Writes and then reads data from the specified target slave address I2C_Receive_Data Conveys a message from the I2 C bus for a given address I2C_Receive_Data_Q Reads data from the specified tar...

Страница 215: ...e high state of the discrete I O signals I2C_SetFEAddrFormat Defines the mode of byte representation used throughout the set of DLL commands for 7 bit addresses I2C_SetMonitorCallback Sets application...

Страница 216: ...0 if I2C_InitHardware was never called 1 if successful 1 if invalid nDiscrete1Function parameter 2 if invalid nDiscrete2Function parameter 3 if invalid szVoltage parameter Parameters nDiscrete1Functio...

Страница 217: ...h SDA drive level soon enough before deciding that another master is driving the bus and colliding with it This mode will stop the analyzer from checking this condition and permit continued operation...

Страница 218: ...n Interface I2C_DisableTxTracking Turns off the transmission tracking feature Removes delays between transactions Prototype extern C __declspec dllexport void _cdecl I2C_DisableTxTracking void Return...

Страница 219: ...Interface 205 I2C_EnableTxTracking Turns on the transmission tracking feature Adds delays between transactions Prototype extern C __declspec dllexport void _cdecl I2C_EnableTxTracking void Return Val...

Страница 220: ...ental status of the most recent call to an API function Prototype extern C __declspec dllexport char _cdecl I2C_GetLastStatus void Return Value The status string indicating the result of the most rece...

Страница 221: ...the most recent call to I2C_Receive_Data or I2C_Send_Data The event of an address cycle NAK is provided Prototype extern C __declspec dllexport char _cdecl I2C_GetLastTransferStatus void Return Value...

Страница 222: ...rt It initializes the hardware with logic and downloads the firmware with all settings at factory default states Prototype extern C __declspec dllexport char _cdecl I2C_InitHardware void Return Value...

Страница 223: ...ControlMode BufferDepthSetting Discrete1IOmode Discrete1Drives_SMB_AT1 Discrete2IOmode Discrete2InputSource DiscreteVoltage HiSpeedMode TimingSkewMode TimingSkewSetupTime TimingSkewHoldTime SMBusTimeo...

Страница 224: ...his will leave the discrete high regardless of what state it started at Prototype extern C __declspec dllexport int _cdecl I2C_PulseDiscrete int nDiscreteNumber int nMilliseconds Return Value 0 if I2C...

Страница 225: ...the 7 bit or 10 bit address of the source slave depending on following parameter b10BitAddress If 1 the above address is a 10 bit value If 0 it is a 7 bit address pMemAddrBytes A pointer to a block o...

Страница 226: ...Count int bUseStopBits Return Value 1 if I2C_InitHardware was never called 2 if a timeout occurred otherwise the number of bytes received may be 0 if transfer was aborted due to address NAK Parameters...

Страница 227: ...t nQID int nAddress int b10BitAddress unsigned char pReceiveData int nDataCount int bUseStopBits Return Value 1 if I2C_InitHardware was never called 2 if a timeout occurred 3 if transaction tracking i...

Страница 228: ...eclspec dllexport int _cdecl I2C_Receive_Data_Q_Get int nQID unsigned char pReceiveData int nDataCount Return Value Number of bytes retrieved Parameters nQID ID of the queue entry to be retrieved from...

Страница 229: ...1 if I2C_InitHardware was never called 2 if a timeout occurred otherwise the number of bytes sent may be 0 if transfer was aborted due to address NAK Parameters nAddress This is the 7 bit or 10 bit a...

Страница 230: ...all I2C_GetLastStatus function to get the result of the call in a string format including an error message Parameters nAddress This is the 7 bit or 10 bit address of the destination slave depending on...

Страница 231: ...address was NAK d 2 if a timeout occurred Call I2C_GetLastStatus function to get the result of the call in a string format including an error message Parameters nAddress This is the 7 bit or 10 bit a...

Страница 232: ...instead of the target signal The configured direction of the signal has no effect here Prototype extern C __declspec dllexport int _cdecl I2C_SenseDiscrete int nDiscreteNumber int nLevel Return Value...

Страница 233: ...ec dllexport char _cdecl I2C_SetBusDriveVoltage char szVoltage Return Value NULL if I2C_InitHardware was never called otherwise a pointer to a string containing the actual resulting reference voltage...

Страница 234: ...ty of a driver to achieve a desired clock rate since the top of the pulse may not reach the high threshold before turning around again The threshold levels may also impact proper sensing of the bus si...

Страница 235: ...ity of a driver to achieve a desired clock rate since the top of the pulse may not reach the high threshold before turning around again The threshold levels may also impact proper sensing of the bus s...

Страница 236: ...te performance This is also affected by Accelerated Rising Edge Drive and threshold values Prototype extern C __declspec dllexport char _cdecl I2C_SetBusPullupResistance char szResistance Return Value...

Страница 237: ...rammable level the target pull ups should be removed Prototype extern C __declspec dllexport int _cdecl I2C_SetBusVoltageSource int nSource Return Value 0 if I2C_InitHardware was never called otherwis...

Страница 238: ...e final stage of signal rising Prototype extern C __declspec dllexport char _cdecl I2C_SetClockRate char szClockRateKhz Return Value NULL if I2C_InitHardware was never called otherwise a pointer to a...

Страница 239: ...o normally read back a value different than driven out Prototype extern C __declspec dllexport int _cdecl I2C_SetDiscrete int nDiscreteNumber int nLevel int nSensedLevel Return Value 0 if I2C_InitHard...

Страница 240: ..._declspec dllexport char _cdecl I2C_SetDiscreteVoltage char szVoltage Return Value NULL if I2C_InitHardware was never called otherwise a pointer to a string containing the actual resulting voltage clo...

Страница 241: ...in the byte either left justified where the LSB is zero FE mode or right justified where the MSB is zero 7F mode Suppose the protocol slave address is binary 0110101 it can be represented in a byte a...

Страница 242: ...tion defined callback function The definition of callback function is typedef UINT CALLBACK TXDATAHANDLERPROC ULONG ULONGLONG LPARAM The first parameter ULONG is the encoded transaction data See below...

Страница 243: ...rrCode 3 ErrCode 2 ErrCode 1 ErrCode 0 I O 2 I O 1 3 1 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 1 9 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 9 8 7 6 5 4 3 2 1 0 Summary of Error Codes 00H no error 01H A...

Страница 244: ...the bus the analyzer will assert hard drivers on the bus momentarily during signal rising edges This should overcome parasitic capacitance on the bus resulting in fast rise times Prototype extern C __...

Страница 245: ...nvoked prior to any new I2C_InitHardware call for trouble free operation Otherwise the analyzer must be unplugged and re plugged into the PC before being initialized again This function may not return...

Страница 246: ...232 Third Party Application Interface...

Страница 247: ...0 non condensing Storage Environment Temperature 40 C to 85 C USB Interface USB Connector Standard Type B Socket Port Version 2 0 Power Requirements 5 0V Provided by the host USB 2 0 port in complianc...

Страница 248: ...ale socket Molex 08 50 0113 crimp terminals in Molex 22 01 3047 housing 0 1 single row or equivalent Mates with friction lock header Molex 22 23 2041 or equivalent at the target Cable 12 inches other...

Страница 249: ...ble Rising Slope Control When enabled momentarily pulls up rising edge driven bus signals to quickly overcome capacitance Target Discrete I O1 I O2 Test Signals Programmable TTL Discrete I O Output Vo...

Страница 250: ...erformance may be limited due to target bus conditions such as parasitic capacitance and pull up resistance rise time Standard Fast Fast mode Plus is supported for master emulation and monitoring up t...

Отзывы: