Home

BusPro I2C User`s Manual

image

Contents

1. Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 120 1 140 2 bh Figure 50 Monitor Window Trace List Positioned on Cursor A Line 50 Getting Started Now right click in the trace list area of the Monitor window and select the Go to Cursor B pop up menu entry This will cause the trace list and timing display to reposition to the Cursor B line as shown in Figure 51 The Cursor B line can be seen on line 100 in the trace list Both the trace list line and vertical marker in the timing display are colored magenta to help distinguish them from other display elements Note that the timing display s Line field is displaying 100 and that the magenta colored vertical marker for Cursor B is positioned on the first edge of this data word 44 IC Exerciser Untitled Monitor Untitled fo e tun Eile Trace Tools Window Help x sh pm tua xu YE ms E e Line Marker Type Location Addr Hex AddrType R W NAK Error KHz Data Byte Hex Time us 01 al 86 Address Target 54 7 Bit Write 402 9 368 1 01101 87 Data Target 54 7 Bit Write 402 22 9 395 1 alhuliml 38 Data Target 54 7 Bit Write 401 5A 9 421 1 Monitor 89 Data Target 54 7 Bit Write 400 31 9 446 1 90 Data Target 54 7 Bit Write 403 OF 9472 1 91 Address Analyzer 36 7 Bit Read 107 9655 1 92 Data Target 36 7 Bit Read 104 61 9811 1 Debugger 93 Tagged Data Target 36 7 Bit Read 104 DANGER 9909 1 94 Addr
2. Figure 87 Debugger Discrete l O Script ai Monitor Untitled Line Marker Type 8 Address 9 Data 10 Data 11 Data 12 Data 13 Address 14 Data 15 Address 16 Data 17 Address 18 Data 19 Address 20 Data 21 Address 22 Data 23 Address 24 Data 25 Address 26 Data Address 4 Getting Started Analyzer C4 Target C4 Target C4 Target C4 Target C4 Analyzer 118 Target 118 Analyzer 118 Target 118 Analyzer 118 Target 118 Analyzer 118 Target 118 Analyzer 118 Target 118 Analyzer 118 Target 118 Analyzer 118 Target 118 Analyzer Figure 88 Monitor Debugger Discrete I O Manipulation 7 Bit Write NAK 7 Bit Write NAK 7 Bit Write NAK 7 Bit Write NAK 7 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK 10 Bit Write NAK m 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 Ir r rr r a OL rr rr O O a O O a hat OOM ahd OOM aMi IMi aMi ob Location Addr Hex AddrType R W NAK Error KHz 110 1 VO 2 Data Byte Hex 21 30 0D DA A1 2B 9F E8 Al 2B OF Time us 12 363 12 363 12 363 y Se 12 364 102 050 102 050 102 053 102 054 102 057 102 057 102 062 102 062
3. 202 Third Party Application Interface 120 SendDataPEC sends a message ie performs a write operation with a SMBus Packet Error Checking PEC byte to the specified target slave address The PEC is a CRC 8 error checking byte calculated on all the message bytes including addresses and read write bits The PEC is appended to the message as the last data byte This function behaves same as the I2C_SendData function except for the addition of PEC byte Prototype extern C _ declspec dllexport int _cdecl I2C SendDataPEC int nAddress int blOBitAddress unsigned char pSendData unsigned char pReceiveData int nDataCount int bUseStopBit unsigned long ulParam Return Value Number of bytes successfully sent O if error occurred 1 if address was NAK d 2 if a timeout occurred Call 12C_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 following parameter b10BitAddress If one the above address is a 10 bit value If zero it is a 7 bit address pSendData A pointer to a block of memory where the send data bytes are provided pReceiveData A pointer to a block of memory where the successfully sent data bytes are returned This is an optional parameter which can be NULL nDataCount The number of bytes contained in the above block of memory bUseStopBit If one a stop
4. UA mlt 80 Data Analyzer 18 F Bit Read Monitor 81 Data Analyzer 18 7 Bit Read Figure 32 Go to Start Tool Bar Button Observe that some address columns contain symbolic values such as PLL and ADC and some data columns contain symbolic values such as FAULT WARNING and CHANSEL The user can define symbols for both address and data to enhance device specific readability 34 Getting Started a 24 IC Exerciser Untitled Monitor Untitled fs fos sE fas File Trace Tools Window Help e cH gt hl O 8H a Ba xe YE Me Lin Marker Type Location Addr Hex AddrType RAW NAK Error KHz 1 0 1 O 2 Data Byte Hex Time us a 1 Address Target 54 7 Bit Write 402 1 1 0 01101 2 Data Target 54 7 Bit Write 402 1 4 1E 28 altala 3 Data Target 54 7 Bit Write 401 1 1 5C 53 4 Data Target 54 7 Bit Write 400 1 1 34 78 5 Data Target 54 7 Bit Write 403 1 1 FAULT 104 h 6 Address Analyzer 36 7 Bit Read 107 1 1 287 7 Data Target 36 7 Bit Read 104 1 1 51 443 Debugger 8 Data Target 36 7 Bit Read 104 1 1 WARNING 541 9 Address Target PLE 7 Bit Write 402 1 1 1 252 E 10 Data Target PLL 7 Bit Write 402 1 1 z 1 280 pri 11 Address Target ADC 7 Bit Write NAK 401 1 1 1 464 Programmer 12 Address Target ADC 7 Bit Write 400 1 1 ZA 13 Data Target ADC 7 Bit Write 403 1 1 2E 1 550 14 Data Target ADC 7 Bit Write 403 1 1 FA 1 575 io Tagged Data Target 7 Bit Write E mE EE CHANSEL 1 601 cursor Data Target ADC
5. ali File Trace Tools Window Help CH oo 25 8h Ba xe YE al Line Marker Type Location Addr Hex AddrType RAW NAK Error KHz O 1 V O 2 Data Byte Hex Time us 1 45 Trigger 01101 46 Address Target 18 7 Bit Read 402 1 1 4 694 all 47 Data Analyzer 18 7 Bit Read 402 1 1 3D 4 735 Monitor 48 Data Analyzer 18 7 Bit Read 401 1 1 63 4 761 49 Data Analyzer 18 7 Bit Read 400 1 1 52 4 786 re 50 Data Analyzer 18 7 Bit Read 403 1 1 16 4811 51 Address Analyzer ADC 7 Bit Read 107 1 1 4 995 Debugger 52 Data Target ADC 7 Bit Read 104 1 1 1F 5 151 53 Data Target ADC 7 Bit Read 104 1 1 BUSY 5 249 zi 54 Address Target PLL 7 Bit Write 402 1 1 5 960 par 55 Data Target PLL 7 Bit Write 402 1 4 5A 5 988 Programmer 56 Address Target ADC 7 Bit Write 401 1 1 6 171 57 Data Target ADC 7 Bit Write 403 1 1 33 6 199 s 58 Data Target ADC 7 Bit Write 403 1 1 E7 6 224 59 Tagged Data Target ADC 7 Bit Write NAK 403 1 1 CHANSEL 6 250 60 Data Target ADC 7 Bit Write NAK 403 1 1 CHANSEL 6 303 61 Data Target ADC 7 Bit Write 403 1 1 CHANSEL 6 357 62 Address Target 54 7 Bit Write 402 1 1 6 546 63 Data Target 54 7 Bit Write 402 1 1 1A 6 573 64 Data Target 54 7 Bit Write 401 1 1 61 6 599 65 Data Target 54 7 Bit Write 400 1 1 32 6 624 66 Data Target 54 7 Bit Write 403 1 1 OF 6 650 67 Address Analyzer 36 7 Bit Read 107 1 1 6 833 68 Data Target 36 7 Bit Read 104 1 1 48 6 989 69 Data Target 36 7 Bit Read 104 1 1 LOWTEMP 7 087 v
6. Monitor Tool Bar The Monitor Tool Bar shown in Figure 132 provides quick single click access to commonly used commands in the Monitor window Simply click on the tool bar button to perform the desired command Table 5 describes 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 coh phe 2 8 Xv Mo e Figure 132 Monitor Tool Bar leon Name Function Description Open Trace Data Opens and loads a previously saved trace buffer in the Monitor Trace listing and Timing display CN Save Trace Data Saves the current trace buffer data of the Monitor listing into a binary TDF file Run Single Begins bus traffic acquisition until the number of acquired transactions equals the configured trace buffer depth See the Trace Execute submenu Run Single entry described earlier Run Repetitive Begins bus traffic 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 Monitor window commands x Stop Immediately stops bus traffic acquisition and enables all Monitor window commands ne Go to Trigger Causes the quick positioning of visible trace lines to bring the Trigger into view at the top of the screen Go to Tagged Row Causes the quick positioning of visible trace lines to bring the next t
7. T e ml o Eero eer E A eerie ary CA A A Data Data HANA Dh AAA AAA Ready DEMO AddFormat FE Trace Off co 2 hn BE SDA 120 1 170 2 Y Figure 27 Monitor Window Trace List Positioned on Trigger Line 30 Getting Started To access the Configuration Manager Trigger setup screen right click in the trace list area and select the Trigger setup screen will appear as shown in Figure 29 ua LC Exerciser Untitled Monitor Untitled a File Trace Tools Window Help entry from the pop up menu as shown in Figure 28 The Configuration Manager Trigger H All e 2 8 xo y Mo El e shortcuts Line Marker Type 30 Data Data E Data Data Address Data Data Address Data Data Data Data Address Data EIN Address Data Data Data Data Address Data Data Address 34 35 36 af 38 39 40 4 42 43 Frogrammer 47 48 49 50 51 52 53 54 Scale 50 us div Auto Fit Location Addr Hex AddrType RAV MAK E 18 18 7 Bit 7 Bit Read Read Analyzer Analyzer Analyzer Analyzer Analyzer lad Analyzer Target Target Target Target Target Target Target Analyzer Target Open Trace Data File Ctrl 0 Save Trace Data File Ctrl 5 Go To View Clear Trace Data Clear All Tags Set Tag Clear Tag Filters tie Trigger Symbols Find Trace Layout Target Monitor Timing Analyz
8. 46 Getting Started After hiding the I O 2 column and repositioning the I O 1 column the Monitor window should now look like Figure 47 5 BC Exerciser Untitled Monitor Untitled o JO aa ani File Trace Tools Window Help lo x S W p So BE BEA BH xe vr Ae Lin Marker Type Location Addr Hex AddrType RAW NAK Error KHz Data Byte Hex Time us I O 1 a 1 Address Target 54 7 Bit Write 402 0 1 01101 2 Data Target 54 7 Bit Write 402 1E 28 14 sllvaltual 3 Data Target 54 7 Bit Write 401 5C 53 1 5 Monitor 4 Data Target 54 7 Bit Write 400 34 1 5 Data Target 54 7 Bit Write 403 DA 104 1 re 6 Address Analyzer 36 7 Bit Read 107 287 1 iz Data Target 36 7 Bit Read 104 51 443 1 Debugger 8 Data Target 36 7 Bit Read 104 1C 541 1 9 Address Target PLL 7 Bit Write 402 1 252 1 Bl 10 Data Target PLL 7 Bit Write 402 JE 1 280 1 Saot 11 Address Target ADC 7 Bit Write NAK 401 1 464 1 Programmer 12 Address Target ADC 7 Bit Write 400 1522 1 13 Data Target ADC 7 Bit Write 403 2E 1 550 1 14 Data Target ADC 7 Bit Write 403 FA LST io Tagged Data Target 7 Bit Write En E 1 601 eure ata argo ADO SHON a ae O ee Address Target DAC 7 Bit Read 402 1 843 18 Data Analyzer DAC 7 Bit Read 402 1A 1 884 1 19 Data Analyzer DAC 7 Bit Read 401 70 1 909 1 20 Data Analyzer DAC 7 Bit Read 400 4F 1935 1 21 Data Analyzer DAC 7 Bit Read 400 45 1960 0 22 Data A
9. RAV NAK Error KHz Data Byte Hex Time us 1 0 1 a 33 Preferences j 2267 0 01101 34 2 293 1 E f E altoadtnal 35 Monitor Colors 1 Debugger Options Programmer Options Formats 2476 4 Monitor 36 2 632 1 37 Line Column 2 730 1 we 38 O Starting from 1 default Trigger is line 0 3 441 1 39 3 469 1 Debugger 40 Timestamp Start 3 494 1 41 3 520 1 a O Starting from 0 default Trigger is time O 7 z0 42 3 545 1 E 3001001 43 Timestamp Display 3 729 1 Programmer ae 3884 1 Toor Abst Relate to last 000 SE 46 4694 1 Other Options 47 4735 1 48 Y Prompt for saving trace data prior to CLEAR or RUN 4761 4 49 Y Lock Timing with Trace 4 786 1 5 gt Lock to Top Listing Li Lock to Selected Listing Li hs 3 54 Lo op Listing Line o elec sting Line 4 995 4 52 START Hold Time Checking 5 151 1 53 ae 5 249 1 Minimum Hold Time 0 16us v 54 5 960 1 55 5 988 1 ERA 6 199 1 z Scale 69 042 us Corelis Ready DEMO AddFormat FE Trace Off Bus SCL SDA 140 1 1 0 2 Figure 71 Monitor Options Preferences Screen 68 Getting Started The Monitor Options tab allows configuration of other Monitor window display options The Line Column option affects how the Line column in the trace list is displayed When set to Starting from 1 the trace list rows will 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
10. is shown meaning that the transaction is not acknowledged e P Designates a STOP condition e S Designates a START or repeated START condition e W R Designates the transfer direction indicator bit During an address cycle either a W is shown meaning that a master is writing data to a target slave device or an R is shown meaning that a master is reading data from a target slave device Bus Traffic Monitor 109 Scale controls These controls adjust the zoom level of the timing graph waveforms e Scale text box This indicates the length of time between each of the larger tick marks across the top of the timing display based on the current zoom level e buttons These buttons enable zooming out or in to show the timing waveforms expanded more detail or contracted more transitions over the length of the graph Zooming is relative to the point at the center of the timing graph which remains fixed as both ends of the waveforms stretch closer to or farther from it e Auto Fit checkbox If checked the zoom level automatically adjusts to an optimum scale such that about 20 SCL clock periods are shown over the timing graph Line controls These controls reflect the location of the timing graph s Link Edge Marker described below relative to the trace listing and allow easy navigation through the transactions e Line text box This indicates the trace listing line that corre
11. 140 1 1 0 2 Figure 53 Monitor Window Timing Display Measuring the Time Between Cursors A amp B Getting Started 53 Step 6 Find Operations Push the Go to Start tool bar button as shown in Figure 54 to bring 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 the first entry all the way to the end of the trace buffer contents E a3 LC Exerciser Untitled Monitor Untitled Tia File Trace Tools Window Help oi pollo 2 8 E x m er h Analyzer Analyze 54 Getting Started Click on the Find tool bar button as shown in Figure 55 below It will bring up the Find dialog shown in Figure 56 Ta 35 DC Exerciser Untitled Monitor Untitled Fn File Trace Tools Window Help CAMARA ea AxA YE TIE O Find Line Marker Type Location Addr Hex AddrType Address Target 54 F Bit Write 01101 Data Target 7 Bit Write allalttal 3 Data Target 5 F Bit Write Monitor Data Target F Bit Write Figure 55 Find Tool Bar Button Find Transfer Type NAK Aay F Addr Hex skid A aL ape so em 102 Data Byte alu ted ANY 7 postion La 7 He Width ipyte 7 Load From Selected Monitor Trace Line Figure 56 Find Dialog Getting Started 55 The Less button compacts this dialog to display only the four buttons on
12. Analyzer DAC 7 Bit Read 400 55 Mask gt Width Byte ata Analyzer 7 Bit Read 403 Hex lf y BUT Ass rer ADC TBH Reat E Hor E ESTE NSA SRT ET W 101 Data Target 7 Bit Read 104 DONE 102 Address Target PLL 7 Bit Write 402 103 Data Target PLL 7 Bit Write 402 6A 11914 1 104 Address Target ADC 7 Bit Write 401 12 098 1 v I I I I I SS o TOf Data TOT tete Tofo ta OA S000 TOO RA OO A 0111001014 111011104 00100001 4p orelis Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 120 1 1 0 2 f Figure 64 Monitor Window Trace List Showing the Second Find 72 Data Result Getting Started 61 Step 7 Changing Preferences There are a number of user configurable preferences available from the Tools Preferences menu entry Right click in the trace list and select Go to CursorB from the pop up menu Select the Tools Preferences menu entry and the Preferences dialog will appear By default this screen will be displaying the options on the Monitor Colors tab Move the Preferences 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 the text and background colors of the trigger and cursor markers the color of the SDA line SCL line and beginning marker lines in the timing display and the normal trace list line coloring scheme Changing any of these s
13. Associating SMBus devices with decoding files Configuration and Preferences 163 Configuration Manager Reference The Configuration Manager dialog shown in Figure 149 enables selection of various settings controlling the behavior of the BusPro I2Cand I2C Exerciser The user can access the Configuration Manager using the Tools menu The major features are grouped under separate panes of this dialog These panes are listed in Table 13 and described on the following pages Configuration Manager Bus Electrical Features Voltage Source Bus Signal Thresholds Target Supplied Analyzer Supplied High Level 1 80 Volts Intended Pull up Parameters Voltage 3 30 Volts Low Level 0 00 Volts Pull up Resistance Auto Detect Bus Drive Features Drive Clock Rate 190 kHz E Disable Collision Detection Accelerated Rising Edge Drive Hi Speed Mode Auto 5 On Off Auto On off Input Output Signals High Level Function fo D i 5 M B AT 1 EBM ii 1 0 2 Source Monitor Buffer Options Depth Transactions Figure 149 Configuration Manager Dialog Panes Settings selected 164 Configuration and Preferences Function escription S Establishes the criteria that define a trigger event Also allows the setting of the trigger s position relative to the trace buffer early middle or late Filters Establishes the criteria for one or more filters that determine what transactions will be included or exc
14. Debugger Options The preferences relevant to the Debugger window can be specified by accessing the Debugger Options pane of the Preferences dialog Open the Preferences dialog by pressing F7 or by selecting Preferences from the Tool menu When the Preferences dialog appears choose the Debugger Options tab as shown in Figure 136 The four options are described below Preferences Options Track Transactions Echo Sent Data Abort Message if Address is NAK d Show Send Command Line Number Figure 136 Debugger Options Pane Track Transactions If selected data sent by the BusPro 2C is tracked by the Monitor and the transaction times out if matching data does not appear on the bus within 2 seconds Tracking the sent byte will ensure the sent bytes are generated on the bus correctly However this will generate more than 1 ms gap between the transactions In order to eliminate the gap you must disable this option The Echo Sent Data and Abort Message if Address is NAK d options can be enabled only when this option is on Interactive Debugger 147 Echo Sent Data If selected data sent by the BusPro 12C is echoed in the Receive side text box along with all other incoming traffic during the send operation This option is available only when the Track Transaction option is enabled 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
15. Figure 160 Figure 161 Figure 162 Figure 163 Figure 164 Figure 165 Figure 166 Figure 167 Figure 168 Figure 169 Figure 170 viii Montor Colors PANG seisoi nae aa a a a aa ea Aa Aaa 178 M n itor Options Pane iaire iia 179 Debugger Options Pane A a 180 Programmer Options PAN A e a eaka 181 POM INU Sir AN e ni 182 Title Bar fora New Project na dia erative 183 Title Bar for a Saved Aro Ci a Lada 184 File Menu MRO PO ect Sui ic 184 CDON OM Erre canso aro bento cachet arde 185 Sl OE O o O wea etaoh ncn e weadeaeafcasha 185 ANDALOU AU A A PP nececestan stele a wcanet meena ace E gees eae 186 CAMA my ONO sora a dee NO ad 186 List of Tables Table 1 OptuonalInterace Cablesusia aa ala 7 Table 2 Flying Leads Serial Bus Connector Pin Assignments occcoccccccnconcncocnncncnnoncnconcnnonnncnnnnononconcnnnnos 91 Table 3 4 Pin Crimp Cable Pin AssighmMents ni a ada i biehas aie tae iawn a aa 92 Table 4 Montor Window Layos cuasi 123 Table 5 Monitor Tool Bar FUACIONS iia ca 136 Table 6 Debugger Script Key WOM AS ici a cada 144 Table 7 Debugger Window Layout eii 149 Tables Debugger Tool Bar FUNCIONS simrer dio 151 Table 9 Programmer Function DescrapldAs ii cs 155 Table 10 Programmer Read Contents Window Function DescriptiONS cccocccccoccnccoccnnconcncnonononononos 156 Table 11 Programmer WINAOWATEAS ticattinta ii 159 Table 12 Programmer Tool Bar FUNCTIONS occcoccccoccccccnccncnconcnconcnnnnnn
16. especially pull up values and parasitic capacitance can limit the upper rate of operation The ability of the analyzer to track the signals is also affected by receive threshold voltage settings The user should be aware of the analog behavior of the bus signals especially slow rise times and their relationship to transitions at higher clock rates This clock rate setting does not apply to target master clocks which are not driven but are only monitored by the BusPro 2C In such cases the rate is automatically tracked up to 5 MHz When the BusPro I2C drives the bus it also automatically synchronizes the clock signal in compliance with the IC specification s multi master requirements Discrete I O Signals Two programmable general purpose lines can be operated under PC host software control and are available 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 signals is programmable independent of IC bus levels The state of these signals is monitored and displayed in the trace listing while collecting bus traffic and they can contribute to trigger conditions Each one of the two discrete lines can source 12 mA and can be used as a limited programmable power source to a target when configured as a TTL output Power Requirements The BusPro I2C receives the standard power available from the host USB p
17. or compact Less mode depending on the last used size as shown in Figure 126 and Figure 127 This dialog allows the user to search through the trace listing for transactions matching the specified pattern Trace Layout Launches the Trace Layout dialog as in Figure 128 which allows customization of the trace listing columns Trace Run Stop Submenu The Trace Run Stop submenu shown in Figure 122 provides run control of the Monitor window trace buffer b Run Single F11 ua Run Repetrtiwe Ctri F11 Pause Shift F11 9 Stop F12 Figure 122 Trace Execute Submenu Run Single Begins bus traffic acquisition until the number of acquired transactions equals the configured trace buffer depth The Run Status dialog shown in Figure 123 will be displayed showing the progression 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 on the I2C test bus If a Trigger is enabled the Monitor will keep acquiring transactions even if the buffer becomes full until it detects the triggering event When the event is detected additional transactions will be acquired until either the specified trigger position early middle or late is reached or the user stops it manually Some Monitor window commands are disabled while bus traffic is being accumulated Run Repetitive Begins bus traffic acquis
18. Bit Read 107 1 an Run Status 36 Data Target ADC 7 Bit Read 104 37 Data Target ADC 7 Bit Read 104 1 Pre trigger data 38 Address Target 54 7 Bit Write AE Po 39 Data Target 54 7 Bit Write 402 1 Buffer Full 40 Data Target 54 7 Bit Write E Dan 41 Data Target 54 7 Bit Write 400 1 42 Data Target 54 7 Bit Write 403 1 43 Address Analyzer 36 7 Bit Read 107 1 44 Data Target 36 7 Bit Read 104 1 Programmer CO Data Target 36 7 Bit Read 104 46 Address Target 18 7 Bit Read 402 1 47 Data Analyzer 18 7 Bit Read 402 1 48 Data Analyzer 18 7 Bit Read 401 1 49 Data Analyzer 18 7 Bit Read 400 1 50 Data Analyzer 18 7 Bit Read 403 1 109 transactions collected 51 Address Analyzer ADC 7 Bit Read 107 1 52 Data Target ADC 7 Bit Read 104 1 E O 53 Data Target ADC 7 Bit Read 104 1 Data collected successfully 54 Address Target PLL 7 Bit Write 402 1 55 Data Target PLL 7 Bit Write 402 1 56 Address Target ADC 7 Bit Write 401 1 57 Data Target ADC 7 Bit Write 403 1 1 33 6 199 58 Data Target ADC 7 Bit Write 403 1 1 E7 6 224 a Corelis Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 140 1 1 0 2 Figure 24 Run Status Window Getting Started 27 Step 4 Close the Run Status Window Click on the Run Status window Close button and the window will close allowing a full view of the Monitor window which shows a portion of the trace buffer content If a user specified trigger is encountered while acquiring bus traffic the trace
19. Bit Read 400 0 1 4F 2 037 25 Data Analyzer DAC 7 Bit Read 400 0 1 4F 2 062 v Scale 50 us div Auto Fit Line 1 4 Interval A to B 9 422762 ms Ready DEMO AddrFormat FE Trace Off Bus SCL SDA 10 1 120 2 f Figure 42 Monitor Window Trace List Data Byte Column Right Click Pop up Menu Getting Started 43 The trace list data will be reformatted as shown in Figure 43 Some messages may contain more data bytes than will fit on the screen When the display is in Compact Mode clicking on any data transaction in the Data Byte column will cause a pop up Data Bytes window to appear 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 of the data bytes in that message which are not all visible in the Data Byte column This pop up window will remain open until you close it and will continue to update if you click in the Data Byte column for any other data transaction a 5 DC Exerciser Untitled Monitor Untitled o a ai File Trace Tools Window Help ax sE 2 A ll O 88 88 28 X l A a l O Marker 1 1 1 01101 2 Data Target 54 7 Bit Write 402 1 1 1E 5C 34 0A 28 thult 6 Address Analyzer 36 7 Bit Read 107 1 1 287 Monitor 7 Data Target 36 7 Bit Read 104 1 1 511C 443 9 Address Target PLL 7 Bit Write
20. Buffered copy SMB Trigger Input Signal Connector Standard SMB Front panel AT2 3 3V standard threshold levels The BusPro I2C supports SCL frequencies of up to 5 MHz but actual performance 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 to SMHz Standard Fast Fast mode Plus is supported for Slave emulation up to 1 9MHz High Speed mode is supported for target monitoring only up to 5 MHz no emulation Hardware Reference 221
21. Company User Name Joe Organization Acme Figure 6 Customer Registration Screen Type in or change the Full Name and Organization as needed then click on the Next button The Destination Folder screen shown in Figure 7 will be displayed Accept the default installation folder or customize your installation by selecting the browse button It is strongly recommended that the application be installed in the default folder 10 Installation iS I2C Exerciser InstallAware Wizard leales Older where setup wi instal Mie CORELIS An aH LALA Company Install I2C Exerciser to C Program Files I2C Exerciser Destination Folder Required Disk Space whch fh Remaining Disk Space 57 329 MB Figure 7 Destination Folder Screen Click on the Next button and the Select Program Folder screen shown in Figure 8 will be displayed Select Anyone who uses this computer or Only for me By default the installer will 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 Installation 11 I2C Exerciser InstallAware Wizard i Select Program Folder Select the location where you would like to create new COR E L S Aun EAA Company Setup will add program shortcuts to the Program Folder listed below You may type anew folder name or accept the suggested name Click Next to continue Progr
22. I O line 2 regardless of whether the discrete is configured as an input or output Data Byte Displays the byte value conveyed by this transaction to or from a slave device This column can be displayed in hexadecimal decimal or binary 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 nanoseconds microseconds milliseconds and seconds The current time unit format is shown in parenthesis in the column heading The Monitor window tool bar shown in Figure 32 provides buttons for quickly repositioning the trace list display to various points of interest You can quickly jump to the trigger to the next tagged row to the beginning or end of the buffer or to Cursor A or Cursor B You can also quickly jump to these positions in the trace list using the right click menu previously illustrated Click on the Go to Start tool bar button as shown in Figure 32 to bring 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 as shown in Figure 33 na PC Exerciser Untitled Monitor Untitled ih File Trace Tools Window Help wii gt mil g hell E X vr Aa a Shortcuts Line Marker COt t8 fication Addr Hex AddrType RW NAK F 38 Address Target 18 7 Bit Read 01101 79 Data Analyzer 18 7 Bit Read
23. Mode Prompt cccocccccoccnccccnnococncococnccnncncnnnnnononnnonnnnonnnnnonnnnnnnnnnnnnnnnonanenenanos 75 Figure 0 DEDUIJE WIN IOWA is 76 Figure 81 Byte Sent From the Debugger occccoccnccoccnccoccnocononononnnonnnnononcnononnnonnnnononnnonnnnnnnnnnonnnnnononenenanenes 77 Figure 82 Receive Three Bytes in the Debugger ccccocccccoccnccoccncccncncconcnonononononononnnnnnnnnnnnnnnnononnnononenenonos 78 Figure 83 Capture of Debugger Send cc cece cccecccsseeeceeeeecee cece eeesecesseeeessaueessaeceseaeeeseueessaesesseeessaeeees 79 Figure 84 Tutorial Script Loaded Into Debugg r cocccccoccncoccnnconcnnconcncnoncnnnononononononnnnnnnnnnonnnnnononcnononenos 80 Figure 85 Capture of Debugger Script ccccccccccssseeceseeeceueeccaeeeccaneecsaseecsueeeceueeesageeesageessaaeessueeesaueees 81 Figure 86 Set Discrete MO MOSS lia 82 Figure 87 Debugger Discrete I O Script ooccccocccccccnncccccnccocnnononononanononannnnonnnononnnonannnonannnnnnnnononnnnnnnnns 83 Figure 88 Monitor Debugger Discrete I O ManipulatiON cooooccccoccncccnnncconnncnnnnnonanononnnnnnononconcnonononos 83 PIGUre 89 Debugger CIOSG aie ita odian ti 84 Figure 90 SMBus Raw Date isos does Veneed sess nade aevec IPR ta 85 Figure 91 SMBus Pane Before Associating Decoder File cooooncnccconconcconcnnconononcononcnnononnnncnnanonoos 86 Figure 92 SMBus Decoder File Dialog with TC74 Information cccccooccnn
24. NAK Error KHz O 1 O 2 Data Byte Hex Time us al 01101 nn 34 Data Analyzer 18 7 Bit Read 403 1 1 12 2 293 Monitor 35 Address Analyzer ADC 7 Bit Read 107 1 1 2 476 36 Data Target ADC 7 Bit Read 104 1 1 1C 2 632 ror 37 Data Target ADC 7 Bit Read 104 1 1 DONE 2 730 38 Address Target 54 7 Bit Write 402 1 1 3 441 39 Data Target 54 7 Bit Write 402 1 1 17 3 469 a Debugger 5 i 40 Data Target 54 7 Bit Write 401 1 1 5D 3 494 i 41 Data Target 54 7 Bit Write 400 1 1 35 3 520 be 42 Data Target 54 7 Bit Write 403 1 1 OF 3 545 p mE 43 Address Analyzer 36 7 Bit Read 107 1 1 3 729 eee Data Target Read 3 884 A A a E Address Target 7 Bit Read 402 4694 47 Data Analyzer 18 7 Bit Read 402 1 1 3D 4 735 48 Data Analyzer 18 7 Bit Read 401 1 1 63 4 761 49 Data Analyzer 18 7 Bit Read 400 1 1 52 4 786 50 Data Analyzer 18 7 Bit Read 403 1 1 16 4 811 v 4 m p Ready DEMO AddFormat FE Trace Off Bus SCL SDA 140 1 170 2 A Figure 119 12C Exerciser Monitor Window Layout A A Menu Bar Contains the menu bar for the active Monitor window Refer to the following Menu Bar section in this chapter Tool Bar Provides quick single click access to commonly used tools for the active Monitor window Refer to the Tool Bar section of this chapter 3 Trace Listing Provides the fundamental presentation of traffic acquired from the target I C bus Refer to the Trace Listing section of this chapter Timing Field Provides a graphical image of bu
25. Target PLL 7 Bit Write 402 1 1 5A 5 988 56 Address Target ADC 7 Bit Write 401 1 1 6 171 57 Data Target ADC 7 Bit Write 403 1 1 33 6 199 58 Data Target ADC 7 Bit Write 403 1 1 E7 6 224 v Corelis Ready DEMO AddFormat FE Trace Off Bus SCL SDA 1701 1 0 2 A Figure 25 Monitor Window Centered on Trigger Line 28 Getting Started Step 5 View the Trace Data The Monitor window allows the user to examine the captured data in the trace buffer A vertical scroll bar is available on the right edge of the screen for standard positioning of the lines in addition to use of the page up and page down keys Scrolling the display up will show older entries with lower line numbers scrolling the display down will show newer entries with higher line numbers The oldest entry will be on 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 followed by one or more data write SDA line driven by a master toward a slave or data read SDA driven by a slave towards a master cycles Right clicking anywhere in the Monitor window trace list will display the pop up menu shown in Figure 26 This menu provides easy access to navigation command and configuration functions All of these commands can also be accessed via either tool bar buttons or the regular menu system 0 3 PC Exerciser Untithed Mon
26. Universal Serial Bus controllers s Corelis BusPro 12 9101 Figure 18 Windows Device Manager Windows XP 11 Plug the RJ45 connector end of the target cable into the BusPro 12C socket labeled Serial Bus and the other end of the cable can be connected to the target IC bus signals The target cables and pinouts are detailed in the Connecting to a Target chapter Congratulations You have now successfully installed the BusPro I2C and drivers on your computer and it is ready to be used We recommend that you preserve the original packing material for future shipment or storage of the BusPro I2C Installation 21 22 Installation Chapter 3 Getting Started I2C Exerciser operation overview and tutorial Overview This chapter will quickly introduce you to the basic usage of the Corelis I2C Exerciser tool for viewing bus traffic via the BusPro 2C Although it is possible to explore the capabilities of this system on your own working through this chapter is intended to give an immediate feel and appreciation for its ease of use and core functionality After you have become familiar with the program you can go back and explore the rich variety of additional options tools and methods available by browsing through the menu system reading the remainder of this manual or going through the on line help The material in this chapter is divided into two parts Most of what you will do while working through the chapter will involv
27. a target slave device Depending on the user preference that has been set the Debugger may abort its Receive operation if a message is not acknowledged NAK d by the specified target slave device by default the Debugger continues to receive data even when NAK d Refer to the Debugger Options section of the Preferences Dialog description in the Configuration and Preferences chapter for more information on user preferences Status Box This indicator is located just below the Receive button and displays the resulting status of the last Receive operation The following can be indicated Indicates that the Receive operation completed successfully with the proper number of data bytes read from the target slave Indicates that an I C bus protocol violation was detected during the Receive operation Using the I2C Exerciser s Monitor window to capture the Debugger s bus transactions can help to acquire more details about the cause of the error Indicates that the Receive operation was not completed When a timeout occurs a message box is displayed to suggest possible reasons for the timeout 142 Interactive Debugger Debugger Script The large text area constituting the bottom portion of the Debugger s Send controls is used to specify the byte values that are written to target slave devices This text field also supports the use of special commands that can override the settings of the other Send controls as well as insert pauses in t
28. bar at the bottom of the main window It should report the default FE mode with the text AddrFormat FE to match the expected behavior of the script instructions Recall from earlier in the chapter that this setting is changed via the Formats tab of the Preferences dialog Tools Preferences When you save a debugger command file this line is automatically inserted at the beginning to remind you of the address mode needed for the script to execute correctly 30 Getting Started Click on the Send button to execute the script and the bytes sent 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 by the script This is shown in Figure 85 below Paz 44 DC Exerciser Untitled o eel File Trace Tools Window Help W gt HN o 2 E 22 2 x 0 y T as ue Line Marker Type Location Addr Hex AddrType R W NAK Error KHz 1 0 1 1 0 2 Data Byte Hex Time us ALA mr Data Target 18 7 Bit Write NAK 100 Address Analyzer 2A 7 Bit Write NAK 100 rr Data Target 2A 7 Bit Write NAK 100 Address Analyzer 18 7 Bit Write NAK 100 ined Data Target 18 7 Bit Write NAK 100 Data Target 18 7 Bit Write NAK 100 E Address Analyzer C4 7 Bit Write NAK 100 oma Data Target C4 7 Bit Write NAK 100 _ Data Target C4 7 Bit Write NAK 100 30 6 828 404 Dat
29. before the trigger will be negative and lines after the trigger will be positive Click on the Trigger is line 0 option and observe how the Line number column changes around the Trigger line as shown in Figure 72 g ret BC Exerciser Untitled Monitor Untitled ult GXi iia File Trace Tools Window Help elx SE gt Al o 8 8 aa X YE Me x Shortcuts Line Marker Type Location Addr Hex AddrType RAV NAK Error KHz Data Byte Hex Time us 1 0 1 a 42 Preferences 2267 0 01101 44 2 293 1 Alhaltil 10 Monitor Colors Monitor Options Debugger Options Programmer Options Formats 2476 1 Monitor 9 2 632 1 z 8 Line Column 2 730 1 lg z Starting from 1 default Trigger is line 0 M 6 N 3 469 1 Debugger 5 Timestamp Start 3 494 1 4 3 520 1 O Starting from 0 default Trigger is time O a i 3 3 545 1 E 3001001 2 Timestamp Display 3 729 1 Programmer gt 3 884 1 Ouse er EUA 1 4694 1 Other Options 2 4735 1 3 Y Prompt for saving trace data prior to CLEAR or RUN 4761 4 4 J Lock Timing with Trace 4 786 1 gt Lock to Top Listing Li 0 Lock to Selected Listing Li Sena 7 6 JLo op Listing Line o elec sting Line 4 995 4 7 START Hold Time Checking 5 151 1 8 ae 5 249 1 Minimum Hold Time 0 16us v 9 5 960 1 10 5 988 1 12 6819 1 Scale 69 042 us R Corelis Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 1 0 1 120 2 Fig
30. can be opened from the I2C Exerciser s menu bar by selecting Tools Configuration Manager or by pressing the lt F8 gt key For detailed descriptions of each setting see the Settings Reference section later in this chapter Configuration Manager Bus Electrical Features Voltage Source Bus Signal Thresholds 8 Target Supplied _ Analyzer Supplied High Level 1 80 7 Le Intended aT a dit Low Level Volts Pull up Resistance Auto Detect Bus Drive Features Drive Clock Rate a00kHz F Disable Collision Detection Accelerated Rising Edge Drive Hi Speed Mode Auto i a On a Off Auto n a Off Input Output Signals High Level Function 1 0 1 D j 3 gt M B AT l tl oo sorce Monitor Buffer Options Depth Transactions Figure 98 Configuration Manager 94 Connecting to a Target Scenario 1 New Changed Target A scenario such as this occurs when the I2C Exerciser is launched without a previously saved project file or if File New Project is selected from the menu bar Case 1 The target supplies its own pull up voltage This is the most common case and you usually need only verify that the intended pull up voltage setting is correct so that appropriate bus signal thresholds are used When the target supplies its own pull up and can respond to 100 KHz access nominal rise times should enable the BusPro 2C analyzer to monitor and drive the target bus When the target is to supply its own voltage exami
31. can either be repositioned out of the way or minimized The next time data collection begins the window will remember its last position a Run Status Pre trigger data Trigger Post trigger data Buffer Full Data collected successfully 109 transactions collected Data collected successfully Figure 123 Run Status Dialog Bus Traffic Monitor 127 Trace Go To Submenu The Trace Go To submenu shown in Figure 124 provides navigation control for the Monitor window trace buffer Trigger Tagged Row Start End Cursor A Cursor Figure 124 Trace Go To Submenu Trigger Causes the quick positioning of visible trace lines to bring the Trigger into view at the top of the screen Tagged Row Causes the quick positioning of visible trace lines to bring 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 Causes the quick positioning of visible trace lines to bring the last trace buffer line into view at the bottom of the screen Cursor A Causes the quick positioning of visible trace lines to bring the Cursor A line into view at the top of the screen Cursor B Causes the quick positioning of visible trace lines to bring the Cursor B line into view at the top of the screen 128 Bus Traffic Monitor Trace View Submenu The Trace View subme
32. cccoccccccnnncc 52 Figure 53 Monitor Window Timing Display Measuring the Time Between Cursors A amp B 53 rIgure 54 50 to Start ToolBar But sprengir ip eia a S 54 Figure 55 2F ind WOO Ban But a e a Tea 55 FOUTS DO IMG Dialog e II Maudie aha 99 FIgGUre 57 2Find a Data Value of 2ZEVrtti a a a a a a e a S 57 Figure 58 Monitor Window Trace List Showing Find 2E Data ResSult oc ccoooncccccccoconncccncconnncconnconnncnonnnos 58 Figure 59 Find a Data Value On TL ii 59 Figure 60 Clear Tagged ROWS ProMpl occcccocncccccncccccncccccnoconononocononnnnnnonnnononnnonnnnnnnnnnonnnnnonnnnnnnnnnononenenanenes 59 Figure 61 Matched Transactions Prompt ccccccccseeceeceeeeeeeeeeeeeseeeeeeeeeeseeeeeeseeeseaeeeesseeeeessaeseeesseseneas 60 Figure 62 Monitor Window Trace List Showing Find 72 Data Result ooonccccconccnccccoccncononcnncnnanononnanonnos 60 Figure 63 Go to Tagged Row Tool Bar BuUttON ccocccccoccnccccnnccccncconcncconcnnnnnnnononononnnnonnnnonnnnnnnonenenoncnos 61 Figure 64 Monitor Window Trace List Showing the Second Find 72 Data Result occcoooccncccono 61 Figure 65 Monitor Colors Preferences SCreen ccccssecccseeecccesscecceeeeccaeseeecseseesseaeeeessageeessegesessaneeesas 62 Figure 66 Monitor Colors Preferences Screen Changing Cursor A Background Color occcccocccco 63 Figure 67 Monitor Window with Updated Cursor A Colors oocccccoocccco
33. 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 Clear All Tags Removes the tagged status for all lines in the trace buffer Hide Show Monitor Timing Toggles the visibility status of the timing display If you are not interested in viewing the timing data hiding it provides more room in the Monitor window to display additional trace list data Filters Provides direct access to the Filters tab of the Configuration Manager allowing the user to view add edit or remove filters Filter rules qualify data transactions for inclusion or exclusion from the trace listing The Filter function is described earlier in this chapter Trigger Provides access to the Trigger tab of the Configuration Manager allowing the user to view or edit the trigger condition The trigger defines conditions to mark a special transaction event in the trace buffer The Trigger function is described earlier in this chapter Bus Traffic Monitor 125 Symbols Provides access to the Symbols tab of the Configuration Manager allowing the viewing adding editing or removing of the symbol definitions used for trace list address and data substitution The Symbols function will be described in more detail later in this chapter Find Launches the Find dialog in either the regular More
34. dllexport char _cdecl I2C_LoadSetup char szFilename Return Value NULL if the loading the parameters was successful otherwise a pointer to a string containing an error message Parameters szFilename The string holding the full path including the filename of the project file containing the instrument settings 198 Third Party Application Interface I2C PulseDiscrete Pulses one of the discrete I O signals low for a specified period of time if it is configured as output If discrete 1 is selected and it is configured as tied to the output trigger SMB that signal will be operated instead of the line to the target This will leave the discrete high regardless of what state it started at Prototype extern C _ declspec dllexport int _cdecl I2C PulseDiscrete int nDiscreteNumber i t nMiLliseconds J Return Value 0 if 12C_InitHardware was never called 1 if illegal discrete number 2 if selected discrete is not configured as an output 1 if successful Parameters nDiscreteNumber The index selecting the discrete to drive either 1 or 2 nMilliseconds Time period in milliseconds to hold the discrete low before going back to high Third Party Application Interface 199 I2C Receive Data Launches a Receive operation as in the Debugger function conveying data bytes from a given bus address and checking for its timely completion This function may not return quickly up to the timeout interval dependin
35. file Thus for example a slave device can be referenced by a name like PLL instead of a numeric bus address like 1E SMBus Pane This dialog shown in Figure 155 shows a list of associations between bus addresses 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 device if necessary For other entries each address may only be associated with one device 170 Configuration and Preferences Configuration Manager Enable SMBus Timeout Device Name Addr File SMBus Host 10 SMBus Alert Response 18 Default SMBus Device Addr C2 Smart Battery 16 CiProgram Filesil2C ExerciseriDec Smart Battery Charger 12 CiProgram Filesil2C ExerciseriDec Smart Battery System Manager 14 CiProgram Filesil2 C ExerciseriDec 4 rT I Figure 155 SMBus Pane Configuration and Preferences 171 Each entry in the device list box contains the device name bus address value and the decoding file The device name is the name of the SMBus device that is associated with the address value and will be displayed in the Address column of the trace listing The bus address value specifies the slave address that is being associated This 7 bit address is displayed in hex according to the current FE or EF display mode The last piece of information is the path to the file containing the
36. is allowed on the same line An example debugger script follows the table of keywords Command keywords will be highlighted blue when entered in the Debugger script text area In addition to these keywords and the hex values the user may also enter symbols that are defined in the Symbols tab in the Configuration Manager These symbols can be used anywhere a hex value is expected However an address symbols can only be used where an address is expected and a data symbol can only appear in the byte position defined Refer to the Symbols section of the Configuration Manager description in the Configuration and Preferences chapter to learn more about how to define symbols Interactive Debugger 143 keyword Example Deserpon OOOOOoOO ADDRESS ADDRESS 3A Indicates that the send address should change to the 7 bit address specified by the following hex value parameter This command modifies the value of the Send side Addr combo box Note that 7 bit I 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 refer to the Formats section of the Preferences Dialog description in the Configuration and Preferences chapter for more information ADDRESS10 ADDRESS10 2A5 Same as above but for 10 bit addresses which support values up to 3FF Here the address format mode does not apply ADDRONLY ADDRONLY Sends the address byte only lt co
37. is typically within several seconds depending on the memory size The Programmer provides options to Erase Program Verify and Read target EEPROM memory The content of the EEPROM memory device can be saved to a file in a supported file format including Motorola S Record Intel Hex and a hex text file format Product Overview 3 Hardware Features The main hardware features of the BusPro l2Care described in the following sections FC Speed Support The BusPro I2C operates using the Standard Fast mode Fast mode Plus protocol over its entire performance range for both monitoring and driving the bus up to 5 MHz The High speed mode Hs mode is supported for monitoring only Additionally an accelerated rising slope control feature is included to facilitate the driving of higher capacitance targets at high clock rates USB Port Host Interface The BusPro I2C uses a high speed USB 2 0 interface for easy connection to a PC The host PC supplies operating power to the unit and the hot plug feature of the USB standard is fully supported You simply plug the BusPro 2C into a PC USB 2 0 socket and it will be automatically detected configured and then ready to go A USB 2 0 port on the host computer is required for optimal performance The BusPro I2C does not support USB 1 1 ports IMPORTANT NOTE Do not connect the BusPro 12C to the host PC through a bus powered passive non powered USB hub Bus powered hubs may not provide the BusPro I
38. line in the trace list Enable Compact Mode by right clicking on the Data Byte column and select the Compact Mode entry as shown in Figure 42 44 PC Exerciser Untitled Monitor Untitled lo 63 br File Trace Tools Window Help 86 88 G2 xe vm uo a O 1 54 Write 1 1 Hide Column 01101 2 Data Target 54 7 Bit Write 402 1 1 1E Trace Layout altll 3 Data Target 54 7 Bit Write 401 1 1 5C AutoFit Columns Monitor 4 Data Target 54 7 Bit Write 400 1 1 34 a _ z Data Target 54 7 Bit Write 403 1 1 DA AR 6 Address Analyzer 36 7 Bit Read 107 1 1 Binary 7 Data Target 36 7 Bit Read 104 1 1 51 Decimal Debugger E Data Target 36 7 Bit Read 104 1 1 E Disable Symbols 9 Address Target PLL 7 Bit Write 402 1 1 Symbols zi 10 Data Target PLL 7 Bit Write 402 1 1 3E 0430400 11 Address Target ADC 7 Bit Write NAK 401 1 1 Normal Mode Programmer 12 Address Target ADC 7 Bit Write 400 1 1 Compact Mode 13 Data Target ADC 7 Bit Write 403 1 1 2E SMBus Mode 14 Data Target ADC 7 Bit Write 403 1 1 F1 1 575 15 Tagged Data Target ADC 7 Bit Write NAK 403 1 1 0B 1 601 17 Address Target DAC 7 Bit Read 402 1 1 1 843 18 Data Analyzer DAC 7 Bit Read 402 1 1 1A 1 884 19 Data Analyzer DAC 7 Bit Read 401 1 1 70 1 909 20 Data Analyzer DAC 7 Bit Read 400 1 1 4F 1 935 21 Data Analyzer DAC 7 Bit Read 400 0 1 45 1 960 22 Data Analyzer DAC 7 Bit Read 400 0 1 72 1 986 23 Data Analyzer DAC 7 Bit Read 400 0 1 49 2 011 24 Data Analyzer DAC 7
39. many new applications including data transfer and system level command and control As shown in Figure 1 the physical I C bus consists of two bidirectional open drain signals and a common ground The two active signals on the bus consist of a serial data line SDA and a serial clock line SCL each requiring a system voltage reference through a pull up resistor Every device connected to the bus is software addressable by a unique address and masters can operate as master transmitters or as master receivers The IC 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 Serial 8 bit oriented bidirectional data transfers can be made at up to 100 Kbit s in the Standard mode or up to 400 Kbit s in the Fast mode VDD Jl IC Device i IC Device SDA SCL Figure 1 IFC Bus Topology The System Management Bus or SMBus was defined by Intel Corporation in 1995 and is based on the IC bus architecture It is used in personal computers and servers for low speed system management communications SMBus is a two wire interface through which simple system and power management related chips can communicate with the rest of the system A system using SMBus as a control bus for these system and power management related tasks pass messages to and from devices by addressed transfers enabling Product Overview 1 modera
40. messages not meeting the specified minimum value Debugger 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 matching data bytes do not appear on the bus within 2 seconds The second option sets whether or not data that is sent by the analyzer is echoed in the Receive side text box along with all other incoming traffic during the send operation The third option sets whether or not the debugger aborts sending of the message data bytes if the address is not acknowledged The fourth option sets whether the Send command script text area should display line numbers in the gutter Preferences Options Wl Track Transactions V Echo Sent Data Abort Message if Address is NAK d Show Send Command Line Number Figure 161 Debugger Options Pane 180 Configuration and Preferences Programmer Options This pane enables setting of whether or not the Programmer performs a verification of written data after programming a device Preferences Options Verify After Programming Figure 162 Programmer Options Pane Configuration and Preferences 181 Formats This pane enables selection of how a 7 binary bit address representation is formatted for hexadecimal display does not apply to 10 bit addresses or to non hex representations such as symbolic The FE format default shows the hexadecimal by
41. of Debugger Send Getting Started 79 Return to the Debugger window by clicking on the Debugger Shortcut Bar icon You will now execute a simple Debugger script Refer to the Interactive Debugger chapter for details on using debugger script commands For now you will load a very short debugger script from a debugger control file Click on the Open Command File button in the tool bar represented by the icon Click on the No button if prompted for saving the current Debugger commands The Open Debugger Command File dialog window will be displayed so that you can browse for the file It is located in the Demo subfolder of the I2C Exerciser installation folder For a default installation this would be C Program Files I2C 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 below MA Debugger C Program Files 2C Exerciser Demo tutorial det Send Receive Addr 7 No Stop ADDRESS MODE FE 33 dr a es FF 00 utorial scrip ets OL 21 30 OD OA Ja pause 500 milliseconds address 18 pause 500 address Cd 21 30 OD DA Figure 84 Tutorial Script Loaded Into Debugger Notice the first line of the debugger script This is a comment line that specifies the address mode FE or 7F that must be used with this script The current address mode is shown in the status
42. of data in the Monitor window Preferences lebugger Options Programmer Options Formats Line Column 8 Starting from 1 default Trigger is line O Timestamp Start Starting from O default 55 Trigger is time 0 Timestamp Display Absolute D Relative to last Other Options 4 Prompt for saving trace data prior to CLEAR or RUN 4 Lock Timing with Trace Lock to Top Listing Line Lock to Selected Listing Line START Hold Time Checking Minimum Hold Time 0 16us Close Figure 117 Monitor Options Pane Line Column Sets the numbering of entries in the trace list to start from one at the first entry default or start from zero at the trigger 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 Controls how timestamps are determined for trace list entries When set to Absolute the first trace list entry is set to time zero and each entry s timestamp represents the length of time since the first entry When set to Relative to last each trace list entry s timestamp represents the length of time since the previous entry Bus Traffic Monitor Other Options The first preference sets whether or not a prompt to save data pops up whenever the trace list will be cleared The second preference allows the Timing display to be locked
43. of the error Indicates that the Send operation was not completed When a timeout occurs a message box is displayed to suggest possible reasons for the timeout 140 Interactive Debugger Receive Data The right side of the Debugger window contains controls for generating messages that read data from slave devices on the target IC bus These controls are shown in Figure 135 Receive se ac rrimo zae gt ves 1 No Stop 33 FF 00 21 30 OD OA Figure 135 Debugger Receive Controls Addr This field specifies the IC bus address of the target slave that is being read from An address can be entered as a hexadecimal value or an address symbol may be used if one has been defined for the target slave refer to the Symbols section the Configuration Manager description in the Configuration and Preferences chapter Additionally the field s dropdown list provides a selection of recently used address values and all of the currently defined address symbols Note that 7 bit I 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 refer to the Formats section of the Preferences Dialog description in the Configuration and Preferences chapter for more information AddrType This field specifies the bit length of the target slave address The dropdown list allows selection of either 7 Bit or 10 Bit Bytes This field specifi
44. on the bus while conveying transactions E Pe Address Target 1E Bit write 402 1 1 30 904 Data Target He 7 Bit Write e 5A 30 932 Address Target 7 Bit Write 31 116 CC EI CC CC CIA Data Target 58 7 Bit Write 31 169 Tagged Data Target 58 F Bit Write NAK ne 31 195 v Scale 10 ps div _JAuto Fit Line g I I I I I I I A A S EE 7 D ca EV E a Ga a E E Figure 49 Monitor Window Timing Display The bus clock line SCL is shown at the bottom of the timing display with the bus data line SDA positioned just above it This allows the value of the data line to be easily determined as the clock line rises and falls The Bit row displays one of the following letters over each recognized sequence of bus transitions to indicate what has occurred A Start bit occurred indicating a new message is beginning A Stop bit occurred indicating the end of a message Master indication that this message is performing a read operation Master indication that this message is performing a write operation A value of 0 is being conveyed in either an address or data transaction A value of 1 is being conveyed in either an address or data transaction The current address or data transaction is being acknowledged ACK The current address or data transaction is being not acknowledged NAK ZDPD OSDITUU The Field row provides a higher level decoding of bus transition groupings and identifies either an address trans
45. protocol decoding information for the device Decoding files for devices that are not built in are provided in the Decoder subfolder of the installation folder The four buttons at the bottom of the window allow the user to manipulate the association list Using the Add button a new device can be associated with an address The Edit button enables alteration of an existing selected association The Remove and Remove All buttons enable deletion of the selected association or the entire list of associations When using the Add or Edit buttons the SMBus Decoder File dialog is displayed as shown in Figure 156 Click on the Browse button to select the decoder file Click on the Update button to have the information from the decoder file automatically filled into the Address and Name fields Click on the OK button to finish or the Cancel button to cancel If the address being associated is a reserved address overriding of the reserved address must be confirmed Other addresses already associated with a device will not be allowed to be re associated until they are removed from the association list SMBus Decoder File Choose a file to load then cick on Update to load its contents Figure 156 SMBus Decoder File Dialog SMBus Timeout The SMBus Timeout checkbox is used to enable the detection of a timeout condition as defined by the SMBus specification When this setting is checked an SMBus Timeout will be reported as an error line in the M
46. reaches the upper threshold to become detected as high This applies when the analyzer is driving the bus The two Bus Signal Threshold values further affect sensitivity to slow busses for either driver of the bus analyzer or target since signal level decision points are adjusted Files Pane When a project is saved an I2C file is created that stores all preferences options and settings for the session Some of the project information however is stored separately from the main I2C project file This includes the configuration of trigger conditions stored in a TRG file filters stored in a FIL file and symbols stored in a SYM file Separating this information from the project file allows for it to be easily imported into other projects where the same trigger filter or symbol configuration might be required When a project is saved the Files pane dialog shown in Figure 158 will be automatically populated with any trigger filter or symbol configuration files that are created The Browse button is used to select a file for importing the relevant information from another project 176 Configuration and Preferences Configuration Manager tm Subordinate Files Type File Trigger Filters symbols Figure 158 Files Pane Configuration and Preferences 177 Preferences Dialog The Preferences Dialog allows the user to change the preferences for the various tools provided by the I2C Exerciser in one easily acc
47. registered trademarks of Intel Corporation Windows is a registered trademark of Microsoft Corporation Other products and services named in this book are trademarks or registered trademarks of their respective companies All trademarks and registered trademarks in this book are the property of their respective holders Preface PRODUCT WARRANTY AND SOFTWARE MAINTENANCE For product warranty and software maintenance information see the PRODUCT WARRANTY AND SOFTWARE MAINTENANCE POLICY statement included with your product shipment EXCLUSIVE REMEDIES THE REMEDIES CONTAINED HEREIN ARE THE CUSTOMER S SOLE AND EXCLUSIVE REMEDIES CORELIS SHALL NOT BE LIABLE FOR ANY DIRECT INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES WHETHER BASED ON CONTRACT TORT OR ANY OTHER LEGAL THEORY Product maintenance agreements and other customer assistance agreements are available for Corelis products For assistance contact your nearest Corelis Sales and Service Office RETURN POLICY No items returned to CORELIS for warranty service or any other reason shall be accepted unless first authorized by CORELIS either direct or through its authorized sales representatives All returned items must be shipped 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 first contact CORELIS with notice of request for retu
48. s position in the buffer space reaches that which is specified by the Trigger Buffer Position setting of Early Middle or Late Pre trigger transactions would then constitute a portion of all transactions in the filled buffer equal to at most 15 50 or 85 respectively The percentage of pre trigger transactions is less than this amount when there are not enough transactions 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 buffer space do not apply When 12C Exerciser is collecting bus data in Run Repetitive mode occurrence of the trigger event will not cause the capture process to stop The monitor will stop capturing transactions only when the user explicitly invokes the stop command Since the buffer space is limited old transactions will be thrown out in order to accommodate the new ones once the buffer becomes full In such cases the trigger transaction may also get thrown out The Trigger Out option provides a link between the incoming trigger events to a trigger out signal through one of the discrete I O s When the Trigger Out option is set to one of two discrete O s the signal will pulse high or low according to the Active Pulse setting when the specified trigger event occurs The width of the pulse is about 0 5 ms and the typical delay between the actual trigger event on th
49. target I C bus master s quiet while the BusPro I2C drives the bus when collision detection is disabled Accelerated Rising Edge Drive In general when a driver on the bus makes a positive signal transition the rise time is determined by the RC time constant of the bus The rise time governs the upper limit on effective clock rates When the BusPro 12C drives the bus it can apply a strong rising drive during the signal transition to overcome the RC time constant creating a rapid edge This can then allow an increase in the clock rate for a given RC value of the bus If this option is set to AUTO the BusPro I2C will engage the fast rising edge mechanism automatically whenever it is operating with the rc high speed mode Hs mode protocol note however that the High Speed Mode emulation is not currently supported by the BusPro I2C and so the AUTO setting will have the same effect as OFF lf this option is set to ON the BusPro I2C employs the mechanism at all times Setting this option to OFF fully disables the mechanism letting the pull ups or the target capacitance determine rise times High Speed Mode This setting controls the use of the IC high speed mode Hs mode protocol note that the High Speed Mode emulation is not currently supported by the BusPro 12C and so these selections are disabled Connecting to a Target 101 Input Output Signals The discrete Input Output signals I O 1 and I O 2 augment the normal IFC bus signal
50. that will be included in the trace listing or excluded from the trace listing The radio buttons at the top of the dialog determine this selection or turn off filtering completely The Include and Exclude selections each have their own separate set of filters which are displayed 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 Edit button enables alteration of an existing selected filter The Remove and Remove All buttons enable the deletion of a selected filter or the entire set of filters The Filter Definition dialog for setting the transaction criteria for each filter is similar to those for the Find and Trigger dialogs This dialog shown in Figure 152 is displayed when using the Add or Edit buttons Configuration and Preferences 167 Filter Definition Load From Selected Monitor Trace Line OK Cancel Figure 152 Filter Definition Dialog similar to Edit 168 Configuration and Preferences Symbols Pane This dialog shown in Figure 153 displays a list that 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 related dialogs This can be used to enhance the user readability of transactions Configuration Manager symbol PLL
51. the BusPro 2C enabling triggers in from external instruments 102 Connecting to a Target Monitor Buffer Options Monitor Buffer Depth The Monitor Buffer Depth setting shown in Figure 105 provides a selection of buffer depths in number of transactions This value indicates the number of transactions that occur before the monitor trace is considered to be full Monitor Butter Options Depth TODA Transactions Figure 105 Monitor Buffer Options The transaction depth ranges from 1 K 1 024 to 1 M 1 048 576 transactions Note that this option may be limited by the available RAM in the host PC and requires much more storage in bytes than the actual number of transactions indicated Choosing a large depth may considerably slow down the application when running the monitor if there is not enough memory in the host machine The default of 64 K 65 536 transactions should be adequate for most monitoring needs Monitor Buffer Log to File This option provides continuous logging of trace data to host computer s hard disk and during Run Repetitive monitoring can record and store endless hours of C bus traffic limited only by the available disk space When this option is selected the captured Monitor 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 1 C bus transactions The trace data path and base filename are user specifie
52. the Find dialog The user can then tweak any needed changes to the search criteria fields This facilitates searching for the same or similar lines throughout the trace buffer with a minimal amount of manual data entry Each field s pull down will supply common selections previously entered values or defined symbols as appropriate Otherwise type in the desired values 56 Getting Started Go 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 Find pee Transfer we any Nak Ade sey eer any oe yo PE tied 7 Poston Any 7 ten LFF Width aye Load From Selected Monitor Trace Line Defaults Figure 57 Find a Data Value of 2E Getting Started 57 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 0 44 BC Exerciser Untitled Monitor Untitled fo m3a fas File Trace Tools Window Help Six AO 28 ae xu vy ts mo Lin Marker Type Location Addr Hex AddrType R W NAK Error KHz Data Byte Hex Time us O 1 A 1 Address Target 54 7 Bit Write 402 01101 2 Data Target 54 7 Bit Write 402 1E Find 23 lilt 3 Data Target 54 7 Bit Write 401 5C 4 Data Target 5
53. the PC before being initialized again This function may not return immediately until the disconnection is complete Prototype extern C _ declspec dllexport void _cdecl I2C ShutdownHardware void Return Value None Parameters None Third Party Application Interface 217 Appendix A BusPro 12C Hardware Reference Hardware Specifications Physical Mechanical Dimensions box 9 48 0 10 x 1 00 0 10 x 4 75 0 10 inches Operating Environment Relative Humidity 10 to 90 non condensing Storage Environment Temperature 40 C to 85 C USB Interface USB Connector Standard Type B Socket 2 0 Port Version Power Requirements Provided by the host USB 2 0 port in compliance with its requirements Do not connect the BusPro 12C to the host PC through a bus passive un powered powered USB hub lt may not provide adequate operating current An externally powered hub is OK USB extender cables are not recommended Hardware Reference 219 Electrical Specifications Target I2C Signals serial Bus Connector RJ45 AMP P N 406549 1 or equivalent Prior to launching the I2C Exerciser application both LEDs will be lit while plugged into a powered host PC Once the application is running the LEDs have the following meaning Green LED BusPro I2C is powered and initialized Amber LED I C bus activity is detected Target Test Cables Flying Leads Target Cable 6 leads with fema
54. to the trace screen on the first line rather than aligning with the selected line START Hold Time Checking sets the minimum START hold time value which will be checked against every transaction Errors will 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 apply to 10 bit addresses or 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 justified in the byte Preferences 7 bit Hex Address Format FE mode 7 address bits left justified in byte A6 A0 0 default gt JF mode 7 address bits right justified in byte 0 A6 A0 Figure 118 Formats Pane 122 Bus Traffic Monitor Monitor Window Reference The Monitor window shown in Figure 119 can be opened using the either the Monitor entry in the Shortcut Bar or in the Tools menu By default the Monitor window is opened when the I2C Exerciser starts Table 4 describes the numbered areas of the I2C Exerciser Monitor window e PA BC Exerciser Untitled 4 Joa File Trace Tools Window Help ol Pol oS 8H GE BH xevrh e x PShortcuts an Monitor Untitled o hets Line Marker Type Location Addr Hex AddrType R W
55. top to minimize any obscuring of the Monitor window This is useful when you have configured the search parameters and want to repeat the same search query many times While compacted this button changes to More enabling the user to force the dialog back to its expanded format The Tag All button launches a search throughout the trace buffer for the specified search criteria and will tag all lines which match After this type of search is completed you can use the Go to Tagged Row tool bar button on the Monitor window to easily locate and step through all of these lines The Find Next button simply moves the Monitor trace list to the next found line matching the search criteria This action can be repeated to locate all matching lines but without tagging them If the 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 conditions from very specific to entire classes of trace lines The mask feature allows enabling disabling individual bits when looking for a single byte data pattern The Byte Position indicates which data byte in a message is to be considered The Width field may not be modified and is locked at one byte for search data values When the user clicks on the Load From Selected Monitor Trace Line button the characteristics of the currently selected line in the trace buffer are used to populate
56. trace list display with the new symbol entry is shown in Figure 37 Faz 44 DC Exerciser Untitled Monitor Untitled ii Eile Trace Tools Window Help oem Pohl oe 248 BE EE X vr 4 7 EA 19 Line Marker Type Location Addr Hex AddrType RW NAK Error KHz I O 1 1 0 2 Data Byte Hex Time us a 1 Address Target 54 7 Bit Write 402 1 1 0 01101 2 Data Target 54 7 Bit Write 402 1 1 TE 28 slat Data Target 54 7 Bit Write 401 1 1 5C aa Monitor 4 Data Target 54 7 Bit Write 400 1 1 34 78 5 Data Target 54 7 Bit Write 403 1 1 FAULT 104 6 Address Analyzer 36 7 Bit Read 107 1 1 287 TE Data Target 36 7 Bit Read 104 1 1 51 443 Debugger 8 Data Target 36 7 Bit Read 104 1 1 WARNING 541 9 Address Target PLL 7 Bit Write 402 1 1 1 252 E 10 Data Target PLL 7 Bit Write 402 1 1 3E 1 280 007007 11 Address Target ADC 7 Bit Write NAK 401 1 1 1 464 Programmer 12 Address Target ADC 7 Bit Write 400 1 1 1 522 13 Data Target ADC 7 Bit Write 403 1 1 2E 1 550 14 Data Target ADC 7 Bit Write 403 1 1 F1 155 15 Tagged Data Target ADC 7 Bit Write ans 1 uE CHANSEL 1 601 Fmarget ADC ie a A CHANSEL BA 17 Address Target DAC 7 Bit Read 402 1 1 1 843 18 Data Analyzer DAC 7 Bit Read 402 1 1 1A 1 884 19 Data Analyzer DAC 7 Bit Read 401 1 1 70 1 909 20 Data Analyzer DAC 7 Bit Read 400 1 1 4F 1 935 21 Data Analyzer DAC 7 Bit Read 400 0 1 45 1 960 22 Data Analyzer DAC 7 Bit Read 400 0 1 72 1 986 2
57. when the specified trigger event occurs The width of the pulse is about 0 5 ms and the typical delay between the actual trigger event on the bus and the trigger out pulse is approximately 1 6 ms This delay may vary from 1 5 ms to 150 ms depending on the data traffic load The Load From Selected Monitor Trace Line button facilitates quick parameter entry by reading the specifications from the currently selected trace line If no trace line is currently selected the button will be Inactive The Defaults button allows the user to revert back to the default values for the Triggering mechanism Bus Traffic Monitor 111 Configuration Manager Enable Trigger Trigger Buffer Position Early 8 Middle Late Event Definitions Transfer mes any NA ten Ary v Error any acre any e WO any RM yoz my Data Byte alue te aw lr Peston Aw gt ten FF 7 Width aye 7 Load From Selected Monitor Trace Line Figure 109 Trigger Pane 112 Bus Traffic Monitor Filters A filter defines a class of transactions by specifying a set of particular transaction features Each filter can be individually activated or not via the checkbox beside the filters name The combined selection of active filters can be set to either determine which transaction classes are included or which are excluded from the trace listing Use of filters allows you to view only the bus activity of interest with items considered clutt
58. y Background 2 iv 98 Data Analyzer DAC 7 Bit Read Bo9 Cursor Address Analyzer ADC METIA apii DEE Target ADC 7 Bit Read SDA Signal Ev Beginning Marker E v i 101 Data Target ADC 7 Bit Read 102 Address Target PLL 7 Bit Write sal signa TY 103 Data Target PLL 7 Bit Write 104 Address Target ADC 7 Bit Write F Scale 20 us div F Auto Fit Line 100 FIELD BIT SDA SCL Corelis Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 140 1 120 2 j Figure 67 Monitor Window with Updated Cursor A Colors 64 Getting Started The Color Scheme controls how trace line groupings are displayed The options are no color alternating color per line or alternating 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 Color Scheme control and select the Alternate color per row entry as shown in Figure 68 Preferences Monitor Colors Monitor Options Debugger Options Programmer Options Formats Trigger Other Text F Color Scheme Background oe Alternate color per me No Color Cursor A Text sis Text 1 as Background Cursor E Text gt Text 2 a Background EA Background 2 l e Timing View SDA Signal Beginning Marker E SCL Signal EJ Close Figure 68 Monitor Window with Updated C
59. 102 066 102 067 102 074 102 074 102 079 102 079 102 083 CI E TOA CI E E E p W 83 Step 5 Close the Debugger Click on the Stop button in the I2C Exerciser tool bar indicated by the icon to stop the Monitor from collecting data Return to the Run Status window that was opened when data capturing started you may have to restore it from 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 Debugger window and close the debugger session by clicking on the X button in the upper right corner of the window A message box will come up as shown in Figure 89 below giving you a chance to save your debugger script Click on the No button and the Debugger will close W Debugger Untitled IC Exerciser Debugger Discrete 199 cay re a A Do you want to save the Debugger Command Data SetDiscrete Al SetDiscrete 2H SetDiscrete SetDiscrete JF SetDiscrete Z 1 EB Figure 89 Debugger Close 34 Getting Started Step 6 SMBus Decoding The BusPro I2C software features SMBus decoding for common SMBus devices Ordinarily the raw data of the I C transactions between SMBus devices must be manually decoded into meaningful information With the SMBus decoding feature a specific device address can be associated with a text file containing decodi
60. 107 Data Target 7 Bit Read 104 Data Target 7 Bit Read 104 Address Target 7 Bit Write 402 Data Target 7 Bit Write 402 Address Target 7 Bit Write 401 Address Target 7 Bit Write 400 Data Target 7 Bit Write 403 Data Target 7 Bit Write 403 Tagged Data Target 7 Bit Write NAK 403 CHANSEL Address Target DAC 7 Bit Read 402 Figure 38 Monitor Window Trace List Data Byte Column O Pop up Menu Hexadecimal Binary 1 2 3 4 5 6 7 8 9 h O Compact Mode SMBus Mode N _ to e hb hb ee ee hb hb hb bb ee ee hb ob b hb hb bb hb hb hb bb hb hb hb ee ee ee 40 Getting Started g 24 BC Exerciser Untitled Monitor Untitled ka a Er File Trace Tools Window Help cH gt All o 28 88 22 xa E Me Lin Marker Type Location Addr Hex AddrType RAW NAK Error KHz 1 0 1 O 2 Data Byte Hex Time us all 1 Address Target 54 7 Bit Write 402 1 1 0 2 Data Target 54 7 Bit Write 402 1 1 1E 28 3 Data Target 54 7 Bit Write 401 1 1 5C 53 4 Data Target 54 7 Bit Write 400 1 1 34 78 5 Data Target 54 7 Bit Write 403 1 1 DA 104 Pe 6 Address Analyzer 36 7 Bit Read 107 1 1 287 7 Data Target 36 7 Bit Read 104 1 1 51 443 Debugger 8 Data Target 36 7 Bit Read 104 1 1 1C 541 9 Address Target PLL 7 Bit Write 402 1 1 1 252 Bf 10 Data Target PLL 7 Bit Write 402 1 1 JE 1 280 Sooo 11 Address Target ADC 7 Bit Write NAK 401 1 1 1 464 Programmer 12 Address Target
61. 23 Tutorial Using Live Mode casi ee aa a E 74 Chapter 4 Connecting to a Taret csccssssecsesseccesseccnseesonssecoaseconssesonseeoenseesenes 91 Connecting the IPC SigNalS conncninnininnnn nenne nennn urnen an annee annne nenene nn annene 91 MECE SE PAPA A 93 Chapters BUS Trane MODNO asii a a eet A 105 TACO LISUNO ir A A A A E al 106 TIO AO ais 109 Montor CON UA oia 111 Montor Pretoria iaa 119 Monitor Window ReOTerence scssccivcsesszececactscideianncdsntacsseizicsesinctescci sedi wesisetecacedons ao San oiai aiaia aa aiai 123 Chapter amp Interactive Debut aaea adaa 138 DONG Data sosiaa a a aaa a a Aa anaa aa Naa aA GA 139 Receive Dala ia as 141 DeDUdaer S CHP egia EES dd 143 DEDUG GEE ODIN Si aa UA 147 Debugger Window Referente sicion ai 149 Chapter 7 Serial EEPROM Programme ccccscseesecseseceeseeeeseseeseseeeeseeseeanenes 153 Programmer ODeratlOns i 154 Programmer ODUOINS ria 158 Programmer Window Retenciones 159 Chapter8 Configuration and Preferences c coonnccconncconnoconnnononnnnncnnnnnenannrnnarrenannnnas 163 CONnTIGUPATION MA as 163 PFETETENCES DIA a 178 Using Pro Je ct FOSA aid 183 Cali atlO i oo g E E seco uesdeesbaetaneeesascs 185 Chapter 9 Third Party Application Interface ooocconncconnnconnccoconcncnnnonnnconnrenanrnnannnos 188 OVER VIG W coscccessutegteorueescauetans et R A 188 Dynamic Link Library CDE Less sw hs co ec te i eee ont 189 General Calling Sequence sociale iia 190 TUNCU
62. 2C 2 Product Overview Software Toolset Monitor Using the Monitor tool the BusPro 12C listens and records all C bus traffic while displaying it as both state and timing information Transactions can be examined and stored to files and later retrieved for review Monitor features include message filtering symbolic translation of numeric values and event triggering The BusPro 12C continually verifies compliance to the bus protocol and flags errors when it detects a protocol violation Concurrent with the bus transaction state listings a timing display for both the SCL and SDA signals is depicted showing the edge transition history Debugger Using the Debugger tool the BusPro I2C can be utilized to send and receive individual messages on the IC bus Looping is supported for repeating 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 library distributed as a Windows DLL further enables access to the I C bus from 3rd party applications outside of the I2C Exerciser GUI Programmer Using the Programmer tool the BusPro I2C can be utilized to perform high speed programming of I C compatible serial EEPROM memory devices with a user interface similar to the Corelis ScanExpress Programmer boundary scan in system programming product Devices can be programmed in system and at maximum programming speed which
63. 2C product consists of the following components BusPro I2C Hardware 6 USB 2 0 Cable a 1421C Target Interface 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 target test files Your application may require additional optional interface cables Table 1 lists the optional target interface cables available from Corelis 6 C Target Interface Flying Leads with Test Clips 15438 1 24 C Target Interface Flying Leads with Test Clips 15438 3 6 C Target Interface 4 pin Crimp Connector 15431 1 12 C Target Interface 4 pin Crimp Connector 15431 2 24 1C Target Interface 4 pin Crimp Connector 15431 3 Table 1 Optional Interface Cables Installation 7 Installing the 12C Exerciser Application Software You must first install the I2C Exerciser application software and then connect the BusPro I2C controller The application software contains the driver for the BusPro 12C The BusPro 12C controller is a hot pluggable USB device However you should not plug in or unplug the BusPro I2C while the I2C Exerciser application is running The BusPro I2C CD ROM contains the installation program Windows will automatically recognize and configure the BusPro 12C the first time it is detected in your system Administrator rights are required to install the software on Windows XP If
64. 2C with adequate operating current Corelis does not recommend usage of USB extender cables with the BusPro 12C Software Programmable Voltage Levels and Pull Up Resistors The IC bus reference voltage can be programmed as target driven Target Supplied mode through its own pull ups or as driven from the BusPro 12C Analyzer Supplied mode through instrument pull ups When the BusPro 12C is programmed to source this reference level for both SCL and SDA signals the voltage can be set in 100 mV steps from 0 8V to 5 0V In this case the target pull ups should be removed to prevent contention with the analyzer In addition for the Analyzer Supplied mode reference voltage you can select one of a set of pull up resistors with the same value for both bus signals The resistor values can be set from about 250 to 50K ohms in varying increments The TTL output signal level of the set of discrete I O and trigger lines is programmable from 1 25V to 3 3V In steps of 50 mV Furthermore sensed bus signal high and low threshold levels can each be adjusted supporting the bus hysteresis requirement Default software determined values are provided automatically with user override capability 4 Product Overview Programmable Clock Rate The BusPro 12C clock rate is software programmable when it drives the bus It supports Standard mode Fast mode and Fast mode Plus transfers up to 5 Mbits sec and many intermediate rates The target bus conditions
65. 3 Data Analyzer DAC 7 Bit Read 400 0 1 49 2 011 24 Data Analyzer DAC 7 Bit Read 400 0 1 4F 2 037 25 Data Analyzer DAC 7 Bit Read 400 0 1 4F 2 062 v Scale 50 us div T Auto Fit Line 32 Interval A to B 9 422762 ms FIELD B BIT SDA SCL 4 mW p Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 1401 140 2 Y Figure 37 Monitor Window Trace List Showing New DAC Symbolic Address Entries Getting Started 39 Right clicking on the column headings of either the Addr or Data Byte column allows the user to toggle the symbolic translation on and off Additionally the pop up menu allows selection of the numeric 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 Symbols menu entry as shown in Figure 38 Observe that symbols are no longer being displayed in the Data Byte column as shown in Figure 39 ECDC Eee Untitled Monitor Untitled gt Eile Trace Tools Window Help sh Phil oe B E xd YE MS E e Line Marker Type Location Addr Hex AddrType R W NAK Error KHz I O 1 1 0 2 Data Byte Hex Time us Hide Column Trace Layout AutoFit Columns Address Target 7 Bit Write 402 Data Target 7 Bit Write 402 Data Target 7 Bit Write 401 Data Target 7 Bit Write 400 Data Target 7 Bit Write 403 Address Analyzer 7 Bit Read
66. 4 7 Bit Write 400 34 8 5 Data Target 54 7 Bit Write 403 FAULT ja 6 Address Analyzer 36 7 Bit Read 107 i T Data Target 36 7 Bit Read 104 51 ees Debugger 8 Data Target 36 7 Bit Read 104 WARNING Foe 9 Address Target PLL 7 Bit Write 402 E 10 Data Target PLL 7 Bit Write 402 3E ouaa 11 Address Target ADC 7 Bit Write NAK 401 Programmer Address Target 7 Bit Write 400 ETT E Data Target ADC 7 Bit Write 403 R W 15 Tagged Data Target ADC 7 Bit Write NAK 403 CHANSEL az 16 Data Target ADC 7 Bit Write 403 CHANSEL Value o Byte 17 Address Target DAC 7 Bit Read 402 Hex ition ANY i 18 Data Analyzer DAC 7 Bit Read 402 1A Mask Width 19 Data Analyzer DAC 7 Bit Read 401 70 Hex dl 20 Data Analyzer DAC 7 Bit Read 400 4F 22 Data Analyzer DAC 7 Bit Read 400 72 23 Data Analyzer DAC 7 Bit Read 400 49 24 Data Analyzer DAC 7 Bit Read 400 4F 2037 0 25 Data Analyzer DAC 7 Bit Read 400 4F 2062 0 v Scale 20 us div Auto Fit Line 13 gt Interval A to B 69 042 us I I I I I i I j I I I I I I U I I I U I I I I I l I j I I O Y ade addr Data Data Data 01011000N Ssioi0o1100VW A 00101110 4 11110001 4 00001011 N pre Ready DEMO AddrFormat EE Trace Off Bus ISCL SDA 10 1 10 2 i h Figure 58 Monitor Window Trace List Showing Find 2E Data Result 58 Getting Started Go to the start of the trace list using the Go to Start tool bar button as previously shown Change the Da
67. 4 Getting Started Step 2 Enable Demo mode Click on the Tools menu and verify that the Demo Mode menu item has a check mark next to it as shown below in Figure 20 This indicates that the program is in Demo Mode If the BusPro I2C was connected to the PC when you started 12C 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 bar in the lower right corner of the main window as shown in Figure 21 The leftmost indicator will either contain the bold red text DEMO or the plain text LIVE 4 QC Exerciser Untitled Monitor Untitled File Trace Tools Window Help Monitor Debugger 0 zx Programmer shortcuts Demo Mode 01101 a a E Albal Monitor Configuration Manager Preferences Figure 20 Tools Menu Demo Mode Selection DEMO AddrFormat FE Trace Off Figure 21 Status Bar Indicating Demo Mode Getting Started 25 Step 3 Begin the Monitor Window Simulated Bus Activity Click on the Run Single tool bar button represented by a green arrow as shown in Figure 22 to begin Monitor data collection of the simulated bus activity 4 QC Exerciser Untitled Monitor Untitled Tin File Trace Tools Window Help 01101 r Altai Monitor Figure 22 Begin Monitor Data Collection When the program is in Demo Mode and a Run command is invoked an informational pop up win
68. 402 1 1 1 252 10 Data Target PLL 7 Bit Write 402 1 1 3E 1 280 11 Address Target ADC 7 Bit Write NAK 401 1 1 1 464 Debuager Address Target Write ts Address Target DAC 7 Bit Read 1 843 E 18 Data Analyzer DAC 7 Bit Read 402 1 1 1A 70 4F 45 1 884 Programmer 35 Address Analyzer ADC 7 Bit Read 107 3 1 2 476 36 Data Target ADC 7 Bit Read 104 1 1 1C 0C 2 632 38 Address Target 54 7 Bit Write 402 1 1 3 441 39 Data Target 54 7 Bit Write 402 1 1 17 5D 35 OF 3 469 Address Analyzer 7 Bit Read 3 729 Address Target DAC 7 Bit Read 402 4694 47 Data Analyzer DAC 7 Bit Read 402 1 1 3D 63 52 16 4 735 51 Address Analyzer ADC 7 Bit Read 107 1 1 4 995 52 Data Target ADC 7 Bit Read 104 1 1 1F 0E 5 151 54 Address Target PLL 7 Bit Write 402 1 1 5 960 55 Data Target PLL 7 Bit Write 402 1 1 5A 5 988 56 Address Target ADC 7 Bit Write 401 1 1 6 171 57 Tagged Data Target ADC 7 Bit Write 403 1 1 33 E7 0B OB 6 199 E Scale 50 us div Auto Fit Line 1 4 Interval A to B 9 422762 ms FIELD BT SDA zel i Ready DEMO ddFormat FE Trace Off Bus SCL SDA 1 01 1 0 2 A Figure 43 Monitor Window Trace List in Compact Mode 44 Getting Started a 5 C Exerciser Untitled Monitor Untitled o sa ai File Trace Tools Window Help ax Sa phil o 2H 8h SH xe vr AS E o x Line Marker Type Location Addr Hex Add
69. 41 Figure 40 Monitor Window Trace List Data Byte Column Right Click Pop up MenNU occccoccncccccncccccncnooo 42 Figure 41 Monitor Window Trace List Data Column with Data Bytes in Binary Format occccocccc 42 Figure 42 Monitor Window Trace List Data Byte Column Right Click Pop up MenNU ooccccoccncccccncccccncnooo 43 Figure 43 Monitor Window Trace List in Compact Mode oococooccnncccnccncccnccnnononcnnonnnnononnnnonnononcnnnnnnnnnnonanennos 44 Figure 44 Monitor Window Trace List in Compact Mode with Data Bytes Pop up Window 45 Figure 45 Monitor Window Trace List I O 2 Right Click Pop Up Menu cccoocccccccccccccncccncnnccncncnonononononononos 46 Figure 46 Dragging Monitor Window Trace List I O 1 Column Heading ccooccccoccncccccnncccnnnoccnncnnncncnonos 46 Figure 47 Monitor Window Trace List with Rearranged I O COlUMNS occcooccncccccccnconoccnncnoncnnononnnnonnnanonoos 47 Figure 46 Trace Layout Dialogo 48 List of Figures Figure 49 Monitor Window Timing DiSplay ccoocccccoccnccccnncccnnncnonnnononnnonnnnononononnnnonnnnnnnnnnnnnnnnnnonnnononnns 49 Figure 50 Monitor Window Trace List Positioned on Cursor A Line oooooccccccoonncccnccnnnncconnnnnnnccnnnnonannnnnnnos 50 Figure 51 Monitor Window Trace List Positioned on Cursor B Line oooccccccooccccnccnnnncnoncnonnnncnnnnonancnonnnos 51 Figure 52 Monitor Window Timing Display Showing Edges Zoomed in at Line 100
70. 8 shows the Monitor timing field with its major components labeled These labeled areas are described below Field and Bit Scale controls Line controls Link Edge Marker Inter cursor descriptors time Sede 10psidiw J Ol utorit Line as lt o es A i A a STE a a DE EC A AO AN A Time 10 656512 ms Line 94 a a Cursors Scroll bar Cross hairs position Interval A to B 25 349 ps Da EM a E l SDA and SCL waveforms time and line Figure 108 Monitor Timing Field Component Descriptions Field Descriptors This row of the timing display indicates the protocol segment of the waveform The following labels are used e Addr Designates the address cycle during which target slave address bits are conveyed along with the transfer direction indicator bit e Data Designates the data cycle during which data bytes are conveyed to and from a slave e Idle Designates the occurrence of a STOP condition placing the I C bus in an idle state Bit Descriptors This row of the timing display indicates the meaning of the waveforms relative to the transition cycle identified by the field descriptor in the row above The following labels are used e 0 1 Designates the bit level conveyed during an address or data cycle e A N Designates the ACK NAK bit After an address or data cycle either an A is shown meaning that the transaction is acknowledged or an N
71. 9 156 1 gt 8 Line Column 98 1 haz F Starting from 1 default e Trigger is line 0 711 1 6 28 1 Debugger 5 Timestamp Start 25 1 4 AOS 25 1 a Starting from 0 default O Trigger is time O 4 a 3 25 1 3001001 2 Timestamp Display 184 1 Programmer gt o 156 1 1 Lo 711 1 Other Options 2 41 1 3 J Prompt for saving trace data prior to CLEAR or RUN 25 1 4 J Lock Timing with Trace 25 1 5 25 1 e Lock to Top Listing Line Lock to Selected Listing Line gt 184 1 7 START Hold Time Checking 156 1 8 ae 98 1 Minimum Hold Time 0 16us v 9 711 1 10 28 1 ESA 28 1 Scale 69 042 us Coreli Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 170 1 1 0 2 Figure 74 Monitor Window Trace List with Relative Timestamps There are several other miscellaneous options on this tab which will not be explored in this tutorial but are described in the Configuration and Preferences chapter Click on the Use Default button to return the Monitor Options settings back to their default settings Getting Started 71 Click on the Preferences screen Formats tab and position the screen to the right of the Monitor window as shown in Figure 75 The Formats tab controls how addresses in 7 bit mode will be displayed when shown in hex 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 th
72. 97 Data Analyzer DAC 7 Bit Read men A Scocco M 98 Data Analyzer DAC 7 Bit Read 99 Cursor A Address Analyzer ADC _7 Bit Reaa o Data Target ADC 7 Bit Read SDA Signal D y Beginning Marker ae y i 101 Data Target ADC 7 Bit Read 102 Address Target PLL 7 Bit Write scl signal gt y 103 Data Target PLL 7 Bit Write 104 Address Target ADC 7 Bit Write 5d Scale 20 us div AutoFit Line 100 FIELD BIT SDA SCL Corelis Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 1 0 1 140 2 Figure 69 Monitor Window with Alternating Row Colors 66 Getting Started Right click in the trace list and select Go 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 5 44 PC Exerciser Untitled Monitor Untitled a foe x in File Trace Tools Window Help gt sh phi O 85 tua xd YE Sm x Line Marker Type Location Addr Hex AddrType R W NAK Error KHz Data Byte Hex Time us O 1 a 33 Data Analyzer DAC 7 Bit Read 400 4F 2267 0 34 Data Analyzer DAC 7 Bit Read 403 12 2 293 1 sllealtial 35 Address Analyzer ADC 7 Bit Read 107 2476 1 Monitor 36 Data Target ADC 7 Bit Read 104 1C 2632 1 37 Data Target ADC 7 Bit Read 104 DONE 2130 1 isl 38 Address Target 54 7 Bit Write 402 3 441 1 39 D
73. A 7 Bit Read 99 1 1 4 032 096 12 Data Target 9A 7 Bit Read NAK 96 1 1 2F 4 032 196 13 Address Analyzer 9A 7 Bit Write 98 1 1 6 696 122 14 Data Target 9A 7 Bit Write 97 1 1 01 6 696 217 15 Address Analyzer 9A 7 Bit Read 93 1 1 7 224 145 16 Data Target gA 7 Bit Read NAK 97 1 1 40 7 224 245 17 Address Analyzer 9A 7 Bit Write 98 1 1 12 824 18 Data Target 9A 7 Bit Write 98 1 1 01 12 824 19 Data Target 9A 7 Bit Write 98 1 1 80 12 824 20 Address Analyzer 9A 7 Bit Write 99 1 1 17 328 21 Data Target 9A 7 Bit Write 98 1 1 01 ye 22 Address Analvzer 9A 7 Bit Read 99 1 1 17 864 X Scale 50 us div Auto Fit Line 4 4 Interval A to B Ons Sa UE er Sa a RA 0 1 0111 1 N PS Figure 90 SMBus Raw Data Getting Started 35 The raw data shown was collected while communicating with a simple temperature sensor Microchip TC74 Tiny Serial Thermal 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 click on the SMBus tab to display the SMBus configuration pane shown in Figure 91 below Configuration Manager Enable SMBus Timeout Device Name Addr File SMBus Host SMBus Alen Response Default SMBus Device Addr Smart Battery C Program Files ExerciserDec Smart Battery Charger 2 CiProgram Files Exerciser llec aman Battery System Manager 14 CiProgram Fil
74. A to B ons E FIELD o_o o A A AAA EA E E ES Figure 93 Switch to SMBus Mode Fa 88 an Monitor C Program Files I2C Exerciser Demo tc74 tdf Ese Marker Type Location Addr Hex AddrType RAW NAK Error KHz O 1 V O 2 Data Byte SMBus Time us a 2 Data Target Microchi 7 Bit Write 98 1 1 CMD TEMP 96 3 Address Analyzer Microchi 7 Bit Read 99 1 1 559 982 4 Data Target Microchi 7 Bit Read NAK 97 1 1 RESP 47 C 560 082 5 Address Analyzer Microchi 7 Bit Write 98 1 1 1 336 024 6 Data Target Microchi 7 Bit Write 98 1 1 CMD TEMP 1 336 120 q T Address Analyzer Microchi 7 Bit Read 99 1 1 2 081 885 7 8 Data Target Microchi 7 Bit Read NAK 96 1 1 RESP 46 C 2 081 984 9 Address Analyzer Microchi 7 Bit Write 98 1 1 3 592 941 10 Data Target Microchi 7 Bit Write 98 1 1 CMD TEMP 3 593 036 11 Address Analyzer Microchi 7 Bit Read 99 1 1 4 032 096 12 Data Target Microchi 7 Bit Read NAK 96 1 1 RESP 47 C 4 032 196 13 Address Analyzer Microchi 7 Bit Write 98 1 1 6 696 122 14 Data Target Microchi 7 Bit Write 97 1 1 CMD CONFIG 6 696 217 15 Address Analyzer Microchi 7 Bit Read 98 1 1 7 224 145 16 Data Target Microchi 7 Bit Read NAK 97 1 1 RESP DATALR 7 224 245 17 Address Analyzer Microchi 7 Bit Write 98 1 1 12 824 18 Data Target Microchi 7 Bit Write 98 1 1 CMD CONFIG S 12 824 20 Address Analyzer Microchi 7 Bit Write 99 1 1 T7328 21 Da
75. ADC 7 Bit Write 400 1 1 1 522 13 Data Target ADC 7 Bit Write 403 1 1 2E 1 550 14 Data Target ADC 7 Bit Write 403 1 1 F1 1 575 io Tagged Data Target 7 Bit Write EN mA EEE 1 601 oe e a ua io a A Address Target DAC 7 Bit Read 402 1 843 18 Data Analyzer DAC 7 Bit Read 402 1 1 1A 1 884 19 Data Analyzer DAC 7 Bit Read 401 1 1 70 1 909 20 Data Analyzer DAC 7 Bit Read 400 1 1 4F 1 935 21 Data Analyzer DAC 7 Bit Read 400 0 1 45 1 960 22 Data Analyzer DAC 7 Bit Read 400 0 1 72 1 986 23 Data Analyzer DAC 7 Bit Read 400 0 1 49 2 011 24 Data Analyzer DAC 7 Bit Read 400 0 1 4F 2 037 25 Data Analyzer DAC 7 Bit Read 400 0 1 4F 2 062 7 Ready DEMO AddrFormat FE Trace Off Bus SCL SDA 170 1 1 0 2 A Figure 39 Monitor Window Trace List Data Column with Symbols Disabled Getting Started Al Right click on the Data Byte column heading and select the Binary format 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 44 RC Exerciser Untitled Monitor Untitled iin File Trace Tools Window Help eh gt All o 88 Bo Xx W Y Be Marker Type Location Addr Hex AddrType RAV NAK Error KHz 1 0 1 1 0 2 Data Byte Hex Time us Hide Column Trace Layout AutoFit Columns Hexadecimal Decimal Disable Symbols Symbols Normal Mode Compact Mode Address Target 7 Bit Write 402 Data Target 7 Bit Write 402 Data
76. Bit Write E 3 Data Target 2A 7 Bit Write E Saane 2 Address Analyzer 1B 7 Bit Read Programmer 1 Data Target 1B 7 Bit Read 1 Address Target DAC 7 Bit Read 2 Data Analyzer DAC 7 Bit Read 3 Data Analyzer DAC 7 Bit Read 4 Data Analyzer DAC 7 Bit Read 5 Data Analyzer DAC 7 Bit Read 6 Address Analyzer ADC 7 Bit Read rf Data Target ADC 7 Bit Read 8 Data Target ADC 7 Bit Read 9 Address Target PEL 7 Bit Write 10 Data Target PLL 7 Bit Write 11 Address Target ADC 7 Bit Write 12 Data Target ADC 7 Bit Write Scale 20us div Auto Fit Line Corelis Ready DEMO AddFormat 7F Trace Off Bus SCL SDA 140 1 170 2 Figure 76 Monitor Window Trace List Showing Addresses in 7F mode Getting Started 73 Tutorial Using Live Mode By now you should have a firm grasp on the use of the I2C Exerciser s Monitor window and basic bus tracing features The following portion of this tutorial will provide you with an understanding of the use of the Debugger window which provides a facility for interactive communication with devices on the IFC bus This window is not available for use in the demo mode and to fully employ its features requires connection of the BusPro 12C to an actual target However in working through the rest of this chapter you will use only the BusPro 12C controller with no target attached which is sufficient to enable you to become familiar with how the debugger component of the I2C Exerciser functions If it
77. C and so these selections are disabled Input Output Signals High Level Specifies the TTL high voltage level of the I O signals When sensing inputs the BusPro 2C will also use this setting to automatically determine commensurate signal threshold values I O 1 Specifies the discrete signal I O 1 to be an input an output TTL driver or an output open drain driver Drive SMB AT1 If I O 1 discrete signal is set as an output selecting this option will map the state of the I O 1 line to the AT1 SMB connector on the BusPro 12C for signaling external instruments Not applicable when l O 1 is an input I O 2 Specifies the discrete signal I O 2 to be an input an output TTL driver or an output open drain driver Source If I O 2 discrete signal is set as an input this setting specifies the source of the signal Selecting Target routes it through the Serial Bus RJ 45 connector on the BusPro 12C Selecting SMB AT2 routes it from the AT2 SMB connector on the BusPro I2C enabling triggers in from external instruments Monitor Buffer Depth This value indicates the number of transactions that occur before the monitor trace is considered to be full The transaction depth ranges from 1 K 1 024 to 1 M 1 048 576 transactions Monitor Buffer Log to File This option provides continuous logging of trace data to host computer s hard disk and during Run Repetitive monitoring can record and store endless hours of I C bus tra
78. COREL S BusPro I2C I2C Bus Analyzer Exerciser Programmer and Tester User s Manual Corelis Inc 12607 Hiddencreek Way Cerritos CA 90703 Telephone 562 926 6727 Fax 562 404 6196 Preface Document Part Number 70357 2 Copyright 2006 2009 Corelis Inc PRINTING HISTORY Edition 1 February 2006 Edition 2 March 2006 Edition 3 May 2006 Edition 4 June 2006 Edition 5 November 2006 Edition 6 October 2007 Edition 7 July 2008 Edition 8 January 2009 GENERAL NOTICE Information contained in this document is subject to change without notice CORELIS shall not be liable for errors contained herein for incidental or consequential damages in connection with the furnishing performance or use of material contained in this manual This document contains proprietary information that is protected 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 document and may not be transferred to another party without the prior written permission of CORELIS CORELIS assumes no responsibility for the use of or reliability of its software on equipment that is not furnished by CORELIS ENVIRONMENTAL NOTICE K E This product must be disposed of in accordance with the WEEE directive TRADEMARK NOTICE FC Bus is a registered trademark of Philips Electronics N V Pentium and SMBus are
79. Eg altll 24 Data Analyzer DAC 7 Bit Read 400 4F Monitor 25 Data Analyzer DAC 7 Bit Read 400 4F 26 Data Analyzer DAC 7 Bit Read 400 79 27 Data Analyzer DAC 7 Bit Read 400 11 e 28 Data Analyzer DAC 7 Bit Read 400 4F Soames b Debugger 29 Data Analyzer DAC 7 Bit Read 400 4F nie 30 Data Analyzer DAC 7 Bit Read 400 27 j E 31 Data Analyzer DAC 7 Bit Read 400 9A otoo 32 Data Analyzer DAC 7 Bit Read 400 AF Programmer 33 Data Analyzer DAC 7 Bit Read 400 4F 34 Data Analyzer DAC 7 Bit Read 403 12 35 Address Analyzer ADC 7 Bit Read 107 36 Data Target ADC 7 Bit Read 104 1C 37 Data Target ADC 7 Bit Read 104 DONE 38 Address Target 54 7 Bit Write 402 39 Data Target 54 7 Bit Write 402 17 Width 40 Data Target 54 7 Bit Write 401 5D i 41 Data Target 54 7 Bit Write 400 35 43 Address Analyzer 36 7 Bit Read 107 Data Target 7 Bit Read 104 Address Target DAC 7 Bit Read 402 4694 1 Scale 20 us div Auto Fit Line 22 4 gt Interval A to B 69 042 us I I I I I I I I I I I I I I U I U I I I I I C pata Data Data Data A Data I Data Data L h Data mon monna A 01001111 01000101 011100104 010010034 A Stool 1 oe Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 1 01 1 0 2 Ui Figure 62 Monitor Window Trace List Showing Find 72 Data Result 60 Getting Started You can click on the Go to Tagged Row tool bar button shown in Figure 63 to move to the second search result as shown in Figure 64 Repeated
80. FAULT ADC WARNING CHANSEL DONE OK DANGER BUSY LOWTEMP MODE Configuration and Preferences Data Address Data Data Data Data Data Data Data Data Type Addr AddrType RW Data Byte Address Bit F Bit Bit Bit Bit F Bit 10 Bit Bit Bit F Bit F Bit Figure 153 Symbols Pane 169 Using the Add button beneath the list box a new symbol can be defined and appended to the list The Edit button allows alteration of an existing selected symbol definition The Remove and Remove All buttons enable the deletion of a selected symbol definition or the entire list of symbol definitions The Symbol Definition dialog that is displayed when using the Add or Edit buttons is shown in Figure 154 Symbol Definition Type Value Byte Addr Position AddrType 7Bit Width RW Any OR Figure 154 Symbol Definition Dialog For 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 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 symbolic text string can be entered in place of a numeric value when using the Find dialog or specifying a slave device address in the Debugger or debugger command script
81. 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 NULL if there is no transfer status information otherwise the string ADDRESSNAK Parameters None 196 Third Party Application Interface 12C InitHardware Confirms that the BusPro I2C is present and properly linked via its USB port 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 NULL if the initialization was successful otherwise a pointer to a string containing text with an error message Parameters None Third Party Application Interface 197 2C_LoadSetup Overwrites all settings from the referenced project i2c file Following are the parameters being loaded LowThresholdVoltageSetting HighThresholdVoltageSetting InterfaceSpeedSetting TolerateSlowRiseTimes DisableCollisionDetection AnalyzerSuppliesBusVoltage BusDriveVoltageSetting BusDrivePullUpSetting SlopeControlMode BufferDepthSetting Daseretel LOmode DiscretelDrives_SMB_ATI Discrete2IOmode Discrete2InputSource DiscreteVoltage HiSpeedMode TimingSkewMode TimingSkewSetupTime TimingSkewHoldTime SMBusTimeout Is8BitAddrFormat Prototype extern C _ declspec
82. O 00 4F 00000040 00 50 00 51 00 52 00 53 00 54 00 55 00 56 00 57 OOOOU0BO 00 55 00 59 OO 54 00 56 00 SC 00 SD 00 SE OO SF QOOOUO0CQ oo 60 00 61 00 62 00 63 00 64 00 65 00 66 OO 67 nogoh 00 68 00 69 OO 64 00 66 00 6C 00 6D 00 E 00 6F CODODO0 O oo TO OO Fl OO F2 00 73 OO 74 00 75 OO 76 OO 77 QOOOOQUOFO OO 78 00 79 OO 74 00 FEB OO E 00 FD 00 FE 00 TF Address O 6 ee Figure 141 Programmer Read Window en Name eo 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 memory Forward Moves cone page forward in the EEPROM memory Go to Location Moves to the specified EEPROM memory location Type in the address in hexadecimal format and press the Enter key to go to that location Table 10 Programmer Read Contents Window Function Descriptions 156 Bus Traffic Monitor Program Button The Program button allows the user to program and verify the I2C EEPROM device With a single click on the button the I2C Exerciser will program the device using the specified data file If the Preferences is set to verify after programming see the Programmer Options section of this chapter the I2C Exerciser will automatically verify that the data is written to the device by performing a read During the programming operation the progress dialog box shown in Figure 142 will pop up to show the programming status Progress Program
83. ON REICKON CO citaciones 191 Appendix A BusPro I2C Hardware ReferenCe ooncoonncccncconccccoccccnnnccnanccnancnnannnnanonos 219 Hardware SpecifMcalOnS ii a a aa 219 Electrical SPeciMCa ION ci 220 Figure 1 IFC Bus TODO ovas 1 Figure 2 II stration OF tne BUSPIO Lust ads 2 Figure 3 12C Exerciser Installation WizZard occccoccnnocccccnonccconnncoconcnnnonanoncnnannnncnnrononnnnnnnonannnnnnnaninnnss 8 Figure 4 Windows RUN DIO a 9 Figure 5 License Agreement SCreen cccccssccccssseccccesscecceseeecseueeecseseecceuueecsaueeessaecesseeeeessageeessageeessaaes 9 Figure 6 Customer Registration Screen cooonccccconcnncccononccconnnnononnononnannnnononnnnonnnnnnnnnnnnnnnnnnnnnnnnncnnannnns 10 Figure 7 Destination Folder aaa 11 Figure 8 Select Program Folder Screen ccccccsssccccsseeecceeseecccenseecceuseeessaueeecsueeeessaueeessgeeessegseessseeeeesas 12 Figure 9 Completing the Installation Wizard Screen ocooocccconnnccccnncocnnncconnnononnncnnnnnonnnnnnnnnnnnnnnnnnonenononos 13 Figure 10 Windows Vista Logo Test Warning Pop Up Window ooccccoccnncccccncccnnnconcnncnnnnncnncnonononononenononos 14 Figure 11 Windows XP Logo Test Warning Pop Up WiNdOW cooccccoccncccccncconcncnocnncnncnnnoncnnnononononononanoss 14 Figure 12 Software Installation Button on the Windows XP Task Bal 0 ccccccseeeeeeeeeeeeeeeeeeeaeeeeeeeeeas 15 Figure 13 Installation Completed Screen ccccccc
84. OW menea E N ia 138 Debugger Send COMICON sninen E a e A E E ES 139 Debugger Receive Controls oner naea o ooo 141 Debugger OBISPO 147 I2C Exerciser Debugger Window LayOUt oocccoccccccnccccnccccncnoocononnconononncnonnnnnnnnnnnnnnonnncnnnncnnos 149 Dep gger FG MENU oh st aero 150 BENE A a E a a E E S 151 FTOJrANMMETWWINCO Wisin 154 Programmer Read MINO Wa occ 156 Programming Progress Window c oocccoccnccccccccccococonncocnconnconoronnronoronnrnnnrnnnrnnnrnnnrnnnrnnnnnnnnnnns 157 Verifying Progress VINO Wesscciciiadi diia 157 Erasing Progress WINDOW datada a darona ae we Aap Iaa aR ii 157 Programmer Options PAN at Sosesd hac DI E Ea eee aa iai 158 I2C Exerciser Programmer WINGOW ccccccsecccecccececeeeeeeeeeaeeesaceseueeseeeeseeesueessueeeeeeesaees 159 Programmer FUE MEN A ii 160 el AA A RAEE 161 Configuration Manager Dialog Panes Settings selected ooccconccconnccocnccocnconcncnanonos 164 A sounds dghecuue eam a e aAa E ORA 166 FIKO R AO a E A E E enn RC ren eae 167 Filter Definition Dialog similar to Edit ccooocccooonococoncccocncoconoconanononanononnnnonanononanos 168 S H 818 EIN E ee een RTT One ent OU nn A rare Oe DRE ne a E nT MM en eran RO Tne 169 Symbol Definiton DAOC Gos actacen os dice a dd ade 170 A Re er ee A nee en nner Te 171 SIVIBUS Decoder File Dialog pcre hana dt ecient aaa EAEE PANE cdta 172 o O er oe eee ne nee eee 173 PG Serle eee A II A A o easels 177 Figure 159
85. Proy i2c Figure 165 Title Bar for a Saved Project The project settings are saved in a file with i2c extension Along with this main i2c file several secondary files are created and associated with the project whenever you create a new project They are the trigger trg filters fil and symbols sym files Having these separate project sub files allows you to re use the settings that they contain from within another project This can be achieved by selecting the sub files from the Files tab of the Configuration Manager By default when you create and save a new project the application will automatically give the same name to these sub files as the main project file only the file extension will differ The I2C Exerciser keeps track of any changes made to a project s settings during a session Upon exiting the application or closing the current project it will ask you whether you want to 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 preferences and window positions a project also remembers the names and paths of certain data files associated with the project These data files include the monitor trace data file tdf the debugger command file dcf the programmer configuration file pcf and the test script file scr Note that the project file only stores the na
86. Send text box to a DCF text file If not already working with an opened command file a prompt is displayed to save it Save Debugger Command File As Same as Save Debugger Command File above except that it always prompts for a new filename before saving Save Debugger Data Stores the data collected from the bus in the Receive text box into a DDF text file Recent Files Provides a list of recently used project files for quick access Exit Terminates the I2C Exerciser application 150 Interactive Debugger Debugger Tools Menu The Tools menu provides a path to the major application function windows This is identical to the Monitor Tools Menu described in the Bus Traffic Monitor chapter Debugger Window Menu The Window menu manages the various windows of I2C Exerciser and is identical to the Monitor Window Menu described in the Bus Traffic Monitor chapter Debugger Help Menu The Help menu accesses the on line help features and is identical to the Monitor Helo Menu described in the Bus Traffic Monitor chapter Debugger Tool Bar The Debugger Tool Bar shown in Figure 139 provides quick single click access to commonly used commands in the Debugger window Simply click the tool bar button to perform the desired command Table 8 describes the tool bar functions Positioning the mouse cursor over each tool bar button also displays a pop up tooltip providing a short description of the command Figure 139 Debugg
87. TR te Ez CHANSEL AB Address Target 18 7 Bit Read 402 1 843 18 Data Analyzer 18 7 Bit Read 402 1 1 1A 1 884 19 Data Analyzer 18 7 Bit Read 401 1 1 70 1 909 20 Data Analyzer 18 7 Bit Read 400 1 1 4F 1 935 21 Data Analyzer 18 7 Bit Read 400 0 1 45 1 960 22 Data Analyzer 18 7 Bit Read 400 0 1 72 1 986 23 Data Analyzer 18 7 Bit Read 400 0 1 49 2 011 24 Data Analyzer 18 7 Bit Read 400 0 1 4F 2 037 25 Data Analyzer 18 7 Bit Read 400 0 1 4F 2 062 z elis Ready DEMO AddiFormat FE Trace Dff Bus SCL SDA 10 1 140 2 A Figure 33 Monitor Window Trace List Showing Symbolic Address and Data Entries Getting Started 35 Using the method previously described right click in the trace list area of the Monitor window and 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 rules and to edit or remove existing symbol definition rules Configuration Manager Symbol Type Addr AddrType RW Data Byte PLL Address F Bit FAULT Data 5 7 Bit ADC Address 56 f Bit WARNING Data 36 7 Bit CHANSEL Data 58 7 Bit DONE Data 58 7 Bit OK Data 233 10 Bit DANGER Data 36 7 Bit BUSY Data 458 7 Bit LOWTEMP Data F Bit MODE Data o Bit Close Figure 34 Configuration Manager Symbols Definition Screen 36 Getting Started Click on the Add button and the Sym
88. Target 7 Bit Write 401 Data Target 7 Bit Write 400 Data Target 7 Bit Write 403 Address Analyzer 7 Bit Read 107 Data Target 7 Bit Read 104 Data Target 7 Bit Read 104 Address Target 7 Bit Write 402 Data Target 7 Bit Write 402 Address Target 7 Bit Write 401 Address Target 7 Bit Write 400 Data Target 7 Bit Write 403 2E SMBus Mode Data Target 7 Bit Write 403 F1 1 575 Tagged Data Target 7 Bit Write NAK 403 1 601 Address Target DAC 7 Bit Read 402 1 843 Figure 40 Monitor Window Trace List Data Byte Column ant Pop up Menu 01101 a oe 4 2 3 4 5 6 7 8 9 mb ok 20 ab M h Ly b hb hb bb hb dh bh hb hb ee ee hd h a hb bb hb hb ab ab ab ab hb ob lt b gt 5 44 DC Exerciser Untitled Monitor Untitled ston x Hi File Trace Tools Window Help Dix SH gt l 2H GE BE xy ASE Line Marker Type Location Addr Hex AddrType R W NAK Error KHz 1 0 1 1 0 2 Data Byte Bin Time us a 1 Address Target 54 7 Bit Write 402 1 1 0 01101 2 Data Target 54 7 Bit Write 402 1 1 00011110 28 sllaltial 3 Data Target 54 7 Bit Write 401 1 1 01011100 53 Monitor 4 Data Target 54 7 Bit Write 400 1 1 00110100 78 5 Data Target 54 7 Bit Write 403 1 1 00001010 104 ia 6 Address Analyzer 36 7 Bit Read 107 1 1 287 7 Data Target 36 7 Bit Read 104 1 1 01010001 443 Debugger 8 Data Target 36 7 Bit Read 104 1 1 00011100 541 9 Address Targ
89. a Target Cc Write N 6 828 499 11 4 7 Bit AK 100 1 1 0D CARITAS DEA EEE 3E 100 5 817 671 33 5 817 771 6 319 847 FF 6 319 952 00 6 320 043 6 828 209 21 6 828 309 h a ee ee ee ee ee ee ee b h hb bb bh dh bh dh oh Programmer I I I I I I I I I I I I lp Data a Data e CA AAA A LAA LIVE AddrFormat FE Trace On Bus Ide SCL High SDA High 1 01 High 1 02 High 4 Figure 85 Capture of Debugger Script Getting Started 31 Step 4 Manipulate Discrete I O Signals Suppose that you want to use the I O 1 and I O 2 general purpose lines to stimulate a target device To drive these signals you must first set the discrete I O modes to output Open the Configuration Manager by clicking on its entry in the I2C Exerciser s Tools menu and then click on the Settings tab Near the bottom of the dialog there is a section called Input Output Signals Set both the I O 1 and I O 2 Function fields to Out TTL using the dropdown menus as shown in Figure 86 below A custom voltage can also be specified here but leave it at the default 3 30 V Click on the Close button when you are finished Input Output Signals High Level Function a 1 0 1 I Drive SMB AT1 Monitor Buffer Options Out Open Drain 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 Debugger Command File A message will po
90. action a data transaction or when the bus has transitioned to an idle state The vertical orange dotted line in the center of the timing display will identify the first timing edge that corresponds to either the currently highlighted line in the trace list or to the entry at the top of the trace list This setting can be configured on the Monitor Options tab of the Tools Preferences menu entry The default setting is to have the timing display track the currently highlighted trace line Click on different trace list transactions and observe how the timing display updates to show the newly selected transactions You can navigate in the timing display area itself by jumping forward or backward between lines via the provided arrow buttons or enter the desired trace line number in the edit field and press return The Monitor trace list will track the timing display according to the currently active display locking preference You can also use the horizontal scroll bar underneath the timing display to position the display without affecting the position of the trace listing Getting Started 49 Notice the colored flags that are displayed just above the top Field row of the timing display These flags indicate the locations of the Trigger marker and the Cursor markers A cursor is a special marker that can be positioned in the timing display at various points of interest to allow time measurements between any two points There are two cursors available Cu
91. action fields automatically by using the data from the currently selected line Lines in the trace listing can be arbitrarily flagged as lines of interest Such lines are denoted by blue text as well as the Tagged indicator in the Marker 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 trace buffer that satisfied certain specified criteria Double click on any untagged line and observe its text color change and Marker column change to Tagged Double click on the same line again and it will return to untagged status Right click in the trace list area of the Monitor window and select the Go to Trigger pop up menu entry as shown in Figure 26 This will cause the trace list and timing display to reposition to the Trigger line as shown in Figure 27 The Trigger line can be seen on line 45 in the trace list which is identified by a red background and it is also indicated at the top of the timing display by a red flag with the symbol T C bus transaction characteristics that constitute a Trigger are configured by the user prior to starting data collection The BusPro I2C searches for the user specified set of conditions while collecting trace data in order to mark the Trigger line and place it in a specific position in the buffer Ad DC Exerciser Untitled Monitor Untitled fi e
92. agged line into view at the top of the screen Go to Start Causes the quick positioning of visible trace lines to bring the first trace buffer line into view at the top of the screen Go to End Causes the quick positioning of visible trace lines to bring the last trace buffer line into view at the bottom of the screen Go to Cursor A Causes the quick positioning of visible trace lines to bring the Cursor A line into view at the top of the screen Go to Cursor B Causes the quick positioning of visible trace lines to bring the Cursor B line into view at the top of the screen Bus Traffic Monitor 135 oe Function Description Clear Trace Data Deletes all of the trace buffer contents 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 screen Clear Tagged Rows Removes the tagged status for all lines in the trace buffer Filters Provides direct access to the Filters tab of the Configuration Manager allowing the user to view add edit or remove filters Filter rules qualify data transactions for inclusion or exclusion from the trace listing Triggers Provides access to the Trigger tab of the Configuration Manager allowing the user to view or edit the trigger condition The trigger defines conditions to mark a special transaction event in the trace buffer oh Find Launches the Find di
93. alog allowing the user to search through the trace listing for transactions matching the specified pattern Trace Layout Launches the Trace Layout dialog allowing customization of the trace listing columns Hide Show Toggles the visibility status of the timing display If you are not Monitor Timing interested in viewing the timing data hiding it provides more room in the Monitor window to display additional trace list data fejHee Provides quick access to the online help topics Table 5 Monitor Tool Bar Functions 136 Bus Traffic Monitor Bus Traffic Monitor 137 Chapter 6 Interactive Debugger Debugger window overview and component descriptions The Debugger window provides a direct read write interactive interface with the target I C bus Unlike the Monitor window where the BusPro I2C is passively monitoring the bus the Debugger can be used to perform simple message transfers both to and from slave devices During this process the BusPro I2C analyzer essentially acts as a master on the bus The Debugger main screen is shown in Figure 133 Typical applications include Generating C bus traffic and confirming basic bus operation and integrity Establishing the presence and behavior of slave devices Poking data to or initializing slave devices Peeking the contents of slave devices Interactively checking IC devices under various signal and timing conditions and assessing bus conformance while observing signals with external
94. am Folder Install this application for a Anyone who uses this computer all users 5 Only for me current user Add shortcut icons on desktop Figure 8 Select Program Folder Screen Click on the Next button and the Completing the Installation Wizard screen shown in Figure 9 will be displayed To change any installation parameters click on the Back button Otherwise click on the Next button and the installation process will begin 12 Installation S I2C Exerciser InstallAware Wizard Completing the Installation Wizard for 12C The Installation Wizard is now ready to configure 12C Exerciser on this computer Click Next to begin configuration Click Back to change settings Click Cancel to exit Figure 9 Completing the Installation Wizard Screen The installer copies the program files to the specified folder and support files to the Windows system folders In addition the installer creates a Windows Start Menu group named I2C Exerciser If you are running Windows Vista the software installation may be interrupted by the operating system by displaying warning pop up windows as shown in Figure 10 If this occurs click on the Install this driver software anyway button to safely ignore the warnings and proceed with the installation Installation 13 E Windows Security Windows can t verify the publisher of this driver software Don t install this d
95. arty Application Interface 191 Function Description IZC_SetMonitorCallback sets application defined callback function for processing transaction data captured by the analyzer 12C_SetRisingEdgeDriveMode Overwrites configuration rising edge drive setting with provided selection 12C_ShutdownHardware Forces an orderly shutdown of the BusPro I2C analyzer and its USB disconnection Table 15 12C DLL Functions 192 Third Party Application Interface 2C_ConfigureDiscretes Overwrites several configuration parameters related to driving the two discrete l O lines This includes setting each line s direction drive type TTL or open drain SMB connector linkage and voltage level Prototype extern C _ declspec dllexport int _cdecl I2C_ConfigureDiscretes int nDiscretelFunction BOOL bDiscretelDrivesSMB_ATI int MANS Creve7 FUNELON BOOL nDiscrete2InputFromSMB_AT2 char szVoltage Return Value 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 nDiscrete1Function O Input 1 TTL Output 2 Open drain Output bDiscrete1DrivesSMB_AT1 irrelevant if Discrete 1 is configured as an input otherwise 0 drives target connector 1 drives SMB AT1 connector nDiscrete2Function O Input 1 TTL Output 2 Open drain Output nDiscrete2InputFromSMB_AT2 irrelevant if Discrete 2 is co
96. ata Target 54 7 Bit Write 402 17 3 469 1 Debugger 40 Data Target 54 7 Bit Write 401 5D 3 494 1 41 Data Target 54 7 Bit Write 400 lO 3 520 1 Bl 42 Data Target 54 7 Bit Write 403 OF 3545 1 pb 43 Address Analyzer 36 7 Bit Read 107 3 729 1 Programmer Data Target 7 Bit Read 104 3 884 A A Address Target DAC 7 Bit Read 402 4 694 47 Data Analyzer DAC 7 Bit Read 402 3D ETS 48 Data Analyzer DAC 7 Bit Read 401 63 4761 1 49 Data Analyzer DAC 7 Bit Read 400 52 4786 1 50 Data Analyzer DAC 7 Bit Read 403 16 4811 1 51 Address Analyzer ADC 7 Bit Read 107 4 995 1 52 Data Target ADC 7 Bit Read 104 1F 5 151 1 53 Data Target ADC 7 Bit Read 104 BUSY 5 249 1 54 Address Target PLL 7 Bit Write 402 5 960 1 A Data Target PLL 7 Bit Write 402 5A 5988 1 56 Address Target ADC 7 Bit Write 401 6 171 1 ar Data Target ADC 7 Bit Write 403 33 6 199 1 v Ready DEMO AddFormat FE Trace Off Bus SCL SDA 120 1 170 2 A Figure 70 Monitor Window Trace List with the Trigger Line Centered Getting Started 67 Select the Tools 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 E aa 12C Exerciser Untitled Monitor Untitled ola lie tah File Trace Tools Window Help e Dx sh pho 28 8h Be xa vrER AS aso Shortcuts Line Marker Type Location Addr Hex AddrType
97. available only when the Track Transaction option is enabled Show Send Command Line Number If selected the debugger script text box will display line numbers in the gutter 148 Interactive Debugger Debugger Window Reference The Debugger window shown in Figure 137 can be opened using the either the Debugger entry in the Shortcut Bar or in the Tools menu Table 7 describes the numbered areas of the I2C Exerciser Debugger window 5 BC Exerciser Untitled File Tools Window Help 01101 cl ey Mina Monitor rr ll ir E Debugger Y 0110100 1001001 Programmer Ready LIVE AddrFormat FE Trace Off Bus Ide SCL High SDA High 1 01 High 1 02 High Figure 137 12C Exerciser Debugger Window Layout Component Description 222222222222 1 Menu Bar Contains the menu bar for the 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 Bar section of this chapter 3 Send Section Provides controls for writing to a slave device address on the target bus Refer to the Debugger Send Controls section of this chapter Receive Section Provides controls for reading from a slave device address on the target bus Refer to the Debugger Receive Controls section of this chapter Table 7 Debugger Window Layout Interactive Deb
98. bol Definition dialog shown in Figure 35 will appear In the Symbol 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 bit hex address of 18 Click on the OK button to accept the new symbol definition rule Symbol Definition Symbol DAC Type Address Value nae E Pon AddrType 7Bit Width am any Figure 35 Symbol Definition Dialog Getting Started 37 The Configuration 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 38 Configuration Manager es Symbol Type Addr AddrType RW Data Byte PLL Address F Bit FAULT Data 5 7 Bit ADC Address 58 f Bit WARNING Data 36 7 Bit CHANSEL Data 8 T Bit DONE Data 58 7 Bit OK Data 233 10 Bit DANGER Data 36 7 Bit BUSY Data 43 7 Bit LOWTEMP Data 7 Bit MODE Data 8 7 Bit DAC Address F Bit Figure 36 Configuration Manager Symbols Definition Screen with DAC Symbol Getting Started With the trace list still showing the beginning of the Demo data you will now see that lines 17 through 34 are 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
99. bus traffic are easily acquired and traversed for review The Monitor main screen is shown in Figure 106 Typical applications include e Passively collecting and storing I C bus traffic Examining transaction details such as target read write address data byte transfers slave acknowledgement and protocol violations Viewing all data and clock signal transitions as timing waveforms Searching for a specified trigger transaction Filtering classes of transactions for inclusion or exclusion Finding and marking transactions of interest Making time measurements between signal transitions alu Monitor Untitled Line Marker Type Location Addr Hex AddrType R W NAK Error KHz 1 0 1 VO 2 Data Byte Hex Time us 31 Data Analyzer 18 7 Bit Read 400 0 1 9A 2 215 32 Data Analyzer 18 7 Bit Read 400 0 1 AF 2 241 3 33 Data Analyzer 18 7 Bit Read 400 0 1 4F 2 267 Data Analyzer 7 Bit Read 403 2 293 E ECT IE E e 36 Data Target ADC 7 Bit Read 104 2 632 37 Data Target ADC 7 Bit Read 104 1 1 DONE 2 730 38 Address Target 54 7 Bit Write 402 1 1 3 441 39 Data Target 54 7 Bit Write 402 1 1 17 3 469 40 Data Target 54 7 Bit Write 401 1 1 5D 3 494 41 Data Target 54 7 Bit Write 400 1 1 35 3 520 42 Data Target 54 7 Bit Write 403 1 1 OF 3 545 43 Address Analyzer 36 7 Bit Read 107 1 1 3 729 AC IE IEC MET 46 Address Target 7 Bit Read 402 4694 47 Data Analyzer 18 7 Bit Read 402 1 1 3D 4 735 48 Da
100. c that is being generated by the Debugger you need to start the Monitor to collect data Click on the Run Single button in the I2C Exerciser tool bar indicated by the icon If a message box comes up asking if you want to save the current Monitor trace data click on the No button The Run Status window will open and the Monitor will begin capturing data You may want to minimize the Run Status window if it obstructs your view of the Debugger and Monitor windows Go back to the Debugger window and click on the Send button Switch to the Monitor window by clicking on its entry in the Shortcut Bar The trace list will display the write message for the byte sent as shown in Figure 83 below The NAK column indicates that the message was not acknowledged since there are no devices connected to the analyzer which would be able to respond to the message 4 QC Exerciser Untitled cote File Trace Tools Window Help eh gt mhN O S 8 8 8 x E ml 40M e wi Monitor Untitled p fo U Line Marker Type Location Addr Hex AddrType R W NAK Error KHz 1 0 1 1 0 2 Data Byte Hex Time us 01101 llaltial 2 Data Target 18 zeit write Nak 100 ata ox fio Monitor Lr anr Debugger o i 0110100 1001001 Programmer Scale 50 us div Auto Fit x LIVE AddiFormat FE Trace On Bus Ide SCL High SDA High 1701 High 140 2 High L Figure 83 Capture
101. can see all of the timing edges in the entire trace buffer The Auto Fit option when checked will automatically adjust the time scale so that one full transaction is visible on the right side of the center orange marker line With the timing display still showing the timing edges beginning at line 100 as shown in Figure 51 click on the zoom button in the scale area The timing display will Zoom in as shown in Figure 52 Getting Started 51 Notice that the time scale has been reduced from 50us div to 20us div and that the edges appear much larger now revealing more detail 52 97 E 101 102 103 104 105 106 107 Tagged 108 109 Data Data Address Data Address Data Address Data Data Data Data Data Analyzer Analyzer Analyzer Target Target Target Target Target Target Target Target Target DAC DAC ADC PLL PLL ADC ADC ADC ADC ADC ADC 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit 7 Bit Read Read Read Read Write Write Write Write Write Write Write Write 400 403 107 104 402 402 401 403 403 403 403 55 12 DONE 6A 52 D2 CHANSEL CHANSEL CHANSEL 10 712 10 738 10 921 11 175 11 886 11 914 12 098 12 125 12 151 12 177 12 230 12 284 4 1 4 ee ee ee hb hb hh _ AAA DEMO AddiFormat FE Trace Off Bus SCL SDA 1 0 1 170 2 Figure 52 Monitor Window Timi
102. ccoccnncnnnnnnnonanonnononcnnnnnncnncnnanenoos 87 Figure 93 Switch to SMBus Mode adios 88 Figure 94 SMBus Decoded Data ios 88 Figure 95 Decoded SMBus Message ToolTip ccococccccccncccccncccncncconcncnoncnononnnonnnnnnnnnnnnnnnnnonnnnonnnnnononenononos 89 Fig re 96 SMBus Data VV OW sssaaa bed Ey 89 Figure 97 RJ45 Connector Pin Numbering cccccseseecceeeeeecceescecceeeesseueeeceeuseesseaeeessageeessegeeeeseaeeeeeas 92 Figure 98 Configuration Manager iis sci ccte ct acca nea e cease danee dtd tueunceilandeeeuanmiedddaisenaoscateuats 94 Figure 99 Analyzer Supplied Voltage ProMpt cooocccccccncccccncconcncconcnnnoncncnonnnononnnonnnnnnnnnnnnnnnnnnnnnnononenonnnos 96 Figure 100 Configuration Manager Analyzer Supplied ooccccoccccccccnccccnncconnnononononannnonnnnnnnnnncnononononos 97 Figure 101 Configuration Manager Settings Pane cocccccccccccccnnccccnnccnnnnonncnonononononnnonannnnnnnnnnonnnonnnnnonnnnss 99 Figure 102 Bus Electrical Feat aos 100 Figure 103 B s Drive FO atuendo tidad 101 vi Figure 104 Figure 105 Figure 106 Figure 107 Figure 108 Figure 109 Figure 110 Figure 111 Figure 112 Figure 113 Figure 114 Figure 115 Figure 116 Figure 117 Figure 118 Figure 119 Figure 120 Figure 121 Figure 122 Figure 123 Figure 124 Figure 125 Figure 126 Figure 127 Figure 128 Figure 129 Figure 130 Figure 131 Figure 132 Figure 133 Figure 134 Figure 135 Figu
103. coccnnononcnnconnconnnnanonnononnnnnnnarononnanennos 64 Figure 68 Monitor Window with Updated Cursor A Colors oocccccocccncococcnnononcnnconanonnonanonnnnonnnnonnnnnnconanenoos 65 Figure 69 Monitor Window with Alternating ROW COlOFS ooccccccocccccccocccnconononncnnnnnnnonanonnonononnnnonnnncnnanenoos 66 Figure 70 Monitor Window Trace List with the Trigger Line Centered ccccocccccoccncccccnncccnncocnnncnononononos 67 Figure 71 Monitor Options Preferences Screen ccooocnncccocnococococccnocononnonnnnononnnnononcnnnnnnnnnnnannnnnnanranennananess 68 Figure 72 Monitor Window Trace List with Trigger at Line Zero Numbering occcoccncccccncccccnccccnnccnnnncnnnos 69 Figure 73 Monitor Window Trace List with Trigger is Time Zero TimMestaMpS ccoccncccoccncccccncccnnncnonnncnonos 70 Figure 74 Monitor Window Trace List with Relative TiMestaMpS oooccncccoccnncconcnnconaconcnnoncnnnnoncnnnonanenoos 71 Figure 75 Monitor Window Trace List Showing Addresses in FE mode ooccooccnncnnnccnccnnccnnononcnncnnncnnnonanonnos 72 Figure 76 Monitor Window Trace List Showing Addresses in 7F mode cccccecseeeeeeeeeeeeeeaeeeeeaeeeeeeas 73 Figure 77 Tools Menu Deselect Demo MOde ccccccssseeccesececceseecceuseeecseuseecseueeessageeeseagseessaaeeeeeas 74 Figure 78 Status Bar Indicating Live Data Mode oooccccocccncccoccnncconcnncnnnccnnonononnnnnncononnnrnnnononcnnnnnnrnnnnnaninns 74 Figure 79 Analyzer Supplied
104. cssscecccesececceeseeecsegeeecceuseecseugeeessageeeseaeeessseeeessageeeees 16 Figure 14 Found New Hardware Wizard Welcome Screen Windows XP ooccconcccccccccccccncccccnccononononos 17 Figure 15 Found New Hardware Wizard Install Options Windows XP oooccccocccccccoccncococcncononnnnonanonoos 18 Figure 16 Windows XP Logo Test Warning Pop up WiNdOW ooccccoccncccccncconcncconnncnncnnnoncncnonononononononoss 19 Figure 17 Found New Hardware Wizard Installation Complete Windows XP ooccccccocccccccoccnconoconoos 20 Figure 18 Windows Device Manager Windows XP ooocccccooccocococcnnconoconcononcnnononcnnnonanonnononcnnonnnrnnonnanenoss 21 Figure 19 Initial I2C Exerciser Warning Message when BusPro 12C is Not Initially Connected 24 Figure 20 Tools Menu Demo Mode Selecti0N ccccooooccncococconccooconconanononnoncnnonnnnnnnonrcnnnnnnrnonnnrnnnnnanennos 25 Figure 21 Status Bar Indicating Demo Mode ococcccoccnccccoccnccnoccnnononcnnnonnncnnononcnnononrnnnnnnnrnnonnnrnnnnnarnnnnnanenns 25 Figure 22 Begin Monitor Data Collection ccccoonncncoconcncononcnnccnnnonnonononononcnnonnnnnnnononrnnonnnnonnnnnnrnnonanenoss 26 Figure 23 Demo Mode Reminder Pop Up WINdOW occcccocccccccnncoccnccconcconcncnononononononnnnnnnnnnononnnononenenonons 26 PIQUE 24 RUSS AO a id 27 Figure 25 Monitor Window Centered on Trigger Line cccoocccccccnccccnncccnnnccnnnncnononononnnonnnnonnnnnon
105. cted the Pull up Resistance setting is disabled Analyzer Supplied Specifies that the BusPro 12C will supply pull up voltage to the target bus In this case the target has no other attached pull up voltage source and the analyzer must supply this to activate the bus When this setting is selected both the Voltage and Pull up Resistance settings are enabled Voltage In Analyzer Supplied mode this specifies the voltage to which the bus will be pulled up by the BusPro I2C The user must assure that this level is compatible with the operation of any attached target bus In Target Supplied mode this specifies 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 up resistor value through which both bus signals SCL and SDA will be pulled up by the BusPro I2C The user should consider the target IC bus capacitance such that the resultant RC time constant will not adversely affect its operation at expected clock rates by producing signal rise times that are too slow Bus Signal Threshold High Level This value establishes the minimum voltage that a bus signal SDA and SCL must rise above from the low state before it is considered to be high This setting applies in general to all monitoring of the bus by the analyzer Default values for these settings are based on the pull up voltage selected
106. cycle terminates the message after the last data byte sent otherwise no stop cycle is issued the analyzer continues to control the bus with SCL low ready to perform a coming Repeat Start on the next access ulParam Optional parameter Set this to 0 Third Party Application Interface 203 I2C_SenseDiscrete Reads the level of one of the discrete I O signals If discrete 2 is selected and it is configured as tied to the input trigger SMB that signal will drive this function 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 nt NLSvVeL J Return Value 0 if I2C_InitHardware was never called 1 if illegal discrete number 1 if successful Parameters nDiscreteNumber The index selecting the discrete to drive either 1 or 2 nLevel If not NULL pointer to sensed value of the output 204 Third Party Application Interface 2C_SetBusDriveVoltage Overwrite configuration reference voltage with provided value Prototype extern C _ declspec 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 closest available to requested Parameters szVoltage The string holding text of the new bus reference level as a floati
107. d and then a numerical index is appended to each filename _nnnn to indicate the chronological order in which the data was captured and saved Note that each 1M transaction trace data file uses about 260MB of disk space as it contains all captured IC bus transaction data including signal waveforms timing and time stamp information Use the Monitor Window s Run Repetitive button to continuously capture the traffic Data will be captured into a tdf file and once the file exceeds 1M transactions another file will be opened to continue storing transactions and so forth Note that when the Run or the Run Repetitive button is clicked and trace data files with the same base filename already exist in the specified location the user will be prompted to overwrite them While running the Monitor Window displays the most recent 1M transactions of data and the Run Status dialog box lists the name of the trace data file currently being logged to After finishing capturing you may double click on the listed filenames to load the trace data to the Monitor Window Connecting to a Target 103 Monitor window overview and component descriptions Chapter 5 Bus Traffic Monitor The Monitor window is the primary information display of the I2C Exerciser Data that is passively collected from the target C bus by the BusPro I2C analyzer is presented in both a trace listing and a graphical timing representation Using the Monitor window samples of
108. d to interact with the bus it will automatically attempt to detect a target reference voltage If a reference voltage is not detected it will prompt you to switch to Analyzer Supplied mode as shown in Figure 99 Connecting to a Target 95 96 LC Exerciser Target supplied voltage detected NONE Project Settings Target Supplied Voltage 3 30 High Threshold Voltage 1 80 Low Threshold Voltage 0 907 WARNING A target supplied reference voltage has NOT been detected This may result in an inactive bus which the BusPro 120 cannot drive Do you want to open the Configuration Manager with the recommended Analyzer Supplied voltage settings Select No to continue with the current project settings Figure 99 Analyzer Supplied Voltage Prompt Connecting to a Target Click on the Yes button to allow the application to automatically switch to Analyzer Supplied from the Target Supplied setting and the Configuration Manager will open for you to review the new settings Additionally you can select the desired bus pull up resistance and voltage as well as change the settings described in Case 1 above 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 12C is to supply pull ups examine the following settings 1 Make sure that the Analyzer Supplied radio button is selected 2 Select an appropriate pull up Voltage f
109. des a list of recently used project files for quick access Exit Terminates the I2C Exerciser application 160 Bus Traffic Monitor Programmer Tools Menu The Tools menu provides a path to the major application function windows This is identical to the Monitor Tools Menu selections in the Bus Traffic Monitor chapter Programmer Window Menu The Window menu manages the various windows of I2C Exerciser and is identical to the Monitor Window Menu in the Bus Traffic Monitor chapter Programmer Help Menu The Help menu accesses the on line help features and is identical to the Monitor Help Menu in the Bus Traffic Monitor chapter Programmer Tool Bar The Programmer Tool Bar shown in Figure 148 provides quick single click access to commonly used commands in the Programmer window Simply click the tool bar button to perform the desired command Table 12 describes 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 148 Programmer Tool Bar leon Name Function Description New Configuration Initializes the Programmer configuration to its defaults If the active File Programmer configuration contains unsaved settings you will be prompted to save the configuration Open Configuration Loads a previously saved configuration from file If the active File Programmer configuration contains unsaved settings you will be p
110. dow as shown in Figure 23 will appear to remind you that the program is currently in Demo Mode Click on the OK button to proceed Monitor a i You are in demo mode In this mode only simulated data is displayed AR Figure 23 Demo Mode Reminder Pop up Window 26 Getting Started When traffic collection begins the Run Status window will be displayed to show progress information as the trace buffer fills with simulated traffic You may move or resize this window at any time to obtain a better view of the trace list lines and timing display as shown in Figure 24 Step by step color highlighted progress milestones are provided in the Run Status window This window also displays the number of bus transactions collected so far and a progress bar indicating what percentage of the trace buffer has been filled When running with a live target the user can click on the Stop button to abort data collection After the buffer is filled the Run Status window will indicate Data collected successfully and the Close will be enabled allowing the user to close the window f pe IC Exerciser Untitled Monitor Untitled 15 E E ani Eile Trace Tools Window Help lala x CIA TEE EEES IAE y Shortcuts Line Marker Type Location Addr Hex AddrType R W NAK Error KHz O 1 O 2 Data Byte Hex Time us a 34 Data Analyzer 18 7 Bit Read 403 1 1 12 2 293 35 Address Analyzer ADC 7
111. dress Analyzer 36 7 Bit Read 107 1 1 3 729 ra Data Target 7 Bit Read El IR EEE 3 384 a a oeer 3002 46 Address Target 7 Bit Read 4694 47 Data Analyzer 18 7 Bit Read 402 1 1 3D 4 735 48 Data Analyzer 18 7 Bit Read 401 1 1 63 4761 49 Data Analyzer 18 7 Bit Read 400 1 1 52 4 786 50 Data Analyzer 18 7 Bit Read 403 1 1 16 4811 51 Address Analyzer ADC 7 Bit Read 107 1 1 4 995 52 Data Target ADC 7 Bit Read 104 1 1 1F 5 151 3 Figure 107 Monitor Trace Listing Column Descriptions Line This column contains a line number for each trace line The numbering can be relative to the start of the collected traffic or to the line that has been marked as Trigger depending on the preference that has been set Refer to the Monitor Options section of the Preferences Dialog 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 106 Trigger A trigger is a special user defined transaction event that determines when the monitor will automatically stop data collection See the Trigger section later in this chapter for more information on Triggers Cursor A B Each of the two cursors is a special indicator that is used in the timing field to measure time intervals As a cursor is positioned in the timing field the trace listing transaction which occurs nearest to the cursor is marked for reference Tagged Thi
112. dress is binary 0110101 it can be represented in a byte as hex 6A left justified FE mode or 35 right justified 7F mode Prototype extern C _ declspec dllexport int _cdecl 12C_SetFEAddrFormat int bEnable Return Value OIifI2C_InitHardware was never called otherwise 1 Parameters bEnable 1 for FE mode O for 7F mode Third Party Application Interface 215 I2C_SetMonitorCallback sets application defined callback function for processing transaction data This callback function is called whenever BusPro I2C detects any new transactions on the target I2C bus The callback function should perform minimal necessary work and return immediately to avoid overflowing of BusPro 12C buffer When this API function is called the current timestamp value is also reset to zero Prototype extern C _ declspec dllexport unsigned int _cdecl I2C SetMonitorCallback TXDATAHANDLERPROC TxDataHnadlerProc voOLd pnid Return Value 1 if successful O if failed Parameters nTxDataHnadlerProc Pointer to application 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 for the details The second parameter ULONGLONG is the transaction timestamp in nanoseconds The third parameter LPARAM is the pointer to application supplied data pWnd Pointer to applica
113. e 7 bits of address will be right justified within the byte Both of these formats are encountered in the I2C world and the tool is flexible enough to use either format throughout fr 44 DC Exerciser Untitled Monitor Untitled ola tha File Trace Tools Window Help e amp Xx Sa phil 2 8 Ee xE yi ATE 2 Shortcuts Line Marker Type Location Addr Hex AddrType R W NAK Error KHz Data Byte Hex Time us 1 0 1 a 7 12 Data Analyzer DAC 7 Bit Read Preferences 3 onos El IO fe lhal 10 Address Analyzer ADC 7 Bit Read Monitor Colors Monitor Options Debugger Options Programmer Options Formats Monitor 9 Data Target ADC 7 Bit Read e 8 Data Target ADC 7 Bit Read 7 bit Hex Address Format al 7 sc Le ey TOR LUNO FE mode 7 address bits left justified in byte A6 A0 0 default ata Target 54 7 Bit Write Debugger 5 Data Target 54 7 Bit Write 7F mode 7 address bits right justified in byte 0 A6 A0 4 Data Target 54 7 Bit Write zt 3 Data Target 54 7 Bit Write E pad 2 Address Analyzer 36 7 Bit Read Programmer 1 Data Target 36 7 Bit Read poe Data Target 36 781 1 Address Target DAC 7 Bit Read 2 Data Analyzer DAC 7 Bit Read 3 Data Analyzer DAC 7 Bit Read 4 Data Analyzer DAC 7 Bit Read 5 Data Analyzer DAC 7 Bit Read 6 Address Analyzer ADC 7 Bit Read r Data Target ADC 7 Bit Read 8 Data Target ADC 7 Bit Read 9 Address Target PLL 7 Bit Write 10 Data Targ
114. e Configuration and Preferences chapter for more information AddrType This field specifies the bit length of the target slave address The dropdown list allows selection of either 7 Bit or 10 Bit Run This field specifies the number of consecutive times that the Debugger repeats its Send operation A decimal value can be entered here as well as the text single to run just once or continuous to run in a continuous loop until stopped Additionally the field s dropdown list provides a selection of recently used values Interactive Debugger 139 No Stop This check box specifies whether a STOP condition is generated at the end of a message When unchecked default the STOP condition is included after all of a message s data bytes have been written Checking this box causes the STOP condition to be omitted Under the IC bus protocol absence of the STOP condition means that a master is not yet done transmitting The previous data transfer can then be followed by a repeated START condition and another data transfer This can be used to support some slave devices which require that the first data transfer specify the value of an offset register or a command and then the following data is written to or read from the device at that offset location Send text box The large text area constituting the bottom portion of the Debugger s Send controls is used to specify the data bytes that are written to a target slave dev
115. e bus and the trigger out pulse is approximately 1 6 ms This delay may vary from 1 5 ms to 150 ms depending on the data traffic load Configuration and Preferences 165 Configuration Manager Enable Trigger Trigger Buffer Position Active Pulse 8 Early Middle Late Event Definitions Transfer Type faw ofe oe any aa Any 7 Error awo Y ArT wou any gt RM YO 2 Ama Y Data Byte alue er Any X a Any F ey F e owdi eye gt Close Figure 150 Triggers Pane Filters Pane A filter defines a class of transactions by specifying a set of particular transaction features Each filter can be individually activated or not via the checkbox beside the filters name The combined selection of active filters can be set to either determine which transaction classes are included or which are excluded from the trace listing Use of filters allows you to view only the bus activity of interest with items considered clutter removed If a transaction is removed from the monitor trace listing it is also effectively removed from the timing display graph where it will appear as a non busy bus The Filters pane dialog is shown in Figure 151 166 Configuration and Preferences Configuration Manager 5 Indude in Monitor Trace 5 Exdude from Monitor Trace No Filters Filter Type Addr AddrType RW Data Mask Byte Width NAK E Figure 151 Filters Pane Filters can either define transactions
116. e foreground by clicking on the Software Installation button on the Windows task bar as shown in Figure 12 Then click on the Continue Anyway button to safely ignore the warnings and proceed with the installation My Documents Pr e My Computer e My Network Places se E AJEG ScanExpren E ie ScanExpress Boundary Scan Tools Setup la Seals a Updating System anar The tools you selected are currently being installed y waa tls Y Beenblusirlast 1n enero File C Config Msi111a25 rbf Time remaining 1 seconds Removing backup files Runner Cancel 9 te ScanPlus Viewer pr Ed ie ScanExpress Boundar cx C PROGRA 1 CORE MM Software Installation Figure 12 Software Installation Button on the Windows XP Task Bar Installation 15 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 iS I2C Exerciser InstallAware Wizard Completing the Installation Wizard for I2C Exerciser You have successfully completed the Installation Wizard for 12 ExXercser To dose this wizard dick Finish Cancel E Figure 13 Installation Completed Screen 16 Installation BusPro 12C Hardware Installation The BusPro 12C controller is a hot plug USB device You must first install the 12C Exerci
117. e using the demo mode feature of I2C Exerciser with the Monitor window to look at various bus tracing capabilities The second part of the chapter will briefly take you through using the live mode of I2C Exerciser in order to familiarize you with the Debugger window that is not available in the demo mode Calibration Note If you are going through these tutorials for the first time with a new installation of I2C Exerciser and you have a BusPro I2C connected then you may be prompted to calibrate the BusPro I2C The calibration feature fine tunes the electrical outputs of the BusPro I2C for use when it is providing the voltage source for an attached target bus Feel free to skip the process during these tutorials by clicking on the No button if prompted to perform calibration However if you wish to get the calibration out of the way you may allow it to proceed by following the on screen instructions it should only take a minute or two and need only be completed once For details on the calibration feature refer to the Calibration section in the Configuration and Preferences chapter Tutorial Using Demo Mode The steps in the following tutorial will guide you through basic BusPro I2C usage once you have successfully installed the software and optionally the hardware This will not require a live target or even an attached BusPro 12C controller The demo mode feature of I2C Exerciser allows the user to quickly observe and become familiar
118. enu Table 11 describes the numbered areas of the I2C Exerciser Programmer window 44 DC Exerciser Untitled lesa File Tools Window Help DSBE Or x zz Line Marker Type Location Addr Hex AddrType R W NAK Error KHz I O 1 VO 2 Data Byte Hex Time us 01101 Ailil Monitor mr rr E Debugger 307 Programmer Untitled Programmer Manufacturer Generic 12C EEPROM Type 24xx02 256 Byte I2C EEPROM 12C Device Address A0 iv AddressType 75it Data File C Users corelis testhex txt Offset Add o J Ready LIVE AddiFormat FE Trace Off Bus Ide SCL High SDA High 1 01 High 1 02 High 7 Figure 146 I2C Exerciser Programmer Window Component scription O o Contains the menu bar for the active Programmer window 2 Tool Bar Provides quick single click access to commonly used commands for the active Programmer window 3 Programmer The main Programmer window which allows for programming of rc Window EEPROM devices on the target IC bus Table 11 Programmer Window Areas Bus Traffic Monitor 159 Programmer Menu Bar When the Programmer window is active the Menu Bar contains entries relevant to the Programmer functions including File Tools Windows and Help A description of each menu follows Programmer File Menu The File menu shown in Figure 147 include
119. er Settings Analyzer Target Target Target Preferences ADC F Bit ADC Bit PUL 7 Bit Read Read Write Line DEMO AddiF ormat FE Trace Ort Figure 28 Monitor Window Right Click Pop up Menu Selecting Trigger Settings Getting Started 31 The Configuration Manager Trigger setup screen allows the user to specify particular address data value and other miscellaneous event criteria which correspond to the bus transaction of interest The individual fields on this window are described in detail in the Configuration and Preferences chapter In Demo mode the trigger condition is fixed internally and this screen is non functional Click on the Close button to close this screen Configuration Manager Triggers Filters Symbols SMBus Settings Files Enable Trigger Trigger Buffer Position roger Out 8 Early Middle Late Event Definitions Transfer Type any MaK dene Mt oor AS ox my RW Uos eta y Data Byte CCC ee FF 7 Width 1 Byte 7 Load From Selected Monitor Trace Line Close Figure 29 Configuration Manager Trigger Setup Screen 32 Getting Started Transaction Line Columns The Monitor window trace list column headings are shown in Figure 30 A description of each column is provided below Line Marker Type Location AddrfHex AddrType RAY NAK Error KHz 107 fa Data Byte Hex Time us A Figure 30 Monitor Window Trace List C
120. er Tool Bar leon Name Function Description New Command File Clears the Debugger window s Send text box in preparation for entering new debugger commands and data If the text box contains existing unsaved commands and data a prompt is displayed to save it Open 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 existing unsaved commands and data a prompt is displayed to save it Save Command File Saves the debugger commands and data from the Debugger window s send text box to a DCF text file If not already working with an opened command file a prompt is displayed to save it E Save Data File Stores the data collected from the bus in the Receive text box into a DDF text file a Hee Provides quick access to the online help topics Table 8 Debugger Tool Bar Functions Interactive Debugger 151 152 Interactive Debugger Chapter 7 Serial EEPROM Programmer Programmer Window Overview and component descriptions The Programmer Window provides an interface specifically tailored for convenient interaction with standard I C EEPROM devices on the target IFC bus It enables file linked programming and viewing of the content of such devices It further supports comparing current contents against the data loaded from a file Device content can also be viewed and saved to a file Standard file formats supported incl
121. er removed If a transaction is removed from the monitor trace listing it is also effectively removed from the timing display graph where it will appear as a non busy bus The Filters pane dialog is shown in Figure 110 Configuration Manager 5 Indude in Monitor Trace Exclude from Monitor Trace No Filters Filter Type Addr AddrType RW Data Mask Byte Width NAK E Figure 110 Filters Pane Bus Traffic Monitor 113 Filters can either define transactions that will be included in the trace listing or excluded from the trace listing The radio buttons at the top of the dialog determine this selection or turn off filtering completely The Include and Exclude selections each have their own separate set of filters which are displayed 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 Edit button enables alteration of an existing selected filter The Remove and Remove All buttons enable the deletion of a selected filter or the entire set of filters The Filter Definition dialog for setting the transaction criteria for each filter is similar to those for the Find and Trigger dialogs This dialog shown in Figure 111 is displayed when using the Add or Edit buttons Filter Definition ter L Transfer Type Address v NAK Any v Addr AMY vw Error Any AddrT
122. es are displayed with the seven address bits shown as left justified in the hex byte value with the LSB always being zero For example given a binary address of 0011010 the hex representation in 7F format would be 1A while in FE format it would be 34 Both of these formats are encountered in the IC world and the I2C Exerciser application is flexible enough to use either format The currently active mode is reflected in the lower corner of the I2C Exerciser status bar AddrFormat FE or AddrFormat 7F as shown in Figure 31 C Auto Fit Line DEMO AddrFormat FE Trace Off Figure 31 I2C Exerciser Status Bar Getting Started 33 R W Displays the read write direction of data flow relative to the master R read from a slave W write toward a slave NAK Blank for normal ACK responses or will indicate NAK when the cycle is not acknowledged Error Blank for normal bus protocol transactions or will indicate Error if the BusPro I2C detected a protocol violation If an error was detected the user can click on the Error text and a pop up window will appear describing the cause of error Observe line 85 which is an example of such an entry KHz Displays the best estimate of the average clock rate for the transaction in units of Kilohertz I O 1 Displays the current state of discrete I O line 1 regardless of whether the discrete is configured as an input or output I O 2 Displays the current state of discrete
123. es the number of bytes that the Debugger reads from the target slave during its Receive operation A decimal value can be entered here and the field s dropdown list provides a selection of recently used values No Stop This check box specifies whether a STOP condition is generated at the end of a message When unchecked default the STOP condition is included after all of a message s data bytes have been Interactive Debugger 141 read Checking this box causes the STOP condition to be omitted Under the I C bus protocol absence of the STOP condition means that a master is not yet done transmitting The previous data transfer can then be followed by a repeated START condition and another data transfer This can be used to support some slave devices which require that the first data transfer specify the value of an offset register or a command and then the following data is read from or written to the device at that offset location Receive text box The large text area constituting the bottom portion of the Debugger s Receive controls displays the data bytes that are successfully read from the IC bus By default all data bytes that are successfully transmitted using the Debugger are automatically listed here however the user can elect to not echo the sent data Refer to the Debugger Options section of this chapter for more information on user preferences Receive button Clicking on this button begins the operation of reading from
124. esi2 C ExerciserDerc Figure 91 SMBus Pane Before Associating Decoder File 36 Getting Started To associate a decoder file with the TC74 device click on the Add button and the SMBus Decoder File dialog will open Then click on the Browse located on the right side of the dialog window SMBus decoder files are located in the Decoder subfolder of the 12C Exerciser installation folder For a default installation this would be C Program Files l2C Exerciser Decoder Browse to this folder and select the file named 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 with information from the decoder file The dialog window will now appear as shown below in Figure 92 SMBus Decoder File Choose a file to load then dick on Update to load its contents C Program Files 2C Exercser Decoder tc 74 smb Figure 92 SMBus Decoder File Dialog with TC 74 Information Click on the OK button at the bottom of the dialog window to finish adding the device association to the SMBus association list You can see the new entry at the bottom of the list in the SMBus configuration pane Click on the Close button to close the Configuration Manager Getting Started 87 Now back in the Monitor window right click in the Data Byte column heading and click on the SMBus Mode menu item as shown in Fig
125. ess Target DAC 7 Bit Read 402 10 620 1 E 95 Data Analyzer DAC 7 Bit Read 402 2F 10 661 1 per 96 Data Analyzer DAC 7 Bit Read 401 57 10 687 1 Programmer 97 Data Analyzer DAC 7 Bit Read 400 55 10 712 1 98 Data Analyzer DAC 7 Bit Read 403 12 10 738 1 99 Address Analyzer ADC 7 Bit Read 107 10 921 1 100 CursorB Data Target ADC 7 Bit e O orz a 101 Data Target ADC 7 Bit Read 104 DONE 11 175 1 102 Address Target PLL 7 Bit Write 402 11 886 1 103 Data Target PLL 7 Bit Write 402 6A 11 914 1 104 Address Target ADC 7 Bit Write 401 12 098 1 105 Data Target ADC 7 Bit Write 403 52 12 125 1 106 Data Target ADC 7 Bit Write 403 D2 12 151 1 107 Tagged Data Target ADC 7 Bit Write NAK 403 CHANSEL 12111 1 108 Data Target ADC 7 Bit Write NAK 403 CHANSEL 122300 1 109 Data Target ADC 7 Bit Write 403 CHANSEL 12 284 1 Softw tt th Aaa ae ie A A A A Corelis Ready DEMO AddFormat FE Trace Dff Bus SCL SDA 120 1 120 2 A Figure 51 Monitor Window Trace List Positioned on Cursor B Line The 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 to see less detail but more edges or more detail but fewer edges You can also right click anywhere in the timing display and select Zoom in or Zoom out from the pop up menu to change the zoom level If you zoom out far enough in the timing display you
126. essible location The user can access the last used Preferences tab by using the Tools Preferences menu command accessible from all windows The user can use the Preferences dialog to set the preferences for the monitor colors monitor options debugger 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 color pattern color scheme between line groupings to be changed The options for the color pattern are no color alternating background color per row or alternating background color per messages default The color for background and text assigned to the alternating line groups can also be selected Any changes made take effect immediately A Use Defaults button restores the original default settings Preferences Trigger Other Text o Background PS Cursor A Text a Text 1 a Background PS Background 1 six Cursor B Text o Text 2 a Background 2 Figure 159 Monitor Colors Pane 178 Configuration and Preferences Monitor Options This pane enables the altering of preferences for the layout and style of data in the Monitor window Preferences bugger Options Programmer Options Formats Line Column Starting from 1 default Trigger is line O Timestamp Start Starting from 0 default C Trigger is time O Times
127. et PLL 7 Bit Write 11 Address Target ADC 7 Bit Write 12 Data Target ADC 7 Bit Write v Scale 20usfdiv Auto Fit Line Corelis Ready DEMO AddFormat FE Trace Off Bus SCL SDA 140 1 1 0 2 Figure 75 Monitor Window Trace List Showing Addresses in FE mode 72 Getting Started Click on the 7F mode option and observe how the Addr column changes as shown in Figure 76 The addresses 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 Click on the Close button to close the Preferences screen E ss I2C Exerciser Untitled Monitor Untitled oS e js tah File Trace Tools Window Help x sh ph o 8 82h noxe vr Mo la o a x j Shortcuts Line Marker Type Location Addr Hex AddrType RAV NAK Error KHz Data Byte Hex Time us 1 01 a r 12 Data Analyzer DAC 7 Bit Read Preferences 52 01101 11 Data Analyzer DAC 7 Bit Read ahili 10 Address Analyzer ADC 7 Bit Read Monitor Colors Monitor Options Debugger Options Programmer Options Formats Monitor 9 Data Target ADC 7 Bit Read 8 Data Target ADC 7 Bit Read 7 bit Hex Address Format 152 lo di ae si we FE mode 7 address bits left justified in byte A6 A0 0 default 6 Data Target 2A 7 Bit Write Debugger 5 Data Target 2A 7 Bit Write 4 Data Target 2A 7
128. et PLL 7 Bit Write 402 1 1 1 252 zi 10 Data Target PLL 7 Bit Write 402 1 1 00111110 1 280 ee 11 Address Target ADC 7 Bit Write NAK 401 1 1 1 464 Programmer 12 Address Target ADC 7 Bit Write 400 1 1 1 522 T3 Data Target ADC 7 Bit Write 403 1 1 00101110 1 550 14 Data Target ADC 7 Bit Write 403 1 1 11110001 1 575 15 Tagged Data Target 7 Bit Write NAK 403 00001011 1 601 17 Address Target 7 Bit Read 402 1 843 18 Data Analyzer DAC 7 Bit Read 402 1 1 00011010 1 884 19 Data Analyzer DAC 7 Bit Read 401 1 1 01110000 1 909 20 Data Analyzer DAC 7 Bit Read 400 1 1 01001111 1 935 21 Data Analyzer DAC 7 Bit Read 400 0 1 01000101 1 960 22 Data Analyzer DAC 7 Bit Read 400 0 1 01110010 1 986 23 Data Analyzer DAC 7 Bit Read 400 0 1 01001001 2 011 24 Data Analyzer DAC 7 Bit Read 400 0 1 01001111 2 037 25 Data Analyzer DAC 7 Bit Read 400 0 1 01001111 2 062 v Scale 50 us div E Auto Fit Line 32 4 Interval A to B 9 422762 ms AN A a ICAA lA e a ih Sits iss oll Ll FIELD A B BT SDA SCL 4 uw p Corelis Ready DEMO AddFormat FE Trace Off Bus SCL SDA 1 0 1 1 0 2 A Figure 41 Monitor Window Trace List Data Column with Data Bytes in Binary Format A Getting Started Using the method just described re enable symbol translation and change the display format back to hexadecimal The Data Byte column heading 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
129. ettings while the affected element is visible on the screen will result in the immediate update of the color change in the Monitor window r ret I2C Exerciser Untitled Monitor Untitled o 3 rh File Trace Tools Window Help amp Xx oh gt wl o 8 8 Gea xo TR Aa E O x Line Marker Type Location Addr Hex AddrType RAW NAK Error KHz Data Byte Hex Time us 0 1 a 80 Tagged Data Analyzer DAC 7 Bit Read 01101 81 Data Analyzer DAC 7 Bit Read alla 82 Data Analyzer DAC 7 Bit Read po l Monitor 83 Address Analyzer ADC 7 Bit Read Monitor Colors Monitor Options Debugger Options Programmer Options Formats 84 Data Target ADC 7 Bit Read Trigger Other rent 85 Data Error Text Ea y Color Scheme E 86 Address Target 54 7 Bit Write Debugger 87 Data Target 54 7 Bit Write Background SE Alternate color per message y 88 Data Target 54 7 Bit Write gt 89 Data Target 54 7 Bit Write Cursor A seed 90 Data Target 54 7 Bit Write Text Ea Text 1 Co y Programmer 91 Address Analyzer 36 7 Bit Read 92 Data Target 36 7 Bit Read Background v Background 1 JW 93 Data Target 36 7 Bit Read 94 Address Target DAC 7 Bit Read Cursor 8 95 Data Analyzer DAC 7 Bit Read Text z y Text 2 Ee 96 Data Analyzer DAC 7 Bit Read 97 Data Analyzer DAC 7 Bit Read Background Background 2 iw 98 Data Analyzer DAC 7 Bit Read Timing View 100 CursorB Da
130. faults for column widths visibility and order Trace Layout Visible Column Name Line Marker Type Location Addr Hex AddrType RAW NAK Error KHz WO 1 O 2 Data Byte Hex a e E E SES E 1 RARA RA R K Enable All Columns Default Column Layout Close Figure 128 Trace Layout Dialog 132 Bus Traffic Monitor Monitor Tools Menu The Tools menu shown in Figure 129 provides a path to the major application function windows E Monitor lilt Debugger A Programmer Demo Mode Self Test Calibration Configuration Manager F Preferences Fi Figure 129 Tools Menu Monitor Launches the Monitor window which provides acquisition and viewing of bus traffic transactions Debugger Launches the Debugger window which provides interactive sending and receiving of messages to and from the bus Programmer Launches the Programmer window which allows EEPROM memory programming and viewing of supported devices using the I2C bus Demo Mode Switches 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 validate the basic proper operation of the BusPro I2C hardware Calibration Launches an automated tool that calibrates the BusPro I2C electrical outputs in order to improve analyzer supplied voltage source settings Configura
131. ffic limited only by the available disk space When this option is selected the captured Monitor 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 1 C bus transactions The trace data path and base filename are user specified and then a numerical index is appended to each filename _nnnn to indicate the chronological order in which the data was captured and saved Note that each 1M transaction trace data file uses about 260MB of disk space as it contains all captured FC bus transaction data including signal waveforms timing and time stamp information Use the Monitor Window s Run Repetitive button to continuously capture the traffic Data will be captured into a tdf file and once the file exceeds 1M transactions another file will be opened to continue storing transactions and so forth Note that when the Run or the Run Repetitive button is clicked and trace data files with the same base filename already exist in the specified location the user will be prompted to overwrite them While running the Monitor Window displays the most recent 1M transactions of data and the Run Status dialog box lists the name of the trace data file currently being Configuration and Preferences 175 logged to After finishing capturing you may double click on the listed filenames to load the trace data to the Monitor Window Driving Bus Clock Rate C
132. g on the time it takes to receive and confirm completion Use the I2C_GetLastTransferStatus function following this call to determine if the address cycle got NAK ed Prototype extern Cc _ declspec dllexport int _cdecl I2C Receive Data int nAddress int blOBitAddress unsigned char pReceiveData Init MDataCounts int bUseStopBits Return Value 1 if 12C_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 nAddress This is 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 O it is a 7 bit address pReceiveData A pointer to a block of memory where the receive data bytes are to be stored nDataCount The number of storage bytes of the above block of memory bUseStopBits If 1 a stop cycle terminates the message after the last data byte read otherwise no stop cycle is issued the analyzer continues to control the bus with SCL low ready to perform a coming Repeat Start on the next access 200 Third Party Application Interface 2C_ Send Data sends a message ie performs a write operation to the specified target slave address This function may not return quickly up to the timeout interval depending on the time it takes to send and confirm completion Use the I2C_GetLastTransferStatus function following this call t
133. he message transmission sequence manipulate the BusPro I2C analyzer s two discrete I O lines or activate Error Injection Using script commands provides the ability to write a series of data bytes while progressing automatically through a sequence of various slave addresses In this manner for example a complete target initialization could be performed The ability to control the discrete I O lines allows a connected target to be stimulated during this process Additionally Debugger scripts can be saved to or loaded from DCF text files using the Debugger s File Menu or Tool Bar described later in this chapter for convenient reusability This scripting offers significant message transfer automation facility that can be combined with the capture capability of the Monitor window for immediate analysis of the target I 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 Syntax highlighting is also provided to help identify debugger script keywords Debugger Script Command Keywords The Debugger script keywords are listed in Table 6 on the next page Debugger commands are not case sensitive and are always immediately followed by their parameters While multiple data bytes can be listed together on a single line each command along with its associated parameters must be placed on its own separate line although a trailing comment
134. he Preferences dialog including o Monitor colors and options o Debugger options o Programmer options o Address format options e Window sizes and positions of the Monitor Debugger Programmer Emulator Test Parameters Scope and Monitor Run Status windows e Monitor window s layout column settings and trace data file path e Debugger window s send and receive settings including address address types run repetitions number of bytes to read no stop bit options and debugger command file path e Programmer window s configuration file path When you launch the 12C Exerciser for the first time either from its shortcut on the desktop or the I2C Exerciser program group of the Windows Start menu you are staring with a new project using the application default configuration settings You will notice that in this case the title bar of the main application window displays the project name Untitled as shown in Figure 164 To give a name to your project simply select the Save Project menu item from the File menu and then specify a name and the path for the project file If you want to rename your project at a later time you can choose the Save Project As menu item from the File menu and provide a new file name and path Figure 164 Title Bar for a New Project Configuration and Preferences 183 Once you have saved a project to a file the title bar will display the current project file name as shown in Figure 165 m3 PC Exerciser SMBus
135. he bus since level crossings may occur in the nearly horizontal and noise sensitive 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 string containing the actual resulting clock rate closest available to requested Parameters szClockRateKhz The string holding text of the new SCL clock rate as a floating point decimal value in kilohertz The actual clock rate set will be rounded to the nearest value in the following list 4 kHz 5 kHz 6 kHz 7 kHz 8 kHz 9 kHz 10 kHz 20 kHz 30 kHz 40 kHz 50 kHz 60 kHz 70 kHz 80 kHz 90 kHz 100 kHz 150 kHz 200 kHz 250 kHz 301 kHz 352 kHz 397 kHz 446 kHz 500 kHz 556 kHz 595 kHz 658 kHz 694 kHz 758 kHz 806 kHz 862 kHz 893 kHz 962 kHz 1 000 MHz 1 471 MHz 1 923 MHz 2 500 MHz 3 125 MHz 4 167 MHz 5 000 MHz 210 Third Party Application Interface I2C SetDiscrete Drives the level of one of the discrete I O signals to the state passed in if configured as output If discrete 1 is selected and it is configured as tied to the output trigger SMB that path will be operated instead of the line to the target Note if the output is configured as open collector it is possible to normally read back a value different than driven out Prototype extern Cc _ declspec dllexport int _cdecl I2C SetDiscrete in
136. hown in Figure 80 below The left area of the Debugger window is for sending data to slave devices on the I C bus and the right area for 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 without a Stop cycle if necessary such that the next Address cycle will commence with a Repeated Start cycle The Run field on the send side allows you to specify the number of times that debugger commands will be looped including continuous looping The Bytes field on the receive side lets you enter the number of bytes that you want to read from the slave device at the specified bus address A Debugger Untitled Send Receive Addr Addr pre 284 T7 Single 7 Passed No Stop Figure 80 Debugger Window 76 Getting Started The text box in the bottom portion of the Send area is for entering debugger commands An entry in this text box can be as simple as a single hexadecimal byte value to send You can refer to the nteractive Debugger chapter later for more details on all of the commands For now go ahead and enter the hex value 3E into this box Even though there is no target attached to the analyzer you are able to send the byte 3E to the bus Click on the Send button and the byte value should be echoed in the Receive section text box on the right side of the window as shown below in Fig
137. ice These data bytes are entered as sequences of two digit hexadecimal values Debugger script commands can also be entered here in order to execute more complex Send operations or to perform Error Injection These script commands are explained later in 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 cancelled Depending on the user preference that has been set the Debugger may abort its Send operation if a message is not acknowledged NAK d by the specified target slave device by default the Debugger continues to send data even when NAK d Additionally all data bytes that are successfully transmitted using the Debugger are listed in the text box on the Receive side of the Debugger window by default Refer to the Debugger Options section of this chapter for more information on user preferences Status Box This indicator is located just below the Send button and displays the resulting status of the last Send operation The following can be indicated Indicates that the Send operation completed successfully with the proper number of data bytes written to the target slave Indicates that an IC bus protocol violation was detected during the Send operation Using the I2C Exerciser s Monitor window to capture the Debugger s bus transactions can help to acquire more details about the cause
138. ied High Level Volts Intended sepa a dit Low Level Volts Pull up Resistance Ohms Auto Detect Bus Drive Features Drive Clock Rate wOkHz Disable Collision Detection Accelerated Rising Edge Drive Hi Speed Mode Auto DO Auto On Off Input Output Signals High Level Function 1 0 1 Drive SMB AT1 A ox in sare Depth Transactions Figure 101 Configuration Manager Settings Pane Connecting to a Target 99 Bus Electrical Features The Bus Electrical Features group shown in Figure 102 specifies the electrical characteristics of the bus Bus Electrical Features Voltage Source Bus Signal Thresholds ES Analyzer Supplied High Level 180 Volts Intended Pull up Parameters font nee 0 90 e Voltage 3 0 Volts Pull up Resistance 1000 Ohms Auto Detect Figure 102 Bus Electrical Features Voltage Source Target Supplied Specifies that the connected target I C bus has its own pull up voltage supply In this case the target bus is self sufficient and ready for use When this setting is selected the Pull up Resistance setting is disabled Analyzer Supplied Specifies that the BusPro 12C will supply pull up voltage to the target bus In this case the target has no other attached pull up voltage source and the analyzer must supply this to activate the bus When this setting is selected both the Voltage and Pull up Resistance settings are enabled Voltage In Analyzer Supplied mode this spec
139. ifies the voltage to which the bus will be pulled up by the BusPro I2C The user must assure that this level is compatible with the operation of any attached target bus In Target Supplied mode this specifies 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 up resistor value through which both bus signals SCL and SDA will be pulled up by the BusPro I2C The user should consider the target C bus capacitance such that the resultant RC time constant will not adversely affect its operation at expected clock rates by producing signal rise times that are too slow Bus Signal Thresholds These settings apply in general to all monitoring of the bus by the analyzer Default values for these settings are based on the pull up voltage selected in the Voltage dropdown box High Level This value establishes the minimum voltage that a bus signal SDA and SCL must rise above from the low state before it is considered to be high Low Level This value establishes the maximum voltage that a bus signal SDA and SCL must drop below from the high state before it is considered to be low Auto Detect This button causes the I2C Exerciser to check for a voltage on the target bus and automatically select recommended default electrical settings based on its findings 100 Connecting to a Target Bus Dr
140. in the Voltage dropdown box Bus Signal Threshold Low Level This value establishes the maximum voltage that a bus signal SDA and SCL must drop below from the high state before it is considered to be low This setting applies in general to all monitoring of the bus by the analyzer Default values for these settings are based on the pull up voltage selected in the Voltage dropdown box Auto Detect This button causes the I2C Exerciser to check for a voltage on the target bus and automatically select recommended default electrical settings based on its findings Drive Clock Rate Specifies the nominal clock rate of the SCL signal when the BusPro 2C drives the bus Note that the I C bus is not of a continuously clocking type since various conditions can stretch the clock or require resynchronization between multiple sources Therefore a constant period is not expected Disable Collision Detection Under normal circumstances when the BusPro 12C drives the bus acting like a master it is required to detect that the signal levels it drives match within a reasonable time what it senses on the bus Failure to detect a match would imply a collision with another master If the bus has excessive Capacitance or high pull up capacitance combinations which cause its rise time to be slow a false collision may be repeatedly detected and prevent the BusPro 12C from completing its transactions Enabling this Disable Collision Detection option accomm
141. ins with the BusPro 2C s factory default settings but a previously saved project configuration file can be opened to load a particular saved setup Important factors to consider when configuring the I2C Exerciser include e Whether a target is connected e Whether the target has its own pull up voltage source e Whether the target is expected to exhibit slow signal rise times because of excessively high capacitance or excessively high pull up resistance e Whether the target has a master lacking support for multi master operation e What signal clock rate is supported by the target When the BusPro 12C analyzer is first used to interact with the target bus it checks for a target supplied pull up If a target supplied pull up is detected but the analyzer expects to provide the pull up source then a prompt will be displayed so that the analyzer may be set to not provide the pull up source in order to avoid contention with the target Conversely if no target pull up is detected and the analyzer is not set to provide the pull up source then a prompt will be displayed so that the analyzer may be set to provide the pull up source for the bus Connecting to a Target 93 Scenarios The following scenarios are presented to help you configure the BusPro I2C analyzer to get it up and running in the shortest amount of time Most setup options are found in the Settings pane of the Configuration Manager as shown in Figure 98 The Configuration Manager
142. instrumentation E Debugger C Program Files 12 Exerciser Demo tutorial dcf Send Receive aaite 7a e ote te 7 No Stop ADDRESS MODE FE rf tutorial script address YA Ja pause 500 milliseconds address 16 FF O0 pause 500 address C4 1 30 OD DA Figure 133 Debugger Window 138 Interactive Debugger Send Data The left side of the Debugger window contains controls for generating messages that write data to slave devices on the target IC bus These controls are shown in Figure 134 Addr 72 ADDRESS MODE FE jal tutorial script address A 33 pause 500 z7 milliseconds address 18 FF 00 pause SOU address Cd 1 30 OD DA Figure 134 Debugger Send Controls Addr This field specifies the IFC bus address of the target slave that is being written to An address can be entered as a hexadecimal value or an address symbol may be used if one has been defined for the target slave refer to the Symbols section of the Configuration Manager description in the Configuration and Preferences chapter Additionally the field s dropdown list provides a selection of recently used address values and all of the currently defined address symbols Note that 7 bit 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 refer to the Formats section of the Preferences Dialog description in th
143. is BusPro l2C Firmware Loader 9100 fe If your hardware came with an installation CD 2 or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended O Install from a list or specific location Advanced Click Hest to continue Figure 15 Found New Hardware Wizard Install Options Windows XP Installation 6 The Hardware Wizard will attempt to locate the driver that was 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 the Continue Anyway button Installation Hardware Installation The software you are installing for this hardware Corelis BusPro l C Firmware Loader 91 00 has not passed Windows Logo testing to verify its compatibility with Windows F Tell me why this testing i important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway 5 Figure 16 Windows XP Logo Test Warning Pop up Window 19 7 After the necessary files are copied to the system the dialog box shown in Figure 17 will appear indicating that the driver has been s
144. is not already connected you will need to connect the BusPro I2C controller by attaching the provided USB cable between the USB port on the back of the BusPro I2C and an available USB 2 0 port on the host computer Refer to the Installation chapter for detailed installation instructions No target should be connected to the BusPro 12C controller during this portion of the tutorial Step 1 Enable Live mode As mentioned in the first part of this chapter I2C Exerciser checks upon starting to see if the BusPro I2C is attached and automatically enters Live Data Mode if it is or Demo Mode if it is not Click on the Tools menu to see if there is a check mark next to the Demo Mode menu item and if so you will have to click on this menu item to remove the check mark and switch the program into Live Data Mode as shown below in Figure 77 You can also verify that the program is in Live Data mode by observing the program s status bar in the lower right corner of the main window as shown in Figure 78 The leftmost indicator should contain the text LIVE ud LC Exerciser Untitled Monitor Untitled y File Trace Window Help Monitor dl ls Debugger A Programmer Self Test 01101 EEr Calibration alada Monitor Configuration Manager Preferences Figu LIVE AddrFormat FE Trace Off Bus Idle SCL High SDA Figure 78 Status Bar Indicating Live Data Mode 74 Getting Started When the I2C Exerciser is first used to i
145. isting and Timing field Save Trace Data Saves the current trace buffer data of the Monitor listing into a binary TDF file Export Trace Data Allows saving of the current trace buffer data of the Monitor listing as an ASCII CSV comma separated value text file Export Timing Data Allows saving of the current trace buffer data of the Monitor timing information as an ASCII CSV comma separated value text file Recent Files Provides a list of recently used project files for quick access Exit Terminates the I2C Exerciser application 124 Bus Traffic Monitor Monitor Trace Menu The Trace menu as shown in Figure 121 is used to access various trace buffer functions including run stop control buffer navigation data layout and display formats filter and trigger management setup and clearing of trace data or line tags These menu entries are described below Run Stop Go To View Clear Trace Data Clear All Tags ERE Hide Monitor Timing Ctrl F Trace Layout Figure 121 Monitor Trace Menu Run Stop This selection will cause the trace buffer run stop control submenu to appear as shown in Figure 122 Go To This selection will cause the trace buffer navigation control submenu to appear as shown in Figure 124 View This selection will cause the data view mode control submenu to appear as shown in Figure 125 Clear Trace Data Deletes all of the trace buffer contents and
146. ith external instruments These connectors are labeled AT1 and AT2 on the BusPro 12C front panel and are compatible with standard 50 ohm coaxial cables not included RJ45 Signal aor I Target End Signal Description Cable Wire Color Sicave Colar EE 1 01 Programmable Input Output White with Orange YELLOW II CT s ew LTCTT ue CT e son Pooma foen ewe e rema E tied together into a single sleeve Table 2 Flying Leads Serial Bus Connector Pin Assignments Connecting to a Target 91 Figure 97 RJ45 Connector Pin Numbering The 4 pin crimp cable connects to targets that have a 4 pin FC header compatible 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 Signal MI E SO Table 3 4 Pin Crimp Cable Pin Assignments 92 Connecting to a Target Interface Setup Aside from setting up the physical connections between the BusPro I2C and the target I C bus it is important to set up various configuration options in the I2C Exerciser application so that the BusPro I2C is ready to interface properly with the bus and commence traffic collection and viewing with minimal complications The I2C Exerciser s Configuration Manager provides access to these settings Once configured by the user most of the settings and custom preferences are conveniently saved by the I2C Exerciser with each project A new project always beg
147. ition which will continue forever until the user stops the process A Run Repetitive Status dialog similar to the Run Status Dialog in Figure 123 with identical functionality as noted above for Run Single will appear to show progress If the buffer becomes full the buffer will wrap and new entries will overwrite the oldest entries When collecting transactions in this mode having an active Trigger does not change the behavior Some Monitor window commands are disabled while bus traffic is being accumulated Pause This command pauses bus traffic acquisition and enables all Monitor window commands Subsequent Run Single or Run Repetitive command will continue to append newly acquired bus traffic to the existing trace data list Stop This command immediately stops bus traffic acquisition and enables all Monitor window commands 126 Bus Traffic Monitor Run Status Window When the Monitor window is started via the Run or Run Repetitive command the Run Status Window will appear to provide status about events and progress If a Trigger is active it will notify you when the trigger condition has been met It also provides information 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 can only be closed when data collection is complete If you are not interested in the contents of this window it
148. itor Untrtled filni File Trace Tools Window Help si pom le 24 xXx TEM TEO X XK ine Marker Type Location Addr Hex AddrType RAW NAK Error q Data Analyzer 18 Bil Read 01101 3 Address Analyzer ADC 7 Bit Read altmlimil 2 Data Target ADC 7 Bit Read Monitor CU JG Open Trace Data File Ctri O PRE i lA Save Trace Data File Ctri S h Write View t 4 Tagged Row Clear Trace Data Clear All Tags Set Tag Clear Tag Trace Layout Monitor Timing Settings Preferences Data Target Start i End Fop A Write Write F Bil Write Figure 26 Monitor Window Right Click Pop up Menu Getting Started 29 While scrolling around the trace list data you will notice that some lines are highlighted with special background colors and the Marker column may contain various indications such as Trigger Cursor A Cursor B or Tagged These markers are used to indicate special transactions of interest and will be described in more detail later There are navigation tool bar buttons as well as menu equivalents to immediately jump to any of these special types of lines or to quickly jump directly to the beginning or end of the trace buffer Single clicking on a trace list line will highlight that selected line This highlighting helps to identify all of the transaction information across the columns of the trace listing The Find and Trigger tools can also populate their required trans
149. ive Features The Bus Drive Features group of settings shown in Figure 103 specify the clock rate accelerated rising edge drive collision detection and high speed mode options for the BusPro I2C when it is driving the target bus Bus Drive Features Drive Clock Rate wOkHz Disable Collision Detection Accelerated Rising Edge Drive Hi Speed Mode Auto On a Off Auto On a OFF Figure 103 Bus Drive Features Drive Clock Rate Specifies the nominal clock rate of the SCL signal when the BusPro I2C drives the bus Note that the I C bus is not of a continuously clocking type since various conditions can stretch the clock or require resynchronization between multiple sources Therefore a constant period is not expected Disable Collision Detection Under normal circumstances when the BusPro 12C drives the bus acting like a master it is required to detect that the signal levels it drives match within a reasonable time what it senses on the bus Failure to detect a match would imply a collision with another master If the bus has excessive capacitance or high pull up capacitance combinations which cause its rise time to be slow a false collision may be repeatedly detected and prevent the BusPro 12C from completing its transactions Enabling this Disable Collision Detection option accommodates such slow busses and allows the BusPro I2C driving to proceed but without the I C arbitration mechanism Therefore the user needs to keep any
150. le sleeved crimp terminal each Molex 16 02 0097 or equivalent Slips on target 0 025 inch square posts Test Clips are included Cable 12 inches other options available 4 pin Target Cable 4 pin female 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 options available Analyzer Input Resistance to Ground 100K ohms Programmable SDA SCL Analyzer Floating Target Supplied mode or 0 8V to 5 0V in 0 1V Reference Voltage steps Analyzer Supplied mode Programmable SDA SCL Reference Pull up Resistors Pull up resistor in Analyzer Supplied mode starting at a base approximate value of 250 ranging up to 50K ohms in an assortment of 64 values Programmable Rising Slope Control When enabled momentarily pulls up rising edge driven bus signals to quickly overcome capacitance 220 Hardware Reference Target Discrete 1 01 1 02 Test Signals Programmable TTL Discrete I O Output 1 25V to 3 3V in 50mV steps Voltage W_ad Independent Programmable Pulled up to Programmable V_adj by 4 7k Q Direction Characteristics TTL Output Open Collector Output TTL Input 5V tolerant by clamping to 4 3V Discrete I O Signal DC Characteristics a ee a i ee FOIE 7 38 va losna vaos va lema a vo SMB Trigger Output Signal Output tracks Discrete 1 01
151. lexport char _cdecl I2C_SetBusPullupResistance char szResistance Return Value NULL if I2C_InitHardware was never called otherwise a pointer to a string containing the actual resulting resistor value closest available to requested Parameters szResistance The string holding text of the new pull up resistor values as a floating point decimal value in ohms 208 Third Party Application Interface I2C SetBusVoltageSource Selects the bus reference voltage source as either provided by the target or by the analyzer programmable 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 otherwise 1 Parameters nSource O if target should drive the voltage enter Target Supplied mode 1 if the BusPro I2C should drive the voltage enter Analyzer Supplied mode Third Party Application Interface 209 I2C_SetClockRate Overwrite configuration SCL clock rate with the provided value This is the rate at which the analyzer attempts to run when it drives the bus Note that for slow rising busses high parasitic capacitance with Accelerated Rising Edge Drive off the rise time may limit the ability 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 t
152. list will automatically be centered on the transaction that satisfied the trigger condition The Demo Mode data has a matching trigger condition on line 45 as can be seen in Figure 25 e 6a DC Exerciser Untitled Monitor Untitled o lea uh File Trace Tools Window Help Dx Sa hl o 88 ae xu YER ss mo i Line Marker Type Location Addr Hex AddrType R W NAK Error KHz I O 1 VO 2 Data Byte Hex Time us I 34 Data Analyzer 18 7 Bit Read 403 1 1 12 2 293 01101 35 Address Analyzer ADC 7 Bit Read 107 1 1 2 476 altll 36 Data Target ADC 7 Bit Read 104 1 1 1C 2 632 Monitor 37 Data Target ADC 7 Bit Read 104 1 1 DONE 2 730 y 38 Address Target 54 7 Bit Write 402 1 1 3 441 pie 39 Data Target 54 7 Bit Write 402 1 1 17 3 469 40 Data Target 54 7 Bit Write 401 1 1 5D 3 494 Debugger 41 Data Target 54 7 Bit Write 400 1 1 35 3 520 42 Data Target 54 7 Bit Write 403 1 1 OF 3 545 E 43 Address Analyzer 36 7 Bit Read 107 1 1 3 729 ota Data Target Read 3 884 Programmer A e E Address Target 7 Bit Read 4694 47 Data Analyzer 18 7 Bit Read 402 1 1 3D 4 735 48 Data Analyzer 18 7 Bit Read 401 1 1 63 4 761 49 Data Analyzer 18 7 Bit Read 400 1 1 52 4 786 50 Data Analyzer 18 7 Bit Read 403 1 1 16 4 811 5 Address Analyzer ADC 7 Bit Read 107 1 1 4 995 52 Data Target ADC 7 Bit Read 104 1 1 1F 5 151 53 Data Target ADC 7 Bit Read 104 1 1 BUSY 5 249 54 Address Target PLL 7 Bit Write 402 1 1 5 960 55 Data
153. ll steps have completed successfully the status window may be closed by clicking on the Done button as shown in Figure 170 and the calibrated BusPro 12C is ready for use Calibration Status Part 2 of 7 Calibrating analyzer supplied bus voltages Xx Figure 169 Calibration Status Calibration Status Calibration Complete es Figure 170 Calibration Complete 186 Configuration and Preferences Configuration and Preferences 187 Chapter 9 Third Party Application Interface Description of using the BusPro 12C with third party software Overview The BusPro 12C provides the ability to operate some of its features by using function calls from third party software In this manner such applications can access the connected IC bus of the target including observing its traffic interacting with it and performing bus measurements This effectively provides such software with a portal to the connected C bus One set of common third party applications includes the National Instruments LabWindows CVI and LabView software These are capable of accessing external routines by using DLL function calls Therefore the DLL library described in this chapter can be used by these popular applications More generally any application which can call DLL routines can invoke the library routines described in this chapter and gain control and visibility of the BusPro I2C resources and the connected I C bus 188 Third Par
154. lose the SMBus Data window Getting Started 39 This completes the I2C Exerciser tutorial Please refer to chapters 5 and on for more detailed information on the I2C Exerciser graphical user interface 90 Getting Started Chapter 4 Connecting to a Target BusPro 12C analyzer connection instructions and pin assignments Connecting the I C Signals The BusPro I2C connects to the target s IC bus through the RJ45 socket on the front panel labeled Serial Bus This connector provides access to the IC bus and discrete I O signals NOTE 1 The BusPro I2C should not be connected to a target I C bus without also being plugged in to the USB 2 0 port of a powered host PC otherwise the target I C bus may not function properly NOTE 2 The RJ45 connector is not for Ethernet and should NEVER be mistakenly connected to a network The only proper connection to the host PC is through the USB 2 0 port Two types of test cables are available to plug into the Serial Bus connector according to your target needs One included in the standard BusPro I2C 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 The other optional cable terminates to a 4 pin crimp target connector that is compatible with the Philips I C demo board Table 3 shows the pin assignments of this cable In addition SMB connectors are provided to allow synchronization w
155. luded from the trace listing Symbols Establishes the criteria for transactions that will have their particular address or data byte value replaced by a specified text string symbol SMBus Establishes the associations between bus addresses and SMBus devices using files containing SMBus decoding information Settings Establishes the various electrical and bus settings of the analyzer Lists the set of support files associated with the currently loaded project Table 13 Configuration Manager Panes Triggers Pane This dialog shown in Figure 150 establishes transaction criteria that define the trigger event which can cause the monitor capturing process to be stopped automatically once a certain transaction occurs The transaction satisfying this event is marked as Trigger in the trace listing When I2C Exerciser is collecting bus data in Run Single mode and no trigger event is defined the capturing process will stop automatically once the buffer becomes full No trigger transaction marker will appear in the trace listing If a trigger event is defined however the monitor will continue to capture new transactions even after the buffer becomes full until the trigger event occurs Old transactions will be thrown out in order to accommodate the new ones once the buffer is full If the trigger event occurs the capturing stops automatically when enough post trigger transactions have been collected to fill the buffer such that the trigger
156. lumn heading menu to put the trace list display back into Normal mode Getting Started 45 You can right click on any column heading and select Hide Column to remove the selected column from the trace list display This may be useful when the user is not interested in some of the data columns and hiding them can reduce screen clutter Additionally you can 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 heading and while holding the mouse button down drag the column to just after the Time column heading as shown in Figure 46 and then release the mouse button 44 IC Exerciser Untitled Monitor Untitled Wh File Trace Tools Window Help Sul llo xo vm sao Address Target 01101 Data Target Trace Layout altwliml Data Target AutoFit Columns Monitor Data Target 4 Data Target Address Analyzer Data Target Data Target Figure 45 Monitor Window Trace List I O 2 Right Click Pop up Menu 44 IC Exerciser Untitled Monitor Untitled a File Trace Tools Window Help Sa rho 28 Xx YE sa o nx Shortcuts i RAW NAK Error KHz 1 O 1 Data Byte Hex r Address Target 01101 Data Target Y a o allan Data Target Monitor Data Target Data Target Address Analyzer Data Target Figure 46 Dragging Monitor Window Trace List I O 1 Column Heading
157. ly EEPROM devices that the Programmer supports use 7 bit addresses so only 7 bit may be selected here Data File edit box and Specifies the file containing data to be programmed Use the browse Browse button button to locate the data file Offset combo box and Specifies an offset for the programming The drop down combo box edit box allows for selection of whether to Add or Subtract the offset value which is entered into the edit box on the right The offset value must be entered in hexadecimal format Table 9 Programmer Function Descriptions Bus Traffic Monitor 155 Read Button The Read button opens the Read Contents window shown in Figure 141 This allows the user to examine the memory content of the I2C EEPROM device without dumping the entire data to a file The components of the Read Contents window are described in Table 10 Read Contents Address Data apoga OO OO 0 01 OO Oe OO 65 00 04 00 05 OO 06 00 07 codoo0o0010 oo 08 OO 09 OO 04 00 OB OO OC 00 OD OO E OO OF 0000000 OO 10 00 11 OO le 00 13 00 14 00 15 OO 16 OO 17 OOOO0030 oo 15 00 19 OO 14 00 1B 00 1C 00 1D 00 1E OO 1F 0000040 00 40 00 21 00 22 00 235 00 24 00 25 OO 26 OO 2 dogas 00 26 00 29 OO 4 00 6 00 E 00 D 00 E 00 ZF OOOO 00 30 00 31 00 32 00 335 00 34 00 35 00 36 00 37 OOOo00TO 00 36 00 39 OO 34 00 3B 00 3C 00 3D 00 3E 00 3F QOOOQOO8O OO 40 00 41 00 42 00 43 00 44 00 45 00 46 00 47 0000090 00 46 00 49 OO 44 00 46 00 4C 00 4D O
158. ly clicking on the Go to Tagged Row tool bar button will cause the trace list to alternate between the two tagged lines 4 RC Exerciser Untitled Monitor Untitled File Trace Tools Window Help oh gt mil amp ae E Ho x2 YE MS E e Shortcuts i Bnn Addr ir Hex AddrType orion 2 Data Analyzer DAC 7 Bit Read Figure 63 Go to Tagged Row Tool Bar Button 4 DC Exerciser Untitled Monitor Untitled a RoR Ex ani Eile Trace Tools Window Help x Sa llo 85 aa xu yr ATE o Line Marker Type Location Addr Hex AddrType RAW NAK Error KHz Data Byte Hex Time us I O 1 A l 80 Tagged Data Analyzer DAC 7 Bit Read 401 72 01101 81 Data Analyzer DAC 7 Bit Read 400 zz i Exa all 82 Data Analyzer DAC 7 Bit Read 403 21 Monitor 83 Address Analyzer ADC 7 Bit Read 107 8 84 Data Target ADC 7 Bit Read 104 21 a 85 Data Error 86 Address Target 54 7 Bit Write 402 is Debugger 87 Data Target 54 7 Bit Write 402 22 nae 88 Data Target 54 7 Bit Write 401 5A E 89 Data Target 54 7 Bit Write 400 31 pal 90 Data Target 54 7 Bit Write 403 OF Programmer 91 Address Analyzer 36 7 Bit Read 107 92 Data Target 36 7 Bit Read 104 61 93 Data Target 36 7 Bit Read 104 DANGER cet 94 Address Target DAC 7 Bit Read 402 Data Byte 95 Data Analyzer DAC 7 Bit Read 402 2F ve 96 Data Analyzer DAC 7 Bit Read 401 57 Hex zo e 97
159. mes and paths of these data files not their actual contents Once you have saved a project you can load it again later in three different ways You may start the I2C Exerciser and then select the Open Project menu item from the File menu to bring up a dialog that allows you to browse for and select the desired project file Secondly you may select the project name from among the MRU Most Recently Used list in the File menu see Figure 166 This list includes up to the last four projects that have been opened Finally you can also launch the I2C Exerciser and load a project file in a single step by double clicking on the associated project file from the Windows Explorer E Mew Project Open Project A Save Project Save Project 45 gt Open Trace Data Cbrl o 1 Bus Test O01 ic 2 John _ default ic 3 Targe 4 i2c 4 SMBus Proj ize Exit Figure 166 File Menu MRU Project List 184 Configuration and Preferences Calibration The BusPro 12C includes a calibration feature to fine tune its electrical outputs since the pull up voltage and resistance that it is able to provide to a target bus can vary from unit to unit or even across different host USB busses Each installation of the I2C Exerciser maintains a separate collection of calibration data for every BusPro 12C that it operates Whenever the application detects a BusPro 12C that it has not yet calibrated it will display a prompt as shown in Figure 167 LC Exercise
160. ming Done Verifying Verify succeeded es Figure 142 Programming Progress Window Verify Button The Verify button allows you to verify the content of the I2C EEPROM device against the specified data file During the verifying operation the progress dialog box shown in Figure 143 will pop up to show the verification status Progress Verifying Verify succeeded Figure 143 Verifying Progress Window Erase Button The Erase button allows you to initialize the device memory contents with the value FF During the erasing operation the progress dialog box shown in Figure 144 will pop up to show the erasing status Figure 144 Erasing Progress Window Bus Traffic Monitor 157 Programmer Options The user can change Programmer options by accessing the Programmer Options pane of the Preferences 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 145 Preferences Options Verify After Programmi Figure 145 Programmer Options Pane Verify After Programming If selected the programmer will verify that the data was written properly after a write operation Bus Traffic Monitor 158 Programmer Window Reference The Programmer window shown in Figure 146 can be opened using the either the Programmer entry in the Shortcut Bar or in the Tools m
161. mment gt your comment Comments begin with the characters and continue for the remainder of a line lt hex bytes gt 3F 54 7A 8B 22 Ordered set of hexadecimal byte values to send to the target Slave using the address specified in the Send side Addr combo box These values may be separated by more than one white space or by new lines NOSTOP SB SL Causes the last byte prior to the command to be designated NOSTOP 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 PAUSE 350 Indicates that a delay for the specified number of decimal milliseconds should be inserted Any data byte values that follow this command are sent beginning with a new address cycle PECON PECON Turns on the SMBus PEC Packet Error Checking byte generation option The PEC is a CRC 8 error checking byte calculated on all the message bytes including addresses and read write bits The PEC is appended to the message as the last data byte PECOFF PECOFF Turns off the SMBus PEC Packet Error Checking byte generation option SETDISCRETE SETDISCRETE 1 0 Modifies the state of one of the discrete I O signals The particular discrete I O signal 1 or 2 is specified by the first parameter and the level to which it is set 1 for high or O for low is specified by the second parameter It remains at this state until ano
162. nalyzer DAC 7 Bit Read 400 72 1 986 0 23 Data Analyzer DAC 7 Bit Read 400 49 2 011 0 24 Data Analyzer DAC 7 Bit Read 400 4F 2037 0 4 mI r Corelis Ready DEMO AddrFormat FE Trace Off Bus SCL SDA 140 1 1 0 2 A Figure 47 Monitor Window Trace List with Rearranged I O Columns Getting Started 47 lf you wish to unhide one or more previously hidden columns or wish to restore the column layout to its default 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 Default Column Layout button to restore the default column settings and then click on the Close button Trace Layout Visible Column Name Line Marker Type Location Addr Hex AddrType RAW NAK Error KHz VO 1 102 Data Byte Hex 7 r 3 E a El EE a al El El Enable All Columns Default Column Layout Close Figure 48 Trace Layout Dialog 48 Getting Started Timing Display The lower portion of the Monitor window contains a graphical representation of the IC bus signal transitions depicted as a timing diagram similar to a logic analyzer A picture of the timing display is shown in Figure 49 It displays the actual state and edge times of the signals as they transitioned
163. ne Bus Traffic Monitor 117 Each entry in the device list box contains the device name bus address value and the decoding file The device name is the name of the SMBus device that is associated with the address value and will be displayed in the Address column of the trace listing The bus address value specifies the slave address that is being associated This 7 bit address is displayed in hex according to the current FE or EF display mode The last piece of information is the path to the file containing the protocol decoding information for the device Decoding files for devices that are not built in are provided in the Decoder subfolder of the installation folder The four buttons at the bottom of the window allow the user to manipulate the association list Using the Add button a new device can be associated with an address The Edit button enables alteration of an existing selected association The Remove and Remove All buttons enable deletion of the selected association or 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 the Update button to have the information from the decoder file automatically filled into the Address and Name fields Click on the OK button to finish or the Cancel button to cancel If the address being associated is a reserved address overriding of the reserved addres
164. ne 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 changed E et BC Exerciser Untitled Monitor Untitled o amp es tha File Irace Tools Window Help e Dix SH Pm o 8H BE Be xe rk ME Shortcuts Line Marker Type Location Addr Hex AddrType RAV NAK Error KHz Data Byte Hex Time us I O 1 a 80 Tagged Data Analyzer DAC 7 Bit Read Baoan 01101 81 Data Analyzer DAC 7 Bit Read calva 82 Data Analyzer DAC 7 Bit Read al m a E b ana p Onl F ts Monitor 83 Address Analyzer ADC 7 Bit Read onitor Colors onitor Opuons ebugger Options rogrammer Options orma 84 Data Target ADC 7 Bit Read Trigger Other pi 85 Data re Text v Color Scheme 86 Address Target 54 7 Bit Write Debugger 87 Data Target 54 7 Bit Write Background MN y Alternate color per message v 88 Data Target 54 7 Bit Write E 89 Data Target 54 7 Bit Write Cursor A enets 90 Data Target 54 7 Bit Write Text i Text 1 a y Programmer 91 Address Analyzer 36 7 Bit Read 92 Data Target 36 7 Bit Read Background MN y Background 1 div 93 Data Target 36 7 Bit Read 94 Address Target DAC 7 Bit Read Cursor B 95 Data Analyzer DAC 7 Bit Read Text Oy Text 2 ei y 96 Data Analyzer DAC 7 Bit Read F d 97 Data Analyzer DAC 7 Bit Read Background D
165. ne the Voltage setting dropdown box to verify that it is set to the expected voltage level of your target Modifying this setting will also cause the Bus Signal Threshold levels to automatically adjust to new default values Note that the voltage source should remain set to Target Supplied Optionally the following settings could be customized as needed Further explanation of these settings can be found in the Setting Details section later in this chapter 1 2 3 4 5 Adjust Bus Signal Threshold levels from the automatic defaults if required when considering hysteresis and noise avoidance issues with the target Set the 12C Exerciser s Buffer Depth to a desired amount Select the discrete Input Output Signals directions voltage level and external SMB connections Set the analyzer Drive Clock Rate to a desired value Make sure bus rise time RC time constant will allow this rate to operate properly If you are expecting an excessively slow rising bus high RC time constant then check the Disable Collision Detection box and or turn on the Accelerated Rising Edge Drive option Saving the project by selecting File Save Project from the menu bar will allow future reuse of these settings with this target Case 2 The target does not supply any pull up voltage In the case where the target does not supply pull up voltage the BusPro I2C must supply the pull ups for the target When the I2C Exerciser is first use
166. nfigured as an output otherwise 0 input comes from target connector 1 input comes from SMB AT2 szVoltage discrete output voltage between 1 25 and 3 30 rounded to nearest 0 05V Third Party Application Interface 193 I2C_DisableCollisionDetection Enables an analyzer mode which ignores bus collision conditions when it is driving the bus This may be useful for busses with overly slow rise times In such cases the analyzer will not see its own high 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 without an error condition Prototype extern C _ declspec dllexport int _cdecl I2C DisableCollisionDetection int nEnable Return Value 0 if 12C_InitHardware has not yet been called otherwise 1 Parameters nEnable 1 disable collision detection O enable collision detection 194 Third Party Application Interface I2C_GetLastStatus Reports supplemental 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 recent call to an API function including any error messages Parameters None Third Party Application Interface 195 I2C_GetLastTransferStatus Reports supplemental status of the most recent call to
167. ng Display Showing Edges Zoomed in at Line 100 Getting Started The Interval A to B field always displays the calculated time difference between the position of Cursor A and Cursor B Reposition Cursor A by clicking on the small green triangle on the left side of the Field row and while holding the mouse button down drag it over the last edge of the previous transaction as shown in Figure 53 Notice that while you are dragging the Cursor a tool tip follows 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 last edge of the previous transaction release the mouse button to place Cursor A there The Interval A to B field now displays the difference in time between Cursor A and Cursor B which in this case is measuring the gap in time between the end of the transaction on trace line 99 and the start of the transaction on trace line 100 Data Analyzer DAC Data Analyzer DAC dares 00 CursorB Data Target ADC 7 Bit_ Read Target ADC 7 Bit Read Address Target PLL 7 Bit Write Data Target PLL 7 Bit Write Address Target ADC 7 Bit Write Data Target ADC 7 Bit Write Data Target ADC 7 Bit Write Data Target ADC 7 Bit Write CHANSEL Data Target ADC 7 Bit Write CHANSEL Data Target ADC 7 Bit Write CHANSEL Scale 20 us div Auto Fit Line DEMO ddiFormat FE Trace O Bus SCL SDA
168. ng graph by left clicking and dragging The markers will remain where placed even when not in view and are used to measure time intervals see the Interval A to B component above The transaction line nearest a cursor is indicated in the trace listing with special highlighting and an entry in the Marker column 110 Bus Traffic Monitor Monitor Configurations Various configuration options relevant to the Monitor Window can be specified by opening the Configuration Manager from the Tools menu The Configuration Manager can be used to configure the Triggers Filters Symbols and SMBus features which are applicable to use of the Monitor Window Triggers This dialog shown in Figure 109 establishes transaction criteria that define the trigger event which can cause the monitor capturing process to be stopped automatically once a certain transaction occurs The transaction satisfying this event is marked as Trigger in the trace listing When 2C Exerciser is collecting bus data in Run Single mode and no trigger event is defined the capturing process will stop automatically once the buffer becomes full No trigger transaction marker will appear in the trace listing If a trigger event is defined however the monitor will continue to capture new transactions even after the buffer becomes full until the trigger event occurs Old transactions will be thrown out in order to accommodate the new ones once the buffer is full If the trigger eve
169. ng information which allows the I2C Exerciser software to do the interpretation automatically There are three parts to viewing decoded SMBus data These 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 tdf This file is located in the Demo subfolder of the I2C Exerciser installation folder For a default installation this would be C Program Files l2C Exerciser Demo From the Monitor window click on the File menu and then click on Open Trace Data Note that there is also a tool bar button for this Browse to the Demo folder mentioned above and select the file tc74 tdf Then click on the Open button The Monitor trace window will fill up with the data as shown in Figure 90 below ah Monitor C Program Files I2C Exerciser Demo tc74 tdf o E Line Marker Type Location Addr Hex AddrType R W NAK Error KHz O 1 1 0 2 Data Byte Hex Time us 2 Data Target 9A 7 Bit Write 98 1 1 00 96 Address Analyzer 9A 7 Bit Read 559 982 CITI 5 Address Analyzer 7 Bit Write 1 336 024 6 Data Target 9A 7 Bit Write 98 1 1 00 1 336 120 E E Address Analyzer 9A 7 Bit Read 99 1 1 2 081 885 8 Data Target 9A 7 Bit Read NAK 96 1 1 2E 2 081 984 9 Address Analyzer 9A 7 Bit Write 98 1 1 3 592 941 10 Data Target 9A 7 Bit Write 98 1 1 00 3 593 036 11 Address Analyzer 9
170. ng point decimal value in volts Third Party Application Interface 205 I2C_SetBusHighVoltageThreshold Overwrite configuration high threshold voltage with provided value This supports the hysteresis feature of the analyzer as it monitors the bus and improves noise immunity If a bus signal is currently considered low it must be sensed above this voltage before being switched to high by the analyzer Note that for slow rising busses high parasitic capacitance with Accelerated Rising Edge Drive off the rise time may limit the ability 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 since level crossings may occur in the nearly horizontal and noise sensitive final stage of signal rising Prototype extern C _ declspec dllexport char _cdecl I2C_SetBusHighVoltageThreshold char szVoltage Return Value NULL if I2C_InitHardware was never called otherwise a pointer to a string containing the actual resulting high threshold voltage closest available to requested Parameters szVoltage The string holding text of the new bus high threshold level as a floating point decimal value in volts 206 Third Party Application Interface I2C SetBusLowVoltageThreshold Overwrite configuration low threshold voltage with provided value This supports the hysteresis feature of the analyze
171. ngs that you should be aware of to have the BusPro I2C working properly Chapter 5 Bus Traffic Monitor This chapter describes the features of the Monitor window which is used to collect and analyze traffic from the target IC bus Chapter 6 Interactive Debugger This chapter describes the features of the Debugger which is used to manually generate traffic and interact with the target IFC bus Chapter 7 Serial EEPROM Programmer This chapter describes the features of the Programmer which is used to read and write the content of EEPROM memory devices on the target IC bus Introduction XI Chapter 8 Configuration and Preferences This chapter describes all of the various project options and settings that can be found in the Configuration Manager and Preferences 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 I2C analyzer through the provided dynamic link library DLL Appendix A BusPro 12C Hardware Reference This appendix presents the physical and electrical specifications for the BusPro I2C hardware xii Introduction Chapter 1 Product Overview BusPro I12C Bus Analyzer and 12C Exerciser product overview Introduction to IC and SMBus The IC bus was developed by Philips for basic communication between devices It has since evolved increasing in performance and finding
172. nstallAware Wizard aa oe ororen CORELIS Aun E MAA Company Software License Agreement This is a legal agreement Agreement between you and Corelis Inc Corelis This Agreement is part of a package that includes the C Bus Analyzer Exercizer Programmer and Tester Software products collectively the Software By installing copying downloading accessing or otherwise using any of the Software you agree to be legally bound by the terms and conditions of this Agreement as to such Software If you do not accept the terms and conditions of this Agreement then click on I do not accept the license agreement and exi the installation procedure for such Software If you do not agree to the terms of this Agreement you may not install or use any of the Software For purpose of this Agreement the term you includes you your company employees contractors agents and anyone else you allow to use the Software Grant of Software License Subject to the term and conditions of this Agreement Corelis Figure 5 License Agreement Screen Installation 9 Review the entire agreement and if you agree select accept the terms of the license agreement and then click on the Next button The Customer Registration screen shown in Figure 6 will then be displayed na 2C Exerciser InstallAware Wizard Please enter information on yourself COR E L S n EA
173. nt occurs the capturing stops automatically when enough 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 Early Middle or Late Pre trigger transactions would then constitute a portion of all transactions in the filled buffer equal to at most 15 50 or 85 respectively The percentage of pre trigger transactions is less than this amount when there are not enough transactions 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 buffer space do not apply When 12C Exerciser is collecting bus data in Run Repetitive mode occurrence of the trigger event will not cause the capture process to stop The monitor will stop capturing transactions only when the user explicitly invokes the stop command Since the buffer space is limited old transactions will be thrown out in order to accommodate the new ones once the buffer becomes full In such cases the trigger transaction may also get thrown out The Trigger Out option provides a link between the incoming trigger events to a trigger out signal through one of the discrete 1 O s When the Trigger Out option is set to one of two discrete l O s the signal will pulse high or low according to the Active Pulse setting
174. nteract with the bus in Live Mode as you will do in the next step it checks the electrical characteristics of the target bus to determine if there may be a possible conflict with the electrical settings of the current project Because you have no target connected during this tutorial you can expect to see the warning message shown in Figure 79 below LC Exerciser 2 T Target supplied voltage detected MONE Project Settings Target Supplied Voltage 3 30 High Threshold Voltage 1 80 Low Threshold Voltage 0 90 WARNING A target supplied reference voltage has NOT been detected This may result In an inactive bus which the BusPro E cannot drive Do you want to open the Configuration Manager with the recommended Analyzer Supplied voltage setting Select No to continue with the current project settings Figure 79 Analyzer Supplied Mode Prompt If you see this message click on the Yes button to open the Configuration Manager with the I2C Exerciser s recommended electrical settings Then simply click on the Close button at the bottom of the Configuration Manager window to accept the recommended defaults You can then continue with the tutorial Getting Started 75 Step 2 Send and Receive with Debugger Click on the Debugger icon in the shortcut bar on the far left side of the main window to open the Debugger window Alternatively you could select the Debugger entry from the Tools menu The Debugger window will appear as s
175. nu shown in Figure 125 provides data view mode control for the Monitor window Data Byte column Normal Mode Compact Mode SMBus Mode Figure 125 Trace View Submenu Normal Mode Causes the Data Byte column display to switch to the default Normal mode When using Normal mode the Data Byte column simply indicates the raw data byte values conveyed 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 byte transactions following an address transaction will be displayed on a single trace listing line SMBus Mode Causes the Data Byte column display to switch to SMBus mode When using SMBus mode each data byte value of the transaction is decoded into a text SMBus message if the value is associated in an SMBus decoding file refer to the SMBus section of this chapter Bus Traffic Monitor 129 Find Function You can use the Find function to search for entries in the trace buffer matching user specified criteria Figure 126 and Figure 127 show the regular and compact version of the Find dialog box The regular full size dialog allows the user to configure the various transaction search conditions including don t care entries If the user plans to 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
176. o determine if the address cycle got NAK ed NOTE This function is available for backward compatibility only Use the new I2C_SendData function instead if possible Prototype extern C _ declspec dllexport int _cdecl I2C_ Send Data int nAddress int blOBitAddress unsigned char pSendData unsigned char pReceiveData ine NDatecount Lit DUSestopalts Return Value 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 address of the destination slave depending on following parameter b10BitAddress If one the above address is a 10 bit value If zero it is a 7 bit address pSendData A pointer to a block of memory where the send data bytes are provided pReceiveData A pointer to a block of memory where the successfully sent data bytes are returned This is an optional parameter which can be NULL nDataCount The number of bytes contained in the above block of memory bUseStopBits If one a stop cycle terminates the message after the last data byte sent otherwise no stop cycle is issued the analyzer continues to control the bus with SCL low ready to perform a coming Repeat Start on the next access Third Party Application Interface 201 I2C SendData sends a message ie performs a write operation to the specified target slave address This function may not
177. odates such slow busses and allows the BusPro I2C driving to proceed but without the IFC arbitration mechanism Therefore the user needs to keep any target IC bus master s quiet while the BusPro I2C drives the bus when collision detection is disabled 174 Configuration and Preferences Accelerated Rising Edge Drive In general when a driver on the bus makes a positive signal transition the rise time is determined by the RC time constant of the bus The rise time governs the upper limit on effective clock rates When the BusPro 12C drives the bus it can apply a strong rising drive during the signal transition to overcome the RC time constant creating a rapid edge This can then allow an increase in the clock rate for a given RC value of the bus If this option is set to AUTO the BusPro I2Cwill engage the fast rising edge mechanism automatically whenever it is operating with the EE high speed mode Hs mode protocol note however that the High Speed Mode emulation is not currently supported by the BusPro I2C and so the AUTO setting will have the same effect as OFF If this option is set to ON the BusPro I2C employs the mechanism at all times Setting this option to OFF fully disables the mechanism letting the pull ups or the target capacitance determine rise times High Speed Mode This setting controls the use of the I C high speed mode Hs mode protocol note that the High Speed Mode emulation is not currently supported by the BusPro 12
178. olumn Headings Line Displays a sequential unique number for each bus transaction Marker Identifies special lines such as the Trigger Cursor A Cursor B or Tagged Type Identifies the transaction as either an Address or Data cycle Location Indicates the device involved in the current transaction as being either a target device on the bus or the BusPro I2C analyzer For address transactions Analyzer means the analyzer is the master debugger or emulated master while Target means a UUT master is driving For data transactions write toward the slave read from the slave Analyzer means the analyzer is an emulated slave while Target means a live UUT slave is involved This localizes the source of address cycles and the source destination of data cycles as residing in the Analyzer or the Target Addr Displays the bus address 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 the protocol defined 7 bit 10 bit or Hs mode Note that for 7 bit addresses displayed in hex format I2C Exerciser can present a given address value in one of two formats based on the users preference In 7F format mode addresses are displayed with the seven address bits shown as right justified in the hex byte value with the MSB always being zero In FE format mode the address
179. ompt for saving trace data prior to CLEAR or RUN 778 4 4 Y Lock Timing with Trace 804 1 2 Lock to Top Listing Li Lock to Selected Listing Li 6 Lo op Listing Line o elec isting Line 1 013 4 7 START Hold Time Checking 1 168 1 8 ae 1 266 1 Minimum Hold Time 0 16us v 9 1 978 1 10 2 005 1 ESA 2207 1 Scale 69 042 us Corelis Ready DEMO AddFormat FE Trace Off Bus SCL SDA 140 1 1 0 2 Figure 73 Monitor Window Trace List with Trigger is Time Zero Timestamps 70 Getting Started The Timestamp Display option affects how timestamps are calculated and displayed When set to Absolute the timestamp displayed for each entry is the absolute time relative to the start of bus traffic acquisition This is the default setting When set to Relative the timestamp displayed for each 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 aa DC Exerciser Untitled Monitor Untitled o foe Ex ani File Trace Tools Window Help ell xe SE bolo 88 88 8 xe ym Me x Shortcuts Line Marker Type Location Addr Hex AddrType RAV NAK Error KHz Data Byte Hex Time us 1 0 1 al 42 Preferences Es OO 01101 11 25 1 Pa pa ES y alvaro 10 Monitor Colors Monitor Options Debugger Options Programmer Options Formats 184 4 Monitor
180. oncnnoncnnoncnnonnnnnnnonnnnonenconrnconcnnnnnnnos 161 Table 13 Configuration Manager Panes cccccecccsseeceeeeeeeeeaneeceneeceeeeneeeeaneeteneeteseeseeetaeeteeenseeeneeeeans 165 Table 14 DELCOMPOMEN Sci 189 Table 152C DEEFUINCIONS docs 192 Introduction What this User s Manual Covers This User s Manual was designed to make using your BusPro I2C analyzer and its software easier and more efficient The manual contains easy to navigate tutorials and reference information that are presented in a logical progression The following briefly summarizes each chapter Chapter 1 Product Overview This chapter provides you with an introduction to the IC bus and SMBus as well as a description of the BusPro 12C analyzer and software application features Chapter 2 Installation In this chapter you will learn how to install the I2C Exerciser software and the BusPro I2C hardware Chapter 3 Getting Started This chapter introduces you to the basic usage of the BusPro I2C for monitoring and generating bus traffic writing debug scripts and working with EEPROM devices Although it is possible to explore the capabilities of the BusPro I2C on your own working through this chapter will provide you with an immediate feel for its ease of use and core functionality Chapter 4 Connecting to a Target This chapter provides you with instructions on how to hook up the BusPro 2C to a target board and describes the initial software setti
181. onenonononos 28 Figure 26 Monitor Window Right Click Pop up Menu occccoccncccccncccccncccncnononcnononnnonnnnnonnnnnnnnnnnnnnnnononnncnonos 29 Figure 27 Monitor Window Trace List Positioned on Trigger Line oooccccccnncconcnccconnnccnnnnnonnncnononononos 30 Figure 28 Monitor Window Right Click Pop up Menu Selecting Trigger SettingS ccccoccccconcnccoo 31 Figure 29 Configuration Manager Trigger Setup Screen ooccccoccncccccncccccncccnnncnonnnonnnnnnnnnnnnnnnnononnnononenenonos 32 Figure 30 Monitor Window Trace List Column HeadingsS ccccccocccccoconcncononcnnnnnnnnnconanonnononennnnnarnconanennos 33 Figure 31 126 Exerciser Status Da tai 33 Figure 32 60 t Start Tool Bar BUIN as 34 Figure 33 Monitor Window Trace List Showing Symbolic Address and Data Enltries cooococo 35 Figure 34 Configuration Manager Symbols Definition Screen ooccccoccccccccncccnnnconnnnnonnnnonacnnnnnnnonononononos 36 FIQuUre 35 Symbol Definition Dia esc 37 Figure 36 Configuration Manager Symbols Definition Screen with DAC SymMbol ooccccoccncccccnccccnncnno 38 Figure 37 Monitor Window Trace List Showing New DAC Symbolic Address Entries ooocooo 39 Figure 38 Monitor Window Trace List Data Byte Column Right Click Pop up MenNU occccoccncccccncccccncnooo 40 Figure 39 Monitor Window Trace List Data Column with Symbols Disabled ccccoocccnccoccnnconononoss
182. onitor trace listing any time that the clock signal SCL is detected to be low for 25 milliseconds or longer during capturing of bus traffic If a timeout occurs while the BusPro 12C is driving the bus it will abandon all transactions and generate a STOP condition to return the bus to the idle state 172 Configuration and Preferences Settings Pane This dialog shown in Figure 157 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 in the Settings pane are detailed below Configuration Manager x Triggers Filters Symbals SMBus Settings Files Bus Electrical Features Voltage Source Bus Signal Thresholds Target Supplied Analyzer Supplied Hifi 1 80 Voltz Intended ir Al T Low Level Volts Pull up Resistance Auto Detect Bus Drive Features Drive Clock Rate 100 kHz E Disable Collision Detection Accelerated Rising Edge Drive Hi Speed Mode Auto jon Off Auto On Off Input Output Signals High Level Function 1 0 1 D j E 5 M B AT gt dE ol o 1 0 2 Source Monitor Buffer Options Depth Transactions ls Figure 157 Settings Pane Configuration and Preferences 173 Target Supplied Specifies that the connected target IFC bus has its own pull up voltage supply In this case the target bus is self sufficient and ready for use When this setting is sele
183. onsiderations When adjusting the SCL clock rate at which the analyzer operates the bus as a master during Debugger functions the user must be aware of limitations imposed by the target bus itself For example if the bus rise time is too slow for the selected rate signals take a long time to reach the high threshold voltage it may appear to the analyzer that another master is colliding and overriding its own SDA level For very long rise times the signal might not even reach this level before turning around to fall This may result in the analyzer protocol tracker reporting errors or it may even hang the bus if it seems like a new clock state has not arrived Such a bus is therefore not suitable for the selected clock rate without additional methods to account for it The Disable Collision Detection option restores better clock rate capability but eliminates the possibility of legitimate collisions getting detected and flagged in the trace listing Forcing the Accelerated Rising Edge Drive mode on even when 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 analyzer is the master and does not cure slow rise times for target resident masters Finally the above slow rise time issues are strongly affected by analyzer supplied reference voltage and pull up selections which determine when the rising signal
184. or for background and text assigned to the alternating line groups can also be selected Any changes made take effect immediately A Use Defaults button restores the original default settings Preferences Trigger Other Text Background Cursor A Text a y Text 1 a Background Background 1 i a Cursor B Text gt Text 2 Background 7 Background 2 Timing View SDA Signal Beginning Marker D Figure 116 Monitor Colors Pane Bus Traffic Monitor 119 Trigger Changes the text and background color of the Trigger trace listing Cursor A Changes the text and background color of the cursor marked A in the Timing Field Cursor B Changes the text and background color of the cursor marked B in the Timing Field Timing View Changes the color of the SDA and SCL signals in the Timing Field Other Specifies one of the three coloring schemes e Nocolor no coloring of messages e Alternate color per message default each complete transaction is grouped together in one color the color alternates between adjacent messages e Alternate color per row alternates the color between adjacent rows Alternately the user can select the two alternating colors for adjacent messages both the text and background color if a coloring scheme is selected 120 Bus Traffic Monitor Monitor Options This pane enables the altering of preferences for the layout and style
185. or the bus 3 Select the bus Pull up Resistance this is for both the SCL and the SDA signal taking into consideration its capacitance keep RC time constant small enough for expected SCL rates Configuration Manager Triggers Filters Symbols SMBus Settings Files Bus Electrical Features Voltage Source Bus Signal Thresholds O Target supptes Bias Sill toh eve 160 vats Intended Pull up Parameters er Low Level 090 Volts Voltage Volts a T om Bus Drive Features Drive Clock Rate wOkH2 F Disable Collision Detection Accelerated Rising Edge Drive Hi Speed Mode Auto COn Off Auto On Off Input Output Signals High Level Function Te Pierina CME AT anakis oe source Monitor Buffer Options Depth Transactions Log to File Close Figure 100 Configuration Manager Analyzer Supplied Connecting to a Target 97 Auto Detect At any time you may have the I2C Exerciser check for a voltage on the target bus and automatically pick recommended default electrical settings for you by clicking on the Auto Detect button in the Configuration Manager Settings pane Scenario 2 Previously Tested Target This scenario occurs when you load a previously saved project file either during launch of the application or by selecting File Open Project from the menu bar Since the software has already saved the settings for the target bus in the project file no additional setup should be nece
186. ort Built in Self Test The BusPro I2C has a built in self test capability Logic is provided to loop back bus signals from the target connector This enables a basic go no go confidence testing of its operation It is launched from the Tools menu and requires that there be no external target attached Calibration Since the electrical characteristics of each individual BusPro 12C and host USB bus can be slightly different the BusPro I2C includes a calibration feature to optimize output when using it to supply pull up voltage to a target bus Calibration also adjusts the output voltage of the two discrete I O signals Product Overview 5 Host Computer Requirements I2C Exerciser is a 32 bit Microsoft Windows based application which controls the BusPro I2C The PC on which it will be installed should meet the following minimum requirements One available USB 2 0 Port Windows XP SP2 or Windows Vista 32 bit 3 2 GHz Pentium 4 Processor or equivalent 1 GB of RAM 600 MB of Free Hard Disk Space 2 GB or more for continuous logging of trace data CD ROM Drive 6 Product Overview Chapter 2 Installation Installing the 12C Exerciser software and the BusPro 12C hardware Prior to installation please verify that the following I2C Exerciser software and BusPro I2C hardware materials are present and free from visible damage or defects If anything appears to be missing or damaged please contact Corelis immediately The BusPro 1
187. p up asking if you wish to save the debugger command file Click on the No button Then enter the following commands into the empty Send area text box Discrete I O Test Address10 118 SetDiscrete 1 0 SetDiscrete 2 0 Al SetDiscrete 2 1 2B SetDiscrete 2 O SetDiscrete 1 1 9F SetDiscrete 2 1 E8 The first number that follows the SetDiscrete command specifies the line either I O 1 or I O 2 The second number specifies the state to which the signal will be set high on 1 or low on 0 This script will output a byte after setting each of the four possible combinations of signal states Notice that the Address10 command is used to specify that the messages will be sent to the 10 bit address 118 hex 32 Getting Started Set the script to execute twice by entering a 2 in the Run field Then click on the Send button to execute the script The contents of the Debugger window should appear as shown 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 address 118 and you can see changes in the I O lines by observing to the I O 1 and I O 2 columns MA Debugger Untitled Discrete I 0 Test Address10 118 SetDiscrete SetDiscrete Al SetDiscrete 2B SetDiscrete SetDiscrete oF SetDiscrete ES 1 2 2 2 1 2 Ro 00 pu
188. r Untitled JE J alii Eile Trace Tools Window Help SW hlo 88 88 2 xe vr Mo mo Line Marker Type Location Addr Hex AddrType R W NAK Error KHz Data Byte Hex Time us 1O 1 17 Address Target DAC 7 Bit Read 402 1843 1 18 Data Analyzer DAC 7 Bit Read 402 1A 1 884 1 19 Data Analyzer DAC 7 Bit Read 401 70 1909 1 20 Data Analyzer DAC 7 Bit Read 400 4F 1935 1 21 Data Analyzer DAC 7 Bit Read 400 45 1960 0 22 Data Analyzer DAC 7 Bit Read 400 72 1986 0 23 Data Analyzer DAC 7 Bit Read 400 49 2011 O 24 Data Analyzer DAC 7 Bit Read 400 4F 2 037 0 25 Data Analyzer DAC 7 Bit Read 400 4F 2062 0 26 Data Analyzer DAC 7 Bit Read 400 79 2088 0 27 Data Analyzer DAC 7 Bit Read 400 11 2 113 0 28 Data Analyzer DAC 7 Bit Read 400 4F 2438 0 29 Data Analyzer DAC 7 Bit Read 400 4F 2164 0 30 Data Analyzer DAC 7 Bit Read 400 27 2189 0 31 Data Analyzer DAC 7 Bit Read 400 9A 2215 0 32 Data Analyzer DAC 7 Bit Read 400 AF 2241 0 33 Data Analyzer DAC 7 Bit Read 400 4F 2267 0 34 Data Analyzer DAC 7 Bit Read 403 12 2 293 1 35 Address Analyzer ADC 7 Bit Read 107 2 476 1 36 Data Target ADC 7 Bit Read 104 1C 2 632 1 37 Data Target ADC 7 Bit Read 104 DONE 2 730 1 38 Address Target 54 7 Bit Write 402 3 441 1 39 Data Target 54 7 Bit Write 402 17 3469 1 40 Data Target 54 7 Bit Write 401 5D 3 494 1 v Scale 50 us div T Auto Fit Line 16 4 Interval A to B 9 422762 ms I ES i FIELD 4 ue p
189. r 2 The attached BusPro 20 requires calibration for optimal results when using the analyzer supplied voltage source setting his recommended that you run the automated calibration process at this time Ifyou wish to perform calibration later you can access the feature from the Tools menu Would you like to perform calibration now Figure 167 Calibration Prompt The calibration process can be skipped and the I2C Exerciser will not prompt again until the next time the application is launched however it is highly recommended that the calibration be performed Calibration time can fluctuate but it should complete within a minute or two and need only be performed once for a given BusPro 12C Note that calibration can also be started by choosing Tools Calibration from the I2C Exerciser menu bar When calibration begins a warning message is first displayed as a reminder to make sure that there is no target attached to the BusPro 12C This is shown in Figure 168 Calibration Please make sure that the BusPro l2C 12 disconnected from your target and click on OF to proceed Figure 168 Calibration Warning Configuration and Preferences 185 Upon clicking the OK button calibration will proceed through four steps analyzer supplied bus voltages discrete I O line output voltages SCL pull up resistors and SDA pull up resistors The progress of each step is reported in the Calibration Status window as shown in Figure 169 When a
190. r as it monitors the bus and improves noise immunity If a bus signal is currently considered high it must be sensed below this voltage before being switched to low by the analyzer Note that for slow rising busses high parasitic capacitance with Accelerated Rising Edge Drive off the rise time may limit the ability 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 since level crossings may occur in the nearly horizontal and noise sensitive final stage of signal rising Prototype extern Cc _ declspec dllexport char _cdecl I2C_SetBusLowVoltageThreshold char szVoltage Return Value NULL if I2C_InitHardware was never called otherwise a pointer to a string containing the actual resulting low threshold voltage closest available to requested Parameters szVoltage The string holding text of the new bus low threshold level as a floating point decimal value in volts Third Party Application Interface 207 I2C SetBusPullupResistance Overwrite configuration pull up resistors with provided value same for both bus signals Note that high pull up values may increase the signal rise times impacting the bus monitoring function and affecting clock rate performance This is also affected by Accelerated Rising Edge Drive and threshold values Prototype extern C _ declspec dl
191. r format is dependant on the current address mode setting FE mode or 7F mode Please refer to the Formats section of the Preferences Dialog description in the Configuration and Preferences chapter for more information AddrType This column indicates whether the address value in the Addr column is a 7 bit 10 bit or Hs mode address R W This column indicates the state of the read write bit that is conveyed during an address cycle From this state the direction of data flow is determined relative to the master R signifies that data is read from a target slave and W signifies that data is written to a target slave NAK This column indicates whether a transaction terminated with a not acknowledge NAK If this column entry is blank an acknowledge ACK occurred otherwise it contains the identifier NAK Error This column indicates whether an C protocol violation has been detected If so the column entry contains the identifier Error otherwise it is blank If an error is detected left clicking on the cell will display a popup that reveals the location in the transaction where the error occurred such as during the address cycle data cycle START or STOP etc Reviewing the associated timing field graph can help provide more details regarding the Error Note that an error can cause the analyzer to lose synchronization and all signal edge transitions that occur while the analyzer attempts to resynchroni
192. rType RW NAK Error KHz 1 0 1 VO 2 Data Byte Hex Time us l 1 Addre Target 54 7 Bit Write 402 1 1 0 01101 2 Data Target 54 7 Bit Write 402 1 1 1E 5C 34 FA 28 AA 6 Addre Analyzer 36 7 Bit Re 107 1 1 287 Monitor T Data Target 36 7 Bit Re 104 1 1 51 WARNING 443 9 Addre Target PLL 7 Bit Write 402 1 1 1 252 L 10 Data Target PLL 7 Bit Write 402 1 1 3E 1 280 1 E 11 Addre Target ADC 7 Bit Write NAK 401 1 1 1 464 COO DTA nar ADO ot mH 405 so 2E FA CHAN AA zi Addre Target 18 7 Bit Re 402 1 843 uu IC EII Programmer Addre Analyzer 7 Bit 2 476 36 Data Target ADC 7 Bit Re 104 1 1 1C DONE 2 632 38 Addre Target 54 7 Bit Write 402 1 1 DAA 39 Data Target 54 7 Bit Write 402 1 Pra 43 Addre Analyzer 36 7 Bit Re 107 1 Byte 1 2 3 4 5 6 7 8 9 10 46 Addre Target 18 7 Bit Re 402 1 0 PA 47 Data Analyzer 18 7 Bit Re 402 1 J eh Si a bi chi oo 51 Addre Analyzer ADC 7 Bit Re 107 1 52 Data Target ADC 7 Bit Re 104 1 54 Addre Target PLL 7 Bit Write 402 1 55 Data Target PLL 7 Bit Write 402 1 56 Addre Target ADC 7 Bit Write 401 1 m J 1 Corelis Ready DEMO AddiFormat FE Trace Off Bus SCL SDA 10 1 10 2 JS Figure 44 Monitor Window Trace List in Compact 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 co
193. re 136 Figure 137 Figure 138 Figure 139 Figure 140 Figure 141 Figure 142 Figure 143 Figure 144 Figure 145 Figure 146 Figure 147 Figure 148 Figure 149 Figure 150 Figure 151 Figure 152 Figure 153 Figure 154 Figure 155 Figure 156 Figure 157 Figure 158 MOUTOLU SINAIS inia aa od 102 M nitor Bufer ODUONS isinai na a aa i aa a aaa ai 103 MONTO VV MOAOW ariran aaa a T A A cad 105 MONAKO Trace EISUNG spin iia 106 MONAKO TIMIN Felisa in 109 A A A A A te Biaceutatahil 112 PILOS AAA A e 113 Filter Definition Dialog similar to Edit occooocccocnccccncoccnccncnconcnnnnnnonononnnononcnnnanonnnnnononos 114 SYMDO S PAS e o o o o e 115 Symbol Definiton Dial ocre cias 116 LS VA PAN Sane ee eee eee e eee eee eee ae ae cee eee eee eee eet 117 SMBUS Dec der File Dialog ta titi Em 118 MONTO COI SPAN e o cds 119 MONTO DUONG ar al ta A ania cee tia esi pde 121 FOMA Ranes dia io S 122 IZC Exerciser Montor Window Layout iasanen aa a 123 MONKOK FIE MEMU isaac dada 124 MONO TAC Melissa daa 125 Trace ExXecute Subment oia 126 RUNAS O A oa e ele 127 Trace So TON A o ai 128 Face View SUDIMGMU ajillo ooo 129 Monitor Find Dialog Regula aiii e cia 130 VIOnItOr Find Dialog Compacta sardina oa eed iether detec 130 race Layout Dialog sia iia aaa 132 FOOIS Menta ala iia load 133 NOOR VV INGOW MENU o 134 Monto CIO MENU cia ene E a E ee Sunue E A E 134 MOntor POOL IB AM anrai e ca 135 IISDUGGER VV IMG
194. return quickly up to the timeout interval depending on the time it takes to send and confirm completion Use the I2C_GetLastStatus function following this call to determine if the address cycle got NAK ed Prototype extern C _ declspec dllexport int _cdecl I2C_SendData int nAddress int blOB1tAdaress unsigned char pSendData unsigned char pReceiveData int nDataCount int bUseStopBit unsigned long ulParam Return Value Number of bytes successfully sent O if error occurred 1 if address was NAK d 2 if a timeout occurred Call 12C_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 following parameter b10BitAddress If one the above address is a 10 bit value If zero it is a 7 bit address pSendData A pointer to a block of memory where the send data bytes are provided pReceiveData A pointer to a block of memory where the successfully sent data bytes are returned This is an optional parameter which can be NULL nDataCount The number of bytes contained in the above block of memory bUseStopBit If one a stop cycle terminates the message after the last data byte sent otherwise no stop cycle is issued the analyzer continues to control the bus with SCL low ready to perform a coming Repeat Start on the next access ulParam Optional parameter Set this to 0
195. river software You should check your manufacturer s website for updated driver software for your device Install this driver software anyway Only install driver software obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or steal information wv See details Figure 10 Windows Vista Logo Test Warning Pop up Window If you are running Windows XP the software installation may be interrupted by the operating system by displaying warning pop up windows as shown in Figure 11 If this occurs click on the Continue Anyway button to safely ignore the warnings and proceed with the installation Software Installation A The software you are installing has not passed Windows Logo testing to verity its compatibility with Windows lt P Tell me why this testing ls important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the software vendor for software that has passed Windows Logo testing STOP Installation Figure 11 Windows XP Logo Test Warning Pop up Window 14 Installation The warning pop up windows may be hidden behind the installation window If this happens the installation progress bar will stop updating and the installation may appear to be hung Bring the warning pop up windows to th
196. rn of merchandise RMAs can only originate from CORELIS If authorization is granted an RMA number will be forwarded to the customer either directly or through its authorized sales representative CONTACT INFORMATION The latest news tips and updates on the Corelis bus analyzer hardware and software products can be found in the Corelis user forums The forums are provided as a free service to our existing customers but an individual user name and password is required To request an account please visit forums corelis com register php For sales inquiries please contact sales corelis com For any support related questions please enter a support request at www corelis com support or email support corelis com For more information about other products and services that Corelis offers please visit www corelis com II Preface Table of Contents Chapter 1 Product OM as 1 Introduction to I7C and SMBUS sccssessscessscesescssvssceseesscevecsecevaccesaesesaesecevacsesavaesesaveecevassesavasensassesanene 1 Introduction to the B SPro 120 M iuiuo lidia 2 SONWANE TOS ini ios 3 Hardware Features es 4 HostGomputer Requirements riisuda aaa iia 6 Ghapter 2 InstallallON usina 7 Installing the I2C Exerciser Application SoftWare oooocccccnnncnccccconcnnnocccnncnnnonnennnnnncrrnnnnnnnerennnancrrennananes 8 BUSPFO IZC Hardware Installati n ds 17 Chapter 3 Getting State cai 23 OVVIE W aa E E 23 Tutorlal Using Demo Mode csiis sanen a aa aSa
197. rompted to save the configuration Save Configuration Saves the Programmer configuration to a PCF text file If you are not File already working with an open configuration file you will be prompted for a filename Dump Data to a File Stores data read from a device to a file EXO HEX BIN TXT e ee Provides quick access to the online help topics Table 12 Programmer Tool Bar Functions Bus Traffic Monitor 161 162 Bus Traffic Monitor Chapter 8 Configuration and Preferences Configuration Manager and Preferences dialogs overview and component descriptions Configuration Manager The Configuration Manager allows the user to change the setting for the various tools provided by the I2C Exerciser in one easily accessible location The user can access certain Configurations Manager tabs directly from some of the tools such as the Filters 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 The Configuration Manager is used to perform the following tasks e Configuring settings o Setting the I C bus electrical features such as voltage source and bus signal threshold o Setting the bus drive features such as clock rate o Configuring external discrete signals o Setting the amount of traffic to monitor Associating files with the current project Setting triggers Setting filters
198. rsor A is identified by its green background and Cursor B is identified by its magenta background by default These colors can be configured on the Monitor Colors tab of the Tools Preferences menu entry If the cursors are not in the currently visible range of timing information the Field row will contain a small green Cursor A or magenta Cursor B triangle on either the extreme left or right side of the row to indicate the cursor is located before or 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 visible range the cursors are represented by small colored boxes with a vertical line that extends below them through the timing display Similarly a trigger is represented by a red vertical line and a small red box just above the Field row when in the visible range and represented by a red triangle above the Field row when out of the visible range Right click in the trace list area of the Monitor window and select the Go to Cursor A pop up menu entry This will cause the trace list and timing display to reposition to the Cursor A line as shown in Figure 50 The Cursor A line can be seen on line 16 in the trace list Both the trace list line and vertical marker in the timing display for Cursor A are colored green to help distinguish them from other display elements 44 QC Exerciser Untitled Monito
199. s SDA and SCL to support sensing or stimulation of a connected target or to support synchronization with external instruments They can be individually steered as outward or inward signals and mapped to the SMB connectors AT1 and AT2 on the BusPro I2C The Input Output Signals group of settings shown in Figure 104 allow configuration of these discrete I O lines Input Output Signals High Level Function Figure 104 Input Output Signals High Level Specifies the TTL high voltage level of the I O signals When sensing inputs the BusPro I2C will also use this setting to automatically determine commensurate 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 or an output open drain driver Drive SMB AT1 If I O 1 discrete signal is set as an output selecting this option will map the state of the I O 1 line to the AT1 SMB connector on the BusPro I2C 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 output TTL driver or an output open drain driver Source If I O 2 discrete signal is set as an input this setting specifies the source of the signal Selecting Target routes it through the Serial Bus RJ 45 connector on the BusPro 2C Selecting SMB AT2 routes it from the AT2 SMB connector on
200. s commands to load and save projects and programmer configuration files as well as a command to save a dump of the data from a device The commands related the loading and saving of projects are identical to those described earlier for the Monitor Menu Bar Mew Project Open Project O Y o Save Project Save Project 45 Mew Programmer Configuration File Chrl h 2 Open Programmer Configuration File Ctro H Save Programmer Configuration File Ctrl 5 Save Programmer Configuration File 4s A Dump Data Exit Figure 147 Programmer File Menu New Programmer Configuration File Initializes the Programmer configuration to its 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 from file If the active Programmer configuration contains unsaved settings you will be prompted to save the configuration Save Programmer Configuration File Saves the Programmer configuration to a PCF text file If you are not already working with an open configuration file you will be prompted for a filename Save Programmer Configuration File As Same as Save above except the user is prompted for a new file name to avoid overwriting the previously loaded file Dump Data Stores the data read from a device to a file EXO HEX BIN TXT Recent Files Provi
201. s involved in the transaction For address cycle transactions Analyzer signifies that the analyzer is acting as a master through the Debugger or Emulator for example while Target signifies that a master on the target I C bus is driving For data cycle transactions Analyzer signifies that the addressed slave is in fact being emulated by the analyzer while Target signifies that a live target slave device is involved Addr This column indicates the I C bus address of the target slave device for the transaction The address is either a bit 10 bit or Hs mode type depending on which is indicated in the AddrType column Various numerical formats are available for displaying the address value including hex decimal and binary The current display format is shown in parenthesis in the column heading and right clicking on the column heading will 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 numeric value refer to the Symbols section later in this chapter When using SMBus Mode the address value of each transaction is decoded into the name of the SMBus device if there is a decoding file associated with the address value refer to the SMBus section of this chapter for more information Note that 7 bit I C addresses are represented numerically as 8 bit values and thei
202. s marker identifies any number of user designated lines of interest Lines in the trace listing can be tagged by double clicking on them making the lines easy to locate both visually and using the Go to Tagged Row function available from the Monitor s Tool Bar or Trace menu Double clicking on a line that is already tagged will clear this marker Bus Traffic Monitor Type This column contains an identifier that indicates one of the two major classes of transactions e Address The I C bus transaction cycle during which a START or repeated START condition leads to the shifting of a transfer address for a target slave device and write or read qualifier onto the bus This action precedes subsequent data byte transfers to the indicated target slave and that data transfer is terminated by either a STOP or repeated START condition The transfer address is shown in the Addr column and the read write qualifier in the R W column e Data The I C bus transaction cycle during which data bytes are conveyed to or from a target slave device The address of the target slave is determined by the previous address cycle and is shown in the Addr column The read write qualifier indicated in the R W column designates whether the data bytes are being written to or read from the target slave For data cycle transactions the data byte s conveyed will be present in the Data Byte column Location This column indicates whether the BusPro I2C analyzer i
203. s must be confirmed Other addresses already associated with a device will not be allowed to be re associated until they are removed from the association list SMBus Decoder File Choose a file to load then cick on Update to load its contents Figure 115 SMBus Decoder File Dialog SMBus Timeout The SMBus Timeout checkbox is used to enable the detection of a timeout condition as defined by the SMBus specification When this setting is checked an SMBus Timeout will be reported as an error line in the Monitor trace listing any time that the clock signal SCL is detected to be low for 25 milliseconds or longer during capturing of bus traffic If a timeout occurs while the BusPro 12C is driving the bus it will abandon all transactions and generate a STOP condition to return the bus to the idle state 118 Bus Traffic Monitor Monitor Preferences Preferences relevant to the Monitor Window can be selected by opening the Preferences dialog from the Tools menu The Preferences dialog can be used to specify the monitor colors and other monitor options as well as address format 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 color pattern color scheme between line groupings to be changed The options for the color scheme are no color alternating background color per row or alternating background color per messages default The col
204. s signal edge transitions over time Refer to the Timing Field section of this chapter Table 4 Monitor Window Layout Bus Traffic Monitor 123 Monitor Menu Bar When the Monitor window is active the Menu Bar provides accesses to relevant functions including File Trace Tools Windows and Help A description of each menu follows Monitor File Menu The File menu shown in Figure 120 includes commands to load and save projects and trace data The entries on this menu are described below New Project Open Project Save Project Save Project As Open Trace Data Ctri O Save Trace Data Ctrl 5 Export Trace Data Figure 120 Monitor File Menu New Project Creates a new empty project and initializes all settings to their defaults If an existing unsaved project is active you will be prompted to save it Open Project Opens a previously saved project restoring all settings window positions and data to their saved values If an existing unsaved project is active you will be prompted 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 performs the same function as the Save Project command except that it always prompts you for a new filename before saving Open Trace Data Opens and loads a previously saved trace buffer in the Monitor Trace l
205. se pointer over a data column entry will bring up a tooltip containing the entire SMBus message Also left clicking the column entry will display the entire message in a separate scrollable dialog Right clicking on the column heading will display a popup menu that allows selection or de selection of Compact mode SMBus mode or the default Normal mode Time This column indicates the timestamp that is assigned to the beginning time of each transaction Various time display units are supported including nanoseconds microseconds milliseconds and seconds The current time unit is shown in parenthesis in the column heading and right clicking on the column heading will display a popup menu that allows selection of the time unit Timestamps can be displayed in relative mode the time between transactions or absolute mode the accumulative time starting from zero Time zero can also be selected to start at the first transaction or at the Trigger transaction with prior transactions having negative time Refer to the Monitor Options section of the Preferences Dialog description in the Configuration and Preferences chapter 108 Bus Traffic Monitor Timing Field The timing field located in the bottom portion of the Monitor window provides a graphical image of bus signal edge transitions over time This information is similar to that acquired by logic analyzers showing the state progression of clock SCL and data SDA signals Figure 10
206. ser software before installing the BusPro I2C controller Drivers for the BusPro I2C controller are installed with the I2C Exerciser software and not installing the software and drivers first may result in improper unit 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 2 0 compatible cable from the BusPro I2C USB 2 0 connector to any available USB 2 0 connector on your PC 3 If you are running Windows XP the Found New Hardware Wizard dialog box should automatically appear as shown in Figure 14 Found Mew Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on pour computer on the hardware installation CO or on the Windows Update eb site with pour permission Read our privacy policy Can Windows connect to Windows Update to search for sofware es this time only Yes now and every time connect a device Click Hest to continue Figure 14 Found New Hardware Wizard Welcome Screen Windows XP 4 Click on No not this time and click on the Next button Installation 17 5 The dialog shown in Figure 15 will pop up Click on Install the software automatically 18 Recommended and click on the Next button Found New Hardware Wizard This wizard helps pon install software for Corel
207. sponds to the location of the Link Edge Marker in the timing waveform whether in view or not An arbitrary number may be entered here 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 e Line buttons These left and right arrow buttons assign the Link Edge Marker to the previous or following transaction respectively The graph will center on this new location Link Edge Marker This vertical line in the waveform graph indicates the beginning of a particular transaction It corresponds to the trace listing line that is identified in the Line text box described above Interval A to B This indicates the time difference between the position of Cursor A and Cursor B SDA SCL waveforms These waveforms show the graphical time sequence of signal states as they transition from low to high Cross hairs indicator As the mouse cursor is positioned over the timing graph the time at its position and the nearest corresponding trace listing line number to that time are displayed next to the cross hairs indicator Left clicking holding and dragging the cross hairs will drag the timing display in the direction of the mouse movement Performing the same action with the CTRL key pressed will show the relative time displacement dragged out Cursor A B These are two vertical line markers which can be placed anywhere in the timi
208. ssary 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 of Scenario 1 above Depending on whether the program is already set up you will either perform the necessary setup or do nothing at all Case 1 Program not set up When you first try to interact with the bus a reference voltage will not be detected and you will be prompted to change to Analyzer Supplied Select Yes and follow the steps in Case 2 of Scenario 1 described above With no target attached the BusPro I2C will effectively talk to itself Case 2 Program already set up If the program is already set up such as from a loaded project or from prior usage you should not need to do anything 98 Connecting to a Target Setting Details All of the BusPro 12C settings that are of principal concern when connecting to a target can be found in the Settings pane of the Configuration Manager shown in Figure 101 This can be opened by pressing lt F8 gt 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 sections For details on the other panes of the Configuration Manager as well as the Preferences dialog refer to the Configuration and Preferences chapter Configuration Manager Bus Signal Thresholds 9 Analyzer Suppl
209. st of hex values Table 9 describes the elements of the Programmer window Programmer Untitled Device Selection Manufacturer Generic 12C EEPROM 7 Type 29000 16 Byte 12C EEPROM I2C Device Address AO lw Address Type Data File Figure 140 Programmer Window 154 Bus Traffic Monitor Manufacturer combo box Specifies the manufacturer of the C EEPROM device to be programmed Most devices can be programmed as a Generic manufacturer device if they are compatible with the ATMEL 24xxXXX series of C EEPROM devices Type combo box Specifies the type of the EEPROM device to program Various selections are available for supported devices from each of the manufactures in the Manufacturer combo box The types that are available when using the Generic manufacturer support all of the ATMEL 24xxXXX series of I2C EEPROM devices I2C Device Address Specifies the IC device address of the EEPROM Initially this is set to combo box the manufacturer s specified default address If the device is configured 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 the 7 address bits left justified and 7F mode makes the 7 address bits right justified The example in the figure is in FE format Address Type combo box Specifies the size of the address 7 bit or 10 bit At this time the on
210. t Any to specify don t care NAK Indicates that a transaction with either an acknowledge ACK or not acknowledge NAK is being searched for Select Any to specify don t 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 specific value of O or 1 during a transaction Select Any to specify don t care I O 2 Indicates that discrete I O line 1 should have a specific value of O or 1 during a transaction Select Any to specify don t care Value Specifies the data byte value of interest Select Any to specify don t care Mask Specifies a data byte mask which is applied to all data bytes before comparing them to the configured data value of interest This allows the user to isolate individual bits of interest Select FF to always compare all eight bits of each data value Byte Position Allows the user to select a specific data byte position within each message to do the data value comparison on Select Any to specify don t care Width Specifies the number of data bytes contained in the search pattern The default value is one byte Bus Traffic Monitor 131 Trace Layout The Trace Layout dialog shown in Figure 128 controls which columns will be displayed in the trace listing The dialog also allows you to restore the factory de
211. t nDiscreteNumber int nlevel int nSensedLevel Return Value 0 if I2C_InitHardware was never called 1 if illegal discrete number 2 if illegal discrete level 3 if selected discrete not configured as an output 1 if successful Parameters nDiscreteNumber The index selecting the discrete to drive either 1 or 2 nLevel The binary drive level for the discrete 0 or 1 nSensedLevel If not NULL pointer to sensed value of the output after setting it Third Party Application Interface 211 2C_SetDiscreteVo tage Overwrite configuration TTL voltage level for the high state of the discrete I O signals Prototype extern C _ 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 closest available to requested Parameters szVoltage The string holding text of the new TTL high voltage level of the discrete I O as a floating point decimal value in volts 212 Third Party Application Interface I2C SetFEAddrFormat Defines the mode of byte representation used throughout the set of DLL commands for 7 bit addresses That is the 7 bits of the protocol address is always given in a byte but these bits can be placed 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 ad
212. ta Analyzer 18 7 Bit Read 401 1 1 63 4761 49 Data Analyzer 18 7 Bit Read 400 1 1 52 4 786 50 Data Analyzer 18 7 Bit Read 403 1 1 16 4811 51 Address Analyzer ADC 7 Bit Read 107 1 1 4 995 52 Data Target ADC 7 Bit Read 104 1 1 1F 5 151 ca Mata Tarnnt 7 Mis Nand ana miiow cnan W Bus Traffic Monitor Figure 106 Monitor Window 105 Trace Listing The trace listing located in the top portion of the Monitor window provides the fundamental presentation of traffic acquired from the target C bus Each row is considered to represent a transaction which describes a complete read write address or data byte sequence that is conveyed over the bus All of the transaction details are included as columns in the listing Figure 107 shows the Monitor window trace listing Line Marker Type Location Addr Hex AddrType R W NAK Error KHz 1 0 1 I O 2 Data Byte Hex Time us a 31 Data Analyzer 18 7 Bit Read 400 0 1 9A 2 215 32 Data Analyzer 18 7 Bit Read 400 0 1 AF 2 241 33 Data Analyzer 18 7 Bit Read 400 0 1 4F 2 267 Data Analyzer 18 7 Bit Read 403 2 293 CO CTE TI ECC TR Data Target ADC 7 Bit Read 104 1 1 2 632 37 Data Target ADC 7 Bit Read 104 1 1 DONE 2 730 38 Address Target 54 7 Bit Write 402 1 1 3 441 3 39 Data Target 54 7 Bit Write 402 1 1 17 3 469 i 40 Data Target 54 7 Bit Write 401 1 1 5D 3 494 41 Data Target 54 7 Bit Write 400 1 1 35 3 520 42 Data Target 54 7 Bit Write 403 1 1 OF 3 545 43 Ad
213. ta 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 Yes button and the search will commence Find Transfer Types any e nx lary e Any ETE ade day e O Data Byte meo 12 TE patton AY gt Tag FF e Width asye v Load From Selected Monitor Trace Line Defaults Figure 59 Find a Data Value of 72 Tag All ES Currently tagged rows willbe cleared Do vou want to proceed a 2 Figure 60 Clear Tagged Rows Prompt Getting Started 59 When the search is complete the pop up window in Figure 61 will appear to notify you how many 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 value 72 Tag All i Found 2 matched transactions Figure 61 Matched Transactions Prompt e 5 DC Exerciser Untitled Monitor Untitled fo l6 a File Trace Tools Window Help Dx S Al hll o 8 8 ee X vy ts o Line Marker Type Location Addr Hex AddrType R W NAK Error KHz Data Byte Hex Time us VO 1 a I 22 Tagged Data Analyzer DAC 7 Bit Read 400 E2 y 01101 23 Data Analyzer DAC 7 Bit Read 400 49 i
214. ta Target ADC 7 Bit Read SDA Signal Ss Beginning Marker v 7 101 Data Target ADC 7 Bit Read 102 Address Target PLL 7 Bit Write sci signal gt Jiw 103 Data Target PLL 7 Bit Write 104 Address Target ADC 7 Bit Write Scale 20 us div 7 Auto Fit Line 100 p Corelis Ready DEMO A ddFormat FE Trace Off Bus SCL SDA 140 1 1 0 2 Figure 65 Monitor Colors Preferences Screen 62 Getting Started Since Cursor A is visible in the trace list we will change its background color to observe how these color configuration 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 select the color White from the pop up color picker Preferences KE Monitor Colors Monitor Options Debugger Options Programmer Options Formats Trigger Other Text Color Scheme Background E Alternate color per message ha Cursor Text Text 1 i Background E Background 1 i Automatic Cursor B Text O E MAMA Y Background BR EER ea round 2 ci a Be A E Blue SEO Timing View m SDA Signal More Colors ing Marker Ry SCL Signa Ji Use Defaults Close Figure 66 Monitor Colors Preferences Screen Changing Cursor A Background Color Getting Started 63 After making these color changes observe that the Cursor A li
215. ta Target Microchi 7 Bit Write 98 1 1 CMD CONFIG 132 22 Address Analyzer Microchi 7 Bit Read 99 1 4 17 864 23 Data Taroet_ Microchi 7 Bit Read NAK 96 1 1 RESP STANDB 17 864 x 4 mW p Figure 94 SMBus Decoded Data Getting Started If the text of the decoded data does not fit within the width of the Data Byte column positioning the mouse pointer over the entry will cause a tooltip to display with the entire decoded SMBus message Try this by placing your mouse pointer over the line 18 Data Byte column entry for several seconds as shown in Figure 95 below 14 Data Target Microchi 7 Bit Write or 1 1 CMD CONFIG 6 696 217 15 Address Analyzer Microchi Bit Read 98 1 1 224 145 16 Data Target Microchi 7 Bit Read NAK or 1 1 RESP DATAR 7 224 245 17 Address Analyzer Microchi 7 Bit Write 98 1 1 12 824 18 Data Target Microchi 7 Bit Write gg 1 1 CMD CONFIG STANDBY 0x80 20 Address Analyzer Microchi Bit Write 99 1 1 17 328 21 Data Target Microchi 7 Bit Write 96 1 1 CMD CONFIG 17 328 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 the window will pop up as shown in Figure 96 below SMBus Data on line 18 COMMAND CONFIG STANDBY 0x80 Figure 96 SMBus Data Window Click on the Close button to c
216. tamp Display Absolute Relative to last Other Options 44 Prompt for saving trace data prior to CLEAR or RUN 4 Lock Timing with Trace C Lock to Top Listing Line Lock to Selected Listing Line START Hold Time Checking Minimum Hold Time 0 16us w Close Figure 160 Monitor Options Pane Line Column sets the numbering of entries in the trace list to start from one at the first entry default or start from zero at the trigger 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 controls how timestamps are determined for trace list entries When set to Absolute the first trace list entry is set to time zero and each entry s timestamp represents the length of time since the first entry When set to Relative to last each trace list entry s timestamp represents the length of time since the previous entry Configuration and Preferences Other Options The first preference sets whether or not a prompt to save data pops up whenever the trace list will be cleared The second preference allows the Timing display to be locked to the trace screen on the first line rather than aligning with the selected line START Hold Time Checking sets the minimum START hold time value which will be checked against every transaction Errors will be flagged for the
217. tatus and establishes default initial conditions Reloads all previously stored setup parameters from a project file Pulses one of the discrete I O signals low for a given period of time Conveys a message from the I C bus for a given address 12C_SendData Conveys a message to the IC bus for a given address 12C_SendDataPEC Conveys a message to the I C bus for a given address with a SMBus Packet Error Checking PEC byte Reads the level of one of the discrete I O signals 12C_SetBusDriveVoltage Overwrites configuration bus reference voltage with provided value I2C_SetBusHighVoltageThreshold Overwrites configuration receiver high threshold voltage with provided value 12C_SetBusLowVoltageThreshold Overwrites configuration receiver low threshold voltage with provided value 12C_SetBusPullupResistance Overwrites configuration pull up resistor value for both bus signals with provided value 12C_SetBusVoltageSource Selects the bus reference voltage source as either provided by the target or by the analyzer programmable level 12C_SetClockRate Overwrites configuration SCL rate with provided value when the analyzer is driving the bus Sets the output level of one of the discrete I O signals 12C_SetDiscreteVoltage Overwrite configuration TTL voltage level for the high state of the discrete I O signals 12C_SetFEAddrFormat Defines the mode of byte representation used throughout the set of DLL commands for 7 bit addresses Third P
218. te transfer rates using minimal board resources With System Management Bus for example a device can provide manufacturer information tell the system what its model part number is save its state for a Suspend event report different types of errors accept control parameters and return its status The SMBus may share the same host device and physical bus with standard ge components Intel originally conceived the SMBus as the communication bus to accommodate Smart Batteries and other system and power management components Introduction to the BusPro 12C The Corelis BusPro 12C is an I C bus SMBus analyzer exerciser programmer and tester This advanced instrument is used to e Monitor and log IC bus traffic in real time e Generate traffic to exercise the bus and communicate with its slave components e Program and read in system EEPROMs Because of its rich feature set and ease of use the BusPro I2C can be used in a variety of applications such as product development troubleshooting validation system integration production and field testing The BusPro I2C pod shown in Figure 2 connects to the PC via a high speed USB 2 0 port and can operate either with the provided I2C Exerciser software application or using the included API of C C library function calls from third party software applications such as National Instruments LabWindows CVI and LabView or custom user developed software Figure 2 Illustration of the BusPro I
219. te value with the 7 address bits left justified in the byte The 7F format shows the 7 address bits right justified in the byte Preferences Monitor Colors Monitor Options Debu 7 bit Hex Address Format FE mode 7 address bits left justified in byte A6 40 0 default JF mode 7 address bits right justified in byte 0 A6 A0 Figure 163 Formats Pane Configuration and Preferences 182 Using Project Files When the I2C Exerciser saves and loads project files it saves and loads all of your customized settings and preferences with these files It is recommended that you become familiar with this feature and make use of it as much as possible This functionality allows you to save an environment that you have set up for a particular target bus debugging session or test routine and then load up that environment whenever needed Using this feature you can not only save and retrieve the bus interface settings but also preserve the look and feel of the project by storing options such as color schemes data formats and window sizes layouts and positions This can provide a great way to let multiple users have their own separate project setting defaults Following is a list of settings that are saved in the project file e All settings from the Configuration Manager including o Trigger o Filters o Symbols o SMBus decoding file list o Bus interface settings o Project sub file list e All settings from t
220. the I2C Exerciser is already installed on your system skip this chapter and proceed to chapters 3 and 4 To install the software Close any Windows applications that are currently running Disable any memory resident virus checking software The software may interfere with the installation process Insert the Corelis 12C Bus Analyzer Exerciser Programmer and Tester CD ROM into your CD drive The installation program should start automatically and display the Welcome to the Installation Wizard screen as shown in Figure 3 S 12 Exerciser InstallAware Wizard ell es ire Welcome to the Installation Wizard for 12C Exerciser The Installation Wizard will install 12 Exerciser on your computer WARNING This program is protected by copyright law and international treaties To continue dick Next Figure 3 I2C Exerciser Installation Wizard g Installation If the installation program does not automatically begin go to the Windows Start Menu and select Start then 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 Type the name of a program folder document or Internet resource and Windows will open it for you D setup exe Cancel Figure 4 Windows Run Dialog Click on the Next button The License Agreement screen shown in Figure 5 will be displayed ES 12C Exerciser I
221. the user to repeatedly search for the current transaction criteria while reducing screen clutter The Load From Selected Monitor Trace Line button facilitates quick parameter entry by reading the specifications from the currently selected trace line The Find operation can either hop to the next found line or tag all buffer lines meeting the setup conditions Find Tag All Find Next Transfer Type MAK A teg Aw 7 Error AddrType Aay F I O 1 RM 110 2 Data Byte alu as Tel a E wok Te wh aone Load From Selected Monitor Trace Line Defaults Figure 126 Monitor Find Dialog Regular Find Figure 127 Monitor Find Dialog Compact 130 Bus Traffic Monitor Each of the Find window search criteria fields is described below Type Indicates that either an address or data transaction is being searched for Select Any to specify don t care Addr Hex Specifies the address of interest Select Any to specify don t care If a 7 bit address is being entered the hex address value should be entered properly according to the current FE mode or 7F mode setting Addr Type Indicates that either a 7 bit 10 bit or Hs mode address type transaction is being searched for Select Any to specify don t care Note that if there is an address in the Addr field this field may not be Any R W Indicates that either a read or write transaction is being searched for Selec
222. ther similar command is encountered Do EG 5 FOP 2B OL Y Hast Causes the last byte prior to the command to be designated STOP Stop as the end of a message and forces the Stop cycle to conclude it regardless of the No Stop checkbox setting Any Pa ee immediately following bytes start a new message Table 6 Debugger Script Keywords 144 Interactive Debugger Interactive Debugger 145 Example Debugger Script Command Text File Below is an example debugger script that might be used to load an EEPROM with some values in part of its first page of memory and wiggle one of the discrete I O signals while processing ADDRESS MODE FE fill 24AA16 eeprom page 0 address AO page 0 00 address ptr data bytes 00 01 0208 04 05 06 07 08 09 OA OB OC OD OE OF wait for write to complete iP 22 Be 5 MSE Min PAUSE 30 ms address AO new wrt 10 address ptr data bytes TQ Geely deals 1 4 Lor G e Lo 19 LA Le LE 1D LE LE PAUSE 30 ms SETDISCRETE 1 0 lower I O 1 address AO new wrt 20 address ptr data bytes 202 22 23 24 29 2627 Zo MEA AB 2G AD 2E 2F PAUSE 30 ms address AO new wrt 30 address ptr data bytes 30 31 82 538 OF 35 26 3a 38 39 SA SB 3C 3D SE SFE PAUSE 30 ms SETDISCRETE 1 1 raise I O 1 address AO new wrt 40 address ptr data bytes 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 146 Interactive Debugger
223. tion Dialog For 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 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 symbolic text string can be entered in place of a numeric value when using the Find dialog or specifying a slave device address in the Debugger or debugger command script file Thus for example a slave device can be referenced by a name like PLL instead of a numeric bus address like 1E 116 Bus Traffic Monitor SMBus This dialog shown in Figure 114 shows a list of associations between bus addresses 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 device if necessary For other entries each address may only be associated with one device Configuration Manager Enable SMBus Timeout Device Name Addr File SMBus Host SMBus Alert Response po Default SMBus Device Addr Smart Battery C Program FilesiW2C ExerciseriDec smart Battery Charger I C Program Files Exerciser llec smart Battery System Manager 14 CiProgram Filesil2 C ExerciserDec Figure 114 SMBus Pa
224. tion Manager Invokes the Configuration Manager window which allows the user to configure numerous system wide settings including triggers filters symbols SMBus hardware options and project files Preferences Invokes the Preferences dialog which allows the user to alter configurable settings of each individual tool window Bus Traffic Monitor 133 Monitor Window Menu The Window menu shown in Figure 130 manages the windows of I2C Exerciser Arrange Icons Shortcut Bar Close All Windows 1 Monitor Untitled 2 Debugger Untitled Figure 130 Monitor Window Menu Arrange Icons Arranges all minimized windows in order at the bottom of the main window Shortcut Bar Enables whether or not the Shortcut Bar is displayed By default the Shortcut Bar docks on the left side of the application window Close All Windows Provides a fast way to close all application windows The lower portion 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 131 accesses the on line help features Help Topics F About 12C Exerciser Figure 131 Monitor Help Menu Help Topics Invokes the I2C Exerciser online help system and displays a list of available help topics About I2C Exerciser Provides the program version number and copyright information 134 Bus Traffic Monitor
225. tion supplied data This pointer is passed to the callback function along with the transaction data and timestamp information Transaction Data Format Address Transaction Type TxType 3 0 Write Tx 10 bit Addr N O NG e H Data Transaction Type TxType 3 0 0x2 214 Third Party Application Interface Error Transaction Type TxType 3 0 0 3PO02115H T 9POQ11H Z popIIg 3PO0Q1153H MES hae ae B ME ES MES MES E EN Ea Ea ga Eza a Ka Ea Da a ae ES 5 E ES ae ES aS ES 215 Third Party Application Interface I2C SetRisingEdgeDriveMode Overwrite configuration rising edge drive setting with provided selection When enabled and driving 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 _ declspec dllexport int _cdecl I2C_SetRisingEdgeDriveMode int nMode Return Value 0 if I2C InitHardware was never called otherwise 1 Parameters nMode O is off 1 is on 216 Third Party Application Interface I2C_ShutdownHardware Forces an orderly shutdown of the BusPro I2C analyzer and its USB disconnection This function must be invoked prior to any new I2C_InitHardware call for trouble free operation Otherwise the analyzer must be unplugged and re plugged into
226. ty Application Interface Dynamic Link Library DLL The Dynamic Link Library is comprised of a set of routines which can be invoked in a standard fashion by a user s program Table 14 lists the primary files necessary for using the DLL I2C_DLL DLL The encapsulated library of I C routines I2C_ DLL LIB The import library I2C_ DLL API H C include file containing the required DLL function prototypes Table 14 DLL Components These files are provided in the I2C_DLL subfolder of the 12C Exerciser installation folder Additionally all of the BIN and DLL files from the I2C Exerciser installation folder are required in order to support the I2C_DLL DLL functions As a design reference example of the usage of these DLL functions a GUI test program with source code is also provided The I2C DLL Test subfolder contains the various Microsoft Visual C source code and build files for the test program The executable I2C DLL Test EXE has been precompiled and is also present with the source files Note that the executable file will have to be copied to a location containing all of the above mentioned BIN and DLL files which are required in order to run Table 15 lists and describes the functions provided by the I2C DLL The following pages give more detailed information about each function Third Party Application Interface 189 General Calling Sequence Certain DLL function calls are required to properly initiate setup operate and shut do
227. uccessfully installed Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Corelis BusPro l C Firmware Loader 9100 Click Finish to close the wizard Cancel Figure 17 Found New Hardware Wizard Installation Complete Windows XP 20 Installation 8 Click on the Finish button to close the Hardware Wizard dialog box 9 Another Found New Hardware Wizard should appear again Repeat steps 3 to 8 10 The installation of the driver is now complete and Windows will proceed to detect and configure the BusPro I2C Verify that the BusPro I2C was correctly detected by checking for its entry in the Windows Device Manager To open the Device Manager right click on the My Computer icon on the desktop and then select Properties from the pop up menu Click on the Hardware tab and then click on the Device Manager button An entry named Corelis BusPro I2C 9101 should be listed in the Universal Serial Bus controllers section as shown in Figure 18 Es Device Manager E E File Action View Help He P q Computer Disk drives E Display adapters DYDICD ROM drives 42 Floppy disk controllers Human Interface Devices Keyboards Mice and other pointing devices Monitors 88 Network adapters Ports COM amp LPT e Processors e SCSI and RAID controllers 8 Sound video and game controllers System devices
228. ude e EXO e BIN e MCS e HEX In addition a simple user friendly text file format can specify the EEPROM content The user selects the target device type from a pull 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 addition to selecting a related data file the user can enter an additive subtractive adjustment to the internal device offset declared in the file Various device interaction buttons enable the following actions e Read read and display the EEPROM content in a popup which supports scrolling and page hopping through the data This information can be saved to a file e Program load the EEPROM with the contents of the referenced data file e Verify compare the EEPROM with the referenced file and indicate a pass fail outcome e Erase clear the content of the EEPROM During any of the above operations if the Monitor is running the related traffic transactions with the device can be viewed Bus Traffic Monitor 153 Programmer Operations The Programmer window shown in Figure 140 can be accessed from the Tools Programmer entry in the menu bar or from the Programmer icon in the shortcut bar It allows the user to program most common I C EEPROM devices using a common data file format such as a Motorola S Record file Intel Hex file or a text file containing a li
229. ugger 149 Debugger Menu Bar When the Debugger window is active the Menu Bar contains entries relevant to the Debugger functions including File Tools Windows and Help A description of each menu follows Debugger File Menu The File menu shown in Figure 138 includes options to load and save projects and debugger command files as well as an option to save debugger data from the Debugger window s Receive section The options related to the loading and saving of projects are identical to those described in the Monitor Menu Bar section of the Bus Traffic Monitor chapter O Y O e Fl Mew Project Open Project Save Project Save Project s Mew Debugger Command File Ctrl M Open Debugger Command File Ctrl 0 Save Debugger Command File Chrl 5 Save Debugger Command File 45 Save Debugger Data Exit Figure 138 Debugger File Menu New Debugger Command File Clears the Debugger window s Send text box in preparation for entering new debugger commands and data If the text box contains existing unsaved commands and data a prompt is displayed 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 existing unsaved commands and data a prompt is displayed to save it Save Debugger Command File Saves the debugger commands and data from the Debugger window s
230. ure 72 Monitor Window Trace List with Trigger at Line Zero Numbering Getting Started 69 The Timestamp Start option operates in a similar fashion When set to Starting from 0 timestamps will increment sequentially starting from the first trace list entry This is the default 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 timestamp Click on the Trigger is time 0 option and observe how the Time column changes around the Trigger line as shown in Figure 73 aa 2C Exerciser Untitled Monitor Untitled fo amp l s tah File Trace Tools Window Help x sh pho 5 8h 2 xe vr Mo la o x Shortcuts Line Marker Type Location Addr Hex AddrType RAV NAK Error KHz Data Byte Hex Time us 1 0 1 a 12 Preferences ex 1715 0 0119 11 1690 1 alvaro 10 Monitor Colors Monitor Options Debugger Options Programmer Options Formats 1 506 4 Monitor 9 1 350 4 8 Line Column 1 252 4 ag gt Starting from 1 default 0 Trigger is line 0 41 1 6 513 1 Debugger 5 Timestamp Start 488 1 E RS 463 1 a _ Starting from O default 9 Trigger is time 0 4 E a T PRA TT SEO is 437 1 3 pad 2 254 1 1001001 Timestamp Display Programmer q sd O Oste Relative to last EEE E 1 711 1 Other Options 2 753 1 3 Y Pr
231. ure 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 be shown in the receive section text box In Analyzer Supplied mode the BusPro 12C controller supplies the pull up voltage for the C bus If you were still in Target Supplied mode since there is no target connected there would be no pull up supply to the bus making the lines undefined when high Therefore any attempt to send or receive messages would likely result in a timeout error You can confirm and adjust the voltage source settings from the Settings pane of the Configuration Manager Tools Configuration Manager Settings A Debugger Untitled Send Receive i AddrType 7Bit Figure 81 Byte Sent From the Debugger Getting Started 77 Click on the Receive button now The value FF will appear in the Receive area text box Without a target attached to communicate 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 three bytes The value FF will now be displayed three times in the text box as shown in Figure 82 below A Debugger Untitled FE FF EE Figure 82 Receive Three Bytes in the Debugger 78 Getting Started Step 3 Send While Monitoring In order to see the bus traffi
232. ure 93 below SMBus messages in the Data Byte column will now be decoded for you as well as the device name in the Addr column as shown below in Figure 94 r ja Monitor C Program Files I2C Exerciser Demo tc74 tdf So Line Marker Type Location Addr Hex AddrType R W NAK Error KHz 1 O 1 1 0 2 Data Byte Hex Time us Hide Column 2 Data Target 9A 7 Bit Write 98 1 1 00 Trace Layout Address Analyzer 9A 7 Bit Read AutoFit Columns NE PREPARA Address Analyzer 9A 7 Bit Write 1 1 i os 6 Data Target 9A 7 Bit Write 98 1 1 00 Binary a 7 Address Analyzer 9A 7 Bit Read 9 1 1 Decimal 8 Data Target 9A 7 Bit Read NAK 96 1 1 2E Disable Symbols 9 Address Analyzer 9A 7 Bit Write 98 1 1 Symbols 10 Data Target 9A 7 Bit Write 98 1 1 00 11 Address Analyzer 9A 7 Bit Read 9 1 1 ER 12 Data Target 9A 7 Bit Read NAK 9 1 1 2F Compact Mode 13 Address Analyzer 9A 7 Bit Write 98 1 1 14 Data Target 9A 7 Bit Write 97 1 1 01 6 696 217 15 Address Analyzer 9A 7 Bit Read 98 1 1 7 224 145 16 Data Target 9A 7 Bit Read NAK 97 1 1 40 7 224 245 17 Address Analyzer 9A 7 Bit Write 98 1 1 12 824 18 Data Target 9A 7 Bit Write 98 1 1 01 12 824 19 Data Target 9A 7 Bit Write 98 1 1 80 12 824 20 Address Analyzer 9A 7 Bit Write 99 1 1 17 328 21 Data Target 9A 7 Bit Write 98 1 1 01 17 328 22 Address Analvzer 9A 7 Bit Read 99 1 1 17 864 x 4 m p Scale S50us div Auto Fit Line 4 gt Interval
233. ursor A Colors Getting Started 65 After changing the Color Scheme observe the resulting 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 Preferences screen E et BC Exerciser Untitled Monitor Untitled o li tha File Irace Tools Window Help E X SE ph 825 828 Se xa E ao a Shortcuts Line Marker Type Location Addr Hex AddrType RAV NAK Error KHz Data Byte Hex Time us 1O 4 a 80 Tagged Data Analyzer DAC 7 Bit Read Moonen 81 Data Analyzer DAC 7 Bit Read 82 Data Analyzer DAC 7 Bit Read i b l l Monitor 83 Address Analyzer ADC 7 Bit Read Monitor Colors Monitor Options Debugger Options Programmer Options Formats eT 84 Data Target ADC 7 Bit Read Trigger Other al Daa roe e Ie coer shee 86 Address Target 54 7 Bit Write Debugger 87 Data Target 54 7 Bit Write Background MN y Alternate color perrow Y 88 Data Target 54 7 Bit Write E 89 Data Target 54 7 Bit Write CA enets 90 Data Target 54 7 Bit Write Text ar Text 1 z y Programmer 91 Address Analyzer 36 7 Bit Read 92 Data Target 36 7 Bit Read Background MN Background 1 div 93 Data Target 36 7 Bit Read 94 Address Target DAC 7 Bit Read Cursor B 95 Data Analyzer DAC 7 Bit Read Text 1 31 y Text 2 96 Data Analyzer DAC 7 Bit Read F s
234. with the basic bus tracing features This mode creates simulated traffic for display in the Monitor window imitating a connection to virtual targets on an IC bus The steps outlined in the demo tutorial focus mainly on understanding the information provided in the Monitor window including both the trace list and timing display You will learn how to collect IFC bus traffic view it in the trace list and timing display navigate through the data and utilize various options and features Getting Started 23 Step 1 Start 2C Exerciser Start the I2C Exerciser application by opening the Windows Start menu clicking on Programs or All Programs then clicking on the 12C Exerciser program group and finally clicking on the 12C Exerciser entry A splash screen will be displayed for a few seconds and then the main I2C Exerciser window will appear with the Monitor window active By default the program will try to detect if the BusPro 12C is connected and will enter Live Data mode if the controller is found If the BusPro 12C is not attached to the host PC you will get the warning message shown in Figure 19 indicating that the controller was not detected and the program will automatically start in Demo Mode If the warning appears click on the OK button to close it LC Exerciser x Mo Corelis hardware lz detected Entering demo mode OK Figure 19 Initial I2C Exerciser Warning Message when BusPro 12C is Not Initially Connected 2
235. wn the BusPro 2C This sequence of calls is summarized as follows I2C_InitHardware required connection to PC USB port loading logic and firmware I2C_LoadSetup optional brings in previously saved setup information I2C_SetFEAddrFormat optional default is FE mode establish address byte format Assorted configuration and or Overwrite functions optional setting or over writing loaded configuration Target interaction sequences do various mission related 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 operations The last function call assures a clean disconnection of the BusPro 12C so that it can be restarted trouble free If this is not done it may be necessary to cycle plug the analyzer in the USB port 190 Third Party Application Interface Function Reference Function Description 12C_ConfigureDiscretes Overwrites several configuration parameters relating to configuring the two discrete I O lines 12C_DisableCollisionDetection Enables an analyzer mode which ignores bus collision conditions when it is driving the bus 12C_GetlLastStatus Reports supplemental status of the most recent call to an API function 12C_GetlLastTransferStatus Reports supplemental status of the most recent call to I2C_Receive_Data or I2C_Send_Data 12C_InitHardware Confirms BusPro 12C s
236. ype Any 7 VOL jay 7 Rw Anje E Data Byte Value Load From Selected Monitor Trace Line Defaults Figure 111 Filter Definition Dialog similar to Edit 114 Bus Traffic Monitor Symbols This dialog shown in Figure 112 displays a list that 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 related dialogs This can be used to enhance the user readability of transactions Configuration Manager symbol PLL FAULT ADC WARNING CHANSEL DONE OK DANGER BUSY LOWTEMP MODE Bus Traffic Monitor Data Address Data Data Data Data Data Data Data Data Type Addr AddrType RW Data Byte Address Bit F Bit Bit Bit Bit F Bit 10 Bit Bit Bit F Bit F Bit Figure 112 Symbols Pane 115 Using the Add button beneath the list box a new symbol can be defined and appended to the list The Edit button allows alteration of an existing selected symbol definition The Remove and Remove All buttons enable the deletion of a selected symbol definition or the entire list of symbol definitions The Symbol Definition dialog that is displayed when using the Add or Edit buttons is shown in Figure 113 Symbol Definition Type Value Byte Addr Position AddrType 7Bit Width RW Any OR Figure 113 Symbol Defini
237. ze will be associated with the same trace list entry KHz This column indicates the approximate average clock rate for the transaction in units of kilohertz Bus Traffic Monitor 107 I O 1 This column indicates the state of discrete I O line 1 during the transaction I O 2 This column indicates the state of discrete I O line 1 during the transaction Data Byte This column indicates the data byte values conveyed to or from the target slave device by the transaction Various numerical formats are available for displaying the values including hex decimal and binary The current display format is shown in parenthesis in the column heading and right clicking on the column heading will display a popup menu that allows selection of the display format If symbols are enabled and there is a data byte symbol defined for the target slave then that symbolic name will appear in place of the numeric value refer to the Symbols section later in this chapter When using Compact mode all data byte transactions following an address transaction will be displayed on a single trace listing line Left clicking the column entry will display all of the bytes as an array of hex values in a separate scrollable dialog When using SMBus Mode each data byte value of the transaction 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 mou

Download Pdf Manuals

image

Related Search

Related Contents

Tripp Lite Cat6 Gigabit Molded Patch Cable (RJ45 Left Angle M to RJ45 M) - Blue, 10-ft.  Clique aqui para baixar a vista explodida deste produto  Sol Server User`s Guide  Axis Q1602  Cloud portal user manual d portal user manual  〇パブブカッター  Rexel 21676050 folder  700212G  2034CL-L User Manual - AV-iQ  User Manual  

Copyright © All rights reserved.
Failed to retrieve file