Previous Video: [ Ссылка ]
Download Logic 2: [ Ссылка ]
Logic 2 Forum: [ Ссылка ]
Analyzer SDK: [ Ссылка ]
User-Created Analyzers: [ Ссылка ]
Welcome to our series of tutorials on Logic 2, a brand new application to debug your hardware using your Saleae Logic analyzer. In the previous video, linked below, we talked about TRIGGERS and showed an example when using it to record SPI data. In this video, we'll begin where we left off and learn how to decode the SPI data we previously recorded.
Our Logic 2 application comes equipped with several PROTOCOL ANALYZERS to decode data according to a particular protocol. You can check these out by navigating to the ANALYZERS panel and clicking the PLUS button. Here, you'll see a list of several ANALYZERS that our software currently supports. In case a certain protocol is not found on this list, we offer the ability to create custom analyzers using our PROTOCOL ANALYZER SDK. I've provided a link to the SDK below, as well as a list of user created protocol analyzers. Please note that, at the time of publishing this video, custom analyzers are not yet supported by Logic 2. We're currently working on adding support for this, so we're excited to share that with you once it's ready.
For this tutorial, we'll capture and decode SPI data. Let's click "SPI" to configure our SPI ANALYZER. We'll configure it as follows. ENABLE is connected to CHANNEL 0. CLOCK is connected to CHANNEL 1. MOSI is connected to CHANNEL 2. For MISO, we'll leave this blank as we don't have a SPI slave device connected. As for the rest of the settings, we'll leave them to their default values as they properly indicate how our SPI data is transmitted. Note that you may need to change these settings to reflect your own SPI data structure. We'd also like to show our decoded SPI data in a RESULTS TABLE VIEW, and we'll stream the data to our built-in terminal. Both of these options allow for different ways of viewing your decoded data. Once these are all set, lets click 'SAVE' and begin our capture. Note that your saved settings will also be used automatically next time you add a SPI analyzer. Now let's click Start.
We've programmed our Arduino to send out SPI data every second, and you'll notice that it gets decoded in real time via the table on the right. Once the capture is complete, there are a few ways you can view your decoded data from within the application. First, you can zoom in and navigate your data to view the decoded results. For our SPI ANALYZER, the decoded results can be viewed above the MOSI waveform on CHANNEL 2. For protocols that contain a CLOCK, such as in SPI, you'll notice arrows indicating where the sampling of data takes place for decoding. In our case, the MOSI data line is sampled on every RISING EDGE of the clock. We set this earlier in our SPI ANALYZER SETTINGS. You can also view your DECODED PROTOCOLS in TABLE VIEW in the ANALYZERS PANEL to the right. Finally, you can view your data from within our built-in TERMINAL VIEW. For protocols with slower data rates, this can be especially useful to read incoming data in real-time.
Now let's go over some useful features that will enhance your experience with protocol analyzers. To change your display radix, right click a decoded data result in the waveform. Hovering over the data result reveals a keyboard shortcut to scroll your RESULTS TABLE to that specific data. You can also search for a decoded result in the RESULTS TABLE, and then navigate to that instance of the data in the waveform by clicking on the RIGHT-ARROW. Double click to zoom in. Finally, you can export your decoded data by clicking on the 3 DOTS to the right of your ANALYZER, and clicking Export to TXT/CSV.
This wraps up our tutorial on protocol analyzers. In the next video, we plan on discussing more useful features on Logic 2. As always, if you have any specific questions or feedback, visit our Logic 2 forum in the link here ([ Ссылка ]).
![](https://i.ytimg.com/vi/Ak9R4yxQPhs/maxresdefault.jpg)