Home
Choose what sample depth you would likekeeping in mind
Contents
1. C O C C5 C2 O C CO CO CO CO CO OC CO GSS CO O CO CO G CO CO 0 CO CD CO CO USBee RX User s Manual 115 Relative Timestamps display the time difference since the last bus transaction and the current transaction You can turn on Relative Timestamps using the menu item View Decoder Timestamps Relative 116 51 16 0n 90 n O N O n TUN TUN 82 82 Fo FID 98 95 95 95 95 210us SPI 2 MISO FF S SPI 042 1 67 042 875 O29 375 042 375 333 375 3 15 us s S SPI 25 083us SPI 2 MISO S SPI 91 042us SPI 2 MISO 5 S SPI 192 042us SPI 2 MISO B8 S SPI us I2C 5 SCL 22 us I2C 5 SCL P 2us Async O TX TX 0 RX 0 RX 0 RX 0 RX 1 RX 1 us Async us Asyn us Asyn us Asyn us Asyn 3 CY c6 C OR cC C us Async 2 MOSI 94 PI 2 MISO FF 2 MOSI 54 2 MOSI FF 2 MOSI FF 2 MOSI FF 15 82 82 T32 33 82 48 1 Ss 82 Pals 708 083 667 042 958 042 083 708 083 167 us I2C 5 SCL A2 us I2C 5 SCL 00 us I2C 5 SCL 12 us I2C 5 SCL S us I2C 5 SCL A3 us l2C S5 9GLhj29 us I2C 5 SCL ACK us I2C 5 SCL NACK Stop OB C D IS E Hy H0 E8 8 4114 292us 1I2C 5 SCL S Start Write us I2C 5 SCL ACK us I2C 5
2. 0 000007333 SPL2 MOSI CE k e e LEES Q Ww D m 1 gt 1 gt 4 Nii BIG Tj m Ej mu i 0 000533167 Xi Gia 0 000544667 I2C 5 SDA S Start 0 000560333 Dc5 SDA A2 Write 0 000642333 C5 SDA ACK c o 0 000745000 I2C 5 SDA ACK 0 000765500 I2C 5 SDA 5C 0 000847500 I2C 5 SDA ACK J 0 000872000 I2C 5 SDA S Start 0 000887833 I2C 5 SDA A3 Read 0 000969667 I2C 5 SDA ACK 0 000991500 I2C 5 SDA 18 H 0001073333 I2C5 SDA NACK 0 001100833 Dcs SDA P Stop 0 001101833 X2 Cursor 0 001101833 Async 0 TX 5C 0 001188500 Async 0 TX 5D 0 001275667 Async 0 RX 5E 0 001362333 Async 0 RX 5F 0 001449000 Async 0 RX 60 0 001535667 Async 0 RX 61 i Async 0 RX 62 X1 X2 1 0 SPI 2 MOSI 5E Capture IS l asurements t Logic Analyzer Oscilloscope TEE X2 dX 1 dX Period Frequency Duty Cycle Ons 533 167us 1 101833ms 568 667us 1 758499kHz Ons infinity x tk e e k e x RX Analog CH1 CH2 We will go through an example that shows how to setup various busses We start with a capture of 8 digital lines that have a number of busses included i p USBee Suite USBee DX Connected File View Speed and Samples Trigger Setup Help lt L DEIRU Digital 1 Digital2 Mi Digital 7 Cursors USBee Capture Measurements Logic Analyzer Oscilloscope D X1 X2 dX i dX Period Frequency Duty Cycle Ons Ons Ons Ons infinity 10 70125ms 93447027
3. ILLEGAL COMMAND 1x CARD ECC FAILED 1x CC ERROR Le Cft ERROR 1x tft UNDERRUN 1x tf OVERRUN 1x tft CID CSD_OVERWRITE 1x tft WP ERASE SKIP 1x tf t CARD ECC DISABLE 1x tft ERASE REST 1x tft CURRENT STATE 4x L READY FOR _DATA 1x tff nul 2x i APP CMD 1x tft nu4 1x i AKE SEQ ERROR 1x tf RSV 2 1x i RSV TEST MODE 2x i CURRENT STATE Idle SReady SIdent SStby STran Data Rcv SPrg Dis Sreserved Lookup O OO 10 OF WN EF CO Sreserved Sreserved Sreserved Sreserved Sreserved Sreserved CMD GO IDLE STATE SCMD1 SALL SEND CID SSEND RELATIVE ADDR SSET_DSR 152 t 6x 32 6x 33 6x 55 6x 56 6x 42 6x L 6x L 6x 6 L 6x 13 6x 23 6x 41 L 6x 6x 6x 6x nu 232x h 32x h h d Address Address RCA 16x n ua 31x RD WR 1 h a 30x i BUS WIDTH 2 h nua 9x i BLOCKS 23 h OCR 32 h nua 30x i SET CD l h L RCA 16x h STATUS 16x h L OCR 32x h L DATA 128x h L USBee RX User s Manual WO 0 1 Oy O1 26 27 o 10 OF W Ph 20 21 22 23 24 25 28 29 CMD5 SSWITCH FUNC SSEL DESEL CARD SSEND IF COND SSEND CSD 10 11 SVOLTAGE SWITCH S SEND CID STOP TRANSMISSION SSEND STATUS CMD14 GO INACTIVE STA
4. On the above dialog box select the channels you want to include in the parallel data bus You can also use any one of the 16 digital signals as an external clock Choose if you want to use the external clock signal and the external clock edge polarity The bus traffic will be decoded as in the following screen Copa Da 68 USBee RX User s Manual 1 WIRE BUS SETUP The 1 Wire Bus Decoder takes the captured data from a 1 Wire bus Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The 1 Wire Bus Data decoder uses any one of the 16 digital signal lines O thru F the GND ground line Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen ps2 sv s can seii Pale J Single Signal uss se rc ase iwe 56789 AB 1 Wire Signal 90O0O0OO0O0000000000 On the above dialog box select the signal running your 1 Wire protocol USBee RX User s Manual 69 SPI BUS SETUP The SPI Bus Decoder takes the captured data from an SPI bus Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware usi
5. As in our example decoder this Change indicates to place an Entry at each change of state of the specified signal in this case 3 The resulting display is as follows USBee RX User s Manual 83 ies eke SH n uu 597 583us 592 583us 587 583us 582 583us E ei Ta LI tk we k tN N e u k hange 3 Changed i Changed Chan Cursors USBee me ne bp XE x2 dX l dX Ons 1 581625ms 1 895708ms 314 083us 3 183868kHz Copyright 2008 CWAV Inc Obviously much more complicated protocols can be decoded using these simple methods of parameter passing and Entry displaying BUILDING THE CUSTOM DECODER To implement a custom decoder you must create a Class Library CustomUSBeeSuiteDecoder DLL using the code below as an example This example code is also included when you install the USBee RX Suite software in the Program Files CWAV Inc USBee RX Suite CustomUSBeeSuiteDecoderRX directory You can build this Class Library using the free Microsoft Visual Studio 2010 Express Our example is in Visual Basic but can easily be ported to C or other language supported in VS2010 The main function of a Custom Decoder code is below 1 Receive parameters for the protocol from the User Interface 2 Access the sample data and decode the protocol based on the parameters 3 Output Entries that consist of a Start Sample End Sample and a Text String Once you create your own CustomUSBeeSuiteDecoderRX DLL file y
6. which are the fields associated with the Command 2 and Command 4 Field Lines STRING LOOKUP Fields that can be better expressed as text strings can be outputted as such using a Lookup table Below is an example of a field that uses a lookup table Fields Fields StartByte 8 H CommandByte 8 L EndByte 8 H Lookup CommandByte For an input packet as follows 00100001 00000001 00001000 The output would be Command EndByte we e 7 which is the text associated with the Command Field 4 bits in msbfirst order 0010b 2 CONDITIONAL ROUTE OF DATA TO ANOTHER PROTOCOL Many embedded protocols support multiple layers of protocol where each protocol layer handles a different set of services or functions In these multilayer protocols a field of data from one protocol layer may be the input data to another layer of protocol Routing this field of data to a new Protocol is as easy as naming the Field the same name as the Protocol If the Field name matches any protocol the entire data for that field is passed to that Protocol for processing 140 USBee RX User s Manual Below is an example that shows a field being sent to a new layer Layer2 of protocol when the command field is a 1 Protocol name Layerl Packet Decode Fields Fields Command 4 0 h Address 8 h Fields Command 4 1 h Layer2 48 h Protocol name Layer2 Packet Decode Fields Fields L2Command 4 0 Fields L2Command 4 1 Fields
7. ACCESSING SAMPLE DATA TO PERFORM DECODE To access each individual sample stored in the sample buffer you use the SampleData or FindNextEdge calls as shown above This returns a 32 bit value that includes all of the channels levels at that sample time The format of the 32 bits is as follows MSB LSB XXXXXXXXYYYYYYYYFEDCBA9876543210 where XXXXXXXX is Channel 2 Analog value 0 10V 255 10V YYYYYYYY is Channel 1 Analog value 0 10V 255 10V F is logic level 0 or 1 for channel F E is logic level 0 or 1 for channel E O is logic level 0 or 1 for channel O0 Decoding any given protocol then entails going through the samples from beginning to end and masking off the channels you need to decode accumulating decoded bits bytes along the way and determining what the result is that you want to display Since the USBee RX uses sample compression there may be trillions of actual samples Therefore it is best and will result in faster decoder times to use the FindNextEdge routine instead of individual SampleData calls when processing a protocol This routine understands the compression algorithm and does not waste time processing compressed samples OUTPUTTING ENTRIES THAT WILL GET DISPLAYED ON THE SCREEN Once your decoder has determined the result of the decode that you want displayed on the screen you call the WriteEntry routine above This gets passed the Start Sample End Sample and Text String Entries appear as rounded
8. Utiles Sute Pro UtBee KX Demo Mode Closes Tim AopOanw Loca LS Bee iuiteJartunbeers te Yew ioenaniiampes Trigger aho nep oon emen I u m i n ati n g ih Ioo muh ney ting v Quickly expose the deepest details of your design to speed validation test and debug GA T ral 4 G4 i 62 f GE LE L HE Hmm qu qu a CIT Meet Our Most Popular Test Pod Fast Sampling Huge Buffer Unmatched Feat Pocket sized ast Sampling Huge Buffer Unmatched Features Pocket size USBee RX Up to 600 Msps 16 M Samples Edges 60V 18D x 2A Mixed Signal 10 bit Oscilloscope 8D x 1A Signal Generator Protocol Analyzer t om eo USBEE RX USERS MANUAL CWAV Inc www usbee com USBee RX User s Manual USBee RX User s Manual USBEE RX USERS MANUAL CWAV Inc www usbee com 951 694 6808 support usbee com USBee RX Suite License Agreement The following License Agreement is a legal agreement between you either an individual or entity the end user and CWAV Inc makers of the USBee Test Pods and USBee RX Suite software You have received or downloaded the USBee RX Suite Package Software which consists of the USBee RX Suite Software and Documentation If you do not agree to the terms of the agreement do not install and run this software By installing this USBee RX Suite software you agree to be bound by the terms of this Agreement Grant of License CWAV provides royalty free Software
9. First select if you are looking for the analog voltages to include the values is or not include the values is not that follow Then specify the voltage range start and end in volts The matched range will then include all values from the first set to the second set inclusive Below shows a search that finds all times that the analog signal CH1 is between 1 1V and 4 3V n Pro USBee DX Connected oo pel E d File View Speed and Samples Trigger Setup Help E N e ae 1000us div _ 10 084833ms Search i m ft Channel Settings uc im Single Signal use s mc asme iwe Ps2 Event 1 If CHi voltage is between 1 1V and 4 3V Digtaro 7 RN rv E I 1 If Digital Signal gita nas rising edge happen Y times or J g Dig e x z a B gt i If Analog Signal CH1 has rising edge at voltage threshold Volts happens 1 times Digta2 7 E while Digital 3 Bus Digital 2 decoded data is betwee SPI 2 Digital Signal States are F ROOMX gt bo eoe vex DIUI 0 to F ESOS 1X 1699 990 BEIM OL and V Analog Signal CH1 M is 1 1 Voltsto 43 Volts Digital 4 Digital 5 and i 0s IC This Event happening between 0 fus and 10 s immediately after the previous event Digital 6 Followed By Digital 7 WORK k k k k Async 6 v Event 2 Followed By CJ v Event 3 Followed By
10. Protocol Decoders CWAV_IMPORT int CWAV_API DecodeSerial unsigned long reserved1 unsigned char OutFilename unsigned char InlineFilename __int64 StartSample __int64 EndSample unsigned long Rate unsigned long Channel unsigned long AlignValue unsigned long AlignEdge unsigned 194 USBee RX User s Manual long AlignChannel unsigned long UseAlignChannel unsigned long ClockChannel unsigned long ClockEdge unsigned long BitsPerValue unsigned long MSBFirst unsigned long delimiter unsigned long hex long BytesPerLine char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodeiWire unsigned long reservedi unsigned char OutFilename unsigned char InlineFilename _int64 StartSample int64 EndSample long Rate unsigned long Signal long delimiter long showall long hex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodeI2S unsigned long reserved1 unsigned char OutFilename unsigned char InlineFilename X int64 StartSample X int64 EndSample unsigned long Rate unsigned long Channel long BitOffset unsigned long AlignValue unsigned long AlignEdge unsigned long AlignChannel unsigned long UseAlignChannel unsigned long ClockChannel unsigned long ClockEdge unsigned long BitsPerValue unsigned long MSBFirst unsigned long delimiter unsigned long hex long BytesPerLine char ProtocolDefinitionFilename char
11. 28 USBee RX User s Manual HOT KEYS The USBee RX has a full set of hot keys that lets you drive the acquisition of samples setup configuration and quickly view your data using the keyboard Key Left Arrow Right Arrow Shift Left Arrow Shift Right Arrow Up Arrow Down Arrow Home End Ins Del WN O P O D HO UW PNR Function Previous Edge Packet Next Edge Packet Pan Left Pan Right Previous Waveline Next Waveline Show the Start of capture buffer Show the end of the capture buffer Insert a new waveline below the current line Delete the current waveline Capture Once Go to the X1 cursor Go to the X2 cursor Zoom out to view all of the capture buffer Open the Waveline settings dialog box Toggle the Decoder List window Zoom In Zoom Out Go to the Trigger position USBee RX User s Manual 29 SMART SEARCH USBee RX Suite Smart Search highlights the sections of your trace matching your areas of interest so that you don t need to waste time hunting for the data you need You can specify up to 32 levels of search events that are any combination of bus decoded traffic states or edges of digital or analog signals inside or outside of analog voltage ranges and or digital ranges and all validated by time specific windows Once specified you can pan through the occurrences of your searched items with the click of the mouse and see the total number of times the searched events occur E US
12. for the custom decoder Use this string to pass in any parameters that your decoder needs to know such as what channels to use i in decoding which protocol if you have multiple protocols supported here and how you want the data formatted Below is an example set of Custom Protocol decoders that show how to access the sample buffer and how to generate output that get sent to the screen Setup the File Stream that stores the Output Entry Information Dim FS As New FileStream OutFilename FileMode Append FileAccess Write Dim BW As New BinaryWriter FS Dim Sample As Int64 SampleData 0 Initializes the sample retrieval Since this file supports different custom decoders we need to see which one to run based on the Parameters string If CBool InStr Parameters ToUpper CHANGE Then Sample Decoder that just detects when a signal changes state The signal to use for the detection is specified in the Parameters as the second parameter Dim Params Parameters Split CChar Dim SignalToUse As Double Val Params 1 Dim SignalMask As Integer 1 lt lt CInt SignalToUse Make the mask that will mask off the channel we want in the sample Now go from the start of the samples to the end and process the decoder For Sample 0 To NumberOfSamples 1 This example decoder places a label at every transition of a digital signal Dim NextEdge FindNextEdge Sample SignalMask 1 If NextEdge gt 0 Then Ed
13. time at the X1 cursor relative to the trigger position e X2 Position time at the X2 cursor relative to the trigger position e RX time difference between X1 and X2 cursors e 1 RX the frequency computed using the period between X1 and X2 cursors INSTA MEASUREMENTS The Insta Measure feature lets you quickly and accurately measure events and levels by simply hovering the mouse over a signal and without placing cursors Inta Measurements available are as follows Analog Insta Measurements e Voltage At Cursor Digital Insta Measurements e Width Period Frequency and Duty Cycle USBee RX User s Manual 61 BUS DECODING OPTIONS The USBee RX Suite software has a powerful embedded bus decoder feature that allows you to quickly analyze the contents of embedded communications captured by the pod This section details each of the available bus types and the parameters required for proper setup GENERIC SIGNAL SETUP The default trace shown on a waveline is a voltage versus time waveform representation of an input wire on the USBee RX Hardware Setup To use the generic signal display you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main appli
14. 0000006645 38 0000006695 33 0000006711 40 0000006728 ii 0000006736 42 0000006749 43 0000006765 44 0000006790 45 0000006815 i6 0000006838 47 0000006861 48 0000006911 49 0000006928 50 0000006944 51 0000006952 52 0000006965 53 0000006982 54 0000007007 55 0000007032 56 0000007054 57 0000007077 oOnmnnonn4 n 0O outpur dex S P 3209 11 bitID 001 RTR 0 Control 00 CRC 2213 ACK 0 11 bitID 001 RTR 0 Control 02 Data 00 00 CRC 2ACD ACK 0 11 bitID 001 RTR 0 Control 04 Data 12 34 43 21 CRC 6219 ACK 0 11 bitID 001 RTR 0 Control 08 Data 00 00 00 00 OO OO 00 00 CRC 1F40 ACK 0 11 bitID 123 RTR 0 Control 08 Data 00 11 22 33 44 55 66 77 CRC O0BD4 ACK 0 11 bitID 1FF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 21B2 ACK 0 29 bitID 00000FFF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 4C56 ACK 0 29 bitID 00000001 RTR 0 Control 08 Data 00 00 00 OO 00 OO 00 00 CRC 36B4 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 00 00 00 00 CRC 6216 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 12 34 43 21 CRC 1B8B ACK 0 11 bitID 001 RTR 0 Control 00 CRC 2213 ACK 0 11 bitID 001 RTR 0 Control 02 Data 00 00 CRC 2ACD ACK 0 11 bitID 001 RTR 0 Control 04 Data 12 34 43 21 CRC 6219 ACK 0 11 bitID 001 RTR 0 Control 08 Data 00 00 00 00 00 00 00 00 CRC 1F40 ACK 0 11 bitID 123 RTR 0 Control 08 Data 00 11 22 33 44 55 66 77 CRC OBD4 ACK 0 11 bitID 1FF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 21B2 ACK 0 29 bitID 00000FFF RTR 0 Control 07 Da
15. 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps e Channels Bit mask which represents which signals are part of the parallel data bus Bit O is Pod signal O Bit 15 is pod signal F e Clock Which signal 0 15 to use for the clock signal e UseCLK 0 don t use the Clock signal above 1 use the Clock signal above to qualify the samples e CLKEdge 0 use falling edge of the Clock to sample data 1 use rising edge e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Hex 0 display data in decimal 1 display data in hex e BytesPerLine How many output words are on each output line e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter 186 USBee RX User s Manual e ErrorString string that holds an error description of the routine returns an error Return Value e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODESERIAL This routine decodes bus traffic and outputs the data to an output file This routine works on a sam
16. BUFFER SIZES AND SAMPLE RATE SETTINGS The USBEE RX SUITE captures the behavior of the digital and analog signals and displays them as traces in the waveform window The Speed and Samples menu lets you choose how the traces are captured Below shows the Speed and Samples menu 48 Sample Rate 20Msps Buffer Size 1M samples Sample Compression On Sample Compression Off External Clocking using the C input v Internal Clocking Minimum Capture Time 005 seconds USBee RX User s Manual The Buffer Size lets you select the size of the Sample Buffer that is used For each trace the buffer is completely filled and then the waveform is displayed You can choose buffers that will capture the information that you want to see but remember that the larger the buffer the longer it will take to fill display and decode You can also choose the Sample Rate that you want samples taken You can choose from 100ksps samples per second to up to 600 Msps At up to 100Msps all channels can be sampled At higher sample rates a subset of channels is available The table below shows how many channels are available for the given sample rates Available Channels and resulting Sample Rate for each channel Sample Rate CH2 CH1 7 C Setting in sps The USBee RX can use sample compression to lengthen the capture time In Sample Compression mode only the transitions are stored effectively removing the samples between inactiv
17. E 8 Channel Settings o x E If Digital Signal pick one has rising edge happen 1 times or L If Analog Signal CH1 has rising edge at voltage threshold 2 Volts happens 1 times while Bus pick one decoded data is anything 00 and and C Digital Signal States are F 0 to F 0 and LC Analog Signal CH1 is 10 Volts ta 10 Volts and r C This Event happening between 0 us and 10 s immediately after the previous event Followed By Event 2 Use PacketPresenter Definition File name is below To enable a line in the Event search click on the checkbox to the left of the items you want to include in your search You can specify any combination of the available lines in a search Event All search criteria in a single Event must occur simultaneously for an event to be considered a match For example if you are looking for an edge on a digital signal and looking for an analog voltage range the edge must occur while the voltage is inside the range to be considered a match The following sections detail the available search items for each event and how they function USBee RX User s Manual 93 DIGITAL SIGNAL EDGES The first line lets you find edges on the digital signals First select the Digital line you want to search using the first dropdown box This box is filled with only the single signals that are displayed on the screen Then choose the edge y
18. EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint MMMM MMMM PD PO P PO PO P9 PD PO PD PO PD PO PD MMMM PD PD PD PD PD P9 PD PD MMMM IND PS IND ID IND ID IND ID IND P IND IO PD P IND PO PhD USBee RX User s Manual 255 Usbextractor 0 output dex P 3209 G Q 10000 R 1 A H V 1 V C Program Files USBee AX Pro Data Extractors output dex File Edit View Favorites UserCommands GridLines Tools Help alel S Gls MLSs a so s amp se gt USB Reset 0000005728 OUT Add 1 EndPoint 0 DAT 1 ACK 4 0000005634 SETUP Add 0 EndPoint 0 GET DESCRIPTOR DEVICE Length 64 DATAO 80 06 5 0000005634 IN Add 0 EndPoint 0 DATA1 12 01 00 01 FF FF FF 40 47 05 31 21 0 6 0000005634 OUT Add 0 EndPoint 0 DAT 1 ACK 8 0000005665 SETUP Add 0 EndPoint 0 SET ADDRESS 1 DATAO 00 05 01 00 00 00 00 00 9 0000005665 IN Add 0 EndPoint 0 DAT 1 ACK 10 11 0000005728 SETUP Add 1 EndPoint 0 GET DESCRIPTOR DEVICE Length 18 DATAO 80 06 2 0000005728 IN Add 1 EndPoint 0 DAT 1 12 01 00 01 FF FF FF 40 47 05 31 21 0 13 0000005728 OUT Add 1 EndPoint 0 DAT 1 ACK 14 15 0000005728 SETUP Add 1 EndPoint 0 GET DESCRIPTOR CONFIG Length 9 DATAO 80 06 Of 16 0000005728 IN dd 1 EndPoint 0 DATA1 09 02 DA 00 01 01 00 80 32 ACK 0000005729 SETUP dd 1 EndPoint 0 GET DESCR
19. Start type signal signal 14 level 0 End type length Bytelength 21 Decode Fields Fields StartByte 8m d 2 4 mV CommandByte 81 L FLength 8m h SlaveAddress m h RW 1 L Long 32m h 8Bytes 64m h NextLayer Nm h Protocol name NextLayer bytewise Packet Start type next End type Event End of a packet is signaled by a event event 127 Means the end of the data only for higher layers Decode Fields Fields Rest N h Just print out all the bytes USBee RX User s Manual 155 SERIAL PROTOCOL EXAMPLE Serial Protocol Definition File This file defines the transfers from a serial device Protocol name SerialBus bitwise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type value Look for a value in the data to start the packet value 6211h NOTE This value is assumed MSbit first in the data stream bits 16 mask FFFFh End type length bitlength 64 End of command after 64 bits Decode Fields Send out the bits of the packet Fields Start 16 h Nine 9 h Seven 7 h Rest N b 156 USBee RX User s Manual USB PROTOCOL EXAMPLE USB Bus Protocol Definition File This file defines the transfers to from a custom USB device Protocol name USBBus bitwise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type event event 1 Setup In or Out found En
20. USB SDIO 130 Channel Setting Dialog Box setup for Channel X Least Significant Async Channel selected Signal chosen for MISO Data Signal Data on SDA SCL bus All Data Signals sampled together Serial Data Rx Data Data from Device to Host Data on D D bus CMD traffic Channel Setting Dialog Box setup for Channel Y Next Least Significant Async Channel selected Signal chosen for MOSI Not used Not Used Not Used Not Used Not Used Data from Host To Device Not Used DAT data traffic Notes If more than 2 Async channels are selected to be decoded the additional channels are not used by the PacketPresenter Data Bytes alternate channels since there is one byte X for every one byte Y Each sample of all channels is the data word sent to channel X The data stream contains the Sync PIDs data fields and CRCs Table 1 Channel X and Channel Y Definitions Per Bus Type USBee RX User s Manual PACKET SECTION The Packet section defines how a packet is bounded and what if any preprocessing needs to be done on the packet before the fields can be processed Packet Start How does a packet start End How does a packet end Decode What decoding needs to be done to get real data START AND END SECTIONS The Start and End sections define how a packet is bounded The available packet bounding Types are defined below For START Next The
21. d Bam Sa e C t Mu Mu ia Fame came os oc MISO Data C29 COCOOO Mu MU Aor VEI X MOSI Samples MISO Samples Use Enable r Enable Active Bits Per Word ie Rising Rising 9 Enable On Active Low B O Falling C Falling Enable Off O Active High USBee SX options shown above DATA STORAGE Save your entire data capture to file quickly using the USBee RX Suite data format to be read back in later for viewing Or you can export your captured data to data files that you can work with Want to import your waveform data into Excel No problem Just export it as a comma separated file and it imports directly without modification Need the data in raw binary format We ve got that too 26 USBee RX User s Manual PACKETPRESENTER The USBee RX Suite adds the PacketPresenter feature that runs alongside of the existing bus decoders The PacketPresenter takes the output of raw binary data from the bus decoders and parses the stream according to users PacketPresenter Definition File for the intent of displaying the communications in easily understood graphical displays E Usbee Suite Pro Usbe m m y ero x File View Speed and Samples Trigger Setup Help EN lC BL 025 5 2 5 m m et Aus div 9 175667ms 9 179667ms 9 183667ms 9 187667ms 9 191667ms 9 195667ms 9 199667ms 9 203667ms RX RST RX IRQ RX nSS RX SCK n e e e RX MOSI RX MISO SP14 RX MOSI RX MISO RX XOUT RX PACTE TX ANT
22. sMeus s cw sem Paese Custom search Digital 7 4 Event 1 If CH1 has a falling edge at voltage threshold 4V while Digital 2 decoded bus data contains ED followed by 1D Wt Async 6 If Digital Signal P c e has sing edge happen times or as ri5 edge happ es O V If Analog Signal CHi 7 has falling M edge at voltage threshold 4 Voltshappens 1 times while 7 Bus Digital 2 decoded data contains X the value ED followed by the value v 1D followed by anything and T Digital Signal States are 0 IX RSS SSA DES Uo n BER x RSX DES 01206 alog Signal CH1 5 2 Volts to 10 Volts Curso USBee Capture Once Capture Many Meas Logic Analyzer Oscilloscope T X Use PacketPresenter Definition File name is below Ons Ong ADDING A SEARCH LINE To add a Smart Search line on the display click on the grey tab to the left of the line you want to change or click the sign to add a new wave line Once you click on the Search Tab you will see the Channel Settings dialog box as below USBee RX User s Manual 91 a Channel Settings Followed By w Event 2 Followed By v Event 3 Followed By wv Event 4 Followed By Jo Event 5 Use PacketPresenter Definition File name When you specify a Smart Search and click on Save the new Search line will be added to the display If your captured data matches
23. 6V to 6V by using the vertical slider on the left hand side of the analog waveform display The trigger level edge and value will be shown as you scroll this level underneath the Volts Div and Secs Div labels within the waveform area For an analog trigger the trigger position is where the waveform crossed the Trigger Voltage level that you have set at the specified slope To move the trigger voltage level just move the slider on the left of the waveform The following figures show a trace captured on each of the edges USBee Suite Pro USBee DX Connected USBee Suite Pro USBee DX Connected ip File View Speed and Samples Trigger Setup Help Fie View SpeedandSamples Trigger Setup Help Ous dih 158533u Analog Trigger Slope Rising Edge Analog Trigger Slope Falling Edge USBee RX User s Manual 51 The Trigger position is placed where the actual signal crosses the trigger voltage with the proper slope The USBee pods allow for huge sample buffers which means that you can capture much more data than can be shown on a single screen Therefore you can scroll the waveform back and forth on the display to see what happened before or after the trigger SETTING COMPLEX TRIGGERS The USBee RX Suite also allows you to set more complex triggers using the Triggers Dialog box as shown below There are two levels of triggers available X and Y Each trigger event X or Y can have any combination of an
24. Decimal e 1 Decimal Values text are output for the data bytes Hex 226 USBee RX User s Manual e 1 Hex Values text are output for the data bytes Binary 9 1 All data is in binary form not text Comma e 1 Commas are placed between each field data byte Space e 1 Spaces are placed between each field data byte Timestamp e 1 Print Timestamps at the start of each packet SDAMask e The mask for the channel to use for SDA e 1 Ch0 128 Ch7 SCLMask e The mask for the channel to use for SCL e 1 Ch0 128 Ch7 Returns e 1 if Start was successful e O if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT int CWAV API StopExtraction void Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions USBee RX User s Manual 227 CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The I C Bus Extractor DLL sends the extracted data through the buffer in the requested form based on the parameters in the StartExtraction call For example if Bina
25. Enter Field Mame Value Cancel Enter Field Mame Value Enter Field Mame Value C Backward In the leftmost textboxes type the Field Label Then select the comparator operator equals not equals less than greater than and finally the value that the field is to be compared against Finally if there is more than one field in the search list choose whether to AND or OR the search terms When you click Find the next packet in the list starting from the top of the window will be placed at the top of the window You can search forward or backward by selecting the appropriate radio button on the right USBee RX User s Manual 123 FILTERING PACKETS Once displayed you can filter the output to only show packets that contains certain fields that match your criteria Below is the Filter Packet dialog box that is shown by selecting the View Packet Filter along with the resulting PacketPresenter output PacketPresenter Filter Control EZ poco vw FALSE Enter Field Name v ano Filter Off Enter Field Name v Enter Field Name v Clear Cancel In the leftmost textboxes type the Field Label Then select the comparator operator equals not equals less than greater than and finally the value that the field is to be compared against Finally if there is more than one field in the search list choose whether to AND or OR the search terms When you click Filter On only the packets matching
26. Initializing the USBee RX Pod cccccssescccsesecccsescccsessccnasecssauscessuseessaussessaaees 174 Horttallz ORK oann Eoi Ero co octo tu d todo coc EE Dc on Dead fro PEOR occupa Ud eer eee 174 Reading ana Setting SIGNG States ioi a e a i ts 174 SetSignalsRX Setting the USBee RX Output Signals ccccccsssecceeeeseeeeeeeeeeeeees 174 USBee RX User s Manual 9 GetSignalsRX Reading the USBee RX Input Signals cccccsssseeeeeeeseeeeeeeeeeeeees 175 GenerateAnalogWaveformRX Controlling the AOUT signal 175 Logic Analyzer and Oscilloscope Functions esses 176 SetLogicThresholdRX Setting the Digital Logic Threshold 176 SL AEC AD LUM OR RE TELE 176 CaDtULeSTALUSR pU M ees 177 StOPCAPTUTER C 178 Tecer NOWRA arenie erasa sonia ate sa cenaviceae c ur Qe dece vue de TN NRI INO S QU Qe INN A RE 178 EldCaptule BX cornice dieit om itti cue moet Ecl on Venom Set P Sen Fi OM po Vom SUR ror Uode 178 Sela NEO ates ui foto t aite CIIE AMI RIA UID LM MILII DS 179 PINGING XTE CSC REI II 179 SOL EMG SOUS E M M 179 Decode YSB ENERO ETE TES 180 Decodes diet tT 182 Decode Conin 183 DISCOS CAIN rr ERE 184 Decode WIFE enaar a 185 De codePatallel acras m nae EEOAE 186 DecodesS
27. SM BUS DATA EXTRACT OR i esspsss aps pee akPS EbauSkNS oen Sa GbyRSKF RA V epos SR E EET SAE 230 SM Bus DATA EXTRACTOR SPECIFICATIONS s5ssstcxe sia kb ethos eR De hatex a UR T Uo M oak cm RE Me bbs 230 USBee RX User s Manual 11 HARDWARE SETUP PET RH 230 EXTRACTOR COMMAND LINE PROGRAM ssccsccecceececeecescceccsececeeceeceseeseeeeeaeeeeceeees 230 EXTRACTOR AP eec HER 231 DPEETIeDnamie xs ide Bud atelectasis UE eR DE a 232 DLL Exported Functions and parameters esses 232 Extraction Data Format eode itt eae dub ad dedebaosks ues nds o RE E M MAE 234 SPI DATA EXTRACTOR eere seb ere ennh Coe EVA Ore oxu a Ou RN CO ea eau ege Fe vao eae YE geb epar ERES VRM IUE 236 SERIAL BUS DATA EXTRACTOR SPECIFICATIONS eese is 236 HARDWARE SE d qm PM 236 EXTRACTOR COMMAND LINE PROGRAM sc essen enne eene sne senten sean 236 EXTRACTOR AF em P PL 238 BIER II olt TEQUE 238 DLL Exported Functions and parameters esses eene 238 Extraction Data FoLTiat i iioii det te eder r exea Sen cad ER dedu ps 240 1 WIRE DATA EXTRACT OR 54s os atoian nanain E eEO n EE NEP e ERR NR EFE a eoo Sap a 241 1 WIRE BUS DATA EXTRACTOR SPECIFICATIONS 2ccescscescceccsecscesceeceseeseseeceeceeeeees 241 HARDWARE SETUP Sese tus ERR E E TOO 241 EXTRACTOR COMMAND LINE PROGRAM ec escena sensere 241 EXTRACTOR API etsi s oS UEoEMo Morus elisa Muss R iau Op bu ata HERR Eso ca Or
28. TXIRQ TXnSS TX SCK B USBee Suite Packet Presenter File Edit View Window x e e e x m e e e SPI 11 TX MOSI tk k TX MISO TX XOUT TX PACTE x k USBee Logic Analyzer Oscilloscope ina MISO dX 1 dX Period Frequency Duty Cycle oo a A 9 9 1895ms 36 189667ms 27 000167ms 37 036808Hz 8 667us 115 384615kHz 96 2 USBee RX User s Manual 27 FAST PAN BUS VIEWING The USBee RX Suite Fast Pan Bus Viewing lets you quickly pan through a busses decoded data For each bus there is a left and right pan button on the left side of the screen Simply press these buttons to page to the next or previous bus transactions r WB USBee Suite Pro USBee DX Connected C cwav USBee Test Files DXDemo usbeecomp 4 ors File View Speed and Samples Trigger Setup Help lt B rae D mpm dm Ep ce zm s J 200us div 151 833us 351 833us 551 833us 751 833us 951 833us 1 151833ms 1 351833ms 1 551833ms Digital 0 Digital 1 DI 155 A iMi Digital 3 32 o g0 G G i a 7e cs Digitar4 mp Digital 5 es EJLA Digital 6 i ME Digital 7 Async 6 5 5 SA E 5B IH 5C SD 5E Cors Capture Once Capture Many Measurements I Oscilloscope T X1 X2 dX 1i dX Period Frequency Duty Cycle Ons Ons Ons Ons infinity Ons infinity Inc All Rights Reserved Dasigned and Manufactures only in the USA
29. amp AN Mrita Lines 1 to 64 2695 File Size 7 98 KB 241 lines 07 12 2006 00 33 da Co n3 IP J C CI ea D co BPR Hc mm w OO f m C Cu rd ri d ru nd n nm nd n nd nn mm mro meAmImIOPmeER ri ri rd rr nu rd ni ri n n n rr 2 J C C 6 CO n2 mm mmeoAmPImEPIOImEmR Do rd rd nu rd ri ru n n nnn ow CT C CPI CP Cn Cn Cn Cn Cn cn cn mee Mmm am a ERRARE C C o CO N St COR oO T C9 N e Cc N nga USBee RX User s Manual 235 SPI DATA EXTRACTOR The SPI Bus Data Extractor takes the real time streaming data from an SPI bus formats it and allows you to save the data to disk or process it as it arrives SERIAL BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e Monitors one SPI Bus e SPI Clock speeds up to 12MHz e Asynchronous internal sampling of 1MB s to 24MB s e Output to Binary File e Output to Text File e Output to Screen e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The SP
30. char OutFilename unsigned char OutTxFilename unsigned char OutRxFilename int64 StartSample int64 EndSample long Rate unsigned long TxChannel unsigned long RxChannel unsigned long BaudRate unsigned long Parity unsigned long DataBits unsigned long Invert unsigned long delimiter unsigned long hex unsigned long ascii long BytesPerLine char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is the rate at which samples were taken during StartCapture 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps 188 USBee RX User s Manual O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps e TX and RX Channels Bit mask which represents which signal to decode Bit O is Pod signal 0 Bit 15 is pod signal F e BaudRate Baud Rate in bits per second 19 2K 19200 e Parity O No parity 1 Mark 2 Space 3 Even 4 Odd 5 Ignore e DataBits Number of data bits 4 to 24 Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Invert 1 invert the logic of the signal before processing e Hex 0 displa
31. dX 3 1011ms ay 131V Copyright 2012 CWAY Inc All Rights Reserved Designed and Manufactured only in the USA pond Ons US Patent 7 911 970 and other zy E OVERVIEW Using the USBee RX Suite application it is normal for users to debug communication that is being transmitted between ICs or system components This debugging can be performed by viewing the waveforms on the screen or by viewing decoded bus traffic for the various types of busses For example users can see the voltage versus time waveforms of an ASYNC bus Tx and Rx lines or decode the waveform into a byte stream using the standard bus definition ASYNC for example that is then displayed in text in line with the waveform The PacketPresenter feature runs alongside of the existing bus decoders of the USBee RX Suite The PacketPresenter takes the output of raw binary data from the bus decoder and parses the stream according to users PacketPresenter Definition File for the intent of displaying the communications in USBee RX User s Manual 117 easily understood graphical displays The resulting packets are then displayed in a window below the waveforms To Show the PacketPresenter window choose the menu item View Show PacketPresenter Window To resize the window click and drag the thin bar between the PacketPresenter window and the waveforms Protocols are defined using a text file called a PacketPresenter Definition File which s
32. e One USB2 0 High Speed enabled port It will not run on USB 1 1 Full Speed ports e 32MBytes of RAM e 125MBytes of Hard disk space e Internet Access for software updates and technical support EACH PACKAGE INCLUDES The USBee RX contains the following in each package e USBee RX Test Pod e 2 100MHz oscilloscope probes with x1 and x10 selection e 11 lead 9 inch signal generator cable set e 20 lead 9 inch logic analyzer cable set e 20 high performance micro grabber test clips e 6 foot USB cable e USBee RX Suite Software downloaded USBee RX and USBee RX Suite Manuals downloaded USBee RX User s Manual 20 USBee RX User s Manual INTRODUCING THE USBEE RX SUITE 9 J Digital 0 Digital 1 Digital 2 Digital 6 Digital 7 Async 6 The USBee RX Suite is powerful electronic signal analysis software for your USBee RX Test Pod It starts out as an easy to use Logic Analyzer Oscilloscope Signal Generator Frequency Counter and PWM Controller and adds serial bus decoding and world class configurability that lets you solve your electronic problems quickly This chapter details the operation of the USBee RX Test Pod running the USBee RX Suite software USBEE RX SUITE OVERVIEW The USBee RX Suite is a powerful mixed signal analyzer that on the USBee RX Test Pod It is available for free from USBee com and will run without restriction The USBee RX Suite Standard will run in Demo mode without a USBee or o
33. er CYPRESSRFIC z 626 1143ms Write False TX BUFFER ADR rer CYPRESSRFIC 626 1405ms Read False For Help press F1 In order to maintain correct position of the graphical portions of the RTF file all spaces are converted Up to the character and set to the background color Viewed or printed in the RTF format will look correct as above If you copy only the text of this output you will want to search and replace every Up with a space COPYING PACKETPRESENTER OUTPUT TO OTHER PROGRAMS You can copy the contents of the PacketPresenter output window to other programs in a number of ways First you can copy the screenshot of the window by selecting the window and pressing Alt PrtScr on your keyboard This copies the image of the window to the Windows clipboard and you can paste that image into any program that accepts images 122 USBee RX User s Manual You can also use the Edit Copy as Text or Edit Copy as RTF menu items All packets are copied to the clipboard in the format specified Below is a sample of packets copied in RTF format and pasted into Word CYPRESSRFIC ADDRESS WRITEDATA Packet 1 Time 7 339333ms Write False CHANNEL ADR 0 CYPRESSRFIC WRITEDATA Packet 2 Time 7 347833ms Write False RX CTRL ADR 82 CYPRESSRFIC ADDRESS Packet 3 Time 7 256333ms Read False RSSI ADR CYPRESSRFIC ADDRESS SOPDET RXB8 ff RXB1 RXBERR 0 1 0 0 1 Packet 4 Time 9 189167m
34. second rising edge after Word Select change is first bit T Insert Word Select Boundaries R Internal CLK Sample Rate 16Msps default e 247 24MHz e 167 16MHz default e 127 12MHz e 87 8MHz e 67 6MHz e 47 4MHz e 37 3MHz e 27 2MHz 17 1MHz EXTRACTOR API USBee RX User s Manual 247 The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME usbedI2S dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV APT GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns e O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given para
35. v Event 4 Followed By v Event 5 Followed By v Event 6 Cursors USBee Capture Once Captum Many E Use PacketPresenter Definition File name is below Logic Analyzer Oscilloscope T Apply 0 USBee RX User s Manual 99 Below shows a search that finds all times that the analog signal CH1 is NOT between 1 1V and 4 3V gg Channel Settin gs E Setup Hep lt Single Signal EE GER OE URGE NE um Ps 2 eC im 1000us div 10 084833ms SMBus Parallel Custom Search a lt l gt a Event 1 If CH1 voltage is not between 1 1V and 4 3V File View Speed and Samples Trigger Digitaro 7 RN INEST D Digital 1 ET A L If Digital Signal Uig tal has rising edge happen Y times or pg aj I J If Analog Signa CH1 has sing edge at voltage threshold 2 Volts happens 1 times Digitar2 gt i while Digital 3 x B i x E Bus Digital 2 decoded data is between 15 and 99 and SPI2 E Digital Signal States are F EEE bee e ee DUM IO to IF ROOIX Le 99 990 BERG OL and Digital 4 B z Analog Signal CH1 is not v 1i Yoltsto 43 Volts Digital m t and Dc5 C This Event happenir ng between 0 us and 10 s immediately after the previous event Digtare mJ Digital 7 Em Followed By Async 6 x v Event 2 Followed By v Event 3 Followed By v Event 4 Followed By vj Event 5 Followed By v
36. 1 signal0 128 signal7 J MISO Signal 12signal0O 128 signal7 K MOSI Sample Time 1 Rising CLK Edge O Falling CLK Edge U MISO Sample Time 1 Rising CLK Edge O Falling CLK Edge W Insert Slave Select Boundaries T Insert Time Stamps R Internal CLK Sample Rate 16Msps default e 247 24MHz e 167 16MHz default e 127 12MHz e 87 8MHz e 67 6MHz e 47 4MHz e 37 3MHz e 27 2MHz USBee RX User s Manual 237 e 17 1MHz EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME usbedSPI dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extra
37. 33 lines 07 17 2006 16 32 p USBee RX User s Manual 259 CAN DATA EXTRACTOR The CAN Bus Data Extractor takes the real time streaming data from the CAN bus formats it and allows you to save the data to disk or process it as it arrives CAN DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e Monitors one CAN Bus e intended to be used on the digital side of a CAN bus transceiver such as the Microchip MCP2551 e 11 or 29 bit identifier supported e Time Stamp for each packet e Output to Text File e Output to Screen e Comma or Space Delimited files e Packet filter on Identifier e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The CAN Bus Data Extractor connects to the digital side of your CAN bus transceiver and only needs to listen to the receiving side of the transceiver such as the RxD pin on the Microchip MCP2551 CAN bus transceiver chip Use signal O as the RxD data line and connect the GND line to the digital ground of your system Connect these
38. Chi 67 Chi 67 Chi 67 Chi 67 Chi 67 Chi 0 07 Chi 67 Chi 0 07 Sample USB Start Capt e Mode to 666 bytes 666 bytes Ch2 8 86 Ch2 8 806 Ch2 6 66 Ch2 6 86 Ch2 8 86 Ch2 8 806 Ch2 8 806 Ch2 6 66 Ch2 6 66 Ch2 6 66 Digital FFE Digital FFE Digital FFE Digital FFE Digital FFE Digital FFE Digital FFE Digital FFE Digital FFE Digital FFE ee DR Logic Analyzer Oscilloscope Toolbuilder application in G uring Data from Pod Waiting for data to he captured Sample 8 Signall F FFEA SignallF SignallF SignallF SignallF 6 SignallF SignallF SignallF SignallF 81 SignallF SignallF SignallF SignalIF SignallF SignallF Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample Sample 12 Sample 13 Sample 14 ROCs oh ON Gee se ee oe oe ee oe ee ee E P FFE FFEA FFEA FFE FFE FFE FFE FFE FFEA FFE FFEG FFE FFE FFE H Hu nu m m m bu we 8 4 81 81 81 AnalogChannell AnalogChannelt AnalogChanneli AnalogChanneltl fnalogChanneli AnalogChannell AnalogChannelt finalogChanneli AnalogChannelti AnalogChannelil AnalogChannell AnalogChannell AnalogChanneli AnalogChannell AnalogChanneli uH n m W i 60 078 8 078 6 078 0 078 8 078 0 078 0 078 mM 0 078 60 078 mM 8 078 0 078 0 078 miM Sample USBee DK Signal Generator Application in C
39. Cursors PacketPresenter File Edit 4 Layer ASYNC 6 Packet 0 Time 2 484ms Layer SPI 2 MOSIDATA MISODATA Packet 1 Time 1 76ms Layer SPI 2 MOSIDATA MISODATA Packet 2 Time 1 4984ms Layer SPI 2 Packet 3 Time 1 104ms J xi MOSIDATA MISODATA FF FF FF 78 84 24 SLAVEADDRESS RW ADDRESS SLAVEADDRESS RW DATA Packet 4 Time 788us 51 Read 30 T Layer ASYNC 6 LP Packet 5 Time Ons 19 14 lB8 1C 1D 1E 1F Layer SPI 2 MOSIDATA MISODATA _ _ USBee RX Suite Logic Analyzer Oscilloscope Copynght 2012 CWAV Inc All Rights Reserved Designed and Manufactured only in the USA US Patent 7 911 970 and other patents pending B USBee RX User s Manual 119 SETTING UP THE PACKETPRESENTER Each digital waveform on the screen can be defined as a different bus I2C SPI etc in the Channel settings dialog box by clicking on the white box to the left of the signal name Below shows the Channel Settings dialog box Single Signal uss sm rc syne 1 Wire c Signal Selection Enable OO OOOOO Clock OO O OO O0O MOSI Data OO 0 O9 0 O0O00 MISO Data 0000000 9 O MOSI Samples MISO Samples gt Use Enable Enable Active Bits Per Word Rising 9 Rising Enable On Active Low D Falling O Falling J Enable Off O Active High B ox Use PacketPresenter Definition File name is below Browse E
40. EE Ef 17 ff ff ff ff ff ff ff Ef 1 Ef ff EE fE E Ef EEEE 19 ff ff fft ff ff if ff fi eU Tf Ef ff ff FEET ff E 21 ff ff ff ff ff ff fif f 22 EE Ef if if fi EEIT Ei 2 EE EELEE EEL EEEE iE TE ea ff ff ff ff ff ff ff ff ib Tf ff ff ff ff ff ff ff eb EEs EELEE EE TIE EE EE EE c rcc 24 rt c c r lt 6 Yv 20 Lines 1 to 26 o File Size 6 2 MB 250 000lines 7 214 USBee RX User s Manual BasicExtractor 0O outpuL dex P 3209 1 V C Program Files USBee AX Pro Data Extractors output dex Fie Edit View Favorites UserCommands GridLines Tools Help alel alulo e slalalcole amp ffffffff ffffffff ffffffff FELLELIL ffffffff R 27 ffffffff T 8 Q 2000000 ffffffff ffffffff C 4 2 ELETELEC SECCCELE TETELECT EFEEEEEEE EFEEETET TEEEEEEET ELESEETE EEEEFESEEE 3 BEELELES ELLEL EL FELELELE FLELELEL ELELELE EELELELE ELELELEL ELELL ET 4 ffffffff ffffffff EFEEEEEE EFEEEEEE EEFEEEEE EEEEEFEE EEEEEEEE TEEEFEEEEE 5 ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffff ffffffff Gt EREFEFET TEEEEFEIT EEETEEFEERE ETEEFEEET EEEEEETE EEEFETETE EFEFEEET EFEEEEET f TIEETEPE EEEEFEEFEE EETEEEEEE EFEEEFEEEE EFEEEFEE EE EEEFEE EEEEEEF EE EFE EEEFEE B BEECECEE FECTLESE TE EEETFERE EEEEEEEE EEPREFEEE TIEEEEEET EEREREEFEE EEETEERRE T 9 ffffffff ffffffff FLEECE Ere ET Ee cece
41. EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e One USB Bus running at Low 1 5Mbps or Full Soeed 12Mbps USB not High Speed e Time Stamp for each packet e Output to Text File e Output to Screen e Comma Space or Newline Delimited files Packet filter on Device Address and or Endpoint e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The USB Bus Data Extractor uses signal O and signal 1 as the DPlus and DMinus lines of the USB bus Connect these signals to the USB bus using the test clips provided Connect the GND line to the digital ground of your system EXTRACTOR COMMAND LINE PROGRAM The USB Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters To run the Data Extractor e
42. Event 6 Cursors USBee capture Once capture Many JAMIN Use PacketesenterDefition Fie name below Logic Analyzer Oscilloscope T Apply 100 USBee RX User s Manual TIME WINDOW QUALIFIER The final line of each Event specifies a time window for the event to occur There are two selections to specify a time window immediately or anytime For the first Event only anytime is available This specifies a time period in which the entire event must occur for a match to be found For example if you want to find when two falling edges occur within 10usecs of each other specify This Event happening between Os and 10us anytime For the Events 2 32 both anytime and immediately are available Anytime specifies a time period minimum and maximum in which the entire event must occur for a match to be found The match can occur anytime after the previous event but must occur within the time window For example if you want to find when two falling edges occur within 10usecs of each other specify This Event happening between Os and 10us anytime after the previous event Below shows a diagram for the anytime setting As long as Event 2 is at least Minimum and at most Maximum time it is considered a match Event 1 7 Anytime Event 2 Minimum d EEEEENCTIO IDI NN Immediately specifies a time period relative to the end of the previous event in which the entire event must occur for a match to be found For example if you want t
43. Length 4 h Data N h CRC 15 h CRCDel 1 h ACK 1 h ACKDel 1 h EOF 7 h Base frame format Fields SOF 1 i ID 11 h RTR 1 h IDE 1 0 h Rsrv 1 i Length 4 h Data N h CRC 15 h CRCDel 1 h ACK 1 h ACKDel 1 h EOF 7 h SDIO PROTOCOL EXAMPLE SDIO Protocol Definition File This file defines the transfers to from a custom device Protocol name SDIO 0 bytewise Debug DebugOn Uncomment this to turn on Debug Packets Packet Start type event event 1 Start of Packet channelxory End type event event 2 End of Packet channelxory Decode Fields Data Packets Fields 8 Data Ny h Do all of the Command Packets Fields 3 Start 1x h HOST 1x 1 h CMD 6x 4 L DSR 16x h Fields 13 Start 1x h HOST 1x 1 h CMD 6x 7 L RCA 16x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 9 L RCA 16x h Fields 13 Start 1x h HOST 1x 1 h CMD 6x 10 L RCA 16x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 13 L RCA 16x h Fields 13 Start 1x h HOST 1x 1 h CMD 6x 15 L RCA 16x h Fields 13 Start 1x h HOST 1x 1 h CMD 6x 16 L BLOCK LEN 32x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 17 L Address 32x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 18 L Address 32x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 24 L Address 32x h Fields 3 Start 1x h H
44. Logic Threhold 10 0 0V 15 1 5V etc Stop on Overflow Stop on Overflow default is off 202 USBee RX User s Manual EXAMPLE OUTPUT FILES AsyncExtractor 0O M 255 H V 2 File Edit View Favorites UserCommands GridLines Tools Help 0 10 20 O output dex P 3209 C O 100000 R 1000000 C Program Files USBee AX Pro Data Extracto 2I EM XI J C o amp CO n2 2746418333 2746478333 2746610333 2746670333 2746850333 2746910333 2747186333 2747246333 2747474333 2747534333 2747762333 2747822333 2748018333 2748078333 2748322333 2748382333 2748594333 2748654333 2748802333 2748862333 2749106333 2749166333 2749378333 2749438333 2749586333 2749646333 2749874665 2749934666 2750162665 2750222666 2750466666 2750526666 2750706666 Li Lines x 33 0 0 F ile Ex 42 x Ven Toi A USBee RX User s Manual E 8 L 203 AsyncExtractor 0 onutput dex P 3209 C Q 100000 R 1000000 E 8 L D M 255 H V 1 V C Program Files USBee AX Pro Data Extracto El x File Edit wiew Favorites UserCommands Gridlines Tools Help ale tJ nli Lalo E EE 3009646333 55 3009656333 4 3009666333 01 5 3009676666 02 6 3009686666 03 7 3009696666 04 o 3009706666 55 n 9 3009716666 AA 10 3009726666 01 11 3009736666 02
45. Mode C Users Tim AppData Local USBeeSuite last usbeerx File View Speed and Samples Trigger Setup Help USBee RX Control Panel 9 Sig Gen PWM C High Low Tri Freq 1000 DutyGylce 50 Sig Gen PWM High Low Freq 1000 Duty Cyice 50 Li ee l ea 1 Duty Gyice 50 Analog Generator Q Sine Square Tri Ramp Frequency 3 7kHz Min Voits Oscilloscope Probes Freq 1000 1x 10x Qj1X QX CH Units v Goune v CH1 Scale osae 1 CH1 Offset CH2 Offset 0 0V Duty Gyice so L Freq 1000 Freq 1000 Duy Gie 50 Digital Generator Q e 6V 60V 6V 60V w Files DigSigGen csv cit Freq 1000 DutyGylee 50 la ov 0 0V OV 00V Samples Loaded 62116 6V 6 0V 6V 6 0V Ji Loop Wait ForT T Rising Sample Clockis 24000000 ps Sample Clock is extemal on C input Freq 1000 DutyCyice 50 Freq 1000 Duty Gyice 50 600us 300us l 0 001378350 SPI2 Digital 2 FF 300us div l SPL2 Digital 3 0C Digital 0 z 0 001290950 SPI 2 Digital 2 FF Digitsl 1 0 001290950 SPI2 Digital 3 8C Digital 2 0 001076800 SPI2 Digital 2 78 F j r 0 001076800 SPI2 Digital 3 FF garz jt LIU 0 000987500 SPI2 Digital 2 84 SPL2 x FF FF FF 78 84 24 cs ae Digital 5 0 150 I2C 5 Digital 5 A2 Write mcs C2 OG 1GD Gal 0
46. OB 95 375us Async O TX OC 98 042us Async O RX OD m ife E 95 375us Async O RX OE lb tt 4 Ms 95 333us Async O RX OF 95 375us Async O RX 10 95 375us Async O RX 11 210us SPI2 MISO FF Ons SPI2 MOSI 94 Se 90us SPI2 MISO FF L3 J3 stot Ons SPI2 MOSI 54 5 083us SPI2 MISO E8 SPE MOSI FF 042us SPI 2 MISO 58 Cursors Ons SPL MOSI n e e e e h H HM tk k USBee Demo Capture Many surements i Logic Analyzer Oscilloscope SEXE x2 dX 1 dX Period Frequency Duty Cy E Ons 1 581625ms 1 995708ms 314 083us 3 183868kHz 10875us 91954023kHz 50 2 34 USBee RX User s Manual USBEE RX CONTROL PANEL The USBee RX Suite contains a USBee RX Control Panel that controls many of the features of the USBee RX system including the Variable Logic Threshold Analog channel scaling Current Logic and Analog levels Analog Signal Generator Digital Signal Generator PWM controllers Pulse Counters and Frequency Counters USBee RX User s Manual 35 QUICK START This section goes through installing the software for your USBee RX and getting you using the USBee RX quickly PC SYSTEM REQUIREMENTS The USBee RX Suite requires the following minimum PC features e Windows XP SP3 Vista or Windows 7 32 bit or 64 bit operating system e NET Framework 4 0 or greater This is installed automatically during installation if not already on your PC e Pentium or higher processor One USB2 0 High Speed
47. RX Suite adds Sticky Notes which you can use to further detail your traces for documentation purposes You can also add Title and Footer text to your display that is saved with the trace file BB usse Suite Pro gt USBee DX Connected File View Speedand Samples T rigger Setup RRQ Transmit Start RX ras s4 el a End Of Command Ette eA ELL wares ger ees eae Cursors T USBcC ns o Logic Analyzer Oscilloscope ig T X Copyright 2009 CWAV Inc ACQUISITION CONTROL The USBee RX Suite adds more trace acquisition and triggering controls such as Normal Mode Automatic Mode Single Capture and Multiple Capture Normal mode will wait for the trigger event to occur before capturing Automatic Mode will wait a set time for the trigger and will automatically trigger if it is not found Single Capture mode performs a one shot capture of the signals Multiple Capture repeatedly captures and displays the signals USBee RX User s Manual 31 DISPLAY MODES The USBee RX Suite lets you widen the trace waveforms display the analog waveforms as vectors or single sample points and persist the display from one trace to the next PBB Ustce Suite Pro USBee DX Connected File View SpeedandSamples Trigger Setup Help 4433325 Digitalo Digital 1 Digital Digital 3 Digital 4 Digital 5 Digital 6 Digital 7 e ewe Im we lm on on Analoq Capture Once ANALOG CHANNE
48. SCL ACK us I2C 5 SCL ACK Start Read us I2C 5 SCL ACK USBee RX User s Manual PACKETPRESENTER The USBee RX Suite adds the PacketPresenter feature that runs alongside of the existing bus decoders The PacketPresenter takes the output of raw binary data from the bus decoders and parses the stream according to users PacketPresenter Definition File for the intent of displaying the communications in easily understood graphical displays f USBee Suite Pro USBee RX Demo Mode C Program Files x86 CWAV Inc USBee RX Suite RXDemo usbeerx File View Speed and Samples Trigger Setup Help 7 w USBee RX Control Panel lt lt Cj 400us div 1 6ms 1 2ms 800us 400us 100us 400us 800us 12ms 16ms Digitat 0 Digitat 1 2 Digitat 2 3 vidit 3 ja a dd d aa E s Ua a S912 F5 F AA Gee rS E 9 9 96462 t969 J 6369 AAA t3969 1 6969 fF HED 1 O 1 mmm E Digital 5 pes I C GI RE MEO 2 09 GJ Digitar Digitat7 on IF E9 E 3 EJ rd PacketPresenter File Edit Layer ASYNC 6 Packet 0 Time 2 485ms 19 1A Cursors xi Layer SPI 2 1B 1C 1D 1E 1F Packet 8 Time 1 38ms x2 Layer SPI 2 MOSIDATA MISODATA Packet 1 Time 1 76ms EC 1C MOSIDATA MISODATA Packet 2 Time 1 405ms Layer SPI 2 Packet 3 Time 1 105ms FF FF FF MOSIDATA MISODATA Layer SPI 2 T 0ns X1 1404ms Yt 22 89 Duy Cyde n X2 1 696ms Y PAY CIS TN
49. SET INTERFACE Alt Setting 0 Interface 0 DAT 45 0000005740 IN Add 1 EndPoint 0 DAT 1 ACK 46 47 0000010509 SETUP Add 0 EndPoint 0 GET DESCRIPTOR DEVICE Length 64 DATAO 80 06 0000010509 IN Add 0 EndPoint 0 DAT 1 12 01 00 01 FF FF FF 40 47 05 31 21 0 0000010509 OUT Add 0 EndPoint 0 DATA1 ACK oe gt Lines 1 to 48 36 File Size 10 94 KB 131 lines 07 17 2006 16 02 A 256 USBee RX User s Manual Usbextractor 0 output dex P 3209 G Q 10000 R 1 B V C Program Files USBee AX Pro Data Extractors output dex Fie Edit View Favorites UserCommands Gridlines Tools alej al Gls se c so e amp 0 10 20 47 05 31 21 04 00 00 00 00 01 Lines 1to30 96 File Size 1 73KB 31 lines 07 17 2006 16 35 USBee RX User s Manual 257 UsDextractor 0 output dex P 3209 G Q0 10000 R 1 A H V 1 B D File Edit View Favorites UserCommands GridLines Tools alel alulej al slalalole E ee 0 10 20 123456789 123456789 123456789 1234567893 071 005 049 033 004 000 Lines 1 to 30 100 File Size 2 22 KB 30 lines 07 17 2006 16 29 A 258 USBee RX User s Manual Usbextractor 0 output dex P 3209 G Q0 10000 R 1 B I V C Program Files USBee AX Pro Data Extractors output dex Fie Edit view Favorites UserCommands Gridlines Tools Help alel alul 18 2 Galoo m ao Poo an OO mo n AN no AI Aa m noo n o n z Lines 1 to 32 96 File Size 528 bytes
50. Stamp for each packet e Output to Text File e Output to Screen e Comma or Space Delimited files e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The SM Bus Data Extractor connects to the SMBCIk and SMBData lines of the SM Bus Use one signal as the SMBData line and one signal as the SMBCIk line Also connect the GND line to the digital ground of your system Connect these signals to the SM Bus using the test clips provided EXTRACTOR COMMAND LINE PROGRAM The SM Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters 230 USBee RX User s Manual To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windo
51. StartSample int64 EndSample unsigned long Rate unsigned long Channel unsigned long BitRate unsigned long maxID unsigned long minID long delimiter long showall long Phex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is as follows O 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps e Channel Which signal 0 15 to use for the CAN signal e BitRate The value of the bit rate in bits per second for 250kbps use 250000 e MaxID 0 show all packets otherwise this is the maximum ID to display e MinID O show all packets otherwise this is the minimum ID to display e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e PHex 0 display data in decimal 1 display data in hex e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e Erro
52. Sync 8 i PID 8 L Rtype 8 i bRequest 8L 11 SSet Interface AltSetting 16L h Interface 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 12 SSync Frame bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L IN Fields Sync 8 i PID 8 10010110b L Addr 7L d EP 4L d CRC5 5 i Sync 8 i PID 8 L InData NL h CRC16 16 i Data Synces8 1 HS 8 L Handshake OUT Fields Sync 8 i PID 8 10000111b L Addr 7L d EP 4L d CRC5 5 i Sync 8 i PID 8 L OutData NL h CRC16 16 i Data Sync 8 i HS 8 L Handshake Catch all Fields Data NL h Lookup Type 1 SDevice 2 Config 3 String Lookup PID 11000011b SDATAO 1010010b SDATA1 01001011b SACK 01011010b SNAK 01111000b S STALL 10110100b SSETUP 10000111b SOUT 10010110b SIN 10100101b SSOF Lookup HS 01001011b SACK 01011010b SNAK 01111000b SSTALL 158 USBee RX User s Manual PS2 PROTOCOL EXAMPLE PS2 Protocol Definition File This file defines the transfers from a PS2 device Protocol name PS2Bus bytewise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type next Every byte is the start of the next packet CHANNELXOR
53. To edit the text simply select the box and edit the text This text is then saved with your capture files n 5 USBee Suite Pro USBee SX Demo Mode l e 1E f File View Speed and Samples Trigger Setup Help lt te Here is the top Annotation Text Box q Ams div 5 601333ms 9 601333ms 13 601333ms 17 601333ms 21 601333ms b x e e k e x x x x LI x x AUAM TONNE ALE DACH HET A AUOD EI CIE CH CHO NA ALITUR T_T STETIT o TRE TUTTA UIT LR TL LPL TIT R e e e Cursors X1 Here is the Bottom Annotation Text Box USBee Demo Capture Many Measurements Logic Analyzer Oscilloscope Drawing MISO E c X2 dx 1 dX Period Freq N Ons 10 7005ms 10 710667ms 10 167us 98 360656kHz 423345ms 23 6 108 USBee RX User s Manual STICKY NOTES Sticky Notes are editable text blocks that look like sticky notes They can be positioned anywhere in the application window Sticky Notes are placed using the View Add Sticky Note menu item Once you select this menu item your cursor changes to 4 way arrows and a Sticky Note moves wherever you move the cursor To place the note position it where you want it and then press the left mouse button You can edit the text within the Sticky Note by clicking on the text and typing in the new text You can hit Enter to add more lines As you add text the marker will expand to fit the text To move the Sticky Note click on the
54. Waiting for generate to finish Breaks 1 Running Triggered Complete Stopped 1 166 Hit any key to continue USBee RX User s Manual AnalogChannel2 AnalogChannel2 AnalogChannel2 AnalogChannel2 AnalogChanne1l2 AnalogChannel2 AnalogChannel2 AnalogChannel2 AnalogChannel2 AnalogChannel2 AnalogChanne 12 AnalogChannel2 AnalogChanne 12 AnalogChannel2 AnalogChannel2 Itis a Command 193 File USBeeRX cpp USBeeRXToolbuilderExampleC cpp Defines the entry point for the console application 21 include stdafx h include conio h include windows h define CWAV API stdcall define CWAV EXPORT declspec dllexport define CWAV IMPORT declspec dllimport CWAV IMPORT unsigned long CWAV API InitializeRX void CWAV IMPORT unsigned long CWAV API GetSignalsRX unsigned char digital to7 unsigned char digital8toF unsigned char analog1 unsigned char analog2 unsigned char CandT 9 CWAV IMPORT unsigned long CWAV API SetSignalsRX unsigned long mask unsigned long value 9 CWAV IMPORT unsigned long CWAV API GenerateAnalogWaveformRX unsigned long SamplesPerSecond unsigned char SamplesPerCycle unsigned char samples CWAV IMPORT unsigned long CWAV API GeneratePWMWaveformRX unsigned char channel unsigned long samplespersecond unsigned char dutycycle 9 CWAV IMPORT unsigned long CWAV API LoadDigitalWaveformRX unsigned long numberofsamples unsigned char samples CWAV IMPOR
55. XP Vista or 7 PC High Speed USB 2 0 port through the USB cable and to your circuit using the multicolored test leads and clips Once connected and installed the USBee can then be controlled using either the USBee RX Suite Windows Software or your own USBee RX Toolbuilder software The USBee RX Test Pod is ideal for students or designers that need to get up and running with High Speed USB immediately With a mini B USB connector on one end and signal pin headers on the other this simple pod will instantly USB 2 0 High Speed enable your design Then using the source code libraries drivers and DLL s that are included you can write your own PC application to control and monitor the signal pins on the pod SYSTEM SOFTWARE ARCHITECTURE The USBee RX Pod is controlled through a set of Windows DLL function calls These function calls are defined in following sections and provide initialization and data transfer routines This DLL can be called using a variety of languages including Visual BASIC C C etc We have included a sample application in C and VB that show how you can use the calls to setup and control the pod You can port this example to any language that can call DLL functions Delphi Lab View After installing the USBee RX Suite software on your computer you can then plug in the USBee RX pod Immediately after plugging in the pod the operating system finds the INF file installed during installation This file specifies which dri
56. background of the waveform screen can be set to white or black using the View Background White or View Background Black menu items GLASS APPEARANCE Windows has added the ability to have a Glassy appearance on applications If your system is capable of this glassy look you can use the View Show Glass If Possible menu item to turn it on If it is not possible or you turn off Glass the display shows a grey background a 3 E 3 i PA E 3 m With Glass On With Glass Off USBee RX User s Manual 77 FILE OPERATIONS Using the File menu you can start a New file Save trace data Open previously saved traces and Export trace data to other file formats CREATING A NEW FILE To start a new file choose File New This will configure the screen to the default state with all available channels enabled SAVING A CAPTURE FILE After capturing a trace you can save it to disk using the File Save As menu item This saves all trace data cursor positions and screen format The files can be saved in either Uncompressed format usbeesuite extension or in Compressed format usbeecomp extension to reduce drive space requirements Saving and Opening large buffer sizes can take a while to perform the compression and saving but can greatly reduce disk space OPEN AND EXISTING CAPTURE FILE To view a previously saved capture file us the File Open menu item This will load the trace data and screen format including decoder setup Opening f
57. be called before calling any other USBee RX functions Calling Convention int InitializeRX void Return Value 0 Pod Not Found 1 Pod Initialized READING AND SETTING SIGNAL STATES _ SETSIGNALSRX SETTING THE USBEE RX OUTPUT SIGNALS Calling Convention CWAV IMPORT unsigned long CWAV API SetSignalsRX unsigned long mask unsigned long value 9 e mask is the mask for setting each of the 8 USBee digital Output signals 0 through 7 A signal is not changed if the corresponding bit is a O A signal is changed if the corresponding bit is a 1 Channel DO is bit O Isb and D7 is bit 7 e value is the digital level driven on the output signals A signal is driven high 3 3V if the corresponding bit is a 1 A signal is driven low OV if the corresponding bit is a 0 Channel DO is bit O Isb and D7 is bit 7 Return Value e 1 Successful 174 USBee RX User s Manual e 0 Failure GETSIGNALSRX READING THE USBEE RX INPUT SIGNALS Calling Convention CWAV IMPORT unsigned long CWAV API GetSignalsRX unsigned char digital to7 unsigned char digital8toF unsigned char analog1 unsigned char analog2 unsigned char CandT 9 e After this call the variable pointed to by digitalOto7 will hold the digital logic value read on the input signals O through 7 e After this call the variable pointed to by digital8toF will hold the digital logic value read on the input signals 8 through F e After this call the
58. bitID 00000001 RTR 0 Control 04 Data 00 00 00 00 CRC 6216 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 12 34 43 21 CRC 1B8B ACK 0 11 bitID 001 RTR 0 Control 00 CRC 2213 ACK 0 11 bitID 001 RTR 0 Control 02 Data 00 00 CRC 2ACD ACK 0 11 bitID 001 RTR 0 Control 04 Data 12 34 43 21 CRC 6219 ACK 0 11 bitID 001 RTR 0 Control 08 Data 00 00 00 00 00 00 00 00 CRC 1F40 ACK 0 11 bitID 123 RTR 0 Control 08 Data 00 11 22 33 44 55 66 77 CRC OBD4 ACK 0 11 bitID 1FF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 21B2 AcK 0 29 bitID 00000FFF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 4C56 ACK 0 29 bitID 29 bitID 29 bitID 11 bitID 11 bitID 11 bitID 11 bitID 11 bitID 11 bitID 29 bitID o o1 cos REC 20 123456789 00000001 RTR 0 Control 08 00000001 RTR 0 Control 04 00000001 RTR 0 Control 04 001 RTR O0 Control 001 RTR 0 Control 001 RTR O0 Control 001 RTR O0 Control 123 RTR 0 Control 1FF RTR 0 Control 07 Data 00000FFF RTR 0 Control 07 OOO AO OA rmm o D 1 ln Lines 21 to 57 n 16 F ile Size 26 02 KB 337 lines 07 10 2006 01 53 A USBee RX User s Manual 00 CRC 2213 ACK 0 02 Data 04 Data 08 Data D8 Data Q 500000 R 250000 A H V 1 Data 00 00 00 00 00 00 00 00 CRC 36B4 ACK 0 Data 00 00 00 00 CRC 6216 ACK 0 Data 12 34 43 21 CRC 1B8B ACK 0 00 00 CRC 2 CD ACK 0 12 34 43 21 CRC 6219 00 00 00 00 OO O00 O00 00 11 22 33 44 55 66 77 CRC
59. com download htm It will run in a demonstration mode if you do not have a USBee RX Pod installed and attached To install the software for demo purposes just install the USBee RX Suite software To install the USBee RX Suite software e Click the USBee RX Suite Software link at http www usbee com download htm and click SAVE to save the software to a known directory H Do you want to open or save this file Name usbeesuitesw zip Type Compressed zipped Folder 862KB From usbee com Always ask before opening this type of file harm your computer IF you do not trust the source do not open or 9 While files from the Intemet can be useful some files can potentially save this file What s the risk e Open the ZIP file you just downloaded by clicking OPEN Download complete Download Complete usbeesuitesw zip from usbee com A Downloaded 8652KB in 3 sec Download to C Downloads usbeesuitesw zip Transfer rate Clase e If you receive messages such as below press ALLOW or CONTINUE ANYWAY to continue with installation of the software 38 USBee RX User s Manual This program will open outside of Protected mode Internet Explorer s Protected mode helps protect your computer If you do not trust this website do not open this program Bb beer Microsoft Windows T Do not show me the warning for this program again oen TIU e Run the SETUP EXE file that is included in the ZIP fil
60. enabled port It will not run on USB 1 1 Full Speed ports e 32MBytes of RAM e 125MBytes of Hard disk space e Internet Access for software updates and technical support 36 USBee RX User s Manual SOFTWARE INSTALLATION To ensure that you are using the latest version of USBee RX software you can download the software from our web site at www usbee com You must install the software on the PC before you plug in the USBee RX device A quick guide to install the software follows e Download the USBee RX Software from http www usbee com download htm and open the usbeerxsuitesw zip file e Run the SETUP EXE e Follow the instructions on the screen to install the USBee RX software on your hard drive This may take several minutes e Now plug a USB A to USB Mini B cable into the USBee RX and the other end into a free USB 2 0 High Speed port on your computer e You will see a dialog box indicating that it found new hardware and is installing the software for it Follow the on screen directions to finish the driver install e The USBee RX Software is now installed e Run the USBee RX Suite software by going to the Start Program Files USBee RX Suite e If your PC does not already have NET Frameworks version 4 0 or greater you will be notified to download and install this from the Microsoft web site USBee RX User s Manual 37 DETAILED SOFTWARE INSTALLATION The USBee RX Suite software is available for download from www usbee
61. line and one signal as the SCL clock line Also connect the GND line to the digital ground of your system Connect these signals to the 1 C bus using the test clips provided Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen Single Signal uw Te rr Signal Selection 012 Clock 9 Data 9 Save Cancel On the above dialog box select the SDA and SCL signals The bus traffic will be decoded as in the following screen Gawie JA C o JA JA G A3Red J A 66 USBee RX User s Manual ASYNC BUS SETUP The Async Bus Decoder takes the captured data from an asynchronous bus UART Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The Async Bus Data decoder uses one or more of the 16 digital signal lines 0 thru F and the GND ground line Connect any of the 16 signal lines to an Async data bus Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen mo sw cs cw sea TX Data 9 e C C C 3 4 1E RX Data
62. more wave detail over a short time of display updates USBee RX User s Manual 111 3 USBee Suite Pro USBee DX Connected odaje File View Speed and Samples Trigger Setup Help 250ns 83 3ns Cursors USBee Capture Many A Messirements Logic Analyzer Oscilloscope T Xi X2 dX i dX Period Frequency Duty Cycle Ons Ons Ons Ons infinity Ons infinity Persist OFF Vectors ON Wide ON r USBee Suite Pro USBee DX Connected File View Speed and Samples Trigger Setup Help lt 208 3ns div 3337s Capture Once Measurements Xi dX 1 dX Period Frequency Duty Cycle Ons Ons infinity Ons infinity USBee Logic Analyzer Oscilloscope T x 2 Ons Ons Persist ON Vectors OFF Wide ON 112 USBee RX User s Manual ANALOG CHANNELS SCALING The USBee RX Suite provides a scaling ability to convert the analog voltages into other units of measurement By default each analog channel is set to display the measurements in Volts where 1V is shown as 1V on the display Sometimes the measurement might actually mean a different thing than voltage The menu item Setup Analog Channel Settings lets you specify the units of measurement as well as a scale factor Below shows the default setting for the analog channels showing a gain value of 1 offset of O and units of Volts USBee RX User s Manual 113 BROWSER LIKE NAVIGATION The USBee RX Suite add
63. next byte or bit is assumed the start of a packet Signal An external signal indicates the start of a packet Value A specific value in the data indicates the start of a packet Event A bus specific bus Event or Events indicates the start of a packet For END Next The next byte or bit is assumed the end of a packet Signal An external signal indicates the end of a packet Value A specific value in the data indicates the end of a packet Length A specific or calculated length determines the end of a packet Event A bus specific bus Event or Events indicates the end of a packet Timeout A packet ends after a set timeout without data or events TYPE NEXT The start or end of a packet is the next byte or bit to arrive Packet Start or End type Next Start End of a packet is the next byte bit to arrive USBee RX User s Manual 131 TYPE SIGNAL The start or end of a packet can be indicated by a separate signal such as a chip select or a frame signal using the signal setting Packet Start or End type signal Start End of a packet is based on a signal signal signalvalue Signal number 0 15 level 1 level the signal needs to be TYPE VALUE The start or end of a packet can be indicated by a certain data value contained in the data using the value setting Multiple values can be used where any one match starts or ends a packet All bits in the Value are included in the re
64. number of bytes you want to read from the extraction DLL Returns e O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned long Threshold unsigned long PodNumber unsigned long BaudRate unsigned int DataBits unsigned int Parity unsigned char Channels unsigned char MSFirst unsigned char SUCODBIUCS 3 Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V PodNumber Pod ID on the back of the USBee RX Test Pod BaudRate Baud rate of the async channels All channels are decoded at the same rate Data Bits Number of Data bits 5 6 7 or 8 Parity e 0 No parity bit e 1 Mark Parity e 2 Space Parity e 3 Even Parity e 4 Odd Parity MSFirst 208 USBee RX User s Manual e 0 Least Significant Bit first e 1 Most Significant Bit first Channels Bit mask for which channels to decode 1 signal 0 128 signal 7 StopBits e 2 1 Stop Bit time e 3 1 5 Stop Bit times e 4 2 Stop Bit times Returns 1 if Start was successful e O if Pod failed initialization StopExtraction Stops the extraction in progress CWAV_EXPORT int CWAV_API StopExtraction void Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV_EXPORT char CWAV API ExtractBufferOverflo
65. of 0 or send new bits back using the bitOut pointer one bit per char and a return value of the number of bits returned The default Add In routine is simply is a pass through so that the output data stream equals the input data stream Start with this library source code to add your custom decoding bitsOut bitIn return 1 Indicates that there is 1 return data bit INVERTING DECODER This Add In inverts the packet data out Not in CWAV EXPORT unsigned int CWAV API APIDecode char Protocol char bitIn char bitsOut char reset if bitIn bitsOut 0 else bitsOut 1 return 1 Indicates that there is 1 return data bit EXPANDING DECODER This Add In shows how to convert a stream to a larger stream expanding the bits In this case each bit becomes two output bits CWAV EXPORT unsigned int CWAV APT APIDecode char Protocol char bitin char bitsOut char reset bitsOutt bitin bitsOutt t bitin return 2 Indicates that there is 2 return data bits USBee RX User s Manual 143 COMPRESSING DECODER This Add In shows how to remove bits from a stream compressing the bits In this case each bit pair becomes a single bit basically throwing away the first bit CWAV EXPORT unsigned int CWAV API APIDecode char Protocol char bitIn char bitsOut char reset static everyother 0 if reset Reset the state of t
66. order to see the real data This section defines what decoding should be done to the packet The entire packet from start to end is sent through the decoders If only select parts of the packet needs to be decoded you must create your own Add In decoder using the ADDIN keyword Available decoding types are Keyword Definition NRZI A bit change on the input means a 1 bit on the output no change a 0 MANCHESTER Remove Manchester encoding from data INVERT Invert all bits ZBI5 Zero Bit Insertion removal removes the 0 added after 5 1s ZBI6 Zero Bit Insertion removal removes the 0 added after 6 1s ADDIN Call your own packet decoder using the PacketPresenter API routine APIDecode substring Substitute bytes in the stream no spaces allowed Multiple decoders can be used and are processed in the order listed 134 USBee RX User s Manual SUBSTITUTIONS Substitutions allow a sequence of bytes up to 3 to be replaced with a different set same size or less of bytes They can only be used on bytestreams not bitstreams Substrings define the bytes input and the bytes output The Substrings must not contain any spaces Examples of this are below 1 2 Replaces all 1s with 2s 1 2 3 Replaces all 1 immediately followed by 2 with 3 1 2 3 4 Replaces all 1 immediately followed by 2 with 3 immediately followed by 4 1 2 3 4 Replaces all 1 2 3 with 4 1 2 3 4 INVALID the number of out
67. rectangles on the screen on the associated wave line and are locked to the samples that you specify For example the following call places the Hello World string on the screen stretching from the first sample to the 100 sample WriteEntry OutFile 0 100 Hello World The output is as follows USBee RX User s Manual 89 m a B USBee Suite USBee SX Demo Mode E TS ni Digital 0 Bus O BP Hello World WR Digital 2 Digital 3 Digital 4 Digital 5 Digital 6 Digital 7 Demo Measurements T Xi X2 dX i dX Period Frequency Duty Cycle Ons Ons Ons Ons infinity 4l7ns 240MHz 104857500 CHANGING THE BACKGROUND COLOR OF OUTPUTTED ENTRIES You can control the background color of the entire WriteEntry item by embedding a color code anywhere into the text string Color codes are in the following format RGB Where R is the Red value and is a single digit of O thru 9 G is the Green value and is a single digit of O thru 9 B is the Blue value and is a single digit of O thru 9 For example To output an Entry that has a bright green background use the following WriteEntry OutFile 0 100 Hello World 090 To output an Entry that has a dark red background use the following WriteEntry OutFile 0 100 Hello World 400 Some common color codes are as follows r mm UI AU he a ea aN BPP GIVEN NE a ers LILIm EI USBee Suite Pro USBee SX Demo Mode C icwnUSBee Suite Logic Ana
68. samplebuffer GenerateDigitalWaveformRX xFC 1 1 0 O0 0 3000000 printf Reading Edge Counts and Frequencies An DisableCountsRX ClearCountsRX EnableCountsRX Sleep 100 unsigned long ec0 ec1 ec2 ec3 f4 f5 f6 f7 GetFrequencyAndCountsRX amp ec amp ec1 amp ec2 amp ec3 amp f4 amp f5 amp f6 amp f7 printf Edge Counts 0 ld n ec0 printf Edge Counts 1 ld n ec1 printf Edge Counts 2 ld n ec2 printf Edge Counts 3 ld n ec3 printf Frequency 4 ld n f4 printf Frequency 5 ld n f5 printf Frequency 6 ld n f6 printf Frequency 7 ld n f7 printf Setting Logic Threshold in SetLogicThresholdRX 1 5 printf Starting a Capture n Setup the Trigger Specification SetTriggersRX false false false false false false No trigger means trigger always false false false false false false false false 0 false 1 false 1 1 0 3 0 1 5 OxFFFF 0x0000 OxFFFF Trigger X Event false false false false false false false false 0 false 1 false 1 1 0 3 0 1 5 OxFFFF 0x0000 OxFFFF Trigger Y Event Start the capture unsigned long SampleBufferSize 4 1024 1024 4 Million unsigned char TriggerPosition 50 50 percent trigger in the middle float SampleRate 100000000 100Msps unsigned long ChannelMask OxFFFFFFFF Sample all channels StartCaptureRX SampleBufferSize Trigg
69. the criteria are displayed To turn off the filtering click on the Filter Off button 124 USBee RX User s Manual PACKETPRESENTER TO WAVEFORM ASSOCIATION USING CURSORS logic analyzer that created that packet You can place the cursors using the PacketPresenter window by using the left and right mouse mouse button The cursors are placed at the beginning of the packets The resulting difference between cursors is shown in the Measurement Window Conversely if you place the X1 and X2 cursor in the Waveform display using the Cursors Bar the cursors are moved in the PacketPresenter window and it is scrolled to show that location in the packet list USBee Suite Pro USBee RX Demo Mode C Program Files x86 CWAV Inc USBee RX Suite RXDemo usbeerx File View Speed and Samples Trigger Setup Help v USBee RX Control Panel ED i 300useliv 300us 660us 300us 600us Te LC RU Digital I Digital 2 3 1 7pigital 3 SPI2 Digital 5 h h H H Dc5 Digital 6 Digital 7 Async 6 banae Curso s xi X2 J PacketPresenter File Edit 4 Al SS S jS RW Layer ASYNC 6 Packet 10 Time 2 484ms X Layer SPI 2 MOSIDATA MISODATA Packet 6 Time 728us Layer SPI 2 MOSIDATA MISODATA Packet 7 Time 1 08ms OC 8C x2 Layer SPI 2 MOSIDATA MISODATA Packet 8 Time 1 38ms FF FF FF 78 84 24 SLAVEADDRESS ff Logic Analyzer Oscilloscope Copyright 2
70. the start sample number to find the next sample with an edge on any masked channels Mask bits aligned as above with 1 considered 0 being ignored direction 1 forward 0 backward FindNextEdge should be used instead of SampleData whenever possible since it is much faster Return value is the sample number at the next edge or 1 if there is no more edges in that direction Dim GTriggerSample As Int64 Dim GX1Sample As Int64 Dim GX2Sample As Int64 Public Sub SetCaptureParameters ByVal TriggerSample As Int64 ByVal X1Sample As Int64 ByVal X2Sample As Int64 This routine is called at the end of a capture to pass the Trigger and X1 and X2 Cursors to the custom decoding process GTriggerSample TriggerSample GX1Sample X1Sample GX2Sample X2Sample End Sub Public Sub DecodeCustom ByVal OutFilename As String ByVal NumberOfSamples As Int64 ByVal SamplingRate As _ Integer ByVal Parameters As String Dim OldSample As UInteger Try This is a custom bus decoder Processing Routine The passed in variables are as follows OutFilename the file that all of the decoded Entries get written to This is the file that the USBee Suite will read to display the data on the waveline ActualNumberOfSamples How many samples are in the sample buffer SamplingRate The rate that the samples were taken in sps 24000000 24Msps Parameters User defined string passed from the USBee Suite user interface Channel Setting
71. these events anywhere in the trace it will display a bar at that location and mark it with a unique number The trace below has found 480 matches and the display is showing match 1 through 7 on the first line r E USBee Suite Pro USBee DX Connected File View Speed and Samples Trigger Setup Help lt e 22 10us div 14 498917ms 14 488917ms 14 4478917ms 14468917ms 14 458917ms 14 448917ms 14 438917ms 14 428917ms Search I A80 found 1 DigitalO Digital 1 Digital 2 Digital 3 SPI2 Digital 4 Digital 5 Dc5 Digital 6 Li Digital 7 Async 6 Cursors USBee Capture Once Capture Many Measurements H Logic Analyzer Oscilloscope T Xi X2 dX i dX Period Frequency Duty Cycle Ons Ons Ons Ons infinity 1970417ms 507 506872Hz 99 6 VIEWING SEARCH MATCHES Once a search has been entered and processed you can pan through the found matches by using the left and right arrow buttons on the search line You can also see the total number of matches by hovering over the line 92 USBee RX User s Manual ENTERING A SMART SEARCH The Smart Search uses the specification that you choose in the channel settings Search window to determine what to highlight on the waveform display The search can be made up of up to 32 consecutive Events Each Event is a selection of various bus analog and or digital states To edit an Event click on the expander to show the Event details as below
72. to X2 or Screen versions Screen will output all samples viewed on the current screen X1 to X2 will output all samples between the X1 and X2 cursor and All will output all samples in the sample buffer Choosing All will create VERY large files so use with caution EXPORT SIGNAL DATA TO BINARY FILE When exporting signal data to a binary file each sample is made up of 4 bytes Each sample was taken at the sample rate that was set at the time of capture A single sample 4 bytes is formatted as follows Digital channels O to 7 Isb signal 0 msb signal 7 Digital channels 8 to F Isb signal 8 msb signal F 3 Channel 1 Analog voltage gt ewm OO 4 Channel 2 Analog voltage t ews O USBee RX User s Manual 79 EXPORT SIGNAL DATA TO TEXT CSV FILE When exporting signal data to a text csv file each sample is output to a single line with each signal separated by acomma Each sample was taken at the sample rate that was set at the time of capture An example output file is formatted as follows showing a header that specifies the column labels and which signal is associated Time 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 008739333 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008739500 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008739667 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008739833 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008740000 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008740167 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008740333 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008740
73. 000004799 0000005302 8 0000005871 9 0000006450 J 0000007009 V C Program Files USBee AX Pro Data Extractors output dex File Edit View Favorites UserCommands Gridlines Tools Help a amp 9 aso e amp m fe w s v Aal 0 10 20 30 40 50 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 i Al 11 AO O00 Al FF Al 11 AO O00 Al FF Al 11 AO OO Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Al 11 AQ 00 Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Al 11 AO 00 Al FF Lines 1 to 3 100 File Size 234 bytes 3lines 07 17 2006 19 49 h I2 CExtractor 0 output dex P 3209 O 5000 I M 2 N 1 V C Program Files USBee AX Pro Data Extractors output dex File Edit View Favorites UserCommands Gridlines Tools Help alel s m s aS Galoolm shyt HELME 00000140 AO O00 Al FF Al 11 O 00 Al FF Al 11 AO 00 Al FF ivi iyi iy 00000150 Al 11 AO OO Al FF Al 11 AO OO Al FF Ail 11 AO 00 i ii iyi Lines 1 to 22 95 File Size 354 bytes 23 lines 07 17 2006 19 55 A USBee RX User s Manual 229 SM BUS DATA EXTRACTOR The SM Bus Data Extractor takes the real time streaming data from the SM bus formats it and allows you to save the data to disk or process it as it arrives SM BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e Monitors one SM Bus e Time
74. 000697050 12C 5 Digital 5 ACK Sk E al Sella Le 0 000668050 12C 5 Digital 5 00 DERI 0 000586950 I2C 5 Digital 5 ACK Digital 7 0 000556650 I2C 5 Digital 5 19 EE ETE 0 000475600 12C 5 Digital 5 ACK z 0 000429400 12C 5 Digital gt Start 000416650 I2C 5 Digital 5 A3 Read 0 000335550 12C 5 Digital 5 ACK DOT Co ovra 20 Async 6 EDESA xi Cursors PacketPresenter zi File Edit Larger Smaller Search Filter Window E Layer SPI_ cun MISODATA Layer SPI 2 MOSIDATA MISODATA Packet 3 Time 1 104ms FF FF FFI78 84 24 fPacket 7 Time l 08ms OC 8C 2 SLAVEADDRESS RW ponr sS stave aooness H ET Layer SPI 2 MOSIDATA MISODATA Packet 4 Time T88us 51 jwrite 00 19 Packet 8 Time 1 38ms FF FF FF 78 84 24 Layer ASYNC 6 TX SLAVEADDRESS RW ADDRESS SETI Ex SPacket 5 Time Ons 19 1Al irate o0 19 Layer SPI 2 MOSIDATA MISODATA Packet 6 Time 728us EC 1C USBee RX Suite Logic Analyzer Oscilloscope Copyright 2012 CWAV Inc All Rights Reserved Designed and Manufactured only in the USA US Patent 7 911 970 and other patents pending 16 USBee RX User s Manual THE USBEE RX TEST POD Outputs gt D vi m The USBee RX Test Pod has four sets of connectors e USB O Connects to the PC via 6 foot USB cable CH1 and CH2 o Analog Input Channels O BNC connectors for standard oscilloscope probes O 60V tolerant O 100MHz bandwidth e Outputs c
75. 012 CWAV Inc All Rights Reserved Designed and Manufactured only in the USA US Patent 7 911 970 and other patents pending USBee RX User s Manual The PacketPresenter output and waveform display are synchronized using the Cursors This feature allows you to correlate what is shown in the PacketPresenter window to the actual waveform on the buttons Place the mouse over the packet you want to place the cursor on and click the left or right 125 PACKETPRESENTER DEFINITION FILE FORMAT Each PacketPresenter Definition file defines how the incoming data stream is represented in the PacketPresenter screen of the USBee RX Suite application These PacketPresenter Definition files are in text format and are easily created using either a simple text editor Each bus defined in the USBee RX Suite application can have a different PacketPresenter Definition File The intent of the PacketPresenter is to produce a series of 2 dimensional arrays of labels and values to be displayed as below by the user interface Command Read RSSI 14 34 Command f Setting It is the PacketPresenter Definition File that defines how the data is to be parsed and displayed COMMENTS IN THE PACKETPRESENTER DEFINITION FILE Comments are started with a semicolon and go until the end of the line CONSTANTS IN THE PACKETPRESENTER DEFINITION FILE Constants are fixed numbers anywhere in the file These constants can be expressed as decima
76. 0BD4 ACK 0 FF FF FF FF FF FF FF CRC 21B2 ACK 0 Data FF FF FF FF FF FF FF CRC 4C56 ACK 0 OO AN n on AA o nn on AMA 2T 4 cro n ACK 0 00 CRC 1F40 ACK 0 zl 265 GETTING HELP We are always eager to help you to get the most out of all USBee products If you have any questions comments bug reports or suggestions please contact us We actively improve our product line and your feedback is the key to making the USBee the best embedded development tool on the market Email us at support usbee com or Call us at 951 694 6808 266 USBee RX User s Manual Copyright 2012 CWAV All Rights Reserved Printed in the USA Version 1 5 USBee RX User s Manual 267
77. 12 3009746666 03 13 3009756666 04 14 3009838666 55 15 3009848666 AA 16 3009858666 01 17 3009868666 02 18 3009878666 03 19 3009888666 04 20 3009898666 55 21 3009908666 Aa 22 3009918566 D1 23 3009928666 02 24 300993868566 03 25 3009948666 04 26 3010078666 55 27 3010088666 28 3010098666 01 29 3010108666 02 30 3D010118666 03 31 3UIDl28565 04 32 3010138666 55 re I Lp ae Sem 3010158666 01 L Lines 1 33 lo 0 F le a 41KB 28 513 lines 07 1 7 204 USBee RX User s Manual AsyncExtractor S 0O output dex P 3209 C Q 400 R 1000000 H V 1 0 M 235 Z V C Program Files USBee AX Pro Data Extracto 3 File Edit wiew Favorites UserCommands GridLines Tools Help alel S US al slalalole amp se 9 10 20 3 5907691666 AA 5907701666 55 5907711666 80 5907721666 40 5907731666 CO 5907741666 20 B 5907751666 3 5907761666 55 10 5907771666 80 11 5907781666 40 12 5907791666 C0 13 5907801666 20 14 5907883666 15 5907893666 55 16 5907903666 80 17 5907913666 40 18 5907923666 C0 19 5907933
78. 13h SRSSI_ADR 14h EOP CTRL ADR 15h SCRC SEED LSB ADR 16h SCRC SEED MSB ADR 17h TX CRC LSB ADR 18h TX CRC MSB ADR USBee RX User s Manual 149 150 19h RX CRC LSB ADR lah RX_CRC_MSB ADR 1bh TX OFFSET LSB ADR 1ch TX OFFSET MSB ADR ldh SMODE OVERRIDE ADR leh RX_ OVERRIDE ADR 1fh TX OVERRIDE ADR 26h XTAL CFG ADR 27h S CLK OVERRIDE ADR 28h SCLK EN ADR 29h RX ABORT ADR 32h AUTO CAL TIME ADR 35h SAUTO CAL OFFSET ADR 39h S ANALOG CTRL ADR 20h TX BUFFER ADR 21h RX BUFFER ADR 22h SOP CODE ADR 23h DATA CODE ADR 24h 8PREAMBLE ADR 25h MFG ID ADR Protocol name RxData bytewise DEBUG DebugOn Packet Start type next End type event event 127 All Data passed in Decode Fields RX_IRQ STATUS ADR Read and Write Command Fields ReceiveData N h USBee RX User s Manual CAN PROTOCOL EXAMPLE CAN Protocol Definition File This file defines the transfers to from a custom CAN device over a the CAN bus r Protocol name CANBus bitwise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type event event 1 Start of CAN packet End type event event 2 End of CAN packet Decode Fields Extended Frame Format Fields SOF 1 i IDA 11 h SRR 1 h IDE 1 1 h IDB 18 h RTR 1 h Rsrv 2 i
79. 2522528 SSSSELSRATASRSSS 325231522329 25222224un2322274 2522222202202 522395 22229255 22183229525229 2289 42889292 oOowoowornoornrowwncs Ooooo0ucuomoomno 529z2292 2222128 Qiuoonmonouwooonm o 2296093292232252029 9815828523222 52059 penctoastuosoottd8 PO nO noo OOu ore RROSSSRBASERRS SSRI SP SSSSE IAG Packet 39 Time 212 05usj04 N9Z5S595382225s 55152990n990 9 t538253 2 28929 t38218 803383182299 ww Daoncnwateagam 2323388833373219 2238521233312223 ngs32922 c955929931 23232253 t222558952315238 L Onon noonoo o ER SSRRtsnt sesso e tesnz224ns 213385 wooootutmaowtowos woocuounwutoomoono uu Q elu T men To o2 uo BEaRooauone tSSRERILISAssse tSRessnerssasse e amp 2859g9 9 422125923 529 5922993323 S59 28205224229 wwuwoOuwOoubwuowoodgo OSSSESasnssases LSSSERRSISSSSES amp 89E5599299150253 Qornvauomnewummteoeexit OomnuucrunwuoonmmrTtoo lt 5935z822382288059 e329529098229525u 5229 50g25un921g9 oocowLtcooooonddo Qaoouoodqoomgvuncg Aono L A OO aO D D DO SSSSESSASSARYSS g395226598992935 Dun D ny xr oown Tin m qo o oOOGOwWu GonwW nwwo SRXemoSAaSSuna8 mri rrr r Ons Width W au USBee RX User s Manual 72 SM BUS BUS SETUP The SM Bus Decoder takes the captured data from an SM bus Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either conn
80. 3 0V 160 USBee RX User s Manual Below are a few of the waveforms available USBee Suite Pro USBee RX Connected C cwav USBee Test files ProtocolSetup usbeerx mmm File View Speedand Samples Trigger Setup Help USBee RX Control Pane J loop WeiorT T Rising o SampleCiockis 24000000 spe Sampie Cocc is extemal on C ingut Compyeg td 201 CW AN iru A Rugfls Raver ered Deges are Maresterereet oey m eme USA US Patent 79 1870 eet iium pares portus USBee Suite Pro USBee RX Connected C cwav USBee Test Files ProtocolSetup usbeerx Sor x File View Speed and Samples Trigger Setup Help USBee RX Control Pane iJ Locp WatForT T Rising BiSempecockis 24000000 Spe Sample Clock is external on C input 400us Capas 201 1 ONAY bre AR Rights Tassa Qeagrer srt Marachersren ordy m tme USU UE Smem 7911570 ord thm mets pred USBee RX User s Manual 161 USBEE RX LOGIC PROBE AND DIGITAL VOLTAGE METER The USBee RX constantly monitors the state of all of the digital inputs and the voltage levels of the CH1 and CH2 inputs This way you can see the state of the channels even at times you are not capturing waveforms using the Mixed Signal Oscilloscope These levels are updated every 500msecs 162 USBee RX User s Manual USBEE DIGITAL LOGIC THRESHOLD The USBee RX features variable Digital Logic Thresholds that can range from 1V to 2V Set this logic threshold to
81. 4 mm 90us SPI2 MISO FF O Ma LLL LI x x x x x x LJ k PI2 MOSI Ff 2 CMI SATO Pa USBee Demo Capture Many x surements Logic Analyzer Oscilloscope Tox x2 dX tax pand Tena Dass Copyright 2009 CWAV Inc Ons 1 581625ms 1 895708ms 314 083us 3 183868kHz 10 875us 91 954023kHz 50 2 Absolute Timestamps display the sample time for each decoded bus transaction relative to the trigger location You can turn on Absolute Timestamps using the menu item View Decoder Timestamps Absolute 17596417 SPI 2 MISO 4A 17596417 SPI 2 MOSI FF 17688458 SPI 2 MISO AA 17688458 SPI 2 MOSI FF 17802750 12C 5 SCL S Start 17818458 12C 5 SCL A2 Write 17900542 12C 5 SCL ACK 17933167 12C 5 SCL 00 18015250 12C 5 SCL ACK 18049208 12C 5 SCL 4A 18131292 12C 5 SCL ACK 18179375 12C 5 SCL S Start 18195083 12C 5 SCL A3 Read 18277167 12C 5 SCL ACK 18328333 12C 5 SCL 61 18410417 12C 5 SCL NACK 18470208 12C 5 SCL P Stop 18633208 Async 0 TX 4A 18728542 Async 0 TX 4 18826583 Async 0 RX 4 18921958 Async 0 RX 4 19017333 Async 0 RX 4 19112708 Async 0 RX 4 19208042 Async 0 RX 50 2 MI F 2 2 2 2 uj E OO wW 19417042 SPI 19417042 SPI 19509083 SPI 19509083 SPI 19733167 SPI CO XC X X C2 CO G 8D CO XO OCO CX CO C C2 CO CO CO 0C OC dC 0 0 CO X2 CO CO C 1
82. 500 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008740667 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 008740833 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 7 EXPORT BUS DATA TO TEXT CSV FILE When exporting bus data to a text csv file each decoded element is output to a single line with each field separated by acomma An example output file is formatted as follows showing a header that specifies the column labels and which signal is associated Time seconds Bus Name Signal Name Data 0 000007167 SPI 3 MOSI FF 0 000007167 SPI 3 MISO 24 0 000106333 SPI 3 MOSI FF 0 000106333 SPI 3 MISO A4 0 000238667 SPI 3 MOSI 48 0 000238667 SPI 3 MISO FF 0 000338000 SPI 3 MOSI A8 0 000338000 SPI 3 MISO FF 0 000437167 SPI 3 MOSI 18 0 000437167 SPI 3 MISO FF 0 000542667 12C 5 SDA S Start 0 000558500 12C 5 SDA A2 Write 0 000640333 I2C 5 SDA ACK 0 000661167 12C 5 SDA 00 0 000743000 12C 5 SDA ACK 0 000763667 12C 5 SDA OD 0 000845500 12C 5 SDA ACK 0 001098833 I2C 5 SDA P Stop 80 USBee RX User s Manual PRINTING To print an image of the current screen choose File Print from the menu CREATING SCREEN SHOTS An easy way to create documentation is to take screen shots or portions of the screen image and save them to graphics files You can save the entire USBee RX Suite application window to a file using the File Save USBee RX Suite Screenshot menu item This lets you save the image as a BMP JPG PNG GIF TIF or WMF file to be used by your favorite graphics program You can
83. 666 20 20 5907943666 A 21 5907953666 55 22 5907963666 80 23 5907973666 40 24 5907983666 C0 25 5907993666 20 26 5908123666 A 27 5908133666 55 28 5908143666 80 29 5908153666 40 30 5908163666 CD 31 5908173666 20 32 5908183666 A 33 8908193666 55 5908203666 80 zl T Lines T to 33 8 895 F s 8 98 KB 401 lines 07 17 20 4 OO J C On 4 amp Coho USBee RX User s Manual E 8 L 205 AsyncExLractor S 0 M 255 206 Z D V 1 O output dex P 3209 C Q0 400 R 1000000 E 8 L V C Program Files USBee AX Pro Data Extracto fo File Edit View Favorites UserCommands Gridlines Tools Help alel alulo LS 2 Galoolm amp sg SES EE ee ee ie el Sa 3376844000 3376854000 3376864000 3376874000 3376884000 3376894000 3376904000 3376914000 3376924000 3376934000 3376944000 3376954000 3377036000 3377046000 3377056000 3377066000 3377076000 3377086000 3377096000 3377106000 3377116000 34377126000 Sar 7135000 3377146000 3377276000 3377286000 3377296000 3377306000 34377316000 3377326000 3377336000 3377346000 3377356000 Tr Lines T to 33 iB 8955 F ile Size 9 37 KB 401 lines 07 17 200 4 USBee RX User s Manual AsyncEx
84. 833us 64 833us 114 833us 164 833us Digital 0 Digital 1 r Digital 2 LE Digital 3 Digital 4 tx Digital 5 x Digital 6 tr LEE EEE i p Digital 7 x Analog USBee I Logic Analyzer Oscilloscope T X1 X2 dX dX Period Frequency Duty Cyde Ons Ons Ons Ons infinity Ons infinity The waveforms are shown with a trigger position which represents where the trigger occurred This sample point is marked on the waveform display with a Vertical red cursor line and a T in the horizontal cursors bar You can use the Trigger Position menu setting to specify how much of the data that is in the sample buffer comes before the actual trigger position If you place the Trigger Position all the way to the left most of the samples taken will be after the trigger sample If you place Trigger Position all the way to the right most of the samples taken will be before the Trigger sample This control lets you see what actually happened way before or way after the trigger occurred 50 USBee RX User s Manual Trigger Position to the Right Trigger Position to the Left For an Analog trigger you must specify the Channel to use Rising or Falling Edge and the Trigger Level Click on the Trigger Settings Box to the right of the waveline delete X repeatedly to toggle through Channel 1 Rising Channel 1 Falling Channel 2 Rising Channel 2 Falling and None You then specify the trigger voltage level
85. 92ms 9 amp 9 E5 Measurements E xi x2 dx Ons 1 568833ms 2 170375ms 601 542us 70 the first clock detected Also USBee RX User s Manual SDIO BUS SETUP The SDIO Bus Decoder shows the captured data from an SDIO bus Command and Data lines Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The SDIO Bus Decoder uses any one of the 16 digital signal lines O thru F for the CMD command CLK clock DATO DAT1 DAT2 DAT3 and the GND ground line Connect the CMD CLK and DATO DAT3 lines to your digital bus using the test leads and clips Connect the GND line to the digital ground of your system Software Setup You will want to make sure that the sample rate you have chosen is at least 4 times the CLK frequency in order to recover the bus data reliably So for a CLK with a frequency of 50MHz you need at least a sample rate of 200Msps Also remember that at sample rates above 100Msps the available channels is reduced Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen l Clock Edge DAT lines Bytes Per Block Data Format Rising 1 DATO Decimal Falling 4 DATO DAT3 512 3 _ Use PacketPresenter Definition Fi
86. Adding Searemblle si erster RE o ic E eb o rn Have Pun 91 Viewing Search Matches sias r et Eve RR eee a rectis as tuU PER OAT 92 Entering a Smart Segre caetera oct iut E ERETTE ERa 93 Digital Signal Edges tito IE OE ER Ue ds ito coup Cosi OR roe des rom SCR IO UR UN 94 Analog Signal EdBeS ccce a or ole En ERI o Ix Id OR Pri tia EM IKE imu ES 95 BUS Dag cost itebe De Rm RD RE HN ENTE n IRIS tI RD Don E aSa 96 Digital Signal States and Ranges ener err eee ere t b ee D aea teens 97 Analog Signal States and Ranges uoo i n rares ca ek rd E a Er EE e 99 Tice Wabdow Qualifier di odo ab bp D ORO P Bt died LE Vtt MES 101 FAST PAN BUS VIEWING mercaron dedo esed ate in Ro oed aate led dtaato fe Neve oon ota tsd dian 104 SAMPEE AND SMART IVIARKERS inaug b Yee ea b gh eddy sanplican S EARANN E 105 Sample AVIatKels arrsa Ea depas eb en cab Uno cut ues co bU aal vd dab oo veh Urea 105 SMart MarKes e a T 106 ANNOTATIONS AND STICKY NOTES ideo isnan E E 107 PN OCOU ONS utut tacet E A EAE ieee 108 SUCKY NOLO e N EON T O NO 109 ACOUISITION CONTRO Ceiri andere tans eA a ER or Kira PME 110 BisP diocl 111 ANALOG CHANNELS SCALING cecus es str Nass av toed us eite Ox uto ta sa ur bacr Un os NES Vers ub pese etaed 113 BROWSERSLHIKE NAVIGATION ons Trei E sms auE PET eL ET Ia c Re EUER cuba sun t aa hm d Una o PUP ES 114 RELATIVE TIME DECODE ra P 115 PACKET PRESENTER secaisotio home a o motio ethos i iustutr etm i o
87. B USBExtractor Debug output txt File Edit View Favorites UserCommands GridLines Tools Help alel S GS es ase e E 0 10 20 0000000343 0000000344 0000000345 0000000346 0000000347 0000000349 0000000350 0000000351 0000000352 0000000353 0000000354 0000000355 0000000356 0000000357 0000000358 0000000359 0000000360 0000000361 0000000362 0000000363 0000000365 0000000366 0000000367 0000000368 0000000369 0000000370 0000000371 0000000372 0000000373 0000000374 0000000375 0000000376 0000000377 0000000378 0000000380 0000000381 0000000382 0000000383 0000000384 0000000385 0000000386 0000000387 0000000388 0000000389 0000000390 0000000391 0000000392 0000000393 0000000395 0000000396 0000000397 0000000398 0000000399 0000000400 0000000401 0000000402 Lines 318 to 373 1095 File Size 492 14 KB 3 402lines 07 08 2006 01 00 EndPoint EndPoint 4 EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint 0C OD OE ACK EndPoint 11 12 13 14 ACK EndPoint 3D 3C 3B 3A 39 38 EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint 3E 3F 40 41 ACK EndPoint 44 4B 4C 4D ACK EndPoint 56 57 58 59 SA ACK EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint EndPoint
88. Bee Suite Pro USBee DX Connected File View Speed and Samples Trigger Setup Help lt e Z 50us div 23us ae L Search rs pigar Digital 2 Digital SPL2 Digitar 4 Digital 5 Channel Settings Digital 7 Event 1 If CH1 has a falling edge at voltage threshold 4V while Digital 2 decoded bus data contains ED followed by 1D Async 6 If Digital Signal pick one has risir v If Analog Signal CHi X has falling edge at voltage threshold 4 Volts happens i times while 4 Bus Digital 2 decoded data contains X the value ED followed by the value v 1D followed by anything and ignal States are EX XXIX X X X X XKX X X 0 to X X XES Lese X XES Les c Curso USBee Capture Once Capture Many Pens Use PacketPresenter Definition File name is below Logic Analyzer Oscilloscope T x Apply Copyiaht 2008 CWAV tx Ons Ons i SAMPLE AND SMART MARKERS Placing markers in your traces can help detail what is happening in your design There are two types of markers that can be used The first marker type locks itself to a sample on a waveform and lets you specify the text The second is a Smart Marker that automatically measures the pulse width frequency period or duty cycle of the waveform at the marker location Smart Marker Automatic Measurement 8 667us 30 USBee RX User s Manual ANNOTATIONS AND STICKY NOTES The USBee
89. Bee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components Connect two of the digital signals to the D and D of your embedded USB bus preferably at the IC of the USB device or the connector that the USB cable plugs into Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen fi Signal Selection eee 4 bee ee D 9 D O C Speed Address Endpoint Low Speed Full Speed Save Cancel On the above dialog box select the D and D signals and what speed the bus is operating at You can also specify a specific USB Address or Endpoint you want to see All other transactions will be filtered out Leave the fields blank to see all transactions The bus traffic will be decoded as in the following screen SETUP Add Gaye 4 cum E ACK PACK 9 USBee RX User s Manual 65 I2C BUS SETUP The I2C Bus Decoder takes the captured data from a 12C bus Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The I C Bus Decoder connects to the SDA and SCL lines of the IC bus Use one signal as the SDA data
90. C 9 Data Bits i DataFormat TX and RX Baud Rate gt O6 Decimal are Inverted O7 Hex are not Inverted 98 ASCI Q9 On the above dialog box select the channels you want to observe Each channel can be attached to a different async channel Also enter the baud rate from 1 to 24000000 the number of data and parity bits and what output format you want the traffic USBee RX User s Manual 67 PARALLEL BUS SETUP The Parallel Bus Decoder takes the captured data from a parallel bus The Parallel Bus decoder is also a way to capture the data using an external clock Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The Parallel Bus Data decoder uses the 16 digital signal lines O thru F the GND ground line Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the white box on the left of the signal names on the main application screen B Channel Settings Single signal YT uss osm mc asm Psa seus vs ca see J Paralie Signal Selection 012 56789 AB Data Signals VMMA TIE TE T Clock Signal O Clock Edge Rising Falling Save Cancel
91. C using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments 224 USBee RX User s Manual I2CExtractor SDHICGAB Q NumberOfBytes V Timestamp O filename M SDAMask N SCLMask P PodID Display this help screen USBee RX Pod to Use P Pod ID required Output Location Flags O Output to filename default off S Output to the screen default off When to Quit Flags Q Number of output values default until keypress Input Flags M SDA signal 1 2chO 128 ch7 chO default N SCL signal l1 2ch0 128 2ch7 chl default Output Number Format Flags A All Packet Fields are output default Only data bytes are output Decimal Text Values 49 Hex Text Values 31 default Binary Values 49 Comma Delimited Space Delimited default Timestamps 0 off default l Timestamp on lt MOH mou Digital Logic Threshold Q Logic Threhold 10 020V 15 1 5V etc Stop on Overflow Stop on Overflow default is off EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that ar
92. E Ve Ete M dU Md d 255 CAN DATA EXTRACTOR ieceexe eek eve ees vevuoeeveesureve veu eve vs vus ees ve sur ee ovee ee ve aovesovs 260 CAN DATA EXTRACTOR SPECIFICATIONS 2 eaatei eo Ig cuarta CRM saan utcuR ERE eek a RUD UE 260 HARDWARE SETHDP eos tos PENE naves icd oni Qua vere nOn Ease cate tei Dad asas idu veu AE astindumva d On RES 260 EXTRACTOR COMMAND LINE PROGRAM ccecececcccececececcccececececccecececeasaceceeeeeseceeees 260 EXTRACTOR AAP T 261 BIET EU 262 DLL Exported Functions and parameters esses 262 Extraction Data FoEmut xoci oe oaa e eina o aea ae mua cane bsc ree E ARE 265 GETTING HELP i cci eed E E V ero ive E 266 USBee RX User s Manual 13 14 USBee RX User s Manual INTRODUCING THE USBEE RX POD The Tools You Need All In One Place Introducing the Ultimate PC Based Programmable Multifunction Mixed Signal Oscilloscope Logic Analyzer with I2C SPI Async SDIO 1 Wire CAN protocol decoders Digital Signal Generators Frequency Counter and integrated Protocol Analyzers in a compact and easy to use USBee Test Pod Designed to Solve Your Toughest Problems Using patented technology the USBee RX has 2 analog and 18 digital channels 100MHz to 600MHz sampling depending on channels used 512 million bit internal buffers Dual 10 bit ADC s independent 100Msps 8 channel Digital Signal Generator 7Msps Analog Signal Generator 60V protection on all inputs Variable Lo
93. EC ES F3 Cursors xr USBee RX Suite xt p Ore M Frequency 3 221kH Logic Analyzer Oscilloscope E One ste Duty Cycle 974 ER dX Ons d 0 00V Pas j Siocon WAX infinity J5 Patent 7911 70 wee ote pater pere The position of the waveform defaults to show the actual trigger position in the center of the screen after a capture However you can move the display to see what happened before or after the trigger position To Scroll the Waveforms in Time left and right you can click on the overview bar above the knobs scroll the Pan knob click and drag or mouse wheel on the knob or you can simply click and drag the waveform itself with the left mouse button To Scroll the Analog Waveform in Voltage up and down you can simply click and drag the waveform itself by selecting and dragging using the mouse or use the analog offset knob to the left of the analog waveforms To Zoom In or Zoom Out or other words change the number of Seconds per Division you can use the scroll wheel or single click on the waveform You can also use the Zoom knob click and drag or mouse wheel on the knob To zoom in scroll up or click the left mouse on the waveform window To zoom out in time scroll down or click the right mouse button on the waveform window 54 USBee RX User s Manual To change the number of Volts per Division for an analog channel use the V div knob click and drag or mouse wheel on the knob high
94. EEEEETEIE ELIEFIELE EIEEEEEEE EEEEEE ES 10 ffIfIIFfFfE fEFEEEEFE EEEEEEEE EEEEEEEE TEEEETFEE EFEETEFEEE TEEEFEEEE TEEEEEEE ll ZEELELEE FELEELET TEEEEFEFE EEEEEFEEE TEEEEFEE EE TETFEEFR EEEET EFE TEEEETEE 12 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 13 EEEEEEEE EEEEEEFE EEEFEEEE FEEL ELIE EEEEEEEE FEFEEEEFE EEEEEEEE L EEEEEEEE 14 SPECECEE EEEEEEEE EEEFEEEE EEETEEEE EFEEET EE EFE E EFE FEE EEETEEEE EEEEETEE 15 fEEEREEEE EEFEEEEE EEFEEFEEE EEEEEEEE EEFEET ELE EEEEEEEE EEEEEEEE EEEEEEEE 16 EFEFEEEE EEEEEEEE EEEEEEEE EFEFEEEE EFEEEEEE EFEEFEEEE EEFEEEEIEE EEEREEEEE Lines 1 to 16 0 0 F ile Size 17 64 MB 256 944 records in file 07 17 2006 20 03 Chunk1of 3 4 EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME usbedBasic dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted dat
95. ElseIf CBool InStr Parameters ToUpper NECIR Then Sample Decoder that just detects when a signal changes state The signal to use for the detection is specified in the Parameters as the second parameter WriteEntry BW 0 100 NEC IR Decoder 3 0 Dim SignalToUse As Double Val Params 1 Const LOOKING FOR HEADER As Integer 1 Const LOOKING FOR BITS As Integer 2 Dim ByteAccumlator As Integer 0 Dim BitCounter As Integer 0 Dim ByteStartSample As Int64 Dim Data As UInteger Dim tEdgel As Int64 Dim tEdge2 As Int64 Dim tPulseWidth As Double For Sample 0 To NumberOfSamples 1 Dim SignalMask As Integer 1 lt lt CInt SignalToUse Dim DecodeState As Integer LOOKING FOR HEADER Dim Params Parameters Split CChar Make the mask that will mask off the channel we want in the sample Holds what state of the decoder we are in Holds the accumulated bits for each byte Holds how many bits we have accumulated in this byte so far Holds the sample at the start of the byte Holds the state of the signal at the current sample Where the first edge is Where the second edge is The pulsewidth in seconds Now go from the start of the samples to the end and process the signal Data CUInt SampleData Sample And SignalMask If DecodeState LOOKING FOR HEADER Then If Data lt gt 0 Then We found a High which starts the Header Now look for the next edge tEdgel FindNex
96. Hz 98 2 In this example we will name the bus signals first to make it easier to reference 58 USBee RX User s Manual USBee Suite USBee DX Connected File View Speed and Samples Trigger Setup Help lt ti Cursors U S Bee Capture Measurements Logic Analyzer Oscilloscope T Xi X2 dX i dX Frequency Duty Cycle Ons Ons Ons Ons infinity 1 95 345927Hz 100 Now we will add an SPI bus which is made up of the first 4 signals We press the small sign near the MISO label to insert the waveline below that line We then get the Channel Settings Dialog and choose the SPI tab The following screen is then displayed A4 64 22222 O3 TIEN T From here we select the parameters for this bus shown above and press Save Once we press Save the line is added to the screen the current trace is decoded and the decoded information is shown on the waveline We then add the I2C bus using the Channel Settings dialog box as below with the resulting waveline A4 64 22 822 FF D DNE TI We then add the Async bus using the Channel Settings dialog box as below with the resulting waveline USBee RX User s Manual 59 Bl Channel Settings neon Data Bes Parity Date Format TX and RX Baud Rate 6 None Decimal rwertec 7 Ever 9 e are cot werte 8 Odd AXE 3 Mork Soxe USBee lage Analyzer Cucfizecapa Each bus type has various parameters that can be tai
97. I Bus Data Extractor uses any of the 8 signal lines O thru 7 and the GND ground line Connect any of the 8 signals lines to Slave Select MOSI and MISO Connect the GND line to the digital ground of your system EXTRACTOR COMMAND LINE PROGRAM The SPI Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters 236 USBee RX User s Manual To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments SPIExtractor SWT Q NumberOfBytes R SampleRate M SlaveSelect L CLK V MOSI J MISO K MOSISample MOSISample O filename P PodID U Display this help screen P Pod ID required O Output to filename default off S Output to the screen default off Q Number of output values default until keypress M Slave Select Signal 1 signal0 128 signal7 L Clk Signal 1 signal0 128 signal7 V MOSI Signal
98. ILENAME usbedSMBus dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns e 0 No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned long Threshold unsigned long PodNumber unsigned char All unsigned char Decimal unsigned char Hex unsigned char Binary unsigned char Comma unsigned char Space unsigned char Timestamps unsigned long SMBData unsigned long SMBCIKk Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V PodNumber Pod ID on the back of the USBee RX Test Pod All e 0 Only the data payload bytes are returned e 1 All SMBus packet fields are returned Decimal 232 USBee RX User s Manual e 1 De
99. IONS e Continuous Real Time Data Streaming e Monitors one I C Bus e Time Stamp for each packet e Output to Text File e Output to Screen e Comma or Space Delimited files e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The lC Bus Data Extractor connects to the SDA and SCL lines of the I C bus Use one signal as the SDA data line and one signal as the SCL clock line Also connect the GND line to the digital ground of your system Connect these signals to the 1 C bus using the test clips provided EXTRACTOR COMMAND LINE PROGRAM The I C Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your P
100. IPTOR CONFIG Length 255 DATAO 80 06 0000005729 IN dd 1 EndPoint 0 DAT 1 09 02 DA 00 01 01 00 80 32 09 04 00 OF 0000005730 IN Add 1 EndPoint 0 DATAO 86 02 40 00 00 07 05 06 02 40 00 00 0 0000005730 IN Add 1 EndPoint 0 DATA1 05 81 03 40 00 OA 07 05 82 02 40 00 OF 0000005730 IN Add 1 EndPoint 0 DATAO 89 01 10 00 01 07 05 09 01 10 00 01 O0 0000005730 OUT dd 1 EndPoint 0 DATA1 ACK 0000005736 SETUP Add 1 EndPoint 0 GET DESCRIPTOR DEVICE Length 18 DATAO 80 06 0000005736 IN dd 1 EndPoint 0 DATA1 12 01 00 01 FF FF FF 40 47 05 31 21 0 0000005736 OUT dd 1 EndPoint 0 DAT 1 ACK 29 30 0000005738 SETUP Add 1 EndPoint 0 GET DESCRIPTOR CONFIG Length 9 DATAO 80 06 Of 31 0000005738 IN Add 1 EndPoint 0 DATA1 09 02 DA 00 01 01 00 80 32 ACK 32 0000005738 OUT Add 1 EndPoint 0 DAT 1 ACK 34 0000005738 SETUP Add 1 EndPoint 0 GET DESCRIPTOR CONFIG Length 234 DATAO 80 06 m 35 0000005738 IN dd 1 EndPoint 0 DATA1 09 02 DA 00 01 01 00 80 32 09 04 00 OF 36 0000005739 IN dd 1 EndPoint 0 DATAO 86 02 40 00 00 07 05 06 02 40 00 00 O0 37 0000005739 IN dd 1 EndPoint 0 DAT 1 05 81 03 40 00 OA 0 05 82 02 40 00 OF 38 0000005739 IN dd 1 EndPoint 0 DATAO 89 01 10 00 01 07 05 09 01 10 00 01 O0 39 0000005739 OUT Add 1 EndPoint 0 DAT 1 ACK 41 0000005739 SETUP Add 1 EndPoint 0 SET CONFIGURATION 1 DATAO 00 09 01 00 00 00 42 0000005739 IN dd 1 EndPoint 0 DAT 1 ACK 44 0000005740 SETUP Add 1 EndPoint 0
101. Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments USBee RX User s Manual 251 Usbedtractor SDHICGAB R USBSpeed Q NumberOfBytes V Timestamp O filename P PodID Display this help screen P Pod ID required O Output to filename default off S Output to the screen default off Q Number of output values default until keypress R Bus Speed O Low Speed USB 1 Full Speed USB A All Packet Fields are output default B Only Data Bytes are output D Decimal Text Values 49 H Hex Text Values 31 default Binary Values 49 C Comma Delimited G Space Delimited default V Timestamps O off 1 each packet start EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME usbedUSB dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from t
102. KET Sometimes a specific bus event plays a role in the packet format To specify that a specific bus event needs to occur at a specific time in the field sequence place the single Bus Event value inside brackets in the Field Line Multiple events in a single value are not allowed however consecutive events are allowed To indicate the absence of a specific bus event in the protocol use the Not operator USBee RX User s Manual 137 For example if the bus is I2C use the following to require that a Start Bit is present between field1 and field2 Fields Fieldil 1 Field2 If there is a start bit between the 2 fields then that Field Line will be processed And use the following to require that a Start Bit is NOT present between field1 and field2 Fields Fieldl1 1 Field2 If there is a start bit between the 2 fields then that Field Line will not be processed The Bus Events are defined in Error Reference source not found LOOKUP TABLES Often fields contain values that mean something unrelated to the actual number of the data Lookup Tables provide a way to output a string of text instead of a data value for a field For each field wanting to use a lookup table use the L output modifier in the field format and then define the table in the FIELDS section using the LOOKUP keyword The format of the Lookup table is as follows LOOKUP Fieldname valuel Sstringl value2 Sstring2 Fieldname is the name of the field associat
103. L2Command 4 2 DL ROOI O0 UOS LO Ur h h Layer3 44 h USBee RX User s Manual 141 PACKETPRESENTER ADD IN API The USBee RX PacketPresenter automatically processes many types of data streams However it cannot decode custom coded data streams Using the PacketPresenter Add In API the data stream can be decoded to the basic data values for any custom coding The USBee RX software package includes a sample DLL project in Microsoft VC6 format in the installation directory of the USBee RX software called AddIn that allows you to customize a decoder for your data streams The DLL library called usbeeai dll USBee Add In has the following interface routine that is called by the PacketPresenter if the ADDIN keyword is used in the DECODE section of the PacketPresenter Definition File CWAV EXPORT unsigned int CWAV API APIDecode char Protocol char bitin char amp bitOut char reset This routine is called for each bit of data in the data stream Protocol is the string name of the Protocol being processed and allows you to create an add in that handles many different kinds of decoding The parameter reset is set to a 1 for the first bit of a packet and O for all bits following The next bit from the stream is passed in using the parameter bitIn 1 or 0 After your code decodes the stream you can either send back no data return value of 0 or send a new bits back using the bitOut pointer one bit per char and
104. LS SCALING The USBee RX Suite provides a scaling ability to convert the analog voltages into other units of measurement Digital Logic Threshold Oscilloscope Probes 1X 10X CHiUnits v CHi Scale CH1 Offset 0 6V 6 0V OV 0 0V 6V 6 0V USBEE SUITE DATA FILE IMPORTING 32 USBee RX User s Manual The USBee RX AX or ZX running the USBee Suite software saves files in their own file format These older files can be imported into the USBee RX Suite BROWSER LIKE NAVIGATION The USBee RX Suite adds browser like Forward and Back buttons that let you quickly navigate through your trace display File View Speed and Samples Trigg amp 20 Digital 0 Bere COMPLEX TRIGGERING The USBee RX Suite adds a multi level hardware trigger to capture the events you need to see to solve your problems o oe 9999 900 90 cr s MEE USBee RX User s Manual 33 RELATIVE TIME DECODE The USBee RX Suite also adds a Relative Time or Absolute Time setting for the decoded data lists r USBee Suite Pro USBee SX Demo Mode j File View Speed and Samples Trigger Setup Help B 400us div _ 1 616125ms 1216125ms 816 125us 4 0 001983625 DC 5 SCL OB er 82 083us I2C 5 SCL ACK C 3 X J 48 042us I2C 5 SCL S Start rri 15 75us DC 5 SCL A3 Read f 82 042us 12C 5 SCL ACK 51 167us I2C 5 82 042us I2C 5 SCL NACK 59 875us I2C 5 SCL P Stop 160 292us Async 0 TX
105. Move at the top of the note Once you have it moved to the new location use the left mouse button to place it To delete the Sticky Note click on the X at the top of the note You can delete all Sticky Notes using the menu item View Delete All Sticky Notes F USBee Suite Pro USBee SX Demo Mode ka a File View Speed and Samples Trigger Setup Help 1 is div 4us Digital 0 m Sticky Note Number 1 1 Digital 1 Sticky Note Number 2 Multiline Digital 5 Digital 6 m Sticky Note Number 3 All sorts of Random Text can go in here quM Put descriptions of your setup test senario or results for others to see when they review i your files Cursors USBee Demo Capture Many Measurements m Logic Analyzer Oscilloscope T XL X2 dX dX Period Frei ycle se Ons Ons Ons Ons infinity Ons infinity USBee RX User s Manual 109 ACQUISITION CONTROL The USBee RX Suite adds more trace acquisition and triggering controls such as Normal Mode Automatic Mode Single Capture and Multiple Capture E UsBee Suite Pro USilee RX Connected CAcwav USBee Test F esProtocolSetupuibee Miaa cmm e E O 9 0 LS 0000 Sr File View Speediand Samples Tagger Sep Hep LI DN Norma Mode Digitaro v Auto Mode Digit t 1 Digitar igitar3 oa P1 Digital 5 a d Digital 6 8 24 28 8 Hp cp aag v When the USBee RX Suite is first start
106. Next Bit next time BitCounter BitCounter 1 Sample tEdge2 Continue For ElseIf tPulseWidth gt 0 001 And tPulseWidth lt 0 002 Then Great Valid 1 Bit Format Write out a Bit Marker remove this if you don t need the bit WriteEntry BW CUInt Sample CUInt tEdge2 1 Add this bit to the accumulators LSB first ByteAccumlator ByteAccumlator gt gt 1 Shift the Accumulator ByteAccumlator ByteAccumlator Or amp H80 Set the MSBit Mark the start of the byte if so If BitCounter 0 Then ByteStartSample Sample Next Bit next time BitCounter BitCounter 1 Sample tEdge2 Continue For Else Pulse is not the right size so bail and keep looking DecodeState LOOKING FOR HEADER Sample tEdge2 Continue For End If Else No edges at all So we are done Exit For End If Else Pulse is not the right size so bail and keep looking Sample tEdgel DecodeState LOOKING FOR HEADER Continue For End If Else No edges at all So we are done Exit For End If End If End If Next End If Close the Output File FS Close Catch ex As Exception End Try End Sub Public Sub WriteEntry ByRef BW As BinaryWriter ByVal StartSample As Int64 ByVal EndSample As Int64 ByRef TextString As String DO NOT CHANGE THIS ROUTINE This routine writes the Entry in the file format that is used by the Custom Decoder This entry specifies the Start Sample End Sample and the text string to disp
107. O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps e SDA Which signal 0 15 to use for the SDA signal e SCL Which signal 0 15 to use for the SCL signal e ShowAck 0 Do not show each byte ACK values 1 show the ACK value after each byte e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Hex 0 display data in decimal 1 display data in hex e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e ErrorString string that holds an error description of the routine returns an error USBee RX User s Manual 183 Return Value e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODECAN This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeCAN unsigned long reservedi1 unsigned char OutFilename unsigned char OutFilename int64
108. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU IN NO EVENT WILL CWAV S LIABILITY FOR DAMAGES TO YOU OR ANY OTHER PERSON EVER EXCEED THE AMOUNT OF THE PURCHASE PRICE PAID BY YOU TO CWAV TO ACQUIRE THE USBEE REGARDLESS OF THE FORM OF THE CLAIM Term This license agreement is effective until terminated You may terminate it at any time by returning the USBee Package together with the USBee Pod Software and Documentation to CWAV It will also terminate upon conditions set forth elsewhere in this agreement or if you fail to comply with any term or condition of this agreement You agree that upon such termination you will return the USBee Package together with the USBee Pod Software and Documentation to CWAV USBee RX User s Manual Version 1 5 Copyright 2012 CWAV All Rights Reserved 4 USBee RX User s Manual CONTENTS INTRODUCING THE USBEE RX POD wicissiscscscsssccasanticestecsiacensstacccacstsenesantsdestessaases 15 THE WIS DEE EST P OW asiutsaiexmentus meint eM mexc menta asi dnd Umm NUBE 17 Obs ic dell iz zi rice 19 EACH PACKAGE INCLUDES isosctuntstedi ad ntn Endbdno cU ubhbR Ev OSaex todubl es dest ime rien Epp dEa UI dhoei nbn es 19 INTRODUCING THE USBEE RX SUITE 4 eene ee ee eee nenne eene eene enhn 21 LHSBEE RX SUITE OVERVIEW caesis inae aano ditur ihe eheu Tau nex TREE Ma E URSOn na Raa 21 See the information you want FAST ccscccc
109. OST 1x 1 h CMD 6x 25 L Address 32x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 28 L Address 32x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 29 L Address 32x h Fields 3 Start 1x h HOST 1x 1 h CMD 6x 30 L Address 32x h USBee RX User s Manual 151 1x 1 h CMD 1x 1 h CMD 1x 1 h CMD 1x 1 h CMD x 1 h ACMD 1x 1 h ACMD 1x 1 h ACMD 1x 1 h ACMD 1x 1 h ACMD x 1 h ACMD l1x 1 h CMD DEVICE 1x 0 DEVICE 1x 0 DEVICE 1x 0 DEVICE 1x 0 Fields 3 Start 1x h HOST Fields L3 Start xh HOST Fields I3 l Start lx h HOST Fields 3 Start 1x h HOST All of the App Command packets Fields 3 Start 1x h HOST Fields 3 Start 1x h HOST Fields 3 Start 1x h HOST Fields 3 Start 1x h HOST Fields 3 Start 1x h HOST Fields 3 Start 1x h HOST Fields 13 Start 1x h HOST The R6 response packet Fields 7 SR6 Start 1x h The R3 response packet Fields 6 SR3 Start 1x h The R2 response packet Fields 5 SR2 Start 1x h The R1 response packet Fields 4 SRI Start 1x h OUT OF RANGE 1x tft ADDRESS ERROR 1x tft BLOCK LEN ERROR 1x tft ERASE SEQ ERROR 1x tft ERASE PARAM 1x tft WP_VIOLATION 1x tft CARD IS LOCKED 1x tft LOCK UNLOCK FAILED 1x tft COM CRC ERROR 1x tf
110. Op EdUuaE 242 BIBWE VIT J cric orm NT M 242 DLL Exported Functions and parameters esses 243 Extraction Data FOLIO cec ocio tuii e tha Dee Pie Fus o F2 aede oc tI VER ERE ee EA 244 I2S DATA EXTRACTOR ac eese e pao vE a ee PSP E erae e PER One REN a FEeR e E aea v a NAR ses E eaa eR ee E RU EE Ue 246 I25 BUS DATA EXTRACTOR SPECIFICATIONS crisisen ERE Er xoa oae Y YE EEYRe x a e 246 HARDWARE SETUP ares etiensertu Mago ham p ra oh Lo a bast enitn Mar e ise 246 EXTRACTOR COMMAND LINE PROGRAM ssccsccscceccecesccscceccseceeceeceecesesseeesaeseeceeees 246 EXTRACTOR AR dotes Ntiats aub Nini mte son tu uE oie aio Motu ta oet atu D cordi eode 247 DEL Tene etsi dette Ene uices tunt buen da a 248 DLL Exported Functions and parameters esses 248 Extraction D ta Format au ido o rat m etr ac EE veau sae auci pesa codeads pa Rev vise vds 250 LOW AND FULL SPEED USB DATA EXTRACTOR eee eee eee ee eene nnne 251 USB DATA EXTRACTOR SPECIFICATIONS dieses euo adad au s ENEE Ene ansa ea co E sane 251 HARDWARE SETUP as vauves eroe vaa Pon PO N TEENS 251 EXTRACTOR COMMAND LINE PROGRAM c esee rne sne snnt nun 251 EVR ACTOR A Pattoetecetitten velut A ML Iio So EU ELE 252 12 USBee RX User s Manual DEP ED aenener teens oe eee ARR ree Eee See ern heen rn ene eee ut cou tuf ect 252 DLL Exported Functions and parameters esses enean 252 Extraction Data Formule E addbad eM vi PRA
111. Overflow Occurred Raw Stream Buffer Overflow 264 USBee RX User s Manual EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The CAN Bus Extractor DLL sends the extracted data through the buffer in the requested form based on the parameters in the StartExtraction call For example if Binary is set to a O then the buffer will receive the binary bytes that make up the data stream If Hex is set to a 1 the buffer will contain a text string which is the data of the CAN traffic in Hex text form separated by any specified delimiters CANExtractor V C cwavXUSBee AX DataExtractor CANVCANExtractorDebugsoutput dex Help File Edit View Favorites UserCommands GridLines Tools alej sse ss 2 ailse e E 10 123456789 123456789 1 0000005698 2 0000005869 3 0000005896 4 0000005924 5 0000005949 6 0000005972 7 0000005996 8 0000006046 9 0000006062 10 0000006079 11 0000006087 12 0000006100 13 0000006116 4 0000006141 15 0000006166 6 0000006189 7 0000006212 3 0000006262 3 0000006279 0 0000006295 1 0000006303 2 0000006316 3 0000006333 4 0000006358 5 0000006383 6 0000006405 0000006428 0000006478 3 0000006495 30 0000006512 31 0000006520 32 0000006532 33 0000006549 34 0000006574 35 0000006599 36 MMMM n3 n3 n3 n5 no n5 mE EF 0000006622
112. PC using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments SerialExtractor SADHBICGNX124YZ Q NumberOfBytes T BytesPesLine R SampleRate E ClockingMode M SignalMask J ChannelAlign L SignalLevel V AlignmentValue O filename P PodID Display this help screen USBee RX Pod to Use P Pod ID required Output Location Flags O Output to filename default off S Output to the screen default off When to Quit Flags Q Number of output values default until keypress Input Number Format Flags One Byte per value default Two Bytes per value Four Bytes per value Least significant byte first Most significant byte first NKAN l Output Number Format Flags ASCII Text Values 1 Decimal Text Values 49 Hex Text Values 31 default Binary Text Values 00110001 Binary Values 49 Comma Delimited Space Delimited default Newline Delimited No Delimeter Force Bytes Per Line no force default Hsuaomnbnumoo Filter Values M Which Signals to capture 1 2signal0 255 all default Clocking Modes E Clocking mode 2 internal default 4 CLK rising 5 CLK falling 6 CLK rising AND TRG high 7 CLK falling AND TRG high 8 CLK rising AND TRG
113. PID ADDR EP PID INDATA HS Time 617 0197ms IN 2 0 DATA1 00 OA 09 04010001 03 ACK Layer USBBUS PID ADDR EP PID INDATA HS Time 618 0197ms IN 2 0 DATAO 01 02 00 09 21 11 01 OO ACK Layer USBBUS PID ADDR EP PID INDATA HS Time 619 0197ms IN 2 0 DATA1 01 22 D1 00 07 05 82 03 ACK Layer USBBUS PID ADDR EP PID INDATA HS Time 620 0197ms IN 2 O DATAO 040008 ACK USBee RX User s Manual 121 Saving data to an RTF file format saves the graphical nature of the packets and can be read by many word processing programs such as Microsoft Word and WordPad Below is a screenshot of data saved to an RFT file and viewed using WordPad Document WordPad e TS File Edit View Insert Format Help Dc E 44 tAn 3 Arial 10 Westem gt BZU f i Layer CYPRESSRFIC Time 623 9798ms Layer USBBUS 624 0195ms CYPRESSRFIC z 624 0217ms Write True TX LENGTH ADR 624 0443ms Write False TX BUFFER ADR yer CYPRESSRFIC 624 3685ms Read False 625 1273ms Read False RX IRQ STATUS ADR 625 1572ms Write True TX LENGTH ADR rer CYPRESSRFIC z 625 1798ms Write False TX_BUFFER_ADR jer CYPRESSRFIC z 625 2065ms Read False er CYPRESSRFIC ADDRES SOPDET 0 625 9643ms Read False RX_IRQ STATUS ADR 0 625 9978ms Read False RSSI ADR rer CYPRESSRFIC ADD 626 017ms Read False RSSI ADR CYPRESSRFIC DRES WRITEDATA 626 050ms Write False er CYPRESSRFIC 626 0917ms Write True TX_LENGTH_ADR
114. ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV_API DecodeSetName char name float AnalogCountsToVolts unsigned char counts return 128 counts 0 046875 int tmain int argc _TCHAR argv printf USBee RX Toolbuilder Example in C n printf Initializing USBee RX n if InitializeRXx USBee RX User s Manual 195 196 else printf No USBee RX Found An printf USBee RX Found and Initialized n unsigned char D to7 unsigned char D8toF unsigned char CH1 unsigned char CH2 unsigned char CandT printf Setting Digital Outputs n SetSignalsRX 255 SetSignalsRX 255 OxFF SetSignalsRX 255 OxAA SetSignalsRX 255 0x55 printf Reading Input Channels n GetSignalsRX amp D0to7 amp D8toF amp CH1 amp CH2 amp CandT 9 printf Digital Channels 4002X402X CH1 f CH2 F T d C d n D8toF D to7 AnalogCountsToVolts CH1 AnalogCountsToVolts CH2 CandT amp 1 CandT gt gt 1 amp 1 printf Generating Analog Waveform in unsigned char samplebuffer 128 for int x 0 x 128 x samplebuffer x x GenerateAnalogWaveformRX 10000 128 samplebuffer printf Generating PWM Waveforms on DO and D1 n GeneratePWMWaveformRX 0 1000 50 GeneratePWMWaveformRX 1 20000 25 printf Generating Digital Waveform on D2 thru D7 n LoadDigitalWaveformRX 128
115. ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodeASYNC unsigned long reserved1 unsigned char OutFilename unsigned char OutTxFilename unsigned char OutRxFilename __int64 StartSample X int64 EndSample long Rate unsigned long TxChannel unsigned long RxChannel unsigned long BaudRate unsigned long Parity unsigned long DataBits unsigned long Invert unsigned long delimiter unsigned long hex unsigned long ascii long BytesPerLine char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodePS2 unsigned long reserved1 unsigned char OutFilename unsigned char HostFilename unsigned char DeviceFilename int64 StartSample _ int64 EndSample long Rate unsigned long DataChannel unsigned long ClockChannel unsigned long MSBFirst long hex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodeUSB unsigned long reserved1 unsigned char OutFilename unsigned char InlineFilename X int64 StartSample int64 EndSample long ShowEndpoint long ShowAddress long DPlus long DMinus long Speed long Rate long SOF long delimiter long showall long hex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodeSPIVariable unsigned long reserved1 unsigned char OutFilename unsigned char InlineMOSIFilename unsigned char InlineMISOFile
116. RT unsigned long CWAV API SetTriggersRX int TrigXEnabled int TrigYEnabled int TrigXorYEnabled int TrigXandYEnabled int TrigXthenYEnabled int TrigYthenXEnabled USBee RX User s Manual 179 int TrigX DigitalEdgeEnabled int TrigX AnalogEdgeEnabled int TrigX QualifyDigitalEnabled int TrigX QualifyAnalogEnabled int TrigX QualifyTimeEnabled int TrigX InvertDigitalQualifierEnabled int TrigX InvertAnalogQualifierEnabled int TrigX InvertTimeQualifierEnabled int TrigX DigitalEdgeChannel int TrigX DigitalEdgeRising int TrigX AnalogEdgeChannel int TrigX AnalogEdgeRising int TrigX AnalogQualifierChannel int TrigX AnalogQualifierFrom int TrigX AnalogQualifierTo int TrigX AnalogTriggerLevel long TrigX DigitalQualifierChannelMask long TrigX DigitalQualifierFrom long TrigX DigitalQualifierTo int TrigY DigitalEdgeEnabled int TrigY AnalogEdgeEnabled int TrigY QualifyDigitalEnabled int TrigY QualifyAnalogEnabled int TrigY QualifyTimeEnabled int TrigY InvertDigitalQualifierEnabled int TrigY InvertAnalogQualifierEnabled int TrigY InvertTimeQualifierEnabled int TrigY DigitalEdgeChannel int TrigY DigitalEdgeRising int TrigY AnalogEdgeChannel int TrigY AnalogEdgeRising int TrigY AnalogQualifierChannel int TrigY AnalogQualifierFrom int TrigY AnalogQualifierTo int TrigY AnalogTriggerLevel long TrigY DigitalQualifierChannelMask long TrigY DigitalQualifierFrom long TrigY DigitalQualifierTo 23 e TriggerYEnabled 1 Trigger w
117. RX User s Manual StopExtraction Stops the extraction in progress CWAV EXPORT int CWAV API StopExtraction void Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow USBee RX User s Manual 217 EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The Parallel Bus Extractor uses the following format for the data in this buffer Byte Byte Byte Byte Byte 218 WN FR C Byte Byte Byte Byte Byte WN EF C of of of of of the the the the the sampled sampled sampled sampled sampled data data data data data USBee RX User s Manual SERIAL BUS DATA EXTRACTOR The Serial Bus Data Extractor takes the real time streaming data from up to 8 serial data lines formats it and allows you to save the data to disk or process it as it arrives SERIAL BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e 8 digital channels e Synchronous or Asynchronous Clocking e Synchronous external clock 0 to 16MB s e Asynchronous internal clock 1MB s to 24MB s e Input in 1 2 or 4 b
118. Synchronous external clock 0 to 16MB s e Asynchronous internal clock 1MB s to 24MB s e Input in 1 2 or 4 byte serial words e Little or Big Endian e Output to Binary File e Output to Text File Hex Decimal Binary or ASCII e Output to Screen e Comma Space or Newline Delimited files e Output Value Filtering e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The Parallel Bus Data Extractor uses the 8 signal lines 0 thru 7 the GND ground line and optionally the CLK and TRG lines for external timing The signal O is represented in the bit O of each sampled byte Connect the GND line to the digital ground of your system USBee RX User s Manual 211 EXTRACTOR COMMAND LINE PROGRAM The Parallel Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or o
119. T unsigned long CWAV API GenerateDigitalWaveformRX unsigned char channelmask unsigned char GenerateOn unsigned char loop unsigned char waitT unsigned char Trising unsigned char externalclock unsigned char Crising unsigned long samplespersecond CWAV IMPORT unsigned long CWAV API GetFrequencyAndCountsRX unsigned long edgecounts unsigned long edgecounts1 unsigned long edgecounts2 unsigned long edgecounts3 unsigned long freg4 unsigned long freq5 unsigned long freq6 unsigned long freq7 3 CWAV IMPORT unsigned long CWAV API ClearCountsRX void CWAV IMPORT unsigned long CWAV API EnableCountsRX void CWAV IMPORT unsigned long CWAV API DisableCountsRX void CWAV IMPORT unsigned long CWAV API SetLogicThresholdRX float Thresh 9 CWAV IMPORT unsigned long CWAV API StartCaptureRX unsigned long buffersize unsigned char TriggerPosition float SampleRate unsigned long channelmask unsigned char ExternalClockingOn unsigned char CompressionOn 9 CWAV IMPORT unsigned long CWAV API CaptureStatusRX unsigned char Full unsigned char Triggered unsigned char Running CWAV IMPORT unsigned long CWAV API StopCaptureRX void CWAV IMPORT unsigned long CWAV API TriggerNowRX void CWAV IMPORT unsigned long CWAV API EndCaptureRX X int64 ActualNumberOfSamples int64 TriggerPosition CWAV IMPORT unsigned long CWAV API SampleData X int64 index CWAV IMPORT int64 CWAV API FindNextEdge X int64 UCSample unsigned lo
120. TE SSET BLOCKLEN SREAD SINGLE BLOCK SREAD MULTIPLE BLOCK SSEND TUNING BLOCK SSPEED CLASS CONTROL S CMD21 CMD22 SSET BLOCK COUNT SWRITE BLOCK SWRITE MULTIPLE BLOCK CMD26 SPROGRAM CSD SSET WRITE PROT SCLR WRITE PROT SSEND WRITE PROT CMD31 SERASE WR BLK START A A A A A A A o 10 01 5 CO Po E 50 51 52 53 54 55 56 57 58 59 60 61 62 63 SERASE WR BLK END CMD34 CMD35 CMD36 CMD37 ERASE CMD39 CMD40 CMD41 2SLOCK UNLOCK CMD43 CMDA44 CMD45 6 7 8 CMD4 CMD4 CMD4 CMD49 CMD50 CMD51 CMD52 SCMD53 CMD54 APP CMD SGEN_CMD CMD57 SCMD58 SCMD59 SCMD60 SCMD61 SCMD62 SCMD63 Lookup ACMD 6 22 23 41 USBee 13 42 51 SSET BUS WIDTH SD STATUS SSEND NUM WR BLOCKS SSET WR BLK ERASE COUNT SD APP OP COND SET CLR CARD DETECT S SEND SCR RX User s Manual 153 1 WIRE PROTOCOL EXAMPLE One Wire Protocol Definition File This file defines the transfers to from some 1 Wire devices using the 1 Wire bus Protocol name OneWireBus bytewise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type event event 2 Presence Pulse End type event event 1 Res
121. WOVE NINOS isse xis EM eee or crx e d ka ce Pape leas Aone 55 Decodihg BUS TKATJIC NIINE sessi e ved dede qa m aei Yun toco aa oe o30E 57 Decoded Data Cst s ssp nt arua idu etr aetate 60 Manual Measurements and Cursors sssscccsseseccsessccnaescccsesecsausecssauseesaeaseees 60 Moto Measurements serere iire o Tel Sec edb gun red EE dst ddega as 61 BUS DECODING OPTIONS 5528s de toti vidas qios trenta tu uest AE ea eeu 62 GENCE SIGNG SCUUD sso ok ieten o ret Met rene dipped ut Coe 62 CAIN BUSSE UD MR mcm 64 USB BUS SeCUD aces essai mE eU EI E MEE d TALI E EU RARE 65 I2C BUS SCLUD Mods tam noteiidsia dim tina Metelli M ae dnleeamaiae Vrbis 66 PAS VIG Bus SCUD isset uta E ur iive am M MM LL s Sane heer 67 Parallel BUSSSebtUD idees ve er DIG UR hadi den HR ERR Dea ie t I PUR 68 Tes IO BUS SeEU Ds cao oto tu ob uet dad Rete bad s 69 SMBUS SETUD Ct ors sar MIA MU n MM M M de 70 SIO BUS SETUD rE ETEEN EET NOE 71 SM BUS BUS SCUD are aE EAT E OEE E IAE 73 Serial BUS Set poren a a ans eset Mabie 74 29 BUS SE UDr i a S 75 PS 2 BUS SETUD prinia AEE TE ANT NEO TAANA 76 SETTING VIEWING PREFERENCES i ped ites acu eitic E E A a a udeeeoes 77 GUTS OF COLO S se ied et b ed E E havc letter dde sr aix 77 B CKOFOUDO COLON riae reed OR mna use ies a dU 77 Glass APD CGIAR CO suisse Se ded ttt iE ba eri i bei tr pr aad tu t d TR 77 a8 gj vge c 78 Creating a NEWFIE ssa ten ex aa eese des peut p RR Va oen ene e atus 78 SAVING d CabtUkeFME secs eecieciendedeue
122. Y Either Device to Host or Host To Device End type TIMEOUT TIMEOUT 5000 End of command after 5msec Decode Fields Setting LEDs after command Fields 1 Device To Host SKey Down Scancode 8x h 2 SHost To Device HostCommand 8y EDh Set LEDs AGk 9x 1 Parameter 5y 1 Caps ly tr Num 1y tf Gcroll iv tr Ack 6x24 Fields 1 Device To Host SKey Down Scancode 8x h 2 SHost To Device HostCommand 8y h Ack 8x i Parameter 8y h Ack 8x i Device to Host Fields 1 Device To Host SKey Up Release 8x FOh h Scancode Nx h All other scancodes Fields 1 Device To Host SKey Down Scancode Nx H Host to Device Fields 2 S Host To Device Command Ny h USBee RX User s Manual 159 USBEE RX ANALOG SIGNAL GENERATOR Em b USBee Suite Pro USBee RX Connected C cwav UUSBee Test Files ProtocolSetup usbeer The USBee RX has an Analog Signal Generator built in It outputs a voltage pattern on the Aout signal out the side of the Pod To specify what waveform pattern is generated you use the Analog Generator section of the USBee RX Control Panel as seen below There are 5 types of analog signals that can be generated by selecting the associated radio button e Sine e Triangle e Ramp e Square and e DC You can also select the frequency generated by using the slider to the right of the Frequency line The minimum and maximum voltages are also specified using the sliders from OV to
123. a from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed USBee RX User s Manual 215 length number of bytes you want to read from the extraction DLL Returns e O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned int SampleRate unsigned long PodNumber unsigned int ClockMode unsigned long Threshold Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V SampleRate 17 1Msps e 27 2Msps e 37 3Msps e 47 4Msps 67 6Msps 87 8Msps e 127 12Msps e 167 16Msps e 247 24Msps PodNumber Pod ID on the back of the USBee RX Test Pod ClockMode e 2 Internal Timing as in SampleRate parameter e 4 External Timing sample on rising edge of CLK e 5 External Timing sample on falling edge of CLK e 6 External Timing sample on rising edge of CLK and TRG high e 7 External Timing sample on falling edge of CLK and TRG high e 8 External Timing sample on rising edge of CLK and TRG low e 9 External Timing sample on falling edge of CLK and TRG low Returns e 1 if Start was successful e O if Pod failed initialization 216 USBee
124. a is anythir nd T Digital Signal States are 6 mE mS ma eo V Analog Signal cHi is not is not 0 Voltsto 4 Volts and V This Event happening between 274 lus M and 10 s M anytime after the previous event Use PacketPresenter Definition File name is below 22 Fi Cancel Apply ry HEE For Events other than the first Event 2 32 you can also specify immediately to indicate that the event must happen between the first time and second time starting at the end of the previous event 102 USBee RX User s Manual The following example shows two search lines The first search line shows all occurrences of the CH1 being between OV and 4V The second search line shows all occurrences of when the Digital 0 line has a falling edge within 100usecs of the end of the first search fa USBee Suite Pro USBees File View Speed and Samples DRE DEREN E ec 300us div 115689667ms 116 589667ms 116889667ms 117 189667ms 117489667ms cursovioav BB i D a a curenung8aB QT 98 Digital 2 cms arma L Wire Ps2 v Event 1 If CHi voltage is between OV and 4V xt tk Digital 3 igital 4 Digital 5 Digital 6 h h te te Digitat 7 Followed By 4 Event 2 If Digital 0 has a falling edge and happens between 0 us and 100 us from the previous event Analog FJ If Digital Signal Digital O has falling edge happen 1 times or E 1f Analog Signal CH1 has rising edge at voltage thr
125. a return value of the number of bits returned The default Add In routine simply is a pass through so that the output data stream equals the input data stream Start with this library source code to add your custom decoding 142 USBee RX User s Manual SAMPLE PACKETPRESENTER ADD IN DECODERS Custom decoders can perform complicated decryption and byte or bit manipulation Ignoring the actual algorithm that is executed these decoders may reduce enlarge or keep constant the number of bits in the data stream The following examples are intended to show how these streams can be shortened lengthened or modified Useful decoders will need to have the appropriate algorithms to compute the true values of the output bits LOOPBACK DECODER This Add In simply loops back the data out in CWAV EXPORT unsigned int CWAV API APIDecode char Protocol char bitIn char bitsOut char reset This will be the Add In routine that is called by the PacketPresenter when the ADDIN keyword is used in the DECODE section of the PacketPresenter Definition File This routine is called for each bit of data in a data packet The parameter reset is set to a 1 for the first bit of a packet and 0 for all bits following The next bit from the stream is passed in using the parameter bitIn 1 or 0 After your code decodes the stream you can either send back no data return value
126. abel if match SlaveAddress 7m h RW 1 20 i Control Byte Address 8m h 1 byte address 2 followed by a STOP condition Write Command Fields SWriteCommand Printout this label if match SlaveAddress 7m h RW 1 20 i Control Byte Address 8m h 1 byte address 1 NO START condition WriteData Nm h Written Data Variable N Current Address Read Fields SCurrentRead Printout this label if match SlaveAddress 7m h RW 1 21 i Control Byte ReadData Nm h Read Data Variable number N Random Read Fields SRandomRead Printout this label if match SlaveAddress 7m h RW 1 20 i Control Byte Address 8m h 1 byte address 1 START Condition SlaveAddress 7m i RW 1 1 i Control Byte ReadData Nm h Read Data Variable number N 148 USBee RX User s Manual SPI PROTOCOL EXAMPLE Cypress RF IC Protocol Definition File This file defines the transfers to from a CY6936 RF IC using the SPI bus Inc ly tf Address 6y 07h L SOPDET 1x h RXBl16 1x h RXB8 1x h RXBl Protocol name CypressRFIC bytewise DEBUG DebugOn Packet Start type event event 1 SS goes active End type event event 2 SS goes inactive Decode Fields RX IRO STATUS ADR Read and Write Command Fields Dir ly 0 L RXE 1x h Fields Dir lyel L Ines RXBl6 1y h RXB8 1y h RXBl ly h RXBERR y tf Address 6y 07h L TX IRQ STATUS ADR Read and Write Command Fiel Fiel d
127. al Which signal the extractor uses for the 1 Wire Signal 1 channel0 128 channel7 SSInsert Set to 1 to insert Reset Presence boundaries into the extracted data stream Timestamp Set to 1 to insert Time Stamps into the extracted data stream Returns e 1 if Start was successful e O if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT int CWAV API StopExrracrion void Js Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The 1 Wire Bus Extractor outputs data values separated by newline characters with option Reset Presence and Timestamps inserted 244 USBee RX User s Manual 1WireExtractor O output dex P 143 Q 500000 M 1 W T R 127 File Edit view Favorites UserCommands VL CO J Cn CF aum Co pr m Reset Pulse 0000002274 Presence Pulse FS B5 A Reset Pulse 0000002436 Presence Pulse cE CO A A Reset Pulse 0000002540 Presence Pulse F555 A A Reset Pulse 0000002900 Presence Pulse F555 A Reset Pulse 0000004117 Presence P
128. alog or digital edges which can be qualified using digital patterns or analog voltage levels 52 USBee RX User s Manual CAPTURING WAVEFORM DATA Press the Capture buttons to start capturing the waveform data from your hardware design If you are running in Demo mode the button reads Demo Capture Once performs a single capture while Capture Many repeatedly captures and displays consecutive traces mples 20Msps Capture Many Trigger Settings Each capture will look for the trigger condition fill the buffer with samples of the signals and stop If you would like to stop the capture before it is completed just press the same button again which reads STOP during a capture After a trace is captured the waveform data is gathered decoded if needed and displayed in the waveform window VIEWING CAPTURED DATA SCROLLING ZOOMING AND PANNING WAVEFORMS The Waveform display area is where the measured signal information is shown It is displayed with time increasing from left to right and voltage increasing from bottom to top USBee RX User s Manual 53 F USBee Suite Pro USBee RX Connected C cwav US8ee Test Files ProtocolSetup usbeerx esque File View Speed and Samples Tngger Setup Help v USBbee RX Control Pane Digitaro s Wu as 88 ee 0AA He 909 9 69 6969 AAF 369 7 3 amp LE pgus c RCs Bg IEJ EAE BED NE Digitar6 RN pgu7 8 Aoc Cy ETS KC ES
129. and workmanship for a period of 12 twelve months from the purchase date If during this period a defect in the above should occur the defective item may be returned to the place of purchase for a replacement After this period a nominal fee will be charged for replacement parts You may however return the entire USBee Package within 30 days from the date of purchase for any reason for a full refund as long as the contents are in the same condition as when shipped to you Damaged or incomplete USBee Packages will not be refunded Software Updates The information in the Software and Documentation is subject to change without notice and except for the warranty does not represent a commitment on the part of CWAV CWAV cannot be held liable for any mistakes in these items and reserves the right to make changes to the product in order to make improvements at any time The Software will change from time to time to add new functionality fix bugs and disable the use of non CWAV made products that attempt to use this Software Liability IN NO EVENT WILL CWAV BE LIABLE TO YOU FOR DAMAGES DIRECT INDIRECT INCIDENTAL OR CONSEQUENTIAL INCLUDING DAMAGES FOR ANY LOST PROFITS LOST SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE SUCH USBEE POD SOFTWARE AND DOCUMENTATION EVEN IF CWAV HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR FOR ANY CLAIM BY ANY OTHER PARTY SOME STATES DO NOT ALLOW THE EXCLUSION
130. apture of whatever is on the signals at the time You can press the Stop button to terminate the capture 110 USBee RX User s Manual DISPLAY MODES The USBee RX Suite lets you widen the trace waveforms display the analog waveforms as vectors or single sample points and persist the display from one trace to the next BBB ice Suite Pro USBee DX Connected lolo File View SpeedandSamples Trigger Setup Help Digital 0 Digital 1 Digital 2 Digital 3 Digital 4 Digital 5 Digital 6 Digital 7 cuu Analog USBee Logic Analyzer Oscillascope etaity The Wide setting shows the waves using a wider pixel setting This makes the waves easier to see You can toggle this setting using the menu item View Wide Lines The Vectors setting draws the waveforms as a line between adjacent samples With this mode turned off the samples are shown simply as dots on the display at the sample position You can toggle this setting using the menu item View Vector based Waveforms The Persist mode does not clear the display and writes one trace on top of the other trace You can toggle this setting using the menu item View Waveform Persistence The benefits of these display modes can be seen when you are measuring fast signals and want to get more resolution out of the oscilloscope than the maximum sample rate allows See the below traces to see the difference Each trace is taken of the same signal but the second one shows much
131. ave different ground references which can damage the USBee target and or PC Ensure that a GND signal on the USBee is connected to the target ground and not another voltage level Also As with all electronic equipment where you are working with live voltages it is possible to hurt yourself or damage equipment if not used properly Although we have designed the USBee RX pod for normal operating conditions you can cause serious harm to humans and equipment by using the pod in conditions for which it is not specified Specifically ALWAYS connect at least one GND line to your circuits ground NEVER connect the digital signal lines O thru 7 TRG and CLK to any voltage other than between 60 to 60 Volts NEVER connect the analog signal lines CH1 and CH2 to any voltage other than between 60 and 60 Volts The USBee RX actively drives Pod signals DO through D7 and AOUT Make sure that these pod test leads are either unconnected or connected to signals that are not also driving Connecting these signals to other active signals can cause damage to you your circuit under test or the USBee RX test pod for which CWAV is not responsible Plug in the USBee RX Pod into a powered PC BEFORE connecting the leads to your design 18 USBee RX User s Manual PC SYSTEM REQUIREMENTS The USBee RX Test Pod requires the following minimum PC features e Windows XP Vista or 7 32 bit or 64 bit operating system e Pentium or higher processor
132. bice bum cii mubud 117 OVET CWN Spore eC Reon S ad Ioan E d verte re Tyrer Da otc vao ato dd uut vestida 117 Setting Up the PacketPresenter eei Mb ture evens ves 120 Viewing the PacketPresenter Output esee 120 Saving PacketPresenter Data to Text or RTF FIIOS cccccsesecceseeceeceeeseeeenes 121 USBee RX User s Manual 7 Copying PacketPresenter Output to Other Programs eene 122 SE GECMING FOF PACKETS Ec 123 Filtering Packets assumi niet Remind nest ate 124 PacketPresenter to Waveform Association using Cursors eee 125 PacketPresenter Definition File Format eese 126 Comments in the PacketPresenter Definition File cccssscccccssseeeeeeseeeeeeeeeeeeees 126 Constants in the PacketPresenter Definition File cccesecccccssseceeeeeeeeeeeeeeeeeees 126 PacketPresenter Definition File Sections cccccsssececcesseeceeeeeeceeceeesceesaeeeceessuaeses 127 Protocol Sectio ine E D ETE 127 Byte wise busses VS Bit wise busses cccccseecceesececeececeeeceeeeeceteuecetenecetsnesens 127 BUS EVOIUS meR RC MH 128 Data Channels and Multiple Data Signals cssscccccssseceeceeeeceeeeeeseeeseeeeees 130 Packet SOCLION memi 131 Start and Enid Sections easier ien dicic at ere epe n ipti e e va Sepe e EC Reg 131 jA lo NEN e en ae 131 EV C Sienaan anaa Aa TA N Na 132
133. both in the USBee Package and on line at www usbee com for use with the USBee Test Pods and grants you license to use this Software under the following conditions a You may use the USBee Software only in conjunction with a USBee Test Pod or in demonstration mode with no USBee Pod connected b You may not use this Software in conjunction with any pod providing similar functionality made by other than CWAV Inc and c You may not sell rent transfer or lease the Software to another party Copyright No part of the USBee Package including but not limited to Software manuals labels USBee Pod or accompanying diskettes may be reproduced stored in a retrieval system or transcribed in any form or by any means electronic mechanical photocopying recording or otherwise without the prior written permission of CWAV Inc with the sole exception of making backup copies of the Software for restoration purposes on your own machine You may not reverse engineer decompile disassemble merge or alter the USBee Software or USBee Pod in any way Limited Warranty The USBee Software and related contents are provided as is without warranty of any kind either expressed or implied including but not limited to the implied warranties of merchantability and fitness for a particular purpose with the sole exception of manufacturing failures in the USBee Pod or diskettes CWAV warrants the USBee Pod and physical diskettes to be free from defects in materials
134. c Analyzer Oscilloscope 96 USBee RX User s Manual Below shows a search that finds all decoded data that is between 15 and 99 ac Channel Settings arms Sie e F e 300us div__142805ms 139805 E OE NE EE eee Search 13623 Event i If Digital 2 decoded bus data is between 15 and 99 Digital 3 5 z I If Digital Signal Digital 1 Digital 1 n If Analog Signal CH1 Digital 2 Pd while Digital 3 T3 7 73 V igital 2 is bets 15 99 SpI2 x 16 X r3 FE Y FE ie FF v Bus Digita 2 v decoded data is etween and and f TF if m3 rn DA i BAT E Digital Signal States are E REGX POCO 900 Hab 10 to F ROOIX 9 999 9 00 ES 94 10 and Digital 4 Analog Signal CH1 s 10 Woltsto 10 Volts Digital 5 Dcs5 COC Digital 6 h e e e te Digital 7 Followed By Async 6 Event 2 Followed By L Event 3 Followed By Event 4 Followed By Event 5 Followed By CURIE Event 6 USBee Capture Once Capture Many Meast Y Use PacketPresenter Definition File name is below i 1758 l Logic Analyzer Oscilloscope and Apply I DIGITAL SIGNAL STATES AND RANGES The next line lets you find states or ranges of states on the digital signals First select if you are looking for the digital states to include the values are or not include the values are not that follow Then specify the states of all of the digital lines by cl
135. c Analyzer Oscilloscope PE Apply j USBee RX User s Manual 95 BUS DATA The next line lets you find values of decoded bus data if your waveform display includes them You can specify specific values to find values to exclude or ranges of values First select the decoded bus channel you want to search using the first dropdown box Then choose if you want to find values between equals or not between not equals the value s that follow Next enter the actual value of decoded data you are interested in If it is a single value leave the second field blank If you are interested in a range of values specify the end of the range in the second field Below shows a search that finds all decoded data that equals a fixed value of 16 O E s00us dly 142005ns ca os os cv sem Porte Custom T Search Search gt E Digital 0 Digital 1 Digital 2 If Analog Signal CH1 while Digital3 V Bus Digital 2 v decoded data is between v 16 and and Digital Signal States are F SAX PO 9S9 99 1X LUE 0 to 7 ESSAX LOSS 99 hE 0 and Volts SPI2 Digital 4 Digital 5 Dc5 aac Digital 6 h e e e tH Digital 7 Followed By Async 6 x Digital 6 Event 2 Digital 7 Followed By Event 3 Followed By Event 4 Followed By Event 5 Followed By CUI Event 6 USBee Capture Once Capture Many Meas T Use PacketPresenter Definition File name is below Logi
136. cation screen o Paral Sges us sr mc Aye iwe Ps2 Signal Selection vir Tr Je de e Me e Ye e re Je YE Me Ye YE Show Value Data Format Off Decimal D On Hex ASCI D Binary Use PacketPresenter Definition File name is below Save Cancel On the above dialog box select the signals you want to display by checking the associated check box choose whether to show the value of the selected signals and what format you would like the values The signal traffic will be shown as in the following screen The SS line shows a single signal with the values turned on The MOSI line shows a combination of three different signals and the resulting value of those signals The associated settings dialog box is shown 62 USBee RX User s Manual SCK 56789 Ag SCL Jl Async 0 M Show Value p Data Format O ott D Decimal 9 On 9 Hex ASCII Binary UART USBee RX User s Manual Trigger Settings EYE YE I 63 CAN BUS SETUP The CAN Bus Decoder takes the captured data from a CAN bus 11 or 29 bit identifier supported formats it and allows you to save the data to disk or export it to another application using Cut and Paste Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attach
137. ccssssececeesscceeaeseeeesseneeeesseeees 22 Data ACQUISITION over USB 2 0 trn raya eaa ha Ch aV RR VES Ft a ERE VEHI e EEMS 22 Superior Quality Design Professional Results seeeeeeeee 22 Fast and Detailed Waveform Viewing cccccsssseeecccceeaeseeceeeseaaeeeeeeeseaees 22 AE UE et T 23 Fully configurable Look and Feel cssecccccesseecccceeeceeeeeeeceeeeeeeeeesaaaeess 23 Serial Bus Analysis cccccsssscccccesseccecesececceesecccsaeeceesueuceesaensecessaneeeeesagaes 24 Data ota pz Sio NN TT 26 PacketPraeselltBl aee neces t e qeoth Sesevo vh Qe dup es eebeks ee que INDE PE ba Se PEU csv veda 27 Fast Pan Bus VIeWIITB ossoes ease euo p ene nue vH Pe pube Pede put beu pute pose put EEE EE ieni UR Pa i put UE 28 ule cp 29 Sing SA CI ip ence i serm SdM Ene be Iu EEUU S M UUIA ERAS IU CRI been beeen ad 30 Sample and Smart Markers sees 30 Annotations and Sticky Notes ccccccccsssseccecsssececceeseceeseeeeceesseeceesaeeeess 31 Acquisition Control asses pecu ep eei eve Su VP EISE QE PYEEN TERI IO SEO EvXxIs eH AEREE 31 Display Modes ios edet dent Dad a ewe MER i uS ONE 32 Analog Channels Scaling sccuwssacrasresastarsassceasbeadiaepaasdeasieusiiacpaasdensieanienaneaniais 32 USBee Suite Data File IMporting neessennsseeressseerssreeresssrresserressreresserresse 32 Browser like Naviga
138. cimal Values text are output for the data bytes Hex e 1 Hex Values text are output for the data bytes Binary 9 1 All data is in binary form not text Comma e 1 Commas are placed between each field data byte Space e 1 Spaces are placed between each field data byte Timestamp e 1 Print Timestamps at the start of each packet SMBData e The mask for the channel to use for Data e 1 Ch0 128 Ch7 SMDCIk e The mask for the channel to use for Clk e 1 ChO 128 Ch7 Returns 1 if Start was successful e O if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT int CWAV API StopExtraction void Returns e 1 always USBee RX User s Manual 233 ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The SM Bus Extractor DLL sends the extracted data through the buffer in the requested form based on the parameters in the StartExtraction call For example if Binary is set to a O then the buffer will receive the binary bytes tha
139. coming data stream from the bus as defined in the Channel Settings Dialog Box for that waveform BYTE WISE BUSSES VS BIT WISE BUSSES Some busses are by nature byte oriented while others are bit oriented The following table shows the type of bus Bytewise Busses Bitwise Busses e Async e Serial e I2C e I2S e Parallel e OneWire SPI CAN e PS2 e USB e SDIO USBee RX User s Manual 127 BUS EVENTS Each bus type also can have certain bus events that may be significant in the decoding of a protocol One such event is an I2C Start Bit While the Start bit is not an actual bit in the data stream it does signify to the I2C slave that a certain transaction is taking place These bus events are inserted into the data stream and can be used or ignored by the protocol processors The list of Bus Events supported is in the following table Bus Type Event Async 1 Parity Error I2C 1 Start Bit 2 Stop Bit 4 ACK 8 NACK SPI 1 SS Active 2 SS Inactive Note You MUST have SS On in the channels settings for these events to occur USB 1 SETUP IN OUT Received 2 ACK NACK Stall Received 4 No Handshake received CAN 1 Start of CAN packet 2 End Of CAN packet 1 Wire 1 Reset Found 2 Presence Found Parallel Serial PS 2 1 Device to Host byte follows 2 Host to device byte follows 12S 1 WordSelect Active 2 WordSelect InActive SMBus 1 Start Bit 2 Stop Bit 128 USBee RX User s Manua
140. ction DLL Returns e O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned int SampleRate unsigned long PodNumber unsigned int ClockMode unsigned long Threshold unsigned char SlaveSelect unsigned char CLK unsigned char MOSI unsigned char MISO unsigned char MOSIEdge unsigned char MISOEdge unsigned char SSInsert unsigned char Timestamp 238 USBee RX User s Manual Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V SampleRate e 17 1Msps e 27 2Msps e 37 3Msps e 47 4Msps e 67 6Msps e 87 8Msps e 127 12Msps e 167 16Msps e 247 24Msps PodNumber Pod ID on the back of the USBee RX Test Pod ClockMode 2 Internal Timing as in SampleRate parameter SlaveSelect Which signal the extractor uses for Slave Select 1 channel0 128 channel7 CLK Which signal the extractor uses for CLK 1 channel0 128 channel7 MOSI Which signal the extractor uses for MOSI 1 channel0 128 channel7 MISO Which signal the extractor uses for MISO 1 channelO 128 channel7 MOSIEdge When the MOSI signal is sampled O Falling CLK Edge 1 Rising CLK Edge MISOEdge When the MISO signal is sampled O Falling CLK Edge 1 Rising CLK Edge SSInsert Set to 1 to insert Slave Select boundaries into the extracted data stream Timestamp Set to 1 to
141. d type event event 6 ACK NAK or Stall found or no handshake found Decode Fields Any Packet No Response Fields Sync 8 i PID 8 L Addr 71 d EP 4l d CRC5 5 i Token 4 No Handshake Setup Nakd Token Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8 i HS 8 01011010b L Handshake IN Nakd Fields Sync 8 i PID 8 10010110b L Addr 7L d EP 4L d CRC5 5 i Sync 8 i HS 8 01011010b L Handshake OUT Nakd Fields Sync 8 i PID 8 10000111b L Addr 7L d EP 4L d CRC5 5 i Sync 8 i HS 8 01011010b L Handshake Setup Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 1 SClear Feature bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 101 Sync 8 i PID 8 L bRequest 8L 20 Get bLength 16L H CRC 10100b L Addr 71 d EP 41l d CRC5 5 i R S 6 Fields Sync 8 i PID 8 1011 R G 6 type 8 i tatus bValue 16L h bIndex 16L H 16 i Sync 8 i HS 8 L 0100b L Addr 71 d EP 41 d CRC5 5 i type 8 i Sync 8 i PID 8 L bRequest 8L 8 SGet Configuration bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 26 Get Descriptor bValueL 8L I Type 8L L bI
142. d Functions and parameters esses nnn 215 Extraction Date FOFTm t 5o ise ees S hri usa PvE RR EA EA ELEME TS ME SERRA HR RN HP RRURA A 218 SERIAL BUS DATA EXTRACTOR sre eod EX erener EE vende tenvends ten vores ne ERAN PEERS 219 SERIAL BUS DATA EXTRACTOR SPECIFICATIONS 5 e5evuos ce gba k tu gae Ye o fa aon Stevie Seg R LEM RepdpEUS 219 HARDWARE SETUP chews can tudo Sce tes iride uat vast bas tum apodo T om cad one tor ime Me Cbr pi a Td 219 EXTRACTOR COMMAND LINE PROGRAM i iiio eo eire eo en pecu tdre seres oes Ee ocu o Vete ends 219 EXTRACTOR AA gs ecatusles iate audis Ma Dur uam Lo A SM IMS UD EIE 221 BIEB soles rz A a es Soc ne eateaisc aac dun eo eaoaeo ea aaa 221 DLL Exported Functions and parameters esses 221 EXELOCTION Data FOLIO ss oes aoi erae E wa ReE Queda dora nt duds ois 223 IZC DATA EXTRACTOR eei oor A Yee NER e PAESE V EE NERA Ee AREE a ver e ur Ts 224 IZ C DATA EXTRACTOR SPECIFICATIONS kusdet elo tatio beso delta Decet eq tato os fue Fa e PME ro Padre dards 224 FIARDWARE e za aU 224 EXTRACTOR COMMAND LINE PROGRAM sisse ut da retour ERR EN Eua EUER EF R 224 EXTRACTOR AP oreson E Cost dme in Daran tone artus pto CoD cep e m pMen cep DE e Un prn 225 DEETIendimies mds css dn bd HERE Lo EP DONE SE A LOL CS odo e om Fue Pectds te Ee ci dnt On 225 DLL Exported Functions and parameters esses 226 Extraction Data Formal sd bes ov baa od io c e aen d ta Au Ev oi C a E rh n 228
143. d Select CLK and Data Connect the GND line to the digital ground of your system EXTRACTOR COMMAND LINE PROGRAM The 12S Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt 246 USBee RX User s Manual e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments I2SExtractor ST1234JIYZ Q NumberOfBytes R SampleRate M WordSelect L CLK V Data O filename P PodID Display this help screen P Pod ID required O Output to filename default off S Output to the screen default off Q Number of output values default until keypress M Word Select Signal 1 signal0 128 signal7 L Clk Signal 1 signal0 128 signal7 V Data Signal 1 signal0 128 signal7 Y Least significant bit first Z Most significant bit first J Left Justified first rising edge after Word Select change is first bit 12S format
144. data in hex e UseSS 0 don t use an SS signal 1 use the SS signal e BytesPerLine How many output words are on each output line e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e ErrorString string that holds an error description of the routine returns an error 182 USBee RX User s Manual Return Value e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODEI2C This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeI2C unsigned long reservedi1 unsigned char OutFilename unsigned char InlineSDAFilename X int64 StartSample __int64 EndSample long Rate unsigned long SDA unsigned long SCL long showack long delimiter long showall long hex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is as follows O 69 600 Msps
145. default L Filter Mask O no filter 255 filter on all signals V Filter Value O store when 0 s 255 store when 1 s Clocking Modes E Clocking mode 2 internal default 4 CLK rising 5 CLK falling 6 CLK rising AND TRG high 7 CLK falling AND TRG high 8 CLK rising AND TRG low 9 CLK falling AND TRG low R Internal CLK Sample Rate 1Msps default Digital Logic Threshold 0 Logic Threhold 10 020V 15 1 5V etc Stop on Overflow Stop on Overflow default is off USBee RX User s Manual 213 EXAMPLE OUTPUT Basickxtractor 0 output dex P 3209 1 R 27 T 8 Q 2000000 I V C Program Files USBee AX Pro Data Extractors output dex File Edit View Favorites UserCommands GridLines Tools Help 00000150 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF VVVVVVVVVVVVVVVy Lines 1 to 22 0 File Size 1 94 MB 126 976 lines 07 17 2006 19 59 A BasrcHxrractor 0 output dex P 3209 1 R 27 T 8 Q 2000000 C V C Program Files USBee AX Pro Data Es Pa fal x File Edit wiew Favorites UserCommands GridLines Tools Help alel amp e g s al amp so e amp 0 10 20 123456789 123456789 123456789 12 EEEE EE EE EELEE Et it ff ff ff tf fE Ef EEEE EELEE M a F oy ff EE Ef Ef EELE EE ET 10 Ef ff ff ff Ef TT EE T 11 ff ff If ff if ii iffi IP TE Ef ET EE Ei EE EEEE 1 ft tE tf ff ff Er TE TE 14 Ef ff ff ff ff Ef IE E 15 2 SE ft ff ff ti fiii ib LE if it iE ii EE
146. define the voltage level that indicates the change from a logic O to a logic 1 If this level is set incorrectly or too close to either the top or bottom of your logic range you will see inconsistent waveforms and this level will need to be adjusted USBee RX User s Manual 163 USBEE RX DIGITAL SIGNAL GENERATOR The USBee RX has an Digital Signal Generator built in It outputs a digital voltage pattern on the DO through D7 signals out the side of the Pod To specify what waveform pattern is generated on each of the output signals you use the section of the USBee RX Control Panel as seen below Each of the 8 digital lines can have one of 5 different modes by selecting the associated radio button above e The output of the Arbitrary Digital Signal Generator e Pulse Width Modulator e Logic High Level e Logic Low Level e Trigger Out signal The Logic Low level outputs OV on the signal The Logic High level outputs 3 3V on the signal The Trigger Out level outputs OV before the trigger event and 3 3V after the trigger event This can be used to trigger other equipment to synchronize the captures of data PULSE WIDTH MODULATORS Each digital output channel can be configured as a Pulse Width Modulator You specify the frequency in Hz O to 390000 desired as well as the duty cycle in percent 0 to 100 of the waveform The following shows two examples of a PWM signal with different duty cycles 164 USBee RX Use
147. dit C cwavXUSBae Test Files SPI CYRFIC PPD txt All busses will use a default PacketPresenter internal file to display the bus data until a custom file is defined by the user To enable a custom PacketPresenter file for this channel check the Use PacketPresenter definition file name is below checkbox Then choose the PacketPresenter definition file by clicking the Browse button to the right Once you choose the file you can edit the contents by clicking the Edit File button Once the PacketPresenter is enabled all bus decodes will be processed through the PacketPresenter as well as the original bus decoder VIEWING THE PACKETPRESENTER OUTPUT The PacketPresenter output is shown in a window below the waveform screen This window can be shown using the menu item View Show PacketPresenter Window or by clicking and dragging the thin bar between the waveform and PacketPresenter window 120 USBee RX User s Manual SAVING PACKETPRESENTER DATA TO TEXT OR RTF FILES The PacketPresenter output can be saved to either a Text file or an RTF file Rich Text Format The text file output is a textual representation of the packets as seen below Access these features through the File Save As Text or File Save As RTF menu items Layer CYPRESSRFIC DIR INC ADDRESS READDATA Time 615 2797ms Read False CHANNEL ADR 0 Layer USBBUS PID ADDR EP PID INDATA HS Time 616 0198ms IN 2 0 DATAO 22 2A 00 07 05 81 03 08 ACK Layer USBBUS
148. e DMinus Which signal 0 15 to use for the D Minus signal e Speed 0 Low Speed USB 1 Full Speed USB e Rate is as follows O 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps SOF 0 do not show the SOF Start of Frames 1 show SOFs e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Hex 0 display data in decimal 1 display data in hex e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e ErrorString string that holds an error description of the routine returns an error Return Value TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user USBee RX User s Manual 181 DECODESPI This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeSPIVariable unsigned long reserved1 unsigned char OutFilename uns
149. e available for your use DLL FILENAME usbedI2C dll in Windows System32 USBee RX User s Manual 225 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e O No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns e O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned long Threshold unsigned long PodNumber unsigned char All unsigned char Decimal unsigned char Hex unsigned char Binary unsigned char Comma unsigned char Space unsigned char Timestamps unsigned long SDA unsigned long SCL Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V PodNumber Pod ID on the back of the USBee RX Test Pod All e 0 Only the data payload bytes are returned e 1 All I2C packet fields are returned
150. e that you downloaded to start the installation o Meat usbeesuiteswzip wtp Search 2 L Organize v THU Mociclee hills Favorite Links IE Documents E Pictures 2 Music More Folders di Public ji Computer amp Local Disk C do SRECYCLE BIN ADOBEAPP J BACKUP d Boot ah eae i 1 2 items The publisher could not be verified Are you sure you want to run this software Mame Local Temp Templ0_usbeesuitesw zip setup exe Publisher Unknown Publisher Type Application From G Users Tim AppData Local Temp Temp10_usbe publisher You should only run software from publishers you trust D This file does not have a valid digital signature that verifies its i How can decide what software to mn USBee RX User s Manual 39 e The first part of the installation installs Microsoft requirements including Microsoft NET Frameworks Version 4 0 If you do not have this on your PC it will install it for you as shown below click Accept to install the NET Frameworks This installation takes a LONG time so please be patient since it is worth the wait If you already have it installed you will automatically see the Welcome to the USBee RX Suite Setup Wizard screen e You will see the Welcome to the USBee RX Suite Setup Wizard screen as shown below The installer will quide you through the steps required to install USBee R Suite on your computer WARNING This c
151. e the contents of one of the fields as the packet length you use the name of the field defined in the Fields section You can also do simple arithmetic on the field value to compute the final packet size 132 USBee RX User s Manual type length End of a packet is based on a length Bytelength fieldname 2 2 field holding packet size or a constant optional or a constant optional If present the or must come before the or offset and is executed first For example if 1eldname Field has the contents of 16 then the following is true fieldname 2 2 16 2 2 34 fieldname 2 1642 18 fieldname 2 2 16 2 2 6 fieldname 2 16 2 8 fieldname 2 2 invalid must come before offset fieldname 2 2 invalid must come before offset The length of the packet includes ALL of the data from each of the data channels for that bus If the bus contains only one data channel such as I2C the length counts all data on that one bus If the bus has two data channels the length refers to all data on both channels combined TYPE EVENT The start or end of a packet can be indicated by the reception of any of the bus specific Events For example in I2C you get a Bus Event for each Start Bit and a Bus Event for each Stop Bit In USB you get a Bus Event for each Sync word and a Bus Event for each EOP Available bus types are defined in Error Reference source not found The eve
152. ececeeececeeeceeauecetsuececsuecensness 143 Loopback BI Telo 6 1 ERE a T 143 verine DeCode uoo erre on Dh vet ut ara esie de eeu abu 143 Expanding DecOGBE ciet iai d meer ev unin p ae d NOE EE a dU dC MES EGENTES VEM Qr qoa 143 Comptressing Decodel odio ide reo Gute v Pando v bey be su bep endo Pereira 144 USBee RX User s Manual Multiple Decoder siaina DR Inti e I a DUE 145 PacketPresenter Definition File Debugging cessere 145 PacketPresenter SBecIfICations secs scene nee ee Rt a Ss 146 Example Protocol Files and Output Examples sees 147 Async Protocol Example ce iossec id tete eeu eoi ne etie d c Een Feb Eee ia etre ve rey eire 147 ZG Protocol Example asserere wire eet wa ver rca ed obere Ond bb a ep d v cta 148 SPI Protocol Example irn RE E Ee D bcn e Seb Le ees 149 CAN Protocol Example vessoaiu abad Ga due pO Rb edpI btt fade d DEEr DF ESd A 151 SDIO Protocol Example enina a 151 T Wire Protocol EX AIG noria I dr orc bero bred Tras 154 Parallel Protocol EXarpl8aoevsgerete eid ia tae beer e tbi be rad des he n ret ebat der ld 155 Serial Protocol E Xai We eis ertt M BEER DEEP IE NOE BEGEHTIIE CHE ROI QUIE EHE DIE SDLPHRE EN 156 USB Protocol Example ipe roh tr peti eco an oed e waned 157 PS2 Protocol Example s oon atra Gad du dti Odd Fare vc oput dad Len Eu UD E o EU ME MUS 159 USBEE RX ANALOG SIGNAL GENERATOR e eee e eee ee eene
153. ect the test leads directly to pin headers on your board or use the test clips for attaching to your components The SM Bus Decoder uses any one of the 16 digital signal lines 0 thru F for the SM Clock and SM Data and the GND ground line Connect the SM Clock and SM Data to your digital bus using the test leads and clips Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the white box on the left of the signal names on the main application screen B Channel Settings SingleSigal USB SPI Dc Async gle Sig y Signal Selection 012 56789 AR Clock 9 Data O 9 Save Cancel On the above dialog box select the signals you plan to use for the SM Bus protocol The bus traffic will be decoded as in the following screen USBee RX User s Manual 73 SERIAL BUS SETUP The Serial Bus Decoder takes the captured data from a Serial bus The serial data can be from any clocked serial bus and can be aligned using a hardware signal or an embedded sync word Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The Serial Bus Decoder uses any one of the 16 digital signal lines O thru F for the Clock Data and optional Word Align si
154. ed no acquisition is taking place You need to press one of the acquisition buttons Capture Once or Capture Many at the bottom of the window to capture data The Capture Many button performs an infinite series of traces one after the other This lets you see frequent updates of what the actual signals are doing in real time If you would like to stop the updating just press the same button again now reading Stop and the updating will stop This mode is great for signals that repeat over time The Capture Once button captures a single trace and stops This mode is good for detailed analysis of a single event rather than one that occurs repeatedly The USBee RX Suite adds the ability to have either Normal Mode default n the Standard version or Automatic Mode triggering This determines when the signals start getting sampled once you press the Capture buttons You specify the trigger event by selecting one of the USBee signals to trigger on rising or falling edge Normal mode will wait for the trigger event to occur before capturing Select this option using the Trigger Normal Mode menu item If the trigger event does not occur you can press the Stop button to terminate the capture Automatic Mode will wait a set time for the trigger and will automatically trigger if it is not found Select this option using the Trigger Automatic Mode menu item If the trigger event does not occur within a specified time it will automatically start a c
155. ed 0 025 square header pins 60V tolerant inputs Connects to 10x2 pin test lead set 172 USBee RX User s Manual INSTALLING THE USBEE RX TOOLBUILDER The USBee RX Toolbuilder software is included as part of the installation with the USBee RX Suite software and can be downloaded from www usbee com Run the setup exe install program in the downloaded file to install from the web The install program will install the following USBee Toolbuilder files and drivers into their correct location on your system Other files will also be installed but are not necessary for Toolbuilder operation USBEE RX TOOLBUILDER PROJECTS The USBee RX example Toolbuilder projects are located in Program Files USBee RX Suite USBee RX ToolbuilderNUSBeeRXToolbuilderlnC and Program Files USBee RX Suite USBee RX ToolbuilderNUSBeeRXToolbuilderlnVB The USBee RX Toolbuilder depends on the files in the directories for proper operation so if you want to relocate the projects to somewhere else you must maintain the entire file directory structure USBee RX User s Manual 173 USBEE RX TOOLBUILDER FUNCTIONS This section details the functions that are available in the usbeerxste dll and defines the parameters to each call The calling conventions are shown for the C language but you can find the definitions for Visual Basic in the example file as well INITIALIZING THE USBEE RX POD INITIALIZERX This routine initializes the USBee RX Pod This routine must
156. ed char Comma unsigned char Space unsigned char Timestamps unsigned long MaxID unsigned long MinID Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V PodNumber Pod ID on the back of the USBee RX Test Pod Speed Bit rate of the CAN bus in bits per second All e 0 Only the data payload bytes are returned e 1 All CAN packet fields are returned 262 USBee RX User s Manual Decimal e 1 Decimal Values text are output for the data bytes Hex e 1 Hex Values text are output for the data bytes Binary e 1 All data is in binary form not text Comma e 1 Commas are placed between each field data byte Space e 1 Spaces are placed between each field data byte Timestamp e 1 Print Timestamps at the start of each packet MaxlDFilter e The Maximum Identifier to log OXFFFFFFFF default MinlDFilter e The Minimum Identifier to log 0 default Returns e 1 if Start was successful e 0 if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT int CWAV API StopExtraction void Returns USBee RX User s Manual 263 e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2
157. ed with this lookup table va uen refers to the actual data value of the field stringn is the text string that is output instead of the valuen If a lookup entry is not present for the data value not found in the Lookup Table or the Lookup Table does not exist then the data value is output For example the following table will assign the text strings for various values of the data for the CommandByte field When the field CommandByte 8 L is processed the strings are output instead of the value Lookup CommandByte 0 SRead 1 SWrite 2 SSeek 3 SLoc 4 SSize The Lookup Tables are only associated to the specific Protocol they are contained in Therefore you can have a CommanaByte lookup table in ProtocolA that is different from a CommandByte lookup table in ProtocolB Within a single Protocol you need to make sure that the Fieldnames are unique for all Lookup Tables so that the PacketPresenter can determine which table to use 138 USBee RX User s Manual EXAMPLES OF FIELD LINES AND FIELDS JUST PLAIN DATA Fields contain data that may or may not be of interest to the user Many times the data is information that just needs to be output to the viewer Being binary data each field may need to be translated numerically to mean something To output a field of data you can specify the radix if it should be shown in Hex Decimal binary as well as a gain and offset to scale the data Finally you can add a string to the field t
158. ee the following screen running in Demo Mode see the top title bar Bl UsGee Suite Pro USBee RX Demo Mo File View E igital D Digital E Digital F 53 7 ae eee ee ee ee ee eee ee ee ee ee ee ee 1117 OC IO USBee RX User s Manual 41 e If you have a USBee RX plugged in and installed correctly you will see a screen with all available channels shown Below is the USBee RX version showing 16 digital channels and 2 analog channels You can also see that the device is connect and not in demo mode in the top title bar Bl Ube Suite Pro USBee RX Co B B m B E E E B 8 1 t t t DEMO MODE In the Demo mode you can see an example trace capture by clicking the Demo button This loads a trace that includes a number of serial busses and lets you see how the USBee RX Suite can decode the bus traffic manipulate the waveform data and use the features of the USBee RX Suite The USBee RX Suite display shows the USBee connection status in the title bar of the application When a USBee RX is connected to the computer when the application starts the title bar indicates the connection status If you run the software with no pod attached it will run in demonstration mode and simulate data so that you can still see how the software functions If you are running in Demo mode and you want to connect to your USBee RX pod you must exit the USBee RX Suite connect the USBee RX and the
159. eene e eese nnus 160 USBEE RX LOGIC PROBE AND DIGITAL VOLTAGE METER 162 USBEE DIGITAL LOGIC THRESHOLD 5 5 5 6o nap Sor an No erae ea Sao eo Poena ae oto no eH Oves 163 USBEE RX DIGITAL SIGNAL GENERATOR e eee eee eee eene eene seen se nnus 164 PULSE WIDTH MODULATORS 5s icone nya Masa RH hd ERU Es SE GER DURAN ER UH EERPES 164 ARBITRARY DIGITAE PATTERN GENERATOR es Pede MAR ness VR FueY ERR vue EE Y E MERE EENKUE TE pE 166 Specifying the Pattern With a CSV File sees 166 Sample CIOCI acuisssctt on odes teu Ed E ob COE db MEO RP Icd 167 WAVE ONT GenerQuom CaltEol tetra Ir resa Mute abeat E EN DE Doe 167 USBEE RX EDGE PULSE COUNTERG scccssscossssccessccnsssccesssecessecsssecesseeececs 169 USBEE RX FREQUENCY COUNTERS 5 55 1o ote aaa eo ba SER aae ERE Coa PR R Re RR PEE EO RE CR E ees 170 USBEE RX TOOLBUILDER 55 i oo de vex es Eua ne EROS ed EP sie oV YE VE MEPER EER MP EE pER a R 171 OVERVIEW e nchachonedues OESS 171 System Software AI CHIT CCE uso coins Ea ry dan ad ko begun xa sod etit eds 171 THEUSBEE RX FOD HARDWARE casas ER VERSER RU vans NE KSUEE QUA TU Parse EDU E N 172 INSTALLING THE US BEE RX FOOLBUIEDER 59e Roy RE Ek EE ERR E RE ERA ER RR Fe Mose uvas 173 USBee RX TOOIbUllder PEOIECES aic te E DR P ON ERR E Dn 173 USBEE RX TOOLBUILDER FUNCTIONS 6 eene ERRT rena Enn RESET Fey RE RUD ER ERA RENS ERUr IRE AA EVER UT 174
160. ements l Oscilloscope T Xi X2 dX i dX Period Frequency Duty Cycle Ons Ons Ons Ons infinity Ons infinity Inc All Rights Reserved Designed and Manufactures only in the USA 104 USBee RX User s Manual SAMPLE AND SMART MARKERS Placing markers in your traces can help detail what is happening in your design There are two types of markers that can be used The first marker type locks itself to a sample on a waveform and lets you specify the text The second is a Smart Marker that automatically measures the pulse width frequency period or duty cycle of the waveform at the marker location Smart Marker Automatic Measurement 8 667us SAMPLE MARKERS Click to Edit Text Markers that are locked to a specific sample are placed using the View Add Sample Marker menu item Once you select this menu item your cursor changes to 4 way arrows and a Sample Marker moves wherever you move the cursor To place the marker position it where you want it and then press the left mouse button Another faster way to place Sample Markers is to press the middle mouse button at the location you want it placed You can edit the text within the marker by clicking on the text and typing in the new text You can hit Enter to add more lines As you add text the marker will expand to fit the text When the waveforms then redraw then marker is positioned to remain locked to the correct sample To move the marker click on the Move at the top of
161. erPosition SampleRate ChannelMask 0 0 USBee RX User s Manual Monitor the status of the capture in progress unsigned char Full unsigned char Triggered unsigned char Running 1 while Running CaptureStatusRX amp Full amp Triggered amp Running printf CaptureStatus Full Xd Triggered d Running d n Full Triggered Running Sleep 10 TriggerNowRX To trigger now and store data to the end of the buffer StopCaptureRX To stop capture in progress and discard the data Now that the capture completed properly end the capture and get the data int64 ActualNumberOfSamples int64 TriggerSamplePosition Completes the capture and transfers all of the stored data to the PC EndCaptureRX amp ActualNumberOfSamples amp TriggerSamplePosition printf Number Of Samples 164d Trigger Sample Position 1I64d Wn ActualNumberOfSamples TriggerSamplePosition Now access the samples using SampleData and FindNextEdge routines printf Sample 0 4X n SampleData printf Sample 1 4X n SampleData 1 printf Sample 2 4X n SampleData 2 printf Sample 3 4X n SampleData 3 printf Sample 4 4X n SampleData 4 py AUN int64 NextSampleWithEdge FindNextEdge 1234567 xFFFF 1 j printf Press any key to exit n getch return USBee RX User s Manual 197 USBEE RX DATA EXTRACTOR OVERVIEW The Data Extracto
162. es 07 17 2006 240 USBee RX User s Manual 1 WIRE DATA EXTRACTOR The 1 Wire Bus Data Extractor takes the real time streaming data from an 1 Wire bus formats it and allows you to save the data to disk or process it as it arrives 1 WIRE BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e Monitors one 1 Wire Bus e Asynchronous internal sampling from 1MB s to 24MB s e Output to Binary File Output to Text File e Output to Screen e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The 1 Wire Bus Data Extractor uses any of the 8 signal lines 0 thru 7 and the GND ground line Connect any of the 8 signals lines to the 1 Wire Signal Connect the GND line to the digital ground of your system EXTRACTOR COMMAND LINE PROGRAM The 1 Wire Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command
163. eshold 2 Volts happens 1 times while E Bus pick one decoded data is anything E Digital Signal States are F KEEA 1e 99069 00 Le9 0 to E ROOIX TATATA 0 and RRR Analog Signal CH1 s 10 Voitsto 10 Volts and Capture O ms z USBee 7 This Event happening between 0 us v and 100 us v immediately after the previous event Logic Analyzer Oscilloscope Copyright 2009 CWAV Inc Use PacketPresenter Definition File name is below USBee RX User s Manual 103 FAST PAN BUS VIEWING The USBee RX Suite Fast Pan Bus Viewing lets you quickly pan through a busses decoded data For each bus there is a left and right pan button on the left side of the screen Simply press these buttons to page to the next or previous bus transactions E I WB USBee Suite Pro USBee DX Connected C cwav USBee Test Files DXDemo usbeecomp EI i oe File View Speed and Samples Trigger Setup Help lt _ A Imc P IL lt 9 E 200us div 151 833us 351 833us 551 833us 751 833us 951 833us 1 151833ms 1 351833ms 1 551833ms 2 Digital 0 Digital 1 Digital 2 Digital S SPL2 F6 if OE FF Y FF li FF Bv FF if FF f BA if 06 Zs Digital 4 Digital S DC5 IIE Digital 6 GN GG MEE UGG Digital 7 et oe ow OX Iw Async 6 EB E x Cuilors Capture Once Capture Many Measur
164. et Pulse Decode Fields These fields are used by Maxim Dallas Digital Thermometers Fields ROMCommand 8 F0h Search Rom Data N h Fields ROMCommand 8 33h Read Rom Family 8 h SerialNumber 48 h CRC 8 h Fields ROMCommand 8 55h Match Rom Family 8 h SerialNumber 48 h CRC 8 h Fields ROMCommand 8 CCh Skip ROM Function 8 44h SConvertTemp Fields ROMCommand 8 CCh Skip ROM Function 8 BEh S Read Scratchpad Temp 16 d TH 8 h TL 81 h Rsvd 16 i Remain 8 h CpC 8 h CRC 8 h These fields are used by Dallas Serial Number iButtons Fields ROMCommand 8 33h Read Rom Family 8 h SerialNumber 48 h CRC 8 h Fields ROMCommand 8 0Fh Read Rom Family 8 h SerialNumber 48 h CRC 8 h These packets are used by 1 Wire EEPROMS Fields ROMCommand 8 33h S Read Rom Family 8 h SerialNumber 48 h CRC 8 h Fields ROMCommand 8 h MemoryCommand 8 0Fh Write Scratchpad Address 16 h Data N h Fields ROMCommand 8 h MemoryCommand 8 AAh SRead Scratchpad Address 16 h ES 8 h Data N h Fields ROMCommand 8 h MemoryCommand 8 55h SCopy Scratchpad AuthCode 24 h Fields ROMCommand 8 h MemoryCommand 8 F0h S Read Memory Address 16 h Data N h 154 USBee RX User s Manual PARALLEL PROTOCOL EXAMPLE Sample Parallel Protocol Definition File This file defines the transfers to from an unique device Protocol name ADevice bytewise DEBUG DebugOn Packet
165. etldl e petro i cena een iet ehem pute eto Gentes 187 DecodeAsY NE aatia daret uc QUA uei Picasa eae eae 188 DecodeSetNalLHie ess iem Sete oc e RED EDEN dd LE TRE QU Ra TeR EL IR IR eects LE QUEUE Ia odo LA ERI 189 Digital Pattern Generator Functions eee 189 GeleratePWMWaveftoEm BC axo ed ol xe ede PO M OX OP DE en IR eR bb vibe Edd 190 LoadbDisitalWavetor X essetis deat adve v aa qv Lie ES vae Sea Dra E LE Fe AE Ra Ee ORE sed Rua dads 190 GenerateDigitalWaveformRYX cccccsssscccccsssecceceesecceeueeeceesaeeeceeseeeeceeseuaeeeessuaeeeeees 190 Frequency and Pulse Counter Functions sssccccsseecccaeseccceseccassecsaessesaaeses 191 Cear COUNTS RA oaie EET 191 EADIE COUNMESRK ocasion nS NAA ANRA 191 Disable Counts RX eaa T O O 192 GetFrequencyAndCountsRX sscccccssssccccceseccccesecceseeseceeseeeceesseeeceesseeeeessaeeeeeees 192 EXAMPLE C Geop PN 193 USBEE RX DATA EXTRACTOR OVERVIEW ee eee eee ee eene rere nennen onn nnne 198 DAIA EXIRAGIOR FEATURE Siorra iuuat reri ead e o lr ER eb st o rete e e 198 BUS TYPES DECODED orena o ent sane tie b Mentes sau dias ous sda aves ees aces ase Ca Due 199 YOUR TESTING SYSTEM urone rns a fotaptuu eia esL ds Pass t Eo man Renesas mete Po tup EU EL mit 199 SYSTEM REQUIREMENTS cour aeni chat E aS abeo ive RE inops cod mela S USt o es km PL dnas e carus 199 SYSTEM SETUP oirin atara Costi dO OSA Ce tam ied uan E i OsaI er waked 200 Running the Command Line Extrac
166. ettings for that waveline Below shows the Channel Settings Dialog Box B Channel Settings Bon L sz smeus vs can Single signa org 56789 AB Signal to Display 9 Save Cancel 56 USBee RX User s Manual Once you select the properties of the new waveline it will be displayed with the other signals Below shows a new line added that shows the Digital 2 single signal ILS M NM NM NM NMEMIE We will go through creating Bus wavelines that decode bus traffic in line in the next section To Modify an Existing Waveline click on the grey tab on the left of the waveline This will bring up the Channel Settings dialog box and allow you to change the settings for that line Below we modified the last line to show Digital 2 signal instead of the Digital O signal TOW UM C9 3088 TT u ae ono sid E Vinee Suite Ues DE Connected a a a Boo Pu D EC n ils xe DECODING BUS TRAFFIC INLINE The USBee RX Suite software can decode certain types of serial busses automatically and display that information in line with the waveforms Below is an example of a screen that shows 3 different serial bus decoders at the same time one SPI one I2C and one full duplex ASYNC channel USBee RX User s Manual 57 r 8 USBee Suite USBee DX Connected File View Speed andis rigger Help Oe DOus diy 123us 423us 723us 1 023ms 1323ms 0 000000000 Trigger T Cursor ee jeee
167. ext are output for the data bytes Binary 9 1 All data is in binary form not text Comma e 1 Commas are placed between each field data byte Space e 1 Spaces are placed between each field data byte Timestamp e 1 Print Timestamps at the start of each packet Returns 1 if Start was successful e 0 if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT A CWAV API Stopbxtractiont void Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void 254 USBee RX User s Manual Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The USB Bus Extractor DLL sends the extracted data through the buffer in the requested form based on the parameters in the StartExtraction call For example if Binary is set to a O then the buffer will receive the binary bytes that make up the data stream If Hex is set to a 1 the buffer will contain a text string which is the data of the USB traffic in Hex text form separated by any specified delimiters V C cwav USBee AX DataExtractor US
168. ge was found WriteEntry BW NextEdge NextEdge 100 Changed S amp Sample amp N amp NextEdge Else There are no more edges so end Exit For End If Sample NextEdge 1 Next ElseIf CBool InStr Parameters ToUpper RISE Then Sample Decoder that just detects when a signal changes state The signal to use for the detection is specified in the Parameters as the second parameter USBee RX User s Manual 85 86 Dim Params Parameters Split CChar Dim SignalToUse As Double Val Params 1 Dim SignalMask As Integer 1 lt lt CInt SignalToUse Make the mask that will mask off the channel we want in the sample Now go from the start of the samples to the end and process the decoder For Sample 0 To NumberOfSamples 1 This example decoder places a label at every transition of digital signal 0 Dim DigitalChannel As UInteger CUInt SampleData Sample And SignalMask If DigitalChannel lt gt OldSample And OldSample 0 Then WriteEntry BW Sample Sample 100 Rise End If OldSample DigitalChannel Next ElseIf CBool InStr Parameters ToUpper HELLOWORLD Then Simplest Decoder Possible Print Hello World at the start of the buffer WriteEntry BW 0 100 Hello World WriteEntry BW WriteEntry BW GX1Sample GX1Sample 100 WriteEntry BW GX2Sample GX2Sample 100 GTriggerSample GTriggerSample 100 Trigger Is Here X1 Is Here X2 Is Here
169. gic 1 at 1 8V 1 USBee Suite Pro US amp ee RX Connected C cwav USBee Test Files ProtocolSetupusbeen ples 100N Capture Once Capture Many Tagger Settings USBee RX User s Manual 167 168 USBee RX User s Manual USBEE RX EDGE PULSE COUNTERS The USBee RX can independently measure the number of edges that occur on four of the digital input signals 0 through 3 The number of edges counted is shown in the USBee RX Suite control panel as below Ly Sy uc Counting occurs when the Count checkbox is selected To clear the counts press the Clear Counts button Remember that the counts are affected by the Digital Logic Threshold setting so you must set this correctly for the signals you are measuring for accurate counts Since each Pulse is made up of a rising edge and falling edge pair you can compute the number of pulses by dividing the Number Of Edges by 2 USBee RX User s Manual 169 USBEE RX FREQUENCY COUNTERS The USBee RX can independently measure the frequency four of the digital input signals 3 through 7 The frequency measured is shown in the USBee RX Suite control panel as below Remember that the measurements are affected by the Digital Logic Threshold setting so you must set this correctly for the signals you are measuring for accurate counts 170 USBee RX User s Manual USBEE RX TOOLBUILDER OVERVIEW The USBee RX Test Pod System consists of the USBee RX Test Pod connected to a Windows
170. gic Thresholds and USB over current protection And that s just the hardware Mixed Signal Multi level Protocol Decoding Combined with the USBee RX Suite software the USBee RX becomes a multi layer protocol decoder for many of today s serial and parallel busses letting you debug at the waveform bus data or packet level In Field Upgradable System Supports Addition of New Features Based on a proprietary design that allows the software firmware and hardware to be dynamically reconfigured using web based software downloads the USBee RX and its ever growing list of Applications ensures that you will always have the most current tools available for years to come USBee RX User s Manual 15 With a single USB connection to your laptop or PC the USBee RX gives you the power to design prototype test and validate your mixed signal electronic designs with seamless ease Built upon the popular award winning and patented USBee mixed signal Oscilloscope Logic Analyzer Signal Generator and Protocol Analyzers the USBee RX takes full advantage of the powerful debug capabilities of the USBee RX Suite software to solve your problems fast The USBee RX Test Pod does not need an external power supply The USB bus supplies the power to the pod so your PC will be supplying the power The Pod does however require a self powered hub not bus powered if a hub is used between the PC and Pod r a USBee Suite Pro USBee RX Demo
171. gnal and the GND ground line Connect the Clock Data and Word Align to your digital bus using the test leads and clips Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the white box on the left of the signal names on the main application screen f Channel Settings _ Signal Selection olT2N 56789 AB Word Align 9 00 00 000 E Clock Data 009 Clock Edge Align Mode Align Edge Bit Order r Bits Align Value hex Rising 9 Signal Rising msb First a 0 Falling D Value J Falling 9 sb First lu Save Cancel On the above dialog box select the signals you plan to use for the Serial Bus protocol Select whether you have an external word align signal Align Mode Signal or if your serial data has an embedded sync word in the data stream Align Mode Value The Bits Word is the size of the Sync word as well as the output word size Choose the bit ordering as well as the output format of the traffic The bus traffic will be decoded as in the following screen 74 USBee RX User s Manual I2S BUS SETUP The I2S Bus Decoder takes the captured data from an 12S bus Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to y
172. hannel Settings dialog box You can then enter a set of parameters that are sent to your decoder These parameters can specify anything you may need to determine how to decode your protocol including which protocol which signals to use baud rates inversions etc and is purely defined by you Below is the Channel Setting screen showing that we want to use our Custom Decoder on this waveline We are also passing the text string helloworld to the decoder when it runs merme Single signal use s nc asme wire ese sme T m T ow T se Parallel Custom Custom Protocol Parameters helloworld Cancel When we press Save our Decoder is run passing the parameters to it and the resulting Entries are displayed Below is the output from our VERY simple Hello World decoder which puts a Hello World at the first sample 82 USBee RX User s Manual f SS USBee Suite USBee SX Demo Mode S ix PM Digitaro E Bus felloworld DW Hello World WR Digital 2 Digital 3 Digital 4 Digital 5 Digital 6 Digital 7 Demo Measurements T Xi X2 dX i dX Frequency Duty Cycle Ons Ons Ons Ons infinity 24 0MHz 104857500 On a different Waveline you can specify a different set of Parameters in this case change 3 that indicate to the Custom Decoder to perform an entirely different decode r a Channel Settings z a a ce ns Custom Protocol Parameters change 3
173. he data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void 252 USBee RX User s Manual Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns e O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned long Threshold unsigned long PodNumber unsigned char Speed unsigned char All unsigned char Decimal unsigned char Hex unsigned char Binary unsigned char Comma unsigned char Space unsigned char Timestamps unsigned int Endpoint unsigned int Device Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V PodNumber Pod ID on the back of the USBee RX Test Pod Speed e 0 Low Speed e 1 Full Speed All e 0 Only the data payload bytes are returned e 1 All USB packet fields are returned Decimal e 1 Decimal Values text are output for the data bytes Hex USBee RX User s Manual 253 e 1 Hex Values t
174. he decoder if reset TRUE everyother 0 if everyother bitsOut bitin return 1 Indicates that there is 1 return data bit everyother 0 else everyother 1 return 0 Indicates that there are no return data bits 144 USBee RX User s Manual MULTIPLE DECODERS This Add In shows how to use the Protocol string to selectively decode different types of packets CWAV EXPORT unsigned int CWAV API APIDecode char Protocol char bitIn char bitsOut char reset static everyother 0 if stremp Protocol COMPRESS if reset Reset the state of the decoder if reset TRUE everyother 0 if everyother bitsOut bitin return 1 Indicates that there is 1 return data bit everyother 0 else everyother 1 return O Indicates that there are no return data bits else if strcmp Protocol EXPAND bitsOut bitIn bitsOut bitIn return 2 Indicates that there is 2 return data bits No matching decoder label found so just loopback the data bitsOut bitIn return 1 PACKETPRESENTER DEFINITION FILE DEBUGGING Creating your PacketPresenter Definition File can be made simpler using the Debug mode To turn on Debug mode use the DebugOn keyword in ALL DEBUG sections of the Definition File Protocol name I2CEEPROM DEBUG DebugOn Turns On Debug Mode Comment it out to turn it off Packe
175. hen Trig Y is present e TriggerXEnabled 1 Trigger when Trig X is present e TrigXorYEnabled 1 Trigger when Trig X or Y is present e TrigXandYEnabled 1 Trigger when Trig X and Y is present e TrigXthenYEnabled 1 Trigger when Trig X followed by Y is present e TrigYthenXEnabled 1 Trigger when Trig Y followed by X is present Return Value e 1 Trigger Set successful e 0 Trigger Set Failed DECODEUSB This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeUSB unsigned long reservedi1 unsigned char OutFilename unsigned char InlineFilename int64 StartSample int64 EndSample long ShowEndpoint long ShowAddress long DPlus long DMinus long Speed long Rate long SOF long delimiter long showall long hex 180 USBee RX User s Manual char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e ShowEndpoint 999 show all traffic otherwise show only this USB endpoint number traffic e ShowAddress 999 show all USB devices otherwise only show the USB device with this USB address e DPlus Which signal 0 15 to use for the D Plus signal
176. his value for the entire line to be processed Conditional Each modifier is a single character and multiple format modifiers can be combined There can only be one Variable length field using the N input modifier for each channel x or y for any given packet Example input modifiers are as follows 8 8 bits 8L 8 bits Isb first 8X 8 bits from channel X 8Y 8 bits from the Y channel 8 47h 8 bits that must equal 47 hex If they do not then this line is ignored N all bits of the packet on channel X not used by other fields NY all bits on channel Y not used by other fields OutputModifiers are a string of characters that represent how to output the contents of this data Output Modifiers are as follows Ignore no output entire field is ignored for output D Decimal output H Hexadecimal output B Binary output A Ascii output TF True nonzero or False zero TFT True nonzero or False zero but only show if True TFF True nonzero or False zero but only show if False L Look up the text string to print out in a matching Lookup line Value or Value a value to multiply Divide the output value by Value or Value a value to offset the output value by Sstring string to print after the data or in place of the data if the i flag is used String must be the last item in a field No commas quotes semicolons or parenthesis allowed in the string BUS EVENTS IN THE MIDDLE OF A PAC
177. ic Analyzer Oscilloscope T Apply a Below shows a search that finds all occurrences of when the Digital 2 and Digital 3 signals are 0 0 0 1 and 1 0 The range starts at the first setting and increments until the second setting o Channel Setting js mrm Single Sigrar uss f s f ec f ame iwe es 100us div__ 144175ms Mos rns ow sem Posi m fO h Search 33 A E f9 Event 1 If digital signals are XXXXXXXXXXXXXOOX to XXXXXXXXXXXXX10X Digital 0 File View Speed and Samples Trigger Setup Help lt If Digital Sig ha edge happ ime Digital 1 JF An al CH1 has risi edge at volta eshold ppe ne Digital 2 EI hile Digital 3 isis B Dig decoded data 15 fand 99 7a SPI2 v Digital Signal States are v F f 4X BOSS 990 OA 0 to F ROOIX 99e 9S94X EER 0 and Digitar4 3 z Analog Signal CH1 E 10 Volts to 10 Volts Dig MO and Dc5 This Event happening between 0 us and 10 s mmediately after the previous event pigas 7 MJ Digital 7 x m Followed By Async 6 x v Event 2 Followed By z gE v Event 3 Followed By v Event 4 Followed By v Event 5 Followed By Event 6 Cursors USBee Capture Once Capture Many Logic Analyzer Oscilloscope T m 98 USBee RX User s Manual ANALOG SIGNAL STATES AND RANGES The next line lets you find voltage ranges on the analog signals if your USBee has them
178. icking on each individual signal to change from O 1 and X don t care If you are looking for a single set of digital states leave the second set of signals at all X If you want to find a range of states enter the ending value as the second set of signals The matched range will then include all values from the first set to the second set inclusive USBee RX User s Manual 97 Below shows a search that finds all occurrences of when the Digital 2 signal is logic O RT Channel Settings mem pany ec me a a NE RA RA JE 3 Search DRE Event 1 If digital signals are XXXXXXXXXXXXXOXX Digital 0 z z If Digital Signal Digital has rising edge happer times or Digital 1 z If Analog Signal CH1 has rising edge at voltage threshold lt Volts happens 1 times Digital 2 cc az gt 7 while Digital 3 Dig decoded data Detween 15 and 99 ana SPI2 v Digital Signal States are x F 4X E9969 04 94 0 to F L 94X 5 9 999 00 1994 0 and Digital 4 Ba Analog Sig Hl 1 O 10 Volts pgs c and Dc5 C This Event happening between 0 us and 10 s mmediately after the previous even Dijtare 7 Digital 7 B Followed By oa x v Event 2 Followed By m vi Event 3 Followed By vl Event 4 Followed By v Event 5 Followed By CUNSIE v Event 6 USBee Capture Once Capture Many S kel resenter Definition File na TA TE Log
179. igned char InlineMOSIFilename unsigned char InlineMISOFilename X int64 StartSample int64 EndSample long Rate unsigned long SS unsigned long SCK unsigned long tMOSI unsigned long tMISO unsigned long MISOEdge unsigned long MOSIEdge unsigned long delimiter unsigned long hex unsigned long UseSS unsigned long SSLevel long BytesPerLine long BitsPerByte char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is as follows 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps SS Which signal 0 15 to use for the Slave Select signal e SCK Which signal 0 15 to use for the clock signal e MISO Which signal 0 15 to use for the MISO signal e MOSI Which signal 0 15 to use for the MOSI signal e MOSIEdge 0 use falling edge of SCK to sample data on MOSI 1 use rising edge e MISOEdge 0 use falling edge of SCK to sample data on MISO 1 use rising edge e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Hex 0 display data in decimal 1 display
180. iles with large buffer sizes can take a while to decompress and display RECENTLY USED FILE LIST The USBee RX Suite maintains a recently used file list that allows you to quickly load any of the last 5 previously used files Simply click on the file name in the File Recently Used file list to open it EXPORTING CAPTURED DATA TO A FILE Since the compressed trace files are not in easily useable format you can use the File Export menu items to save the trace and decoded data into formats that are easy to use 78 USBee RX User s Manual x pem um EE USBee Suite USBee DX Connecte Eg New c 8 929167ms 9 329167ms 9 729167ms 10 129167ms 10 529167ms Open Save Capture Export Signal data to Binary File All Print Signal data to Binary File X1 to X2 Save USBee Suite Screenshot Signal data to Binary File Screen Save Screenshot Section Signal data to Text CSV File All Signal data to Text CSV File X1 to X2 Signal data to Text CSV File Screen Bus data to Text CSV File All Bus data to Text CSV File X1 to X2 Bus data to Text CSV File Screen Cursors p Capture Measurements E Xt x2 dX 1 dX Period Frequency Ons 34 581333ms 34 581333ms Ons infinity Ons infinity The available options for exporting are e Save the Signal Data to a Binary File e Save the Signal Data to a Text CSV File e Save the Bus Data to a Text CSV file You can specify the range of samples to export by using the All X1
181. imum Identifier Filter V Timestamps O off 1 each packet start EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use USBee RX User s Manual 261 DLL FILENAME usbedCAN dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns e 0 No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned long Threshold unsigned long PodNumber unsigned long Speed unsigned char All unsigned char Decimal unsigned char Hex unsigned char Binary unsign
182. ing to your components The CAN Bus Decoder connects to the digital side of your CAN bus transceiver and only needs to listen to the receiving side of the transceiver such as the RxD pin on the Microchip MCP2551 CAN bus transceiver chip Use signal O as the RxD data line and connect the GND line to the digital ground of your system Connect these signals to the CAN bus transceiver IC using the test clips provided Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen r Channel Settings F N u f Serial Parallel Signal Selection 012 REES CRS CAN Rx Data 9 Bit Rate bps Minimum ID hex Maximum ID hex 250000 0 FFFFFFFF Save Cancel On the above dialog box select the CAN data signal what speed the bus is operating at and what filter value for the ID you want if any The bus traffic will be decoded as in the following screen 10 123 RIRO Cth08 Data 00 11 22 33 44 55 66 77 CRCOBD4 ACKO Beem bt ERES 64 USBee RX User s Manual USB BUS SETUP The USB Bus Decoder decodes Low and Full Speed USB It does NOT decode High Speed USB To decode Full Speed USB the sample rate must be 24Msps meaning you must sample with just 8 digital channels only To decode Low Speed USB you can sample as low as 3Msps Hardware Setup To use the Decoder you need to connect the US
183. insert Time Stamps into the extracted data stream Returns 1 if Start was successful O if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT rrt CWAV API StopExtractliont void Returns e 1 always USBee RX User s Manual 239 ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The SPI Bus Extractor outputs MOSI and MISO values separated by newline characters with optional Slave Select and Timestamps inserted SPLEXtractor 0 output dex P 143 Q0 500000 M 6 L 1 V 2 J 4 K 1 U 0 W T File Edit View Favorites UserCommands GridLines Tools Help d amp ala Calcolmm amp EE 0 10 20 30 123456789 1254567893 123455783 123456789 123 Select Low 0000002772 AA FF 75 FF 55 4D Select High 00002772 Select Low 0000006137 AA FF 75 FF 55 4D Select High Dggg513 Select Low 000009052 AA FF 76 FF 55 4D Select High 0000009052 3 e CO D CO J Cs ode CO PO e Lines 1 ta 12 10095 File Size 279 bytes 12 lin
184. ire dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e O No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns O No data to read yet e 1 Data was copied into the buffer StartExtraction Starts the Data Extraction with the given parameters CWAV IMPORT int CWAV API StartExtraction unsigned int SampleRate unsigned long PodNumber unsigned int ClockMode unsigned long Threshold unsigned char Signal unsigned char SSInsert unsigned char Timestamp Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V SampleRate e 17 1Msps e 27 2Msps e 37 3Msps 47 4Msps e 67 6Msps e 87 8Msps e 127 12Msps e 167 16Msps USBee RX User s Manual 243 e 247 24Msps PodNumber Pod ID on the back of the USBee RX Test Pod ClockMode 2 Internal Timing as in SampleRate parameter Sign
185. ity To turn on Sample Compression select Sample Compression On in the Speed and Samples menu The Sample Compression works on just the channels that are shown on the screen so for the longest trace buffers only display the signals that you are interested in All other channels will be masked out and not captured You can also use an external clock using the C input to gather each sample instead of the internal sample clock To turn on External Clocking select External Clocking using the C Input on the Speed and Samples menu The external clock can run up to 100MHz When external Clocking is enabled Sample Compression is not available USBee RX User s Manual 49 SETTING SIMPLE TRIGGERS The USBee RX Suite uses a Trigger mechanism to allow you to capture just the data that you want to see For a Digital trigger you can specify the digital states for any of the digital signals that must be present on the digital lines before it will trigger Below shows the trigger settings to the right of the Signal labels This example shows that we want to trigger on a falling edge of Signal 0 which is represented by a high level followed by a low level To change the level of any of the trigger settings just click the level button to change from don t care to rising edge to falling edge B UsBee Suite USBee DX Connected c mm File View Speed and Samples Trigger Setup Help lt L m 135 167us 85 167us 35 167us 14
186. keep looking Sample tEdgel Continue For End If Else No edges at all Exit For End If So we are done USBee RX User s Manual End If ElseIf DecodeState LOOKING FOR BITS Then If BitCounter 8 Then We have an entire byte worth of data so output the information WriteEntry BW ByteStartSample tEdge2 Hex ByteAccumlator BitCounter 0 ByteAccumlator 0 End If If Data lt gt 0 Then We found a High which starts the bit Now look for the next edge tEdgel FindNextEdge Sample SignalMask 1 If tEdgel gt 0 Then Check to see if this falling edge is in the right timeframe tPulseWidth tEdgel Sample SamplingRate If tPulseWidth gt 0 0005 And tPulseWidth lt 0 0007 Then Good start of a bit Now look for the rising edge tEdge2 FindNextEdge tEdgel SignalMask 1 If tEdge2 gt 0 Then Check to see if this rising edge is in the right timeframe for a logic 0 tPulseWidth tEdge2 tEdgel SamplingRate If tPulseWidth gt 0 0004 And tPulseWidth lt 0 0006 Then Great Valid 0 Bit Format Write out a Bit Marker remove this if you don t need the bit WriteEntry BW CUInt Sample CUInt tEdge2 0 Add this bit to the accumulators LSB first ByteAccumlator ByteAccumlator gt gt 1 Shift the Accumulator ByteAccumlator ByteAccumlator And amp H7F Clear out the MSBit Mark the start of the byte if so If BitCounter 0 Then ByteStartSample Sample
187. l SDIO 1 Start of Packet 2 End of Packet 3 APP CMD packet 4 R1 response packet 5 R2 response packet 6 R3 response packet 7 R6 response packet 8 Data Packet 9 R4 response packet 0 R5 response packet A Bus Event of 127 7Fh is a special event that occurs at the end of a packet of data that is sent from one protocol to another This can be used to end the packet sent to the new layer using the END section and the type event in the new protocol level USBee RX User s Manual 129 DATA CHANNELS AND MULTIPLE DATA SIGNALS Some buses can also have more than one data signal used in the protocol One example of this is the SPI bus where for each byte sent on the MOSI line there is one byte received on the MISO line In the protocol definition you can specify which of the signals to expect the next field of data to be sent on In the SPI example you may get a Command and Length field on one signal followed by the read data back on the other signal The decoder would take that into account and show the command Length and Data as a single transaction Multiple signals are differentiated in the PacketPresenter using the X and Y channel specifiers These channels are specified by selecting the signals to use for that bus in the Channel Settings dialog box The following table shows which signals are the X and Y signals Bus Type ASYNC SPI 1 Wire 12C Parallel Serial CAN PS 2
188. l hex or binary using suffixes after the value Decimal has no suffix Hex uses the suffix h Binary uses the suffix b So 16 10h 10000b 244 F4h 11110100b Gain and offset values used in the Fields section are always in decimal and can contain decimal places 126 USBee RX User s Manual PACKETPRESENTER DEFINITION FILE SECTIONS Each PacketPresenter Definition File has the following syntax that separates the file into sections that correspond to the Channel definition and each of the Protocol Processors Protocol Protocol Protocol PROTOCOL SECTION Each Protocol Section defines what the incoming data stream looks like how to break the data stream into packets and how to parse out the fields in each of the packets Multiple Protocol Sections can be defined for passing data from one Protocol Section to another Each Protocol Section has the following syntax that specifies the packetizing and parsing into fields Protocol name ProtocolName Packet packet processing settings Fields packet field processing settings packet field processing settings packet field processing settings The ProtocolName is a label that uniquely identifies this protocol processor This name is used in the Field definitions to define which Protocol to route a field of data for use by multilayer protocols The highest level Protocol is the first protocol in the file This is the Protocol Processor that is sent the in
189. l be from D7 to DO O 1 0 1 0 1 0 1 Since each of the actual output pins can be independently configured to be Sig Gen PWM High Low or Trigger out you must make sure the channel is set to Sig Gen in order to see the output of the Signal Generator SAMPLE CLOCKING The CSV file specifies the desired sample rate of the clocked out digital samples You can then modify the sample rate by changing the frequency in the sps text box from 0 to 100000000 You can also specify to use the external C input as the sample clock by selecting the associated radio button Every cycle of the C input will clock out the next sample in the sequence WAVEFORM GENERATION CONTROL The Wait for T checkbox and the associated T Rising checkbox to specify the polarity makes the USBee RX wait for the T input to have an edge before starting the pattern This allows for synchronizing the pattern generation with an external event The Loop checkbox allows you to loop the generated pattern If the Wait for T checkbox is selected each cycle waits for the T to be asserted before starting the generation The following screenshot shows the Digital Signal Generator configured to generate 291 samples each time the T signal has a rising edge In this case the T signal is tied to the CH1 analog signal The Loop selection makes it repeat but only after the T signal sees another rising edge Since the Digital Logic Threshold is set to 1 8V the T transitions to lo
190. lace the second The resulting measurements are then displayed in the Measurements section of the display USBee RX User s Manual 43 USING THE USBEE RX SUITE MIXED SIGNAL OSCILLOSCOPE This section details the operation of the Mixed Signal Oscilloscope Logic Analyzer and Protocol Analyzer features of the USBee RX Suite application that runs on the USBee RX Test Pod When the USBee RX Suite is first run you will see a screen containing all of the available input signals for the USBee RX Pod plugged into the PC Bi Usbee Suite Pro USBee RX Co File View Sp Les haas L3 L D 1111111011111 11 1111111111 13111 117 The USBee RX Suite maintains its last configuration and will reload that configuration when it is run again This configuration is located in your Users NAME AppData Local USBeeSuite directory where NAME is your username To reset the software to the initial state you can delete the files in that directory ANALYZER SETUP QUICK SETUP CONFIGURATION The USBee RX Suite can capture all of the input channels on the USBee RX With a RX plugged in it can capture 18 channels of digital 16 data lines Clock and Trigger signals and 2 channels of analog at the same time Although you can individually show each signal there are a number of Quick Configurations that let you instantly select just the channels you need To select a configuration click Setup on the menu and select the Q
191. lay Try BW Write StartSample BW Write EndSample Write the length of the string in bytes include the 0 at the end in the count Dim tStrLen As UInt32 tStrLen CUInt TextString Length 1 BW Write tStrLen USBee RX User s Manual Now write out the characters one byte at a time and put a 0 at the end For x As Integer 0 To CInt tStrLen 2 BW Write CByte Asc TextString Chars x Next BW Write CByte 0 Catch ex As Exception End Try End Sub End Class 7 CUSTOM DECODER PARAMETERS As you can see in the above code the Parameter string that is passed from the User Interface to your decoder can be used for a number of purposes First it can specify which decoder to run If you have more than one protocol that you want your decoder to handle you can select which decoder runs using this text string For example in our example Custom Decoder we have a few decoders possible CHANGE RISE HELLOWORLD and NECIR Each decoder processes the data differently and outputs different results based on the algorithms You can also supply additional parameters in the text string as well as we do in the CHANGE and RISE decoders The additional parameter in these examples indicates which signal to use to decode Again the definition and use of the Parameter string is entirely up to you but provides an easy to use and simple to implement way to control the behavior of your decoder 88 USBee RX User s Manual
192. le name is below Browse Edit On the above dialog box select the signals you plan to use for the SDIO protocol Also set the appropriate sampling edge for the CMD and DAT lines how many DAT lines to use and the size of the data blocks Also choose the output format for the traffic USBee RX User s Manual 71 ARS 9 90 B7 30 0 o uo mw nx tOOrmaumodoo dwuott EBETE T 39522225 o MESRSSSSBRR 88885525 25 12322222522 SSERSSSIR5 e 5385855 Saisgsp5 wu O0 ONL OO OANT Hh eenateneveaunes amp m Lu S258 Packet 35 Time 7l 6aus ai SEND STATUS Tran M Spro Layer Pecket 36 Time 11 6 us 1 WRITE MULTIPLE BLOCK 08 04 CE 90 m uw eu a f Ou Ou MD S010 0 Layer Packet 37 Tine 10 32us R1 o O WRITE MULTIPLE BLOCK Packet 38 Tame 126ns Tran 589698517 99052090 Layer SOIO Packet 41 Time 5 7116nms rct An on P E of u o sf man MauToOog goonmoumrduwo CQ Oi O ouiume M AN OOT Co QD an ana EARSERASSLASALO yw ERAGASARSESR ANG SAA slVSSk3snne wW SRARSSSASESRAAY La SARBASZALS SEIS wwoOMnogotTuicgoow th KOU owwnounmuoouo esnasseszisecnss ESSYSRTSSsBSSse e uw gQooouwononuwegodougin EFSSRSRSRssRuse uroOrnpomemuncoovsmos wononmnuoooooiuno ucoctnrn T orcoso EAuUCOCONTOOONHO 2232259535389 22295332952928 cpssaioqg Z2gT5 A C 0 OQ O OG fv o Luou 528182322854522320 SSBLSSRINRBSSSA 222283822
193. lete add move or reconfigure any waveline To Delete a Waveline from the screen press the little X near the signal name This will remove the waveline from the screen Below shows the USBee RX Suite after deleting the Digital 2 waveline USBee RX User s Manual 55 Digital o DijitSo gt Jiai y Digitar s Digitar Digital JUUES JERI Digital 5 Digital 5 Digiti g Digital 6 Digital 7 Digital 7 USBee ag egt yc On escape Removing a signal from the screen may not remove the signal from subsequent captures Signals will only be eliminated from captures if all signals from a given byte lane are removed To Move a Waveline simply click on the gray tab on the left and drag it to the new position Below shows the Digital O signal moved to the bottom Lj Zee Sete Bes UI Comected fee Vow Spewt ansSer cher hoger Diha Hee T 2 5 Digital 0 E Digital 1 Nita Digital Digitare Digital 7 Digital 6 Digital 7 Digital 0 USBee lagi Axalyser Codllencape Ganon castes v x Ww ou aie ova dX dX Dra ey rs To Add a Waveline click on the small sign above where you want to insert the new waveline Below you see a new waveline inserted after the first waveline Digital 1 au Digitar rgita Digital gitar Noite Digital 7 oe pigitaro Digitaro When you insert a new waveline the Channel Selection dialog box appears for you to choose the s
194. light the channel you want to change or you can hold the left mouse button down and use the scroll wheel You can also highlight the signal and use the slider bar to the left of the waveform To view the entire capture buffer on the display press the All button The screen below shows all of the collected samples on a single screen for that trace a USBee Suite Pro USBee RX Connected C cwav USBee Test Files ProtocolSetup usbeerx inam A File View Speed and Samples Trigger Setup Help v USBee RX Control Pane e 400us 300us 200us 100us 100us 200us 300us 400u5 Digitaro Digitar Digital 2 BL Ful lu Digital 2 GIG Ff MAA GiG GiG 7 a 2 Ham lE 1 MU T 7 on a TG ae 01 ee ln Digital 5 A C I1 12 I8 WO ION Digital 6 Digital 7 Async 6 iofa iT EV EV ear a ca AM sample JMSpR e 14 USBee RX Suite i ad Capture Once Capture Many Logic Analyzer Oscilloscope Cappia 201 COWAN be AE Ratis Reverend Depen are Mach tame ory onte USA UG Paseet 7 ALLEM aed ith punt porn To Stretch and Shrink the display you can click and drag the edges of the application to the size you want All waves will scale to fit Below you see two examples of different size displays MODIFYING WAVE LINES Each line on the display is called a Waveline Wavelines can be modified to your liking so that you see the data you need to solve your problem You can de
195. line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters USBee RX User s Manual 241 To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments 1WireExtractor STW Q NumberOfBytes R SampleRate M Signal O filename P PodID Display this help screen P Pod ID required O Output to filename default off S Output to the screen default off Q Number of output values default until keypress M 1 Wire Signal Mask 12channel0 128 2channel7 W Insert Reset Presence Pulse T Insert Time Stamps R Internal CLK Sample Rate 16Msps default e 247 24MHz e 167 16MHz 127 12MHz e 87 8MHz e 67 6MHz e 47 4MHz e 37 3MHz 27 2MHz 17 1MHz default EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME 242 USBee RX User s Manual UsbedlW
196. lored to get the data out of your bus the way you need it DECODED DATA LIST You can see the decoded list data in vertical format using the View Show Decode Bus Listing menu item This opens a window on the right side of the screen that displays the decoded data in vertical format The data shown is the data that is decoded from the left side of the waveform screen This data is synchronized to the waveforms as you pan and zoom USBee IL 376 5us 576 5us 776 5us 4 _0 000005500 S MOSI 0 000005500 SPI2 MISO 0 000079750 SPI 2 MOSI 0 000079750 SPI2 MISO F 0 000179375 MOSI 0 000179375 SPI2 MISO 0 000253625 SPI2 MOSI 000253625 SPI2 MISO 68 0 000328375 MOSI f OW vm Tm Tm 0 000328375 SPI2 MISO 98 Ta C 3 3 J 0 000406375 I2C 5 SDA S Start A TS we IT on 0 000419375 I2C 5 SDA A2 Write wso rrj C 230675590799 4 0 000479625 I2C 5 SDA ACK 0 000496375 I2C 5 SDA 00 0 000556500 SDA ACK 0 000573250 SDA OE 0 000633375 SDA ACK 0 000651875 I2C 5 SDA S Start V 0 000664875 SDA A3 Read 0 000725125 I2C 5 SDA ACK 0 000742625 I2C 5 SDA 18 0 000802875 I2C 5 SDA NACK 0 000823375 I2C 5 SDA P Stop 0 000826500 Async 0 TX OE 0900891500 Async 0 TX OF 10 11 12 In 0 000956875 Async 0 RX 10 aE 0001021875 Async 0 RX 11 gt Bhatt nc 0 RX 12 IEEE ICE CS TED J U x x x x x x Capture Measurements Logic Analyzer Oscilloscope Ti e x2 dx i dX Period Frequency Duty Cycle gt N Ons 885us 8915u
197. low 9 CLK falling AND TRG low R Internal CLK Sample Rate 1Msps default Bit Zero Alignment Setting V Align on Value L Align on Signal Level 0 Low 1 High J Align on Which Channel 1 Ch 0 128 Ch 7 220 USBee RX User s Manual Digital Logic Threshold Q Logic Threhold 10 0 0V 15 1 5V etc Stop on Overflow Stop on Overflow default is off EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME usbedSerial dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void Returns e 0 No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length number of bytes you want to read from the extraction DLL Returns e O No data to read yet e 1 Data was copied into the buffer S
198. lyzerUSBee Sute USBee Suite bin aBGDebuagudemo usbeecomp e es ini mad File View Sptedand Samples Trigger Setup Help t N 10us div 643462503 BAISELSMS EALES YS SAKES amp 354675 s amp 3B5E25ms E314525m5 amp 365E25ms 5 354625m4 amp 345E25ms 63346275M 63266255 USBee Deco Capture Many Measurements Lagi Aealyzer Oscillcoacope T X bd Uax Ore 15815825ms 13957059 314083s 3163968tHz Sagres 122 DA ba c Lame Assessed Duegres ond Varnuiestset se one Lido If you do not embed a color code the background color will be a light cyan 90 USBee RX User s Manual SMART SEARCH The USBee RX Suite Smart Search highlights the sections of your trace matching your areas of interest so that you don t need to waste time hunting for the data you need You can specify up to 32 levels of search events that are any combination of bus decoded traffic states or edges of digital or analog signals inside or outside of analog voltage ranges and or digital ranges and all validated by time specific windows Once specified you can pan through the occurrences of your searched items with the click of the mouse and see the total number of times the searched events occur Be USBee Suite Pro USBee DX Connected File View Speed and Samples Trigger Setup Help e d 50us div 23us pen Digitaro Search pigar Digital 2 Digit t 3 SPI2 B FF Digital 4 Digital 5 E Channel Settings Lr RE Digare
199. meters CWAV IMPORT int CWAV API StartExtraction unsigned int SampleRate unsigned long PodNumber unsigned int ClockMode unsigned long Threshold unsigned char WordSelect unsigned char CLK unsigned char Data unsigned char SSInsert unsigned char BytesPerValue unsigned char I2SMode unsigned char MSBFirstMode Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V SampleRate e 17 1Msps 248 USBee RX User s Manual e 27 2Msps e 37 3Msps e 47 AMsps e 67 6Msps e 87 8Msps e 127 12Msps e 167 16Msps e 247 24Msps PodNumber Pod ID on the back of the USBee RX Test Pod ClockMode 2 Internal Timing as in SampleRate parameter WordSelect Which signal the extractor uses for Word Select 1 channelO 128 channel7 CLK Which signal the extractor uses for CLK 1 channel0 128 channel7 Data Which signal the extractor uses for Data 1 channel0 128 channel7 SSInsert Set to 1 to insert Word Select boundaries into the extracted data stream BytesPerValue 1 2 3 or 4 bytes per value Allows capture of 8 16 24 or 32 bits of audio data I2SMode Set to 1 for I2S data format Set to O for Left Justified data format MSBFirstMode Bit order 1 MSBit first on the wire O LSBit first on the wire Returns 1 if Start was successful e 0 if Pod failed initialization StopExtraction Stops the extraction in progress CWAV EXPORT IE CWAV API StopExt
200. mples of the application in various modes 16 Digital 2 Analog Channels 8 Digital O Analog Channels USBee RX User s Manual 45 8 Digital 1 Analog Channels 0 Digital 2 Analog Channels There are also three other Quick Setup features that let you instantly setup an I2C SPI or ASYNC decoder line The Quick Setup SPI configures the first 4 lines to be an SPI bus with the SS SCK MOSI and MISO lines It also adds a decoder line to the screen with this data decoded as below EN B USBee Suite USBee DX Connected IN n peed and ED s S b oed 290 833us 109 167us 509 167us 909 167us 1 309167ms COED RG G3 Gs Digital 6 Digital 7 E u ph h tu HH H HM ee EEEETENN Cursors bod EIS ENLHLOLULLEOSACEL EE USBee l Capture j Measurements Logic Analyzer Oscilloscope dm Ox Period Frequency Duty Cycle Ons Ons Ons Ons infinity Ons infinity i 4 The Quick Setup 12C configures the signals 4 and 5 to be an I2C bus with the SDA and SCL lines It also adds a decoder line to the screen with this data decoded as below 46 USBee RX User s Manual Digital 0 bs Digital 1 pao Digital 2 3 HP visitars Digital 6 e tk H H e e e e Digital 7 Cursors XI USBee Capture l Measurements Logic Analyzer Oscilloscope i T X1 X2 dX Nax Period Duty Cy Ons Ons Ons Ons infinity 10 85975ms 92 083151Hz 99 3 The Quick Setup ASYNC configures the signal
201. mples per second for the PWM signal e Dutycycle a value from 0 to 100 for the low to high percentage of the PWM signal Return Value e 1 Successful e 0 Failure LOADDIGITALWAVEFORMRX This routine sets the digital output channel specified to a PWM pulse width modulator signal Calling Convention CWAV IMPORT unsigned long CWAV API LoadDigitalWaveformRX unsigned long numberofsamples unsigned char samples 9 e Numberofsamples a value from 1 to 61000 indicating the number of samples in the pattern e Samples a pointer to the buffer of samples Each sample is a byte and are clocked out on consecutive sample clocks Bit O of each byte is output channel O bit 7 is output channel 7 Return Value e 1 Successful e 0 Failure GENERATEDIGITALWAVEFORMRX This routine sets the digital output channel specified to a PWM pulse width modulator signal Calling Convention 190 USBee RX User s Manual CWAV_IMPORT unsigned long CWAV_API GenerateDigitalWaveformRX unsigned char channelmask unsigned char GenerateOn unsigned char loop unsigned char waitT unsigned char Trising unsigned char externalclock unsigned char Crising unsigned long samplespersecond e Channelmask which channels to use for the output of the digital pattern generator Bit O is channel O and Bit 7 is channel 7 1 output digital pattern on this channel 0 no output e GenerateOn 1 to turn on the pattern generator O turns it off e Lo
202. n any USBee RX Test Pod It will not work on any other USBee test Pod model USBee RX User s Manual 21 USBee Suite Pro USBee RX Connected C cwav USBee Test FileslProtocolSetup usbeenc le View ol Sampe Godis 24000000 pe _ Sampie Cock is external on C input 1 mples 20 j Capture Once Capture Many Tngger Settings USBee RX Control Panel Visible SEE THE INFORMATION YOU WANT FAST Setup of the USBee RX Suite is fast Capturing the data you need to solve your problems is just as fast You can see your design in action with just one click thanks to the easy to use trigger settings color coded signals and automatic buffer and sample rate settings DATA ACQUISITION OVER USB 2 0 Capture from 100 to 600 million samples per second for sample buffer depths of up to 16 million samples or 8 million transitions SUPERIOR QUALITY DESIGN PROFESSIONAL RESULTS The USBee RX Suite takes full advantage of the power the USBee RX Test Pod Each USBee RX comes with the best color coded highly flexible test leads the best test clips and our signature small and sleek design that can fit right in your pocket We are proud to say the entire USBee product line is designed and manufactured in the USA FAST AND DETAILED WAVEFORM VIEWING 22 USBee RX User s Manual The USBee RX Suite lets you capture a huge amount of data Go exactly to the section of that data you want using the Quick Zoom with your mouse scroll wheel or use the Overvie
203. n rerun the USBee RX Suite software 42 USBee RX User s Manual TESTING YOUR CIRCUIT USING THE USBEE RX In order to quickly get up and running using The USBee RX Suite application here is a step by step list of the things you need to do to view a waveform trace after you have installed the software and hardware e Plug in the USBee RX Pod Plug the USBee into your computer USB High Speed port e Connect Ground Connect the GND wire to the Ground of your circuit you would like to test You can either use the socket to plug onto a header post or connect it to one of the mini grabber clips and then attach it to the Ground e Connect Signals Connect any of the USBee inputs on the USBee pod to your circuit you would like to test You can either use the socket to plug onto a header post or connect it to one of the mini grabber clips and then attach it to your signal of choice e Run USBee RX Suite Run the USBee RX Suite Application from the Start Menu e Press the Capture Once button This will capture and display the current activity on all of the signals e View the Waveforms You can then scroll the display either by using the slider bars or by clicking and dragging on the waveform itself You can also change the knobs to zoom the waveform e Make Measurements You can make simple measurements by using the Cursors area gray bars under the waves Click the left mouse button to place one cursor and click the right mouse button to p
204. n the PC controlling the system under test If your PC is also controlling the system under test you may not be able to get the maximum sample rates needed for some of the extractors USBee RX User s Manual 199 To get the highest sample rates you will want to use a Desktop PC with native USB 2 0 ports on the motherboard Some modern Laptops can achieve the maximum of 24Msps but you will want to disable all power saving features and run your laptop from the power supply not the batteries SYSTEM SETUP To configure a system to run these extractors you need the following e USBee RX Suite Software Installed this installs the USBee Data Extractors Software as well e USBee RX Pod plugged into a USB 2 0 port on your PC RUNNING THE COMMAND LINE EXTRACTORS Once these components are installed correctly you can run the Extractor command prompt application exe files Each of the executables requires a series of command line parameters that tell the extractor how to process the bus data You will need to have full security access for the folders that you are running the applications from since they write to these directories for output data If you do not have access you will need to either move them or grant yourself access to those directories using the Window Security Settings To run the programs you can do one of two options Open a Windows Command Prompt Window change directory cd to your Program Files USBee RX Suite DataExtrac
205. n to place it The Mode at the top of the marker changes the measure mode of the marker Click on Mode to cycle through No Measurement Width Frequency Period and Duty Cycle An arrow shows the measured area and the measurement shows up as the last line of the marker To hide all of the markers without deleting them uncheck the menu item View Show Marker Labels To turn on the markers make sure this menu item is checked To delete the marker click on the X at the top of the marker You can delete all markers using the menu item View Delete All Markers This will delete all Sample Markers and Smart Markers 106 USBee RX User s Manual ANNOTATIONS AND STICKY NOTES The USBee RX Suite adds Sticky Notes which you can use to further detail your traces for documentation purposes You can also add Title and Footer text to your display that is saved with the trace file Ev SBee Suite Pro USBee DX Connected File View Speedand Samples Tr Se RX RST Transmit Start gee se End Of Command Set SUL RULE wae gee ee a es Cursors lr USBee emm LogicAnalyzer Oscilloscope E Copyright 2009 CWAV Inc Ons es aa EO ie bagues AI x SN ev LAN USBee RX User s Manual 107 ANNOTATIONS Annotation Text Boxes are editable text blocks that are located at the Top and Bottom of the USBee RX Suite window Annotation Text Boxes are enabled and disabled using the View Annotation Text Boxes menu item
206. name int64 StartSample int64 EndSample long Rate unsigned long SS unsigned long SCK unsigned long tMOSI unsigned long tMISO unsigned long MISOEdge unsigned long MOSIEdge unsigned long delimiter unsigned long hex unsigned long UseSS unsigned long SSLevel long BytesPerLine long BitsPerByte char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV_API DecodeI2C unsigned long reservedi unsigned char OutFilename unsigned char InlineSDAFilename int64 StartSample int64 EndSample long Rate unsigned long SDA unsigned long SCL long showack long delimiter long showall long hex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV API DecodeCAN unsigned long InputDecodeBuffer unsigned char OutFilename unsigned char InlineFilename int64 StartSample int64 EndSample unsigned long Rate unsigned long Channel unsigned long BitRate unsigned long maxID unsigned long minID long delimiter long showall long Phex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString CWAV IMPORT int CWAV_API DecodeParallel unsigned long reserved1 unsigned char OutFilename unsigned char InlineFilename int64 StartSample X int64 EndSample long Rate unsigned long Channels unsigned long Clock unsigned long UseCLK long CLKEdge unsigned long delimiter unsigned long hex long BytesPerLine char
207. nd pulse counting values Calling Convention CWAV_IMPORT unsigned long CWAV_API GetFrequencyAndCountsRX unsigned long edgecounts unsigned long edgecounts1 unsigned long edgecounts2 unsigned long edgecounts3 unsigned long freq4 unsigned long freq5 unsigned long freq6 unsigned long freg7 3 e EdgecountsO how many edges were counted on digital channel 0 e Edgecounts1 how many edges were counted on digital channel 1 e Edgecounts2 how many edges were counted on digital channel 2 e Edgecounts3 how many edges were counted on digital channel 3 e Freq4 the frequency measured on digital channel 4 e Freq5 the frequency measured on digital channel 5 e Freq6 the frequency measured on digital channel 6 e Freq7 the frequency measured on digital channel 7 Return Value e 1 Successful e 0 Failure 192 USBee RX User s Manual EXAMPLE C The following code listing is an example in very simple C that calls the DLL functions CODE Prompt program that generates the following output when run cx C cway USBee DX USBeeDXToolBuilderHostinC USBeeDxX Debug USB Sample USBee DK Toolbuilder application in C Getting the PodIDs available Initializing the Pod Setting the Mode to fast mode Sending 86 666 bytes out the pod Reading 86 666 bytes from the pod signals bi directional out the pod from the pod signals rrent state of the pod signals Setting th Sending 16 Reading 16 Getting cu Chi 80 07 Chi 0 07
208. ndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 16 SGet Interface bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 5 SSet Address Address 16L h bLength 16L i bLength 16L i CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i Sync 8S 101 BPID S Lh Reype 8 1 bRequest 8L 9 SSet Configuration Config 16L h bLength 16L i bLength 16L i CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 4l d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 7 SSet Descriptor bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L 1 R Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 4l d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 3 SSet Feature bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L USBee RX User s Manual 157 Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 4l d CRC5 5 i Sync 8 i PID 8 L Rtype 8 i bRequest 8L 10 SGet Interface bValue 16L h bIndex 16L H bLength 16L H CRC16 16 i Sync 8 i HS 8 L Fields Sync 8 i PID 8 10110100b L Addr 71 d EP 41 d CRC5 5 i
209. ne on the PacketPresenter screen Any Conditional Field Line that evaluates to False is skipped and produces no output line on the PacketPresenter screen The Field Lines should be listed with the conditional field lines first followed by an unconditional field line to catch all packets that are not explicitly defined in the conditional field lines USBee RX User s Manual 135 UNCONDITIONAL FIELD LINES Unconditional Field lines are parsed and decoded data is output for every packet that is input The Fields specify how to interpret the data and how to output the data CONDITIONAL FIELD LINES Conditional Field Lines provide a means for defining packets whose contents vary based upon the presence of a value in another field An example of this is a packet that contains a Command Byte that determines the format of the rest of the packet A Conditional Field Line contains at least one field in the packet that includes the Value token in the input modifiers section If the data contained in the conditional fields of a packet matches the Value specified for the field the packet is parsed and the data is output If the condition field Va ue does not match the incoming data then the processor moves on to the next Field Line until it reaches the end of the Fields section FIELD LINE FORMAT Each Field Line in the Fields Section has the keyword FIELDS followed by a series of individual Fields Individual fields in a packet are separated by comma
210. nes 0 thru F for the Clock and Data signals and the GND ground line Connect the Clock and Data to your PS 2 bus using the test leads and clips Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen hon _ Single Signa smeus vus cw sea Partei Signal Selection 012g 56789 AB DEF PS 2 Data PS 2 Clock Save Cancel On the above dialog box select the signals you plan to use for the PS 2 Bus protocol The bus traffic will be decoded as in the following screen TEURGR eg JE TECTCTAReg XUL TEC TCICT uro E Te mani aus ee oat so T ao oe 76 USBee RX User s Manual SETTING VIEWING PREFERENCES The USBee RX Suite has many ways that you can customize the display of your data beyond the placement of the waveforms CURSOR COLORS You can change the color of the Trigger X1 and X2 cursors using the View Menu When chosen you will see the Color Selection dialog box below To change the colors back to their original state use the View Reset Colors To Default menu item Color Basic colors Jini fe NE EE S EHI FEE LS HN EN f E S ES NH NND DS NND NN C NE NND ON NN NN E EN NE NND ON ND NN 0 fF FF tne im Custom colors BEE EE HH BEE EHH Define Custom Colors gt gt BACKGROUND COLOR The
211. ng channelmask unsigned long direction CWAV IMPORT unsigned long CWAV API SetTriggersRX int TrigXEnabled int TrigYEnabled int TrigXorYEnabled int TrigXandYEnabled int TrigXthenYEnabled int TrigYthenXEnabled int TrigX DigitalEdgeEnabled int TrigX AnalogEdgeEnabled int TrigX QualifyDigitalEnabled int TrigX QualifyAnalogEnabled int TrigX QualifyTimeEnabled int TrigX InvertDigitalQualifierEnabled int TrigX InvertAnalogQualifierEnabled int TrigX InvertTimeQualifierEnabled int TrigX DigitalEdgeChannel int TrigX DigitalEdgeRising int TrigX AnalogEdgeChannel int TrigX AnalogEdgeRising int TrigX AnalogQualifierChannel int TrigX AnalogQualifierFrom int TrigX AnalogQualifierTo int TrigX AnalogTriggerLevel long TrigX DigitalQualifierChannelMask long TrigX DigitalQualifierFrom long TrigX DigitalQualifierTo int TrigY DigitalEdgeEnabled int TrigY AnalogEdgeEnabled int TrigY QualifyDigitalEnabled int TrigY QualifyAnalogEnabled int TrigY QualifyTimeEnabled int TrigY InvertDigitalQualifierEnabled int TrigY InvertAnalogQualifierEnabled int TrigY InvertTimeQualifierEnabled int TrigY DigitalEdgeChannel int TrigY DigitalEdgeRising int TrigY AnalogEdgeChannel int TrigY AnalogEdgeRising int TrigY AnalogQualifierChannel int TrigY AnalogQualifierFrom int TrigY AnalogQualifierTo int TrigY AnalogTriggerLevel long TrigY DigitalQualifierChannelMask long TrigY DigitalQualifierFrom long TrigY DigitalQualifierTo
212. ng the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The SPI Bus Decoder uses any one of the 16 digital signal lines O thru F for the SS slave select SCK clock MISO data in MOSI data out and the GND ground line Connect the SS SCK MISO and MOSI to your digital bus using the test leads and clips Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen i 1 i iB Channel Settings 2 SMBus Signal Selection 012g 56789 AB Enable 9 0 OOC Clock O MOSI Data O O MISO Data 0 OO Parallel MOSI Samples Enable Active r Bits Per Word 9 Rising J Falling MISO Samples Rising Falling r Use Enable Enable On 9 Enable Off 9 Active Low Active High 8 On the above dialog box select the signals you plan to use for the SPI p rotocol Also set the appropriate sampling edges for both data lines and if you would like to use the SS slave select signal If you turn off the SS all clocks are considered valid data bits starting at choose what output format you want the traffic The bus traffic will be decoded as in the following screen 1 5822
213. nt value is a bitmask that includes all events that you want to use If any of the events occur a packet will be started or ended type Event Start End of a packet is Signaled by event event 1 Use Event 1 Available events depend on bus type or event 3 Use either Event 1 or Event 2 TYPE TIMEOUT The end of a packet is determined by a timeout since the last valid data or event on the bus The timeout is defined in units of microseconds Packet Start type timeout End is after timeout timeout 45 microseconds since last data event received USBee RX User s Manual 133 CHANNELX CHANNELY OR CHANNELXORY CHANNELX CHANNELY or CHANNELXorY specifies what channel is used when an event or data is defined for starting or ending a packet Channel X and Channel Y are different based on what the physical bus is and can be found in Table 1 Channel X and Channel Y Definitions Per Bus Type If it does not matter which channel the data or event occurs on it could be either use the CHANNELXorY keyword Packet Start type value Start of a packet is based on a data value value 41h value of data that starts the packet bits 8 channelX data event must be received on channel X Or channelY data event must be received on channel Y or channelXorY data event must be received on either channel X or Y DECODE SECTION Each packet can have encoding on the data that needs to be removed in
214. o complete the information All scaling is performed first using floating point and then the output formatting is applied Below is an example of a field to just output the data Fields Volts l60m d l 5 37 25605mV This Field Line contains one field named Volts which is 16 bits long in msbit first order The output is to be displayed in decimal format multiplied by 1 5 offset by 37 256 and finally appended with mV before output to the PacketPresenter screen For an input packet as follows 0000001100001100 The output would be 1132744mV which is the input 16 bits in msbfirst order Ox30C times the gain of 1 5 plus the offset of 37 256 output in decimal format plus the mV string CONDITIONAL PACKET FORMAT Using the Conditional input modifier many different field arrangements can be defined for the same packet Common uses are for parameter fields that exist for different types of commands If packets contain commands that determine what the remaining fields are this syntax defines what those remaining fields are Below is an example of various packet formats based on a single command field Fields Command 4m 0 h Address 8m h Fields Command 4m 2 h Address 8m h Data 8m h Fields Command 4m 4 h Paraml 8m h Param2 8m h Param3 8m h For an input packet as follows USBee RX User s Manual 139 0010 00011101 00001000 Followed by a packet 0100 00011101 00001000 11111110 The output would be a _ e
215. o find when two falling edges occur within 10usecs of each other immediately following the previous event specify This Event happening between Os and 10us immediately after the previous event Below shows a diagram for the immediately setting As long as Event 2 occurs between the Minimum time and the Maximum time it is considered a match USBee RX User s Manual 101 Below shows an example of applying a time window The first search line shows all occurrences of when the analog CH1 is outside the range OV to 4V The second search line is the same criteria with the addition of a time window applied Only matches that are between 274us and 10seconds are displayed If you are looking for occurrences that are less than a specific time set the first entry to Os and the second to the upper limit USBee Suite Pro USBee DX Co File View Speed and Samples Trigger Setup Help 800us div 8583167ms 8 083167ms 7 283167ms 6483167ms 5 683167ms 4 883167ms 4 083167ms cureoroav Bg C 1 3 mesora BB Cursors USBee Capture Once Capture Many Measurements Logic Analyzer Oscilloscope E iUum x2 du FAR uen Frequency Duty Cycle covriaht 2009 CWAV Inc ms 8 373333ms CES 7kHz Event 1 If CH1 voltage is not between OV and 4V and happens between 274 us and 10s Ci Digital Signal pick one has rising edge happen If Analog Signal CH1 nas rising edge at voltage threshold 2 Volts while Bus pick one decoded dat
216. omputer program is protected by copyright law and international treaties Unauthorized duplication or distribution of this program or any portion of it may result in severe civil or criminal penalties and will be prosecuted to the maximum extent possible under the law e During the installation you will see a driver installation dialog box that will install the USBee RX drivers Click Finish to complete the installation after the drivers have been successfully installed as below Completing the Device Driver Installation Wizard The device driver installation wizard did not update any of your software for your hardware devices because it was not better than the software you currently have installed Driver Name Status wv CWAV Inc WinUSB Ready to use 40 USBee RX User s Manual Follow the instructions clicking NEXT each time on the screen to install the USBee RX Suite software on your hard drive This may take several minutes When completed you will see the following screen Installation Complete USBee RX Suite has been successfully installed Click Close to exit Please use Windows Update to check for any critical updates to the NET Framework e Click CLOSE and the USBee RX Suite software is now installed e To run the USBee RX Suite software choose the USBee RX Suite icon from the Windows Start Menu or click on the USBee RX icon on the desktop If no USBee RX is plugged in or installed you will s
217. onnector O 11 pins 1 Ground GND 1 Analog Aout 1 5V Supply and 8 Digital Outputs DO D7 0 1 spaced 0 025 square header pins 8 Digital output pins 0 3 3V logic DO D7 5V output actually VBus connected directly to the USB VBus signal from the PC through a resettable fuse O 1 Aout analog output pin used by the Analog Signal Generator function 0 3V levels O Connects to 11x1 pin test lead set e Digital Inputs Connector O 20 pins 10x2 2 Ground G Clock Input C Trigger Input T and 16 Digital inputs 0 F 0 1 spaced 0 025 square header pins 60V tolerant inputs Connects to 10x2 pin test lead set USBee RX User s Manual 17 WARNING IMPORTANT The USBee Test Pod can only be connected to a target circuit which has the same ground reference level as your PC The USBee is NOT galvanically isolated This mainly concerns systems where the target circuit AND the PC are plugged into AC power outlets If your target system OR the PC Laptop are battery powered there is no issue If your PC and target circuit have different ground reference levels connecting them together using the USBee GND signal can damage the devices To ensure both your PC and target system share the same ground reference do the following Use polarized power cords for both the PC and target and plug them into the same AC circuit If you use non polarized power cords or use separate power circuits the PC and target system may h
218. op 1 loop the pattern at the end 0 No loop e waitT Waits to start the pattern until the T signal shows an edge e Trising indicates the T signal must be a rising edge 1 or falling edge 0 to trigger the pattern e External Clock 1 indicates to use the digital input C to clock out the pattern instead of the internal sample clock e Crising 1 indicates the external clock C rising edge O falling edge e Samplespersecond is the number of samples per second to clock out the digital pattern for internal clocking mode Return Value e 1 Successful e 0 Failure FREQUENCY AND PULSE COUNTER FUNCTIONS The following API describes the routines that control the frequency and pulse counter functionality of the USBee RX Test Pod i CLEARCOUNTSRX This routine clears the frequency and pulse counts Calling Convention CWAV IMPORT unsigned long CWAV API ClearCountsRX void Return Value e 1 Successful e 0 Failure ENABLECOUNTSRX This routine enables the frequency and pulse counting USBee RX User s Manual 191 Calling Convention CWAV IMPORT unsigned long CWAV API EnableCountsRX void Return Value e 1 Successful e 0 Failure DISABLECOUNTSRX This routine disables the frequency and pulse counting Calling Convention CWAV IMPORT unsigned long CWAV API DisableCountsRX void Return Value e 1 Successful e 0 Failure GETFREQUENCYANDCOUNTSRX This routine returns the frequency a
219. or the align signal USBee RX User s Manual 187 e UseAlignChannel 0 use word aligning 1 use external align signal e ClockChannel Which signal 0 15 to use for the clock signal e CLKEdge 0 use falling edge of the Clock to sample data 1 use rising edge e BitsPerValue how many bits are in each word of the serial stream MSBFirst O LSBit is sent first 1 MSBit is sent first e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Hex 0 display data in decimal 1 display data in hex e BytesPerLine How many output words are on each output line e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e ErrorString string that holds an error description of the routine returns an error Return Value e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODEASYNC This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeASYNC unsigned long reserved1 unsigned
220. ou simply copy your new file over the one that was provided with the original install in the Program Files CWAV Inc USBee RX Suite directory You may need to locate this file on your system and have administrator rights in order to replace it 84 USBee RX User s Manual EXAMPLE CLASS LIBRARY CODE Below is our example Class Library source code that performs a few different protocol decodes and displays the results on the waveline A version that includes an actual NEC IR decoder is installed with the USBee RX Suite Use this example to start your own Option Explicit On Option Strict On Imports System IO Public Class CustomUSBeeSuiteDecoderRX Declare Function SampleData Lib usbeerxste dll Alias LoggedData YGJ_J Z ByVal Index As Int64 As Integer Declare Function FindNextEdge Lib usbeerxste dll Alias FindNextEdge YG J JKK8Z ByVal start As Int64 ByVal Mask As Integer ByVal direction As Integer As Int64 The SampleData routine returns a 4 byte value that contains a single sample of all the signals The format of the 32 bits returned is as follows MSB LSB XXXXXXXXYYYYYYYYFEDCBA9876543210 where XXXXXXXX is Channel 2 Analog value 0 6V 255 6V YYYYYYYY is Channel 1 Analog value 0 6V 255 6V F is logic level 0 or 1 for channel F E is logic level 0 or 1 for channel E D is logic level 0 or 1 for channel D 0 is logic level 0 or 1 for channel 0 FindNextEdge routine scans the sample buffer starting at
221. ou want to search for rising falling or either rising or falling Finally choose how many edges you need to find consecutively If you want to find areas that have NO edges you can specify O Below shows a search that finds all rising edges of the signal Digital 1 File View Speed and Samples Trigger Setup Help e LJ 2us div 14499333ms 14497333ms search m Event 1 If Digital 1 has a rising edge Digital 0 ons V If Digital Signal Digital 1 v has rising M edge happen 1 times or Digital 1 If Analog Signal CH1 has risinc edge at voltage threshold 2 Volts happens Digital 2 x x x x Digital 3 while e e a one decoded data js anything JO and and SPI 2 E Digital 4 Signal CH1 s 10 Volts to 10 Volts Digital 5 Dc5 Digital 6 Digital 7 nt happening between Y us h e k k k Followed By Async 6 Digital 6 Event 2 E Digital 7 Followed By Event 3 Followed By Event 4 Followed By Event 5 Followed By AR Event 6 USBee Capture Once Capture Many Measurement Logic Analyzer Oscilloscope T XL X2 g 94 USBee RX User s Manual ANALOG SIGNAL EDGES The second line lets you find edges on the analog signals if your USBee has them First select the Analog channel you want to search using the first dropdown box Then choose the edge you want to search for rising falling or either rising or falling Next ente
222. our components The 12S Bus Decoder uses any one of the 16 digital signal lines O thru F for the Clock Data and Word Align signal and the GND ground line Connect the Clock Data and Word Align to your digital bus using the test leads and clips Connect the GND line to the digital ground of your system Software Setup Activate the below Channel Settings Dialog by clicking the grey tab on the left of the signal names on the main application screen B Channel Settings YEL Single Signal Signal Selection 0128 56789 ARE DEF Word Align 9j OOOO Clock gene Clock Edge j AlignEdge Bit Order BitsPerWord Bit Offset Rising Rising msb First J Falling _ Falling sb First 8 Cancel On the above dialog box select the signals you plan to use for the I2S Bus protocol Select the start edge for the external word align signal the Bits Word and the Clock sampling edge Choose the bit ordering The bus traffic will be decoded as in the following screen USBee RX User s Manual 75 PS 2 BUS SETUP The PS 2 Bus Decoder takes the captured data from an PS 2 bus Hardware Setup To use the Decoder you need to connect the USBee Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The PS 2 Bus Decoder uses any one of the 16 digital signal li
223. pecifies the fields within the protocol and how to display that information on the screen It is intended to be generic enough that customers can create their own protocol decoders for their own custom bus types Initially all bus types use a generic PacketPresenter file to display the bus data for that bus You can then create and customize your own PacketPresenter file for any bus It is assumed that each PacketPresenter Definition File will correspond to one single bus type and that the incoming bytes from that bus will be inputs for the decoding process This steam of data is called an incoming Data Stream and it is handled by a Protocol Processor Each Protocol Processor takes a single incoming Data Stream that is broken into Packets parsed into Fields and either displayed as a field on the screen ignored and or sent to a new Protocol for further processing as in an N layer protocol Each Protocol Processor defines how to break the stream into Packets and how to break the Packets into Fields These Fields can then be displayed or sent to another Data Stream for further processing 118 USBee RX User s Manual Below shows a sample PacketPresenter output screen USBee Suite Pro USBee RX Demo Mode C Program Files x86 CWAV Inc USBee R CS 2 m Sm File View Speed and Samples Trigger Setup Help a v USBee RX Control Pane e pm 400us div0us Digitaro Digit3l 1 Digital 2 3 imn EN IED E GJ NICO MEO
224. ple buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeSerial unsigned long reservedi unsigned char OutFilename unsigned char InlineFilename int64 StartSample int64 EndSample unsigned long Rate unsigned long Channel unsigned long AlignValue unsigned long AlignEdge unsigned long AlignChannel unsigned long UseAlignChannel unsigned long ClockChannel unsigned long ClockEdge unsigned long BitsPerValue unsigned long MSBFirst unsigned long delimiter unsigned long hex long BytesPerLine char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is the rate at which samples were taken during StartCapture 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps e Channel Which signal 0 15 to use for the serial signal e AlignValue When using word aligning bus value which is used for aligning the serial stream to byte boundaries e AlignEdge When using an external signal for aligning O falling edge 1 rising edge e AlignChannel When using an external signal for aligning which signal 0 15 to use f
225. put e 4 PacketPresenter Windows e 2 1B bytes per PacketPresenter Output File 146 USBee RX User s Manual EXAMPLE PROTOCOL FILES AND OUTPUT EXAMPLES ASYNC PROTOCOL EXAMPLE Async Protocol Definition File This file defines the transfers to from a custom device over an ASYNC bus Protocol name ASYNCBus bytewise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type value value 40h Start command mask FOh Mask out the channel number End type timeout timeout 3000 3ms timeout ends the packet Decode Fields Fields Start 4 h Channel 4 1 h Command 8 h X 16 d 20 48 255g Y 16 d 20 48 25 g Z 16 qd 20 48 25 9 Rest N h Rest of the packet Fields Rest N h Rest of the packet USBee RX User s Manual 147 I2C PROTOCOL EXAMPLE I2C EEPROM Protocol Definition File This file defines the transfers to from an I2C EEPROM with 8 bit address Protocol name I2CEEPROM bytewise DEBUG DebugOn Uncomment this to turn on Debug Packets Packet Start type event event 1 Start Bit End type event event 0Ah Stop Bit Or NACK Decode Fields Device Not Present Fields SDevice Not Present Printout this label if match SlaveAddress 7m h RW 1 i Control Byte Address 8m h 1 byte address 8 followed by a NACK condition Set Address Fields SSetAddressCmd Printout this l
226. put bytes must be less than or equal to the input As an example the HDLC protocol uses the byte value 7Eh as the start and end flag of the packets and replaces all 7Eh in the data with the bytes 7Dh followed by 5Eh It also replaces all 7Dh in the data with the bytes 7Dh followed by 5Dh To remove this coding you would use the lines Once the packet is delineated and decoded by the previous sections it is ready to be displayed by the PacketPresenter Since each packet is made up of fields the Fields section defines how the packet is broken up into its fields and what to do with the field data FIELD LINES PROCESSING During processing the Fields Section is processed one Field Line at a time in the order that they are listed in the FIELDS section Each Field Line is parsed against the incoming data packets Once a single Field Line is successfully processed and output the PacketPresenter starts over at the top of the Filed Lines list for the next packet This ensures that there is only one output packet for each input packet for a given protocol There are 2 types of Field Lines A Field Line can be conditional or unconditional Unconditional Field Lines are processed for any packet Conditional Field Lines are only processed if certain fields match a specific value Any Unconditional Field Line no conditionals generates an output line on the PacketPresenter screen Any Conditional Field Line that evaluates to True generates an output li
227. r s Manual USBee Suite Pro USBee RX Connected C cwav USBee Test Files ProtocolSetup uzbeen gt eed File View Speed and Samples Trigger Setup Help USBee RX Contro Pare Digitat 0 e Digital 1 Jitat 2 Digital 2 on h e e LL ILLI JH e e N ita 6 Digital 7 USBee RX Suite Logic Analyzer Oscilloscope Compt 2011 OWAN lys Ab Rights Rasen Dege aret Marustgctaeent arty m toe USA UG Patt 7941 97 et itm permet porn Tagger Settings USBee Suite Pro USBee RX Connected C cwav USBee Test Files ProtocolSetup usbeerx memm File View Speedand Samples Trigger Setup Help USBee RX Contro Pane Digitat 0 Digital 1 h ee e gitat mgwa Los oe FB EP CB ER 09 CD 07 2 Digital 6 er e gitat 7 V amp Ote 7 01170 d otn pnt porn Tagger Settings USBee RX User s Manual 165 ARBITRARY DIGITAL PATTERN GENERATOR Each digital output channel can be configured as an arbitrary digital pattern You specify the pattern by using e Comma Delimited File CSV that specifies the Sample Rate in Hz O to 100000000 and each of the samples Each pattern can have from 1 to 65535 samples A CSV file can be created using a simple text editor or as an output of a program such as Excel Files DigSigGen csv Edit Samples Loaded 62116 J Loop _WaitForT T Rising Sample Clockis 24000000 sps Sample Clock i
228. r the voltage threshold at which you consider the edge occurring This value can be anywhere between 10 and 10 and can include decimal places Finally choose how many edges you need to find consecutively If you want to find areas that have NO edges you can specify O Below shows a search that finds all rising edges of the analog signal CH1 with a threshold set at 2 0 Volts Since the waveform display below is zoomed out the match is shown as simply a line Zooming in on the search will show the details po Channel e arma rJe C 500us div 14 amp 46 ms 14143 m RENE NE MA RE mS m Search Event 1 If CH1 has a rising edge at voltage threshold 2V mguo l JD Digta1 M V If Analog Signal CHa M has rising v edge at voltage threshold 2 Voltshappens 1 times Digital 2 while E fre 1 I Bus pick one decoded data is anything i and and D gital Signal States are F KEE BOOS OOIX Fate 0 to FI Ee AX E999 990 LOS 0 and ialog Signal CH1 S 10 Volts to 10 Volts If Digital Signal Digita has r sing edge happen 0 times or SPI2 Digital 4 Digital 5 Dc5 Digital 6 Digital 7 Followed By K k k R k R Async 6 Event 2 Followed By L Event 3 Followed By Event 4 Followed By Event 5 Followed By CUNT Event 6 B USBee Capture Once Capture Many Measi E Use PacketPresenter Definition File name is below i med l Logi
229. rString string that holds an error description of the routine returns an error 184 USBee RX User s Manual Return Value e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODE1WIRE This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeiWire unsigned long reserved1 unsigned char OutFilename unsigned char InlineFilename int64 StartSample __int64 EndSample long Rate unsigned long Signal long delimiter long showall long hex char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is as follows O 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58 50 Msps O 28 20 Msps O 107 10 Msps O 57 5 Msps O 27 2Msps O 106 1 Msps O 56 500ksps O 26 200ksps O 105 100ksps e Signal Which signal 0 15 to use for the 1 Wire signal e Delimeter 0 no delimiter 1 Comma delimeter 2 Space delimeter e Showall 0 Only show the data payload 1 show all packet details e Hex 0 display data in decimal 1 di
230. raction void Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return USBee RX User s Manual 249 e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter I2SExtractor O o tput dex P 123 M 1 L 2 V 4 3 I r V V CA cwav USBee DX DataExtractor I2S I2SExtractor Debug output dex File Edit View Favorites UserCommands GridLines Tools Window Layout Help D amp A acom lEt E lT S 10 20 30 40 50 60 123456789 123456789 123456789 123456789 123456789 123456789 123456 OxlE1ELE OxlELELE xlELIEIE 4 OxlE1ELE 5 OxlE1E1E 5 OxlE1E1E OxlE1EL1E xlEIlEIE xlElEIE xlEIlEIE l xlElEIE 12 xlElEIE 13 OxlEIEIE l4 OxlELE1E 5 xlEIlEIE 5 xlElEIE xlElEIE xlEIEIE Lines 1to 17 o File Size 603 69 KB 61 818 lines 02 13 2008 09 44 250 USBee RX User s Manual LOW AND FULL SPEED USB DATA EXTRACTOR The USB Data Extractor takes the real time streaming data from the Full or Low Speed bus formats it and allows you to save the data to disk or process it as it arrives USB DATA
231. rates e I2S bit clock up to 12MHz e USB Low 1 5Mbps and Full Soeed 12Mbps USB e CAN up to 12Mbps e SM Bus SM Clock up to 12MHz YOUR TESTING SYSTEM The typical challenge in embedded streaming bus systems is to get the data out of your embedded system quickly and easily so that you can process it either to capture a bug in progress or to evaluate performance In any case this can be done with the USBee RX Data Extractor System The USBee RX pod is used to stream raw sample data from its lowest 8 digital input lines digital input signal O thru 7 directly into the PC The Data Extractor software modules then take that streaming data and extract your desired data out of the raw stream using the extractor processing threads Our sample command line application as well as any custom application you write interfaces to the extractor through a simple Windows DLL consisting of five function calls These calls are used to start and extraction stop an extraction gather the data and how much data and check for error status SYSTEM REQUIREMENTS e The USBee RX Data Extractors require the following PC configuration o Windows Vista XP or Windows 2000 operating system Pentium or higher processor e One USB2 0 High Speed enabled port It will not run on USB 1 1 Full Speed ports 32MBytes of RAM 125MBytes of Hard disk space It is HIGHLY recommended that the USBee RX and Data Extractors be run together on a separate PC tha
232. rs are a separate software product for use with the USBee RX Test Pod that allows engineers to extract the raw data from various embedded busses to store off to disk or stream to another application The Data Extractors will collect the raw data from Parallel Serial I2C 12S Async USB Full and Low Speed SMBus 1 Wire or CAN busses and store the data to disk or pass it to your own processing application in real time Soa Your 12 Custom Data aR Code Extractor 125 C A N USE Store to Disk Your PC DATA EXTRACTOR FEATURES e Uses the USBee RX pod to stream data from your embedded design into your PC e Captures continuous real time bus data e Extracts the transaction data on the fly e Stores data to disk or process it in real time e Runs indefinitely e Captures entire test sequences e Monitors embedded system data flows during normal operation e Processes or stores Megabytes Gigabytes or Terabytes of data e Runs as a Windows Command Line executable from the Command Prompt and can be executed from Batch files containing the desired parameters e Lets you write your own software to further process the extracted data using the Extractor API libraries 198 USBee RX User s Manual BUS TYPES DECODED e Parallel internal or external clocking up to 12MHz e Serial internal or external clocking up to 12MHz e Async up to 12Mbaud e 12C SCL up to 4MHz e SPI SPI Clock up to 12MHz e 1 Wire Standard 1 Wire bit
233. ry is set to a O then the buffer will receive the binary bytes that make up the data stream If Hex is set to a 1 the buffer will contain a text string which is the data of the I2C traffic in Hex text form separated by any specified delimiters I2 CExtractor 0 output dex P 3209 0 5000 H C M 2 N 1 V 0 V C Program Files USBee AX Pro Data Extractors output dex File Edit View Favorites UserCommands GridLines Tools Help alel alulo Se Galoolm JE lalf e alal a 0 10 20 50 60 30 i S Al Read ACK 11 N CK 5 0 Write ACK 00 ACK S 1 Read ACK FF NACK P 2 S Al Read ACK 11 N CK S AO Write ACK 00 ACK 5 1 Read ACK FF NACK P 3 S Al Read ACK 11 N CK 5 A0 Write ACK 00 ACK S Al Read ACK FF NACK P 4 S l Read ACK 11 N CK S A0 Write ACK 00 ACK S Al Read ACK FF NACK P 5 S Al Read ACK 11 NACK 5 A0 Write ACK 00 ACK 5 1 Read ACK FF NACK P 6 S Al Read ACK 11 N CK S A0 Write ACK 00 ACK S 1 Read ACK FF NACK P Lines 1to6 100 File Size 462 bytes 6lines 07 17 2006 19 46 228 USBee RX User s Manual IZ2CEXtractor O output dex P 3209 0 5000 H G M 2 N 1 V 1 V C Program FilesUSBee AX Pro Data Extractors output dex File Edit View Favorites LlserCommands GridLines Tools Help alel alulej e amp so e E 0 10 20 123456789 123456789 123456789 0000001727 2 0000002472 3 0000003109 4 0000003669 5 0000004220 5 0
234. s ds Dir ly 0 L Inc 1 TXB15 1x h TXB8 Dir ly 1 L Inc 1 y 1x y tf Address 6y 04h L h TXBl 1x h TXBERR tf Address 6y 04h L Dummy 8x i RXOW 1x h 1x h RXBERR 1x h RXC 1x h RXOW 1ly h SOPDET 1ly h ly h RXC 1ly h RXE 1ly h Dummy 8x i 1x h TXC 1x h TXE 1x h OS 1x h LV 1 OS ly h LV 1y h TXB15 1 y h TXBS ly h TXBl ly h TXBERR ly h TXC ly h TXE ly h RX BUFFER ADR Read and Write Command Fields Dir ly 0 L Inc ly trt Address 6y 21h L Dummy 8x i RxData Nx h Fields Dir ly 1 L Inc ly tt Address 6y 21h L RxData Ny h TX BUFFER ADR Read and Write Command Fields Dir ly 0 L Ine lwytf Address 6y 20h L Dummy 8x i TxData Nx h Fields Dir ly 1 L Inc ly tf Address 6y 20h L TxData Ny h Fields Dir ly 0 L Inc ly tf Address 6y L Dummy 8x i ReadData Nx h Fields Dir ly 1 L Ine Lye 5 Address 6y L WriteData Nmy h Lookup Dir 0 SRead 1 SWrite Lookup Address 00h SCHANNEL ADR 01h TX LENGTH ADR 02h TX CTRL ADR 03h TX CFG ADR 04h TX IRQ STATUS ADR 05h RX CTRL ADR 06h RX CFG ADR 07h RX IRQ STATUS ADR 08h RX STATUS ADR 09h RX COUNT ADR 0ah RX LENGTH ADR 0bh PWR CTRL ADR Och SXTAL_ CTRL ADR Odh SIO CFG ADR 0eh GPIO CTRL ADR Ofh SXACT CFG ADR 10h SFRAMING CFG ADR 11h DATA32 THOLD ADR 12h DATA64 THOLD ADR
235. s A Field line in the Fields Section defines an entire packet from start to end and has the form Fields Fieldi FieldZ 4 EieldN You can also insert a string to be printed out at that location in the packet by using the string operator before the string to be printed Below is an example of a field line with one string added between the fields Fields Fieldi String FieldN Each field will be output with a Label and a Value For String fields the Label is blank and the Value is the String FIELD FORMAT Each field in the Field Line is defined using the following syntax and contains no spaces FieldName InputModifiers value OutputModifiers FieldName is the name of the field No spaces commas semicolons brackets dollar signs periods or quotes are allowed in the fieldname Input and output modifiers change the way incoming data and output data are formatted InputModifiers are a string of characters that represent how many bits are in the field and how the input data is to be handled First is the number of bits in the field or N if the field is a variable length Next is any of the following 136 USBee RX User s Manual M native bit order from that which came off of the bus default L inverted bit order from that which came off of the bus B invert the Byte order of this multibyte field X or Y which channel the data is on for multiline busses Value Indicates that this field MUST be t
236. s 6 and 7 to be a full duplex ASYNC bus with the TX and RX lines You will need to change the baud rate data bits and parity to match your bus It also adds a decoder line to the screen with this data decoded as below USBee Suite USBee DX Connected 1 095375ms 1 195375ms Digital 0 Digital 1 Digital 2 tu H k k H H H HM H WREN N A NES s USBee mee TERR ag aS Logic Analyzer Oscilloscope T X1 X2 dX dX Period Frequency Duty Cy Ons Ons Ons Ons infinity 10 85975ms 92 083151Hz 99 3 USBee RX User s Manual 47 HOT KEYS The USBee RX has a full set of hot keys that lets you drive the acquisition of samples setup configuration and quickly view your data using the keyboard Key Left Arrow Right Arrow Shift Left Arrow Shift Right Arrow Up Arrow Down Arrow Home End Ins Del WN O P O D 3GQ4o oco n e SIGNAL NAMES Function Previous Edge Packet Next Edge Packet Pan Left Pan Right Previous Waveline Next Waveline Show the Start of capture buffer Show the end of the capture buffer Insert a new waveline below the current line Delete the current waveline Capture Once Go to the X1 cursor Go to the X2 cursor Zoom out to view all of the capture buffer Open the Waveline settings dialog box Toggle the Decoder List window Zoom In Zoom Out Go to the Trigger position To change the names shown for a signal click on the signal name and enter a new name
237. s 65us 153 846154kHz 10 59425ms 94 390825Hz 9979 2009 CWAV Inc y 9 You can hide or change the width of the Decoded Bus Listing window by clicking and dragging the vertical line to the left of the window MANUAL MEASUREMENTS AND CURSORS The main reason for using an oscilloscope or logic analyzer is to measure the various parts of a waveform The USBee RX Suite uses cursors to help in these measurements 60 USBee RX User s Manual 1 USBee Suite Pro USBee RX Connected C ewav USBee Test Files ProtocolSetup usbeenx File Spee Digitare Digit3 7 Async 6 OO E 88 SEBSE 8S BBS a a DO C aM cop tu me e Li Capture Many The X1 and X2 Cursors are placed on any horizontal sample time This lets you measure the time at a specific location or the time between the two cursors To place the X cursors move the mouse to the gray Cursors box just below the waveform When you move the mouse in this window you will see a temporary line that indicates where the cursors will be placed Place the X1 cursor by left clicking the mouse at the current location Place the X2 cursor by right clicking the mouse at the current location These cursors will snap to the exact edge of a digital signal when the mouse moves close to the edge This lets you easily get exact measurements between edges of signals In the Measurement window you will see the various measurements made off of these cursors e X1 Position
238. s Read False RX_IRQ STATUS ADR Al CYPRESSRFIC ADDRESS Packet 5 Time 9 1989832ms Read False RX_BUFFER_ADR t RXDATA RECEIVEDATA Packet 6 Time 9 204667ms 08 82 1E 99 A7 28 2A 8A 12 88 9E 58 18 CA CO CO CYPRESSRFIC ADDRESS Packet 7 Time 9 265167ms Read False CHANNEL ADR 0 Below is a sample of packets copied in Text format and pasted into Notepad Layer CYPRESSRFIC DIR INC ADDRESS WRITEDATA Packet 1 Time 7 339333ms Write False CHANNEL ADR 0 Layer CYPRESSRFIC DIR INC ADDRESS WRITEDATA Packet 2 Time 7 347833ms Write False RX CTRL ADR 82 Layer CYPRESSRFIC DIR INC ADDRESS READDATA Packet 3 Time 7 356833ms Read False RSSI ADR 20 Layer CYPRESSRFIC DIR INC ADDRESS RXOW SOPDET RXB16 RXB8 RXB1 RXBERR RXC RXE Packet 4 Time 9 189167ms Read False RX IRO STATUS ADR 0 1 0 1 1 0 1 1 Layer CYPRESSRFIC DIR INC ADDRESS RXDATA Packet 5 Time 9 198833ms Read False RX BUFFER ADR 08 82 1E 99 A7 28 2A 8A 12 88 9E 58 18 CA CO CO Layer RXDATA RECEIVEDATA Packet 6 Time 9 204667ms 08 82 1E 99 A7 28 2A 8A 12 88 9E 58 18 CA CO CO Layer CYPRESSRFIC DIR INC ADDRESS READDATA Packet 7 Time 9 265167ms Read False CHANNEL ADR 0 SEARCHING FOR PACKETS Once displayed you can search for the next packet that contains certain fields that match your criteria Below is the Search Packet dialog box that is shown by using the View Packet Search menu item INE Search Packet Inc False
239. s browser like Forward and Back buttons that let you quickly navigate through your trace display Bi usbee Suite Pro USBee DX Connectec File View Speed and Samples Trigg c amp 20 DigitalO Ml Digital 1 Each time you stop at a certain point when viewing your waveforms the location is saved to the history buffer This allows you to quickly jump back to the previous locations within your trace without having to scroll pan or zoom Press the Back Button Cyan oval with to go backwards in the history buffer Press the Forward Button Cyan oval with gt gt gt to go forward in the history buffer 114 USBee RX User s Manual RELATIVE TIME DECODE The USBee RX Suite also adds a Relative Time or Absolute Time setting for the decoded data lists USBee Suite Pro USBee SX Demo Mode sos ff File View Speed and Samples Trigger Setup Help 400us div _ 1 916125ms 1 216125ms B16 125us 416 125us 4 0 001983625 DC 5 SCL OB 82 083us I2C 5 SCL ACK FF FF ES Jf 48 042us I2C 5 SCL S Start 15 75us I2C 5 SCL A3 Read 82 042us I2C 5 SCL ACK 51 167us I2C 5 SCL 22 82 042us I2C 5 SCL NACK 59 875us I2C 5 SCL P Stop 160 292us Async 0 TX OB 95 375us Async O TX 0C 98 042us Async O RX OD oB Ife 22 95 375us Async O RX OE M or conr Hi 95 333us Async O RX OF 4 95 375us Async O RX 10 95 375us Async O RX 11 210us SPI2 MISO FF 0B 0C Ons SPI2 MOSI 9
240. s extemal on C input Digital Generator SPECIFYING THE PATTERN WITH A CSV FILE To create a digital pattern you need to make comma delimited text file The first item on the first line of the file is the desired sample rate that each of the samples will be clocked out at Ml n To specify the file to use select the browse button and choose the file The file will be parsed and the number of samples loaded and sample rate will be sent to the Digital Signal Generator The file format of the CSV files is as follows 500000 Sample Rate 23 First sample 51 Second sample 84 Last Sample Only the first field of each line is considered as a sample This allows you to use a spreadsheet that computes the samples in the first column A sample Excel spreadsheet and the resulting CSV file is included in the Program Files CWAV Inc USBee RX Suite directory for you to use For 65535 samples it takes about 30 seconds to download Each sample is a decimal value that represents an 8 bit value from value 0 to 255 These 8 bits are tied to each of the 8 digital outputs Bit O of the sample value goes to the DO output pin Bit 7 of the value goes to the D7 output pin and so on When the pattern is being generated all 8 digital outputs are changed at the same time to the 8 digital values represented by the sample value 166 USBee RX User s Manual For example if the sample value is 85 55 hex then at that single sample time the outputs wil
241. s specifies how many samples were captured at the given sample rate e TriggerPosisition specifies which sample in the captured buffer contains the trigger event referenced from the beginning of the samples Return Value e 1 End successful 178 USBee RX User s Manual e 0 Trigger Failed SAMPLEDATA This routine returns the 4 byte value of a particular sample The low 2 bytes contain the 16 digital channels The high two bytes contain two 8 bit ADC values for the two analog channels Calling Convention unsigned long SampleData int64 index Index sample number to return Return Value Value of the given sample FINDNEXTEDGE This routine scans through the sample buffer and finds the next edge on a given channel This routine should be used in the cases of compressed data instead of individual SampleData calls Calling Convention CWAV IMPORT int64 CWAV API FindNextEdge X int64 UCSample unsigned long channelmask unsigned long direction UCSample is the sample number at which to start looking for an edge Channelmask is which channels to look for an edge on A 1 in a bit position specifies to use that channel Bit O digital channel O Bit 15 digital channel F Direction specifies forward 1 in time or backward 0 in time Return Value Sample number where the edge was found SETTRIGGERSRX This routine sets the trigger condition to use during the next capture Calling Convention CWAV IMPO
242. shold for all of the digital inputs Calling Convention CWAV IMPORT unsigned long CWAV API SetLogicThresholdRX float Thresh where Thresh is the voltage threshold Digital inputs below this threshold will be interpreted as a logic O and voltages above this threshold will be interpreted as a logic 1 Return Value e 1 Successful e 0 Failure STARTCAPTURERX This routine starts the pod capturing data at the specified trigger and sample rates Calling Convention CWAV IMPORT unsigned long CWAV API StartCaptureRX unsigned long buffersize unsigned char TriggerPosition float SampleRate unsigned long channelmask unsigned char ExternalClockingOn unsigned char CompressionOn Js e Buffersize is how many 32 bit samples are taken and ranges from 65536 to 16777216 e TriggerPosition what percent of the buffer should be prestored before the trigger e channelmask represent which samples to take O Bit 0 1 Sample Digital O signal O ignore this channel Bit 1 1 Sample Digital 1 signal O ignore this channel Etc Bit 15 1 Sample Digital F signal O ignore this channel O O O O Bit 16 23 255 Sample Analog channel 1 O ignore analog channel 1 O Bit 24 31 255 Sample Analog channel 2 0 ignore analog channel 2 e SampleRate is how many samples per second to capture Valid rates are in units of samples per second ranging from 10 to 100 000 000 176 USBee RX User s Manual e ExternalClockOn specifies whether to
243. signals to the CAN bus transceiver IC using the test clips provided EXTRACTOR COMMAND LINE PROGRAM The CAN Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port 260 USBee RX User s Manual e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments CANExtractor SDHICGAB R CANSpeed Q NumberOfBytes V Timestamp O filename M MaxID N MinID P Display this help screen P Pod ID required O Output to filename default off S Output to the screen default off Q Number of output values default until keypress R Bus Speed in bits second default 250000 A All Packet Fields are output default B Only Data Bytes are output D Decimal Text Values 49 H Hex Text Values 31 default Binary Values 49 C Comma Delimited G Space Delimited default M Maximum Identifier Filter N Min
244. splay data in hex e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e ErrorString string that holds an error description of the routine returns an error Return Value USBee RX User s Manual 185 e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODEPARALLEL This routine decodes bus traffic and outputs the data to an output file This routine works on a sample buffer captured using the StartCapture routine Calling Convention CWAV IMPORT int CWAV API DecodeParallel unsigned long reserved1 unsigned char OutFilename unsigned char InlineFilename X int64 StartSample int64 EndSample long Rate unsigned long Channels unsigned long Clock unsigned long UseCLK long CLKEdge unsigned long delimiter unsigned long hex long BytesPerLine char ProtocolDefinitionFilename char ProtocolOutputFilename char ErrorString e OutFilename pointer to the filename string to write the decoded data to e StartSample the index of the first sample to start decoding e EndSample the index of the last sample to decode e Rate is as follows 69 600 Msps O 39 300 Msps O 29 200 Msps O 108 100 Msps O 58
245. sulting packet at the start of the packet You must also specify the number of bits that the value covers defaults to 8 bits if not specified using the bits keyword You can specify a mask value to apply to the start data and values When the mask value has a bit that is a 1 that bit in the value and data are compared All values are assumed MSB first Packet Start or End type value Start End of a packet is based on a data value mask bitmask Bitmask to apply to the data stream value valuel value that the data needs to be to start End value value2 value that the data needs to be to start End value value3 value that the data needs to be to start End bits 8 how many bits in the start End word You can use the EXCLUDE keyword in the END section to leave the end data on the data stream for the next packet This is useful for when there is no indication of the end of a packet except for the arrival of the next packet TYPE LENGTH Only valid in the END section the end of a packet can be indicated by a certain length of data You use the BitLength or the ByteLength keywords to specify how long the packet is The length can either be a fixed length expressed as a constant or variable length based on the contents of a packet in the data stream type length End of a packet is based k on a length Bytelength length How many bytes per packet or Bitlength length How many bits per packet To us
246. t When debug mode is on each packet is output twice in its raw form showing the data values as well as the events from the bus The first debug line is the initial bus data The second line is the bus data after any decoding is completed Following the debug lines are the PacketPresenter output packets from this same data Below is a screen shot that shows the PacketPresenter that has Debug turned on USBee RX User s Manual 145 File Edit View Window Packet Debug EVENT DATA DATA EVENT lor re fes oz in Packet Debug EVENT DATA DATA EVENT lo FF ja Layer CYPRESSRFIC DIR INC ADDRESS WRITEDATA Packet 6 Time 15 6035ms Write False TX CFGADR O r Packet o ayer Packet Debug EVENT DATA DATA DATA DATA EVER Cae ee EON CN 34 335 1 EVENT DATA DATA DATA DATA EVEN ae 9 Time Onefor rr 1320 22 o2 Es CYPRESSRFIC DIR INC ADDRESS READDATA foie 20 Time stone Read rase soos PACKETPRESENTER SPECIFICATIONS The PacketPresenter system has the following limits regarding file size packets fields lookup tables etc e 100K bytes per PacketPresenter Definition File e 64K Data Records per Packet min 64K bits max 64K bytes e 7 Protocols e 1024 Field Lines per Protocol e 128 Fields per Field Line e 64 Lookup Tables per Protocol e 256 Lookup entries per Lookup Table e 256 Decoder Substitutions per Protocol e 3 Bytes per Substitution input or out
247. t make up the data stream If Hex is set to a 1 the buffer will contain a text string which is the data of the SMBus traffic in Hex text form separated by any specified delimiters 234 USBee RX User s Manual File Edit View Favorites UserCommands Gridlines Tools Help 0000001832 0000054106 Write 0000054106 Write 0000054106 Write 0000054106 Write P 0000054106 Write P 0000054107 Write E 0000054107 Write P 0000054107 Write P 0000054107 Write P 0000054107 Write P 0000054107 Write P 0000054107 Write P 0000054107 Write P 0000054108 Write P 0000054108 Write 0000054108 Write 0000054108 Write 0000054108 Write 0000054109 Write 0000054109 Write 0000054109 Write 0000054109 Write 0000054109 Write 0000054109 Write 0000054109 Write 0000054110 Write 0000054110 Write 0000054110 Write 0000054110 Write 0000054110 Write 0000054110 Write 0000054111 Write 0000054111 Write 0000054111 Write 0000054111 Write 0000054111 Write 0000054111 Write 0000054111 Write 0000054112 Write 0000054112 Write 0000054112 Write 0000054112 Write 0000054112 Write 0000054112 Write 0000054112 Write 0000054113 Write 0000054113 Write 0000054113 Write 0000054113 Write 0000054113 Write 0000054114 Write 0000054114 Write 0000054114 Write 0000054114 Write 0000054114 Write 0000054114 Write 0000054114 Write 0000054115 Write 0000054115 Write 0000054115 Write 0000054115 Write 0000054115 Write 0000054116 Write nnnnnce4111
248. t window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments AsyncExtractor SADHBICGNXYZ R BaudRate E DataBits L Parity M Sign alMask Q NumberOfBytes V Timestamp O filename P PodID Display this help screen USBee DX Pro Pod to Use P Pod ID required Output Location Flags O Output to filename default off S Output to the screen default off When to Quit Flags Q Number of output values default until keypress Input Format Flags R Baud Rate 9600 baud default E Number of Data Bits 5 6 7 8 default L Parity Type 0 none default l mark 2 space 3 even 4 odd M Which Signals to capture 1 signal0 128 signal7 255 all O none default Y LSBit first default Z MSBit first F Number of Stop Bits 2 1 default 3 1 5 4 2 Oo amp tput Number Format Flags ASCII Text Values 1 Decimal Text Values 49 Hex Text Values 31 default Binary Text Values 00110001 Binary Values 49 Comma Delimited Space Delimited default Newline Delimited No Delimeter x ugoontumugosm Timestamp and Channel Labels V Timestamps and Labels 0 Both off default l Time each byte 2 Time and Labels 3 Labels Only Digital Logic Threshold
249. tEdge Sample If tEdgel gt 0 Then SignalMask 1 Check to see if this falling edge is in the right timeframe tPulseWidth tEdgel Sample SamplingRate If tPulseWidth 0 008 And tPulseWidth lt 0 01 Then Now look for the rising edge tEdge2 FindNextEdge tEdgel SignalMask 1 If tEdge2 gt 0 Then Check to see if this rising edge is in the right timeframe tPulseWidth tEdge2 tEdgel SamplingRate If tPulseWidth gt 0 004 And tPulseWidth lt 0 005 Then Great Valid Header Format Look for bits from this point on Write out a Header Marker remove this if you don t need the header WriteEntry BW DecodeState Sample tEdge2 Lead Code LOOKING FOR BITS Sample tEdge2 Initialize the Byte Accumulation variables ByteStartSample Sample ByteAccumlator 0 BitCounter Continue For 0 ElseIf tPulseWidth gt 0 002 And tPulseWidth lt 0 003 Then Great Valid Repeat Format Find the next falling edge to complete the Repeat tEdge2 FindNextEdge tEdge2 SignalMask 1 Write out a Repeat Marker remove this if you don t need the Repeat WriteEntry BW Sample tEdge2 Repeat Sample tEdge2 Continue For Else Pulse is not the right size so bail and keep looking Sample tEdge2 Continue For End If Else No edges at all Exit For End If Else So we are done Pulse is not the right size so bail and
250. ta FF FF FF FF FF FF FF CRC 4C56 ACK 0 29 bitID 00000001 RTR 0 Control 08 Data 00 00 00 00 00 00 00 00 CRC 36B4 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 00 00 00 00 CRC 6216 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 12 34 43 21 CRC 1B8B ACK 0 11 bitID 001 RTR 0 Control 00 CRC 2213 ACK 0 11 bitID 001 RTR 0 Control 02 Data 00 00 CRC 2ACD ACK 0 11 bitID 001 RTR 0 Control 04 Data 12 34 43 21 CRC 6219 ACK 0 11 bitID 001 RTR 0 Control 08 Data 00 00 00 00 00 00 00 00 CRC 1F40 ACEK 0 11 bitID 123 RTR 0 Control 08 Data 00 11 22 33 44 55 66 77 CRC OBD4 ACK 0 11 bitID 1FF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 21B2 ACK 0 29 bitID 00000FFF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 4C56 ACK 0 29 bitID 00000001 RTR 0 Control 08 Data 00 00 00 00 OO 00 00 O00 CRC 36B4 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 00 00 00 00 CRC 6216 ACK 0 29 bitID 00000001 RTR 0 Control 04 Data 12 34 43 21 CRC 1B8B ACK 0 11 bitID 001 RTR 0 Control 00 CRC 2213 ACK 0 11 bitID 001 RTR 0 Control 02 Data 00 00 CRC 2ACD ACK 0 11 bitID 001 RTR 0 Control 04 Data 12 34 43 21 CRC 6219 ACK 0 11 bitID 001 RTR 0 Control 08 Data 00 00 00 00 00 O00 00 00 CRC 1F40 ACK 0 11 bitID 123 RTR 0 Control 08 Data 00 11 22 33 44 55 66 77 CRC O0BD4 ACK 0 11 bitID 1FF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 21B2 ACK 0 29 bitID 00000FFF RTR 0 Control 07 Data FF FF FF FF FF FF FF CRC 4C56 ACK 0 29 bitID 00000001 RTR 0 Control 08 Data 00 00 00 00 00 00 00 00 CRC 36B4 ACK 0 29
251. tamps of start of bytes or packets e Output to Text File Hex Decimal Binary or ASCII e Output to Screen e Comma Space or Newline Delimited files e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The Async Bus Data Extractor uses any of the 8 signal lines O thru 7 and the GND ground line Connect any of the 8 signal lines to an Async data bus Connect the GND line to the digital ground of your system EXTRACTOR COMMAND LINE PROGRAM The Async Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters USBee RX User s Manual 201 To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windows Command Promp
252. tartExtraction Starts the Data Extraction with the given parameters USBee RX User s Manual 221 CWAV IMPORT int CWAV API StartExtraction unsigned int SampleRate unsigned long PodNumber unsigned int ClockMode unsigned long Threshold unsigned long AlignValue unsigned char SignalLevel unsigned char AlignChannel unsigned char BytePerValue Threshold The voltage above which is a logic 1 and below which is a logic O times 10 10 1 0V 15 1 5V SampleRate 17 1Msps e 27 2Msps e 37 3Msps 47 4Msps e 67 6Msps e 87 8Msps e 127 12Msps e 167 16Msps e 247 24Msps PodNumber Pod ID on the back of the USBee RX Test Pod ClockMode 2 Internal Timing as in SampleRate parameter e 4 External Timing sample on rising edge of CLK e 5 External Timing sample on falling edge of CLK e 6 External Timing sample on rising edge of CLK and TRG high e 7 External Timing sample on falling edge of CLK and TRG high e 8 External Timing sample on rising edge of CLK and TRG low e 9 External Timing sample on falling edge of CLK and TRG low AlignValue Value which the extractor syncs with to define bit O alignment SignalLevel Level O or 1 which the extractor syncs with to define bit O aligment AlignChannel Which signal the extractor uses for alignment either via value or signal BytesPerValue 1 2 or 4 Used for Value alignment size Returns e 1 if Start
253. the marker Once you have it moved to the new location use the left mouse button to place it The Mode at the top of the marker changes the direction of the marker Click on Mode to change from Left pointing marker to Right pointing marker and vice versa To hide all of the markers without deleting them uncheck the menu item View Show Marker Labels To turn on the markers make sure this menu item is checked To delete the marker click on the X at the top of the marker You can delete all markers using the menu item View Delete All Markers This will delete all Sample Markers and Smart Markers USBee RX User s Manual 105 SMART MARKERS es a Click to Edit Text FER RETE Smart Markers are locked to a specific sample and measure the waveform underneath They are placed using the View Add Smart Marker menu item Once you select this menu item your cursor changes to 4 way arrows and a Smart Marker moves wherever you move the cursor To place the marker position it where you want it and then press the left mouse button You can edit the text within the marker by clicking on the text and typing in the new text You can hit Enter to add more lines As you add text the marker will expand to fit the text When the waveforms then redraw then marker is positioned to remain locked to the correct sample To move the marker click on the Move at the top of the marker Once you have it moved to the new location use the left mouse butto
254. tion eeeeeeeeeeeeeeee nennen nnne 33 Complex Ed din TT TT 33 Relative E aB om 34 USBEERX CONTROLPANEE sac testushimts sanare aehaub can oss samt DUXI eSI HUE Ud Ep mM uds 35 elle SUA qc 36 PC SYSTEM REQUIREMENTS P 36 SOFTWARE NSTALLATION sessenseneeeeoorrreeneoesorrsernecesorenrenseeeorrsnrnseneorrsneneeeeorenneneeeeone 37 Detailed Software Installation cccccccsssessecccnsesseccccaessecessaesecsssaussecesaaenseeseas 38 Bi en ep cee 42 TESTING YOUR CIRCUIT USING THE USBEE RX eese nennen nennen nennen 43 USING THE USBEE RX SUITE MIXED SIGNAL OSCILLOSCOPE 44 ANALE dd 44 USBee RX User s Manual 5 Quick Setup CONFIGUIGTION sias oou eee ep Resets wate ORE NEP ening GR Deer E 44 FLOR INC gem dT e E 48 SIGhalNOmies aoi aces brit M neon edu toti adeb 48 Buffer Sizes and Sample Rate settings ic e e n tau 48 Setting Simple Tigger ese te t exce deat eR ERRARE AE ERR dn 50 Setting Complex TTIgaets iecicisnedtsue tea ete E SA ola edid es M Re tante ERE olde 52 CAPTURING WAVEFORM DAT As nem 53 VIEWING CAPTURED DATA 35 3 renserturdcadeinsenctustabosiiiesortaWvancedteenengttaesmasdere sex aep dE 53 Scrolling ZOOMING ANA PANNING Waveforms 11cccccsseeseceenaeesecescneesecsssaeesees 53 Modifying
255. tors eese eee enne nnns 200 Building Your Own Programs Using the APlI esses 200 ASYNC DATA EXTRACTOR ieri eus ven aeos ee eno vea eua Va vae uet eo a ape e Neko N sereno ae nano au Peu US 201 10 USBee RX User s Manual ASYNC BUS DATA EXTRACTOR SPECIFICATIONS ccccececcccccceccesceacesceaceaceceecescescescences 201 HARDWARE SETUP cs secon a eather TT T icu peu gle eth olen aa laa alee cracls es 201 EXTRACTOR COMMAND LINE PROGRAM cccssecsssseccosecansccccossccntseccoerecasoeccnereceess 201 Example DUEtDUtFIIeS aov etd t RUD ERU Rt eed a t ae catia ct 203 EXTRACTOR AP lise cris clei Atala tetas atic le ies else iu teta auae ttt eed 207 BF oisi TE 207 DLL Exported Functions and parameters esses 207 EXIFOCUOR Data FOFIOE eic eua o oai vati p Pe an Er dn bap ed dan 210 PARALLEL BUS DATA EXTRACTOR 5 5 rideo pr esos pns or sape nS epa epe n YR ep ena aps Rae erus Pe 211 PARALLEL BUS DATA EXTRACTOR SPECIFICATIONS eese nennen enne nnne nna 211 EIARDWARE SETUP rni tosta a ttes es ette dice euo ees o ce cons cdi Cadeau cub oa is eui 211 EXTRACTOR COMMAND LINE PROGRANI 2 iusbss Dei ang eb oe E SR poet aU ve bn xu eV Dop aM V eunE NEU euo 212 Example OU PU s nes IB dh dc te ast aenecd un aquEEat mesa ts ce dts 214 EXTEACTOR AP onran is Sap RU eus NN E moEUtnu o Lolo aces dudo ME 215 D PTUEDndIme sott oet alise set uses uletas ictu ccetao ou DR DEI anaes 215 DLL Exporte
256. tors directory and enter the command line including all desired parameters or Edit the batch files goUSB bat gol2C bat etc in that directory to include the parameters you desire You can then simply double click on the batch files themselves in the Windows Explorer For all of the extractors you will need to use the USBee Pod ID on your Pod on the back of the unit as a command line parameter BUILDING YOUR OWN PROGRAMS USING THE API You can also start to build your own processing programs using the source code for the command prompt applications as a reference point Each Extractor has a sample project Visual Studio 2010 in the Program Files USBee RX Suite Data Extractors directories for you to start with 200 USBee RX User s Manual ASYNC DATA EXTRACTOR The Async Bus Data Extractor takes the real time streaming data from up to 8 embedded asynchronous buses UART formats it and allows you to save the data to disk or process it as it arrives The RX Streaming Data Extractors are optional software modules for use with the USBee RX Test Pod required which must be purchased separately ASYNC BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e 8 digital channels e Wide range of voltage input 60V e Variable logic Level threshold 0 to 2V e Baud Rates from 1200 baud to 12 Mbaud e Data Bit Settings 5 6 7 or 8 e Parity Bit Settings Mark Space Odd Even Ignore None e Time S
257. tractor S 0O output dex P 3209 Q 400 R 1000000 E 8 L 0 M _ 255 Z H G V 3 C Program Files USBee AX Pro Data Extracto ioj x File Edit wiew Favorites UserCommands GridLines Tools Help alel alulo eg m se e amp ms 0 10 20 30 123456789 123456789 123456789 123456789 J 4 4 4 4 A 4 4 4 1 Lt 4 5 e 7 7 e 7 t Zt P 2 j AA 55 80 x 34 40 CO 20 Lines 1 to 33 47 File Size 1 56 KB 68lines 07 17 2006 7 EXTRACTOR API The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use DLL FILENAME usbedAsync dll in Windows System32 DLL EXPORTED FUNCTIONS AND PARAMETERS ExtractionBufferCount Returns the number of bytes that have been extracted from the data stream so far and are available to read using GetNextData CWAV EXPORT unsigned long CWAV API ExtractionBufferCount void USBee RX User s Manual 207 Returns e O No data to read yet e other number of bytes available to read GetNextData Copies the extracted data from the extractor into your working buffer CWAV EXPORT char CWAV API GetNextData unsigned char buffer unsigned long length buffer pointer to where you want the extracted data to be placed length
258. types V AUG T N 132 type Lentieran eorr ea eA ra EE s bte onis 132 type Eveni vesser ersen cde sate Era EE KEAS EEE ESETET T 133 type TIMEOUT inaen E 133 CHANNELX CHANNELY or CHANNELXOrY eee 134 Decode Sectio NT ned atnieuerideds A Savas 134 SHUbSttH EIOS oii sead ante wind ance nc nasa ve saga ncatocacn vane EON m PEU OM EET LIII EO E 135 Fields Section ds cete dts n vetieas Audet see Au cM vont dulce wer oat eli vue Rudd 135 Field Lines PROCESSING cutem itti Go TE ba Rc Ercu re tutu Rv Ee EHE to uec Eres 135 Unconditional Field Lines 2t ico ve doin exem here o eee 136 Conditional Field Hnes tier EH aE c Pune COH eran 136 Field ise FOLIO ai esee Hood NENN act Cei 136 Field FOG als ceduasri kom re ht o o PCT poi Con oua oai Pa N tA enti 136 Bus Events in the middle of a packet cccccssssccccesseececeeseeceseeneceeseeenees 137 LOOKUP Table Shoot feb ntes bs brn n eh hie RO NOH EE 138 Examples of Field Lines and Fields ccccccsssssccecessecceceeeccesaeeseeessaneses 139 UIST Plain DStas de QULA MU COR EE bien Mathe d Ne DA DEA 139 Conditional Packet Formal iiie d dee e rtt eara Vra io ecu Ve rotate 139 SEIS EOOKUD S osse seo oi E EE nb Voi EE eb e S0 rr pee a Se Peces 140 Conditional Route of data to another Protocol eese 140 PacketPresenter Add In API eese eese nennen nennen nnns 142 Sample PacketPresenter Add In Decoders ccccsecccee
259. uick Setup configuration of your choice Below shows the available Quick Setup options for the USBee RX 44 USBee RX User s Manual F USBee Suite Pro USBee RX Demo Mode C Program Files x86 CWAYV Inc USBee RX Suite demo usbeecomp ay Fie View Speedand Samples Trigger Setup Help w USBee RX Control Pane Quick Setup 8 Digital Channels I 192u Quick Setup 16 Digital Channels Quick Setup 1 Analog Channe P P z FF FF Quick Setup 2 Analog Channels Quick Setup 8 Digital and 1 Analog Channe t fe lili ij f Quick Setup 8 Digital and 2 Analog Channels H j x U 38405 E 8 2 Quick Setup 16 Digital and 1 Analog Channe Quick Setup 16 Digital and 2 Analog Channe Quick Setup SPI Bus on Signals 0 1 2 and 3 Quick Setup 2C on Signals 4 and 5 Quick Setup Async on Signals 6 and 7 Pa 09 fa 23 oM NNM B BM NH p v Cursors T x x2 d gt 2M simples SOMspse E USBee RX Suite B soe sr Logic Analyzer Oscilloscope pr Copyright 2032 CWAV be Al ighos Faruarveni Dxigrui arat Manzfactunmi andy in the LSA T Ons Frequency infinity X12758303 s YASIN AT X2 909 s oua E PEN ESSE dX 1507 T6us s dY 0 00V UP Y E dX 6633kHz banc MS Pater 7 SLL 670 arwi tives pates pervin The FAST button sets the Sample Rate and buffer size to give the fastest screen update rates Below are exa
260. ulse bb 55 A Reset Please finmnmm 4 79 GridLines Tools alm amp Tale Bl 123456789 123455789 123456789 123456783 1234557 s Lines 1 ba 15 lz 2o F ile Size 815 bytes d8limes 07 17 2006 01 08 USBee RX User s Manual 245 I2S DATA EXTRACTOR The 12S Bus Data Extractor takes the real time streaming data from an 12S bus formats it and allows you to save the data to disk or process it as it arrives I2S BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e Monitors one 12S Bus e I2S Bit Clock up to 12MHz e Supports 12S or Left Justified sample formats e Supports MSBit first and non standard LSBit first formats e Asynchronous internal sampling from 1MB s to 24MB s e Output to Binary File e Output to Text File e Output to Screen e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The 12S Bus Data Extractor uses any of the 8 signal lines O thru 7 and the GND ground line Connect any of the 8 signals lines to Wor
261. use the File Save Screenshot Section menu item to select just a portion of the screen to save Use the left mouse button to start a rectangle that selects the region to save When you let up on the button it will prompt you for the filename to save the image as BB USBee Suite USBee DX Connected SOFTWARE UPDATES New versions of the USBee RX Suite software are posted on the USBee com web site To have the USBee RX Suite software check if a new version exists use the Help Check for Updates menu item It will connect to the USBee com server and determine if there is a newer version available for download If you are up to date the following screen will appear g Version Updates You have the most recent version WP You have version 1 0 25 installed USBee RX User s Manual 81 DEVELOPING YOUR OWN CUSTOM DECODERS The USBee RX Suite allows you to create your own custom protocol decoders To implement a custom decoder you must create a Class Library DLL using the code below as an example You can build this Class Library using the free Microsoft Visual Studio 2008 Express or newer Our example is in Visual Basic but can easily be ported to C or other language supported in Visual Studio We will first show how to use a Custom Decoder and then show how to design one USING THE CUSTOM DECODER Using the Custom Decoder that you build is simple To select to use your Custom Decoder you select the Custom tab in the C
262. use the external clock input pin C to capture samples 1 or the internal sample clock as specified above 0 e CompressionOn specifies whether to use sample compression 1 or not 0 Return Value e 0 Failed e 1 Success CAPTURESTATUSRX This routine checks the status of the data capture in progress Calling Convention CWAV_IMPORT unsigned long CWAV_API CaptureStatusRX unsigned char Full unsigned char Triggered unsigned char Running e Running 1 Acquisition is still running O Acquisition has completed e Triggered 1 Trigger has occurred O still waiting for the trigger e Full The percentage of the buffer that is currently filled Ranges from O to 100 Return Value e 0 Failed e 1 Success USBee RX User s Manual 177 STOPCAPTURERX This routine terminates a pending capture Calling Convention int StopCaptureRX void Return Value e 1 Capture Stopped e 0 Stop Failed TRIGGERNOWRX This routine immediately triggers a pending capture Calling Convention int TriggerNowRX void Return Value e 1 Trigger Occurred e 0 Trigger Failed ENDCAPTURERX This routine completes the capture and transfers all of the stored data to the PC This routine should be called one a capture is completed CaptureStatusRX Running is O Calling Convention CWAV IMPORT unsigned long CWAV API EndCaptureRX A int64 ActualNumberOfSamples int64 TriggerPosition e ActualNumberOfSample
263. uten dix eS ated edid en et dede EE 78 Open and Existing Capture FIC vro n N TEO 78 Recently Used Fre EISE ai e etes deem densae dea meyd 78 Exporting Captured Data to a Fle sirrini rii n ed bea et bap un exe 78 Export Sienai Data to Binary Filet oos si atscs quia Ua ia tu DE susan cua ER aves deve iri Ds AA 79 USBee RX User s Manual Export Sienal Data to Text CSV EIlIG ui deci itr oer P Ere Dres Ga cL UR RE 80 Export Bus Data to Text CSV File eeeeeeeeeeeeee nee een ennemis 80 uU cem 81 CREATING SCREEN SHOTS 2 5 seaiesasiu Utama vetat uda Cv ER vacua uo doct dal ee exitu ERR rau DUR S REG 81 SOFTWARE UPDATES 5 eutctom acces E losa eaten Du iara uult cci nc EE D cA 81 DEVELOPING YOUR OWN CUSTOM DECODERS eres nee 82 Using the Custohr DecoUBF uote pe ta e eto E ofa I E Pa editug is 82 Building the Custom DECODER aie e a er a d e at etat eda e d a d 84 Example Closs Tibrary COO o TESTA eR HE RERRERE E eR Edw eges 85 Custom Decoder Parameter siccae ou sete ve ep Edd tes ce geb e eu eda etes MEE 88 Accessing Sample Data to Perform DeCOdC cccseseccccsssecceceeeeccesaeeseeesseeeeeesaaanees 89 Outputting Entries that will get displayed on the Screen 89 Changing the Background Color of Outputted Entries esses 90 SMART SEARCH zorren tnan cato btt Ed vR stesso M bam Eco ebc oL abu aa Ee HM Eas eec Sab O Meu Eden de 91
264. utputted to the screen depending on these parameters To run the Data Extractor e Install the USBee RX software on your PC e Plug in your USBee RX Test Pod into your PC using a USB 2 0 High Speed Port e Open a Windows Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments BasicExtractor SADHBICGNX124YZ LogicThreshold Q NumberOfBytes T By tesPesLine R SampleRate M SignalMask L FilterValue V FilterMask O filename P PodID Display this help screen USBee RX Pod to Use P Pod ID required Output Location Flags O Output to filename default off S Output to the screen default off When to Quit Flags Q Number of output values default until keypress Input Number Format Flags 1 One Byte per value default 2 Two Bytes per value 4 Four Bytes per value Y Least significant byte first Z Most significant byte first Output Number Format Flags A ASCII Text Values 1 D Decimal Text Values 49 H Hex Text Values 31 default 212 USBee RX User s Manual B Binary Text Values 00110001 Binary Values 49 C Comma Delimited G Space Delimited default N Newline Delimited X No Delimeter T Force Bytes Per Line no force default Filter Values M Which Signals to capture 1 signal0 255 all
265. variable pointed to by analog1 will hold the 8 MSbits of the CH1 ADC To convert the digital value to voltage V 128 analog1 0 046875 e After this call the variable pointed to by analog2 will hold the 8 MSbits of the CH2 ADC To convert the digital value to voltage V 128 analog2 0 046875 e After this call the variable pointed to by CandT will hold the digital logic value read on the input signals C and T Return Value e 1 Successful e 0 Failure GENERATEANALOGWAVEFORMRX CONTROLLING THE AOUT SIGNAL Calling Convention CWAV_IMPORT unsigned long CWAV_API GenerateAnalogWaveformRX unsigned long SamplesPerSecond unsigned char SamplesPerCycle unsigned char samples e SamplesPerSecond is the sample rate of the output samples and ranges from 1 to 300 000 e SamplesPerCycle is the number of samples that make up a complete cycle in the analog waveform and ranges from 1 to 128 samples e samples points to a buffer of samples Each sample is a digital value representing the analog output voltage using the formula Vout samples 61 429 Vout range is from 0 to 3 0V Return Value 1 Successful USBee RX User s Manual 175 LOGIC ANALYZER AND OSCILLOSCOPE FUNCTIONS The following API describes the routines that control the Logic Analyzer and Oscilloscope functionality of the USBee RX Test Pod 7 SETLOGICTHRESHOLDRX SETTING THE DIGITAL LOGIC THRESHOLD This routine sets the digital logic thre
266. ver to load for that device which is the Windows provided WIBUSB driver This driver then remains resident in memory until you unplug the device Once you run your USBee Toolbuilder application it will call the functions in the USBEERXSTE DLL file which is installed in the Windows System32 directory for 32 bit Windows or Windows SysWOW directory for 64 bit windows This DLL will then make the correct calls to the WINUSB driver to perform the USB transfers that are required by the pod Both example projects are built using Microsoft Visual Studio 2010 which can be downloaded from the Microsoft web site USBee RX User s Manual 171 THE USBEE RX POD HARDWARE Outputs The USBee RX Test Pod has four sets of connectors e USB O Connects to the PC via 6 foot USB cable CH1 and CH2 o Analog Input Channels O BNC connectors for standard oscilloscope probes O 60V tolerant e Outputs connector O 11 pins 1 Ground GND 1 Analog Aout 1 5V Supply and 8 Digital Outputs DO D7 0 1 spaced 0 025 square header pins 8 Digital output pins 0 3 3V logic DO D7 5V output actually VBus connected directly to the USB VBus signal from the PC through a resettable fuse O 1 Aout analog output pin used by the Analog Signal Generator function 0 3V levels O Connects to 11x1 pin test lead set e Digital Inputs Connector O 20 pins 10x2 2 Ground G Clock Input C Trigger Input T and 16 Digital inputs 0 F 0 1 spac
267. vorite serial busses such as I2C SPI and Async Bus traffic is decoded in line with the waveforms and can be displayed on top of underneath or instead of the voltage versus time waveform Just place the cursor over the decoded traffic and get a see through image that shows you the wiggles that made that byte EC A2Wrte JA 00 I2C Transaction pacmociasnzana 5 s nnanamams ma xm xm eee ee See 5 5 5 o 5 5 2 2 22222222223 cm mur wm mm em murra o cann Setup Addo GET DESCRIPTOR a USB Transaction 24 USBee RX User s Manual am tata eS DS JUEZ TTia Bs stata oe Ae ias ee Uns B eet i Ad ot Te a aus eee os Oe T ao oe PS2 Transaction Suus aiv SUPE ES Parallel 7 Bus 94 D4 B4 d MAUS I2S Decode ID 123 RTRzO Cth08 Data 00 11 22 33 44 55 65 77 CRCOBDA ACKO CAN Transaction USBee RX User s Manual 25 Serial Bus Setup is simple and straightforward simply choose the signals for the bus and set how the bus is configured Not sure how your design works Not a problem You can try different configuration settings and the busses will be decoded using those settings on the fly so you can get it right Signal Selection oe 1b y77 4778 9778 D Pirie ie ve T Enable 9 r m fe Peck Peek J 4 3 Pe og I3 Clock IU 16 36 JU JU JE J las dui oot oo ho Wool Yeu Veo i 1 mo Fam 4 Xo a 4 3X FX a MOSI Data CIC JMO 00 020 20 0C
268. w bar to rip through your millions of samples or hone in on a specific section MEASURE IT Should that pulse be 10ms Measure it using our super easy edge snapping timing cursors Better yet you can use our Insta Measure feature to instantly calculate the width period frequency and duty cycle of the waveform under the cursor 1 582232ms 1 8822392ms TET FF FF FF FF FF F7 GF AF Measurements Eb XE KP Ons 1 568833ms 2 1 03 5ms 601 542us Frequency Duty Cycle 34 708us 28 811525kHz 25 1 FULLY CONFIGURABLE LOOK AND FEEL View your signals like you like them Want to add decoded bus traffic to the waveforms Done Want to delete waves from the screen Done Want to reorder waveforms for easier readability Done Want to resize the screen for easier reading or more data per screen Done And you like Magenta Well you can change cursor colors to suite your desires Waveform backgrounds can also be customized and you can even give the entire application that cool Glassy look that Vista has made so popular Then again if you like simple white and black are also available It s good that white ink cartridges are free USBee RX User s Manual 23 300us div M a M gt B lt l gt B gt B LI f lt gt M M i a USBee RX Suite showing SPI I2C and Async decoding SERIAL BUS ANALYSIS USBee RX Suite has decoding support for your fa
269. w void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow USBee RX User s Manual EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The Async Bus Extractor uses the following format for the data in this buffer Byte 0 Timestamp LSByte in nanoseconds since start Byte 1 Timestamp Byte 2 Timestamp Byte 3 Timestamp Byte 4 Timestamp Byte 5 Timestamp Byte 6 Timestamp Byte 7 Timestamp MSByte Byte 8 Record Type bit 1 1 means character data is valid Byte 9 Channel number 0 thru 7 Byte 10 Character Byte 11 Errors Bit 0 Parity Error Bit 1 Framing Stop error Byte 12 Control Signal States all 8 signal bits except async channels Byte 13 reserved Byte 14 reserved Byte 15 reserved repeat 210 USBee RX User s Manual PARALLEL BUS DATA EXTRACTOR The Parallel Bus Data Extractor takes the real time streaming data from an embedded 8 bit parallel bus formats it and allows you to save the data to disk or process it as it arrives PARALLEL BUS DATA EXTRACTOR SPECIFICATIONS e Continuous Real Time Data Streaming e 8 digital channels e Wide range of voltage input 60V e Variable logic Level threshold 0 to 2V e Synchronous or Asynchronous Clocking e
270. was successful e 0 if Pod failed initialization StopExtraction Stops the extraction in progress 222 USBee RX User s Manual CWAV EXPORT int CWAV API StopExtraction void Returns e 1 always ExtractBufferOverflow Returns the state of the overflow conditions CWAV EXPORT char CWAV API ExtractBufferOverflow void Return e 0 No overflow e 1 Overflow Occurred ExtractorBuffer Overflow condition cleared e 2 Overflow Occurred Raw Stream Buffer Overflow EXTRACTION DATA FORMAT The GetNextData routine gets a series of bytes that represent the extracted data stream and places these bytes into the buffer pointed to by the buffer parameter The Serial Bus Extractor uses the following format for the data in this buffer Byte 0 Channel 0 first byte extracted Byte 1 Channel 1 first byte extracted Byte 2 Channel 2 first byte extracted Byte 3 Channel 3 first byte extracted Byte 4 Channel 4 first byte extracted Byte 5 Channel 5 first byte extracted Byte 6 Channel 6 first byte extracted Byte 7 Channel 7 first byte extracted Byte 8 Channel 0 second byte extracted Byte 9 Channel 1 second byte extracted Byte N Channel N mod 8 byte N 8 1 extracted USBee RX User s Manual 223 I2C DATA EXTRACTOR The I C Bus Data Extractor takes the real time streaming data from the 12C bus formats it and allows you to save the data to disk or process it as it arrives I2C DATA EXTRACTOR SPECIFICAT
271. ws Command Prompt window by clicking Start All Programs Accessories Command Prompt e Change the working directory to the Data Extractor directory e Run the executable using the following command line arguments SMBusExtractor SDHICGAB Q NumberOfBytes V Timestamp filename M SMBDatMask N SMBClkMask P PodID Display this help screen USBee RX Pod to Use P Pod ID required Output Location Flags O Output to filename default off S Output to the screen default off When to Quit Flags Q Number of output values default until keypress Output Number Format Flags A All Packet Fields are output default Only data bytes are output Decimal Text Values 49 Hex Text Values 31 default Binary Values 49 Comma Delimited Space Delimited default Timestamps O0 off default l Timestamp on SMBData signal 1 2ch0 128 ch7 chO default SMBCIk signal l ch0 128 ch7 chil default Z Z m qoc Ae XJ Ud l Digital Logic Threshold Q Logic Threhold L0 0 0V 15 1 5V etc Stop on Overflow Stop on Overflow default is off EXTRACTOR API O The Data Extractor is implemented using a Windows DLL that interfaces to the existing USBee RX DLL and drivers This DLL can be called using any software language that supports calls to DLLs Below are the details of this DLL interface and the routines that are available for your use USBee RX User s Manual 231 DLL F
272. y data in decimal 1 display data in hex e ASCII O show byte values 1 show ASCII equivalent e BytesPerLine How many output words are on each output line e ProtocolDefinitionFilename filename for the Protocol Definition File to use to create a PacketPresenter file If this value is O then the PacketPresenter feature is turned off e ProtocolOutputFilename filename that is created for the output of the PacketPresenter e ErrorString string that holds an error description of the routine returns an error Return Value e TRUE No Error during processing e FALSE Error while processing The ErrorString contains a description of the error to present to the user DECODESETNAME This routine sets the string that is output during any of the above decoders and can represent a unique identifier for that bus Calling Convention int DecodeSetName char name DIGITAL PATTERN GENERATOR FUNCTIONS The following API describes the routines that control the digital pattern generator functionality of the USBee RX Test Pod USBee RX User s Manual 189 GENERATEPWMWAVEFORMRX This routine sets the digital output channel specified to a PWM pulse width modulator signal Calling Convention CWAV_IMPORT unsigned long CWAV_API GeneratePWMWaveformRX unsigned char channel unsigned long samplespersecond unsigned char dutycycle e Channel which channel 0 to 7 to setup as a PWM output e Samplespersecond how many sa
273. yte serial words e Little or Big Endian e Output to Binary File e Output to Text File Hex Decimal Binary or ASCII e Output to Screen e Comma Space or Newline Delimited files e Output Value Filtering e Extractor API libraries interface directly to your own software to further process the extracted data Any language that supports calls to DLLs is supported output bandwidths are dependent on PC USB hardware hard disk and or screen throughput HARDWARE SETUP To use the Data Extractor you need to connect the USBee RX Test Pod to your hardware using the test leads You can either connect the test leads directly to pin headers on your board or use the test clips for attaching to your components The Serial Bus Data Extractor uses any of the 8 signal lines O thru 7 the GND ground line and optionally the CLK and TRG lines for external timing Connect the GND line to the digital ground of your system EXTRACTOR COMMAND LINE PROGRAM The Serial Bus Data Extractor includes a Windows Command Prompt executable that lets you operate the Data Extractor without writing any software The program is executed in a Command Prompt window and is configured using command line arguments The extracted data is then stored to disk or outputted to the screen depending on these parameters To run the Data Extractor e Install the USBee RX software on your PC USBee RX User s Manual 219 e Plug in your USBee RX Test Pod into your
Download Pdf Manuals
Related Search
Related Contents
Picture(s) of Kenwood - TH-79 ReadyNAS Photos II Add-on User Manual BEDIENUNGSANLEITUNG - jj-ccr Instrucciones de servicio A ES Cortadora de cantos BT 80.1 WSTRO WaveStar Software for Oscilloscopes User Manual DGLP60 WLC - Easy Catalogue HP EliteBook 720 G2 Summary Copyright © All rights reserved.
Failed to retrieve file