Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:instrumentation:tutorials:analog-discovery-studio-protocol-analyzer [2019/07/03 21:39] – [2. Using the Protocol Analyzer] Andrew Holzerlearn:instrumentation:tutorials:analog-discovery-studio-protocol-analyzer [2019/08/21 22:23] (current) – removed Andrew Holzer
Line 1: Line 1:
-======Using the Protocol Analyzer (Under Construction)====== 
  
-{{:reference:instrumentation:analog-discovery-studio:hardware-reference-manual:protocol-analyzer.png?nolink&800}} 
- 
-===== Introduction ===== 
-This guide explains the use of the //Protocol// instrument in WaveForms. This instrument is used to send, receive, and spy on transactions in a variety of different digital communication protocols. 
----- 
-===== Prerequisites ===== 
-  * A Digilent Test & Measurement Device with Digital Input/Output Channels 
-  * A Computer with WaveForms Software Installed 
- 
-==== 1. Opening the Protocol Analyzer ==== 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 1.1 === 
-Plug in the Test & Measurement Device, then start WaveForms and make sure the device is connected. 
- 
-If no device is connected to the host computer when WaveForms launches, the **Device Manager** will be launched. Make sure that the device is plugged in and turned on, at which point it will appear in the Device Manager's device list (1). Click on the device in the list to select it, then click the Select button (2) to close the Device Manager. 
- 
-**Note:** //"DEMO" devices are also listed, which allow the user to use WaveForms and create projects without a physical device.// 
- 
-**Note:** //The Device Manager can be opened by clicking on the "Connected Device" button in the bottom right corner of the screen (3), or by selecting "Device Manager" from the "Settings" menu at the top of the screen.// 
- 
-</WRAP> 
-<WRAP column half> 
- 
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-oscilloscope:waveforms-device-manager.png?600 |}} 
- 
-</WRAP> 
-</WRAP> 
- 
----- 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 1.2 === 
-Once the Welcome page loads, in the instrument panel at the left side of the window, click on the **Protocol** button to open the //Protocol Analyzer// instrument. 
- 
-</WRAP> 
-<WRAP column half> 
- 
-{{ :learn:instrumentation:tutorials:waveforms-instrument-panel:waveforms-instrument-panel-protocol.png?nolink&600 |}} 
- 
-</WRAP> 
-</WRAP> 
- 
----- 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 1.3 === 
-Once the //Protocol Analyzer// instrument opens, the window contains the spy panel (1.) showing captured data, the configuration panel (2.) above the spy panel, and the control toolbar (3.) at the top of the window. 
- 
-</WRAP> 
-<WRAP column half> 
- 
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-protocol-analyzer:protocol-default.png?600 |}} 
- 
-</WRAP> 
-</WRAP> 
- 
----- 
- 
-==== 2. Using the Protocol Analyzer ==== 
- 
-//The //Protocol Analyzer// can be used to spy on protocol communications to validate data flow. It may also be used to drive protocol communication to verify peripheral functionality. This section explains how to spy and then drive communication.// 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 2.1 Hardware Setup === 
- 
-To demonstrate the capabilities of the //Protocol Analyzer// instrument, this guide uses a [[:reference:pmod:pmodad5:|PmodAD5]] and an Arduino UNO to spy on the SPI communications taking place between the host and peripheral. Afterwards, the Test and Measurement device will be used as the SPI master to drive communications with the PmodAD5. 
- 
-First, connect the Arduino's pin 10 to the AD5's pin 1, the Arduino's pin 11 to the AD5's pin 2, the Arduino's pin 12 to the AD5's pin 3, the Arduino's pin 13 to the AD5's pin 4, Arduino's GND to the AD5's pin 5 and finally Arduino's 5V to the AD5's pin 6. 
- 
-Next, connect the Test & Measurement device's digital input/output (DIO) channel 0 pin to the chip select (pin 1) of the AD5, the DIO channel 1 pin to the AD5's clock (pin 4), the DIO channel 2 pin to the AD5's MOSI (pin 2) and finally the DIO channel 3 pin to the AD5's MISO (pin 3).  
- 
-</WRAP> 
-<WRAP column half> 
- 
-FIXME image 
- 
-</WRAP> 
-</WRAP> 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 2.2 Arduino Setup === 
- 
-Click Sketch>Include Library>Manage Libraries. In the filter type AD7193 and install the library by Anne Mahaffey. Once the download has finished, close the Library Manager window, then click File>Examples>AD7193>AD7193_VoltageMeasure_Example. Click Upload to program the Arduino with the example sketch. 
- 
-</WRAP> 
-<WRAP column half> 
- 
-FIXME image 
- 
-</WRAP> 
-</WRAP> 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 2.3 Software Setup === 
- 
-Click the SPI tab below the menu bar 
- 
-Set the frequency to 1 MHz, clock polarity to 1, clock phase to 1 (SPI Mode 3). 
- 
-</WRAP> 
-<WRAP column half> 
- 
-FIXME image 
- 
-</WRAP> 
-</WRAP> 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 2.3 Protocol Spying === 
- 
-Click Receive to begin spying on the data transmission between the Arduino and PmodAD5. The capture panel will start populating with data sent between the Arduino and the PmodAD5. Each line beginning with "Data:" represents a stream of data from when chip select goes low to when it goes back high. Each 8 bit packet is separated by a comma, with the MOSI and MISO data printed respectively, separated by a "|". 
- 
-</WRAP> 
-<WRAP column half> 
- 
-FIXME image of capture panel 
- 
-</WRAP> 
-</WRAP> 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 2.4 Logic Analyzer === 
- 
-The //Logic Analyzer// can be used alongside the //Protocol Analyzer// to visualize the data. In the //Protocol Analyzer// click the Logic Analyzer button in the top right corner, which opens the //Logic Analyzer// instrument. Click the Docking Windows button, further up in the top right corner, to split the screen between the //Protocol Analyzer// and //Logic Analyzer//. 
- 
-Click the "Simple" button to set a simple trigger, and then Select>Fall.  
- 
-Note: The //Protocol Analyzer// can't be used for spying if the //Logic Analyzer// is enabled. 
- 
-Close the //Logic Analyzer// by clicking the x in the top right corner. 
- 
-</WRAP> 
-<WRAP column half> 
- 
-FIXME image 
- 
-</WRAP> 
-</WRAP> 
- 
-<WRAP group> 
-<WRAP column half> 
- 
-=== 2.5 Driving Communications === 
- 
-h08 h38 h00 h64 h58 h00 h00 h00 h00 
- 
-</WRAP> 
-<WRAP column half> 
- 
-FIXME image 
- 
-</WRAP> 
-</WRAP 
-==== 3. Protocol Analyzer User Interface Overview ==== 
- 
----- 
-{{tag>tutorial analog-discovery-studio}}