Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
learn:instrumentation:tutorials:analog-discovery-studio-protocol-analyzer [2019/07/17 23:09] – [2. Using the Protocol Analyzer] Andrew Holzer | learn: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)====== | ||
- | {{: | ||
- | |||
- | ===== Introduction ===== | ||
- | This guide explains the use of the // | ||
- | ---- | ||
- | ===== Prerequisites ===== | ||
- | * A Digilent Test & Measurement Device with Digital Input/ | ||
- | * 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' | ||
- | |||
- | **Note:** //" | ||
- | |||
- | **Note:** //The Device Manager can be opened by clicking on the " | ||
- | |||
- | </ | ||
- | <WRAP column half> | ||
- | |||
- | {{ : | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | <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 column half> | ||
- | |||
- | {{ : | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | <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 column half> | ||
- | |||
- | {{ : | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ==== 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 [[: | ||
- | |||
- | First, connect the Arduino' | ||
- | |||
- | Next, connect the Test & Measurement device' | ||
- | |||
- | </ | ||
- | <WRAP column half> | ||
- | |||
- | FIXME image | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | |||
- | === 2.2 Arduino Setup === | ||
- | Note: //This guide assumes the Arduino 1.8.9 toolset is already installed// | ||
- | |||
- | Click Sketch> | ||
- | |||
- | </ | ||
- | <WRAP column half> | ||
- | |||
- | FIXME image | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | |||
- | === 2.3 Software Setup === | ||
- | |||
- | Back in WaveForms, click the SPI tab below the menu bar. | ||
- | |||
- | When the SPI tab is opened, it is initially set to spy on the data sent on MISO and MOSI, however it must be configured to (to match the SPI communication properties). In the configuration panel, set the frequency to 1 MHz, the clock polarity to 1 and the clock phase to 1 (SPI Mode 3). | ||
- | |||
- | </ | ||
- | <WRAP column half> | ||
- | |||
- | FIXME image | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | <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 " | ||
- | |||
- | </ | ||
- | <WRAP column half> | ||
- | |||
- | FIXME image of capture panel | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | |||
- | === 2.4 Logic Analyzer === | ||
- | |||
- | The //Logic Analyzer// can be used alongside the //Protocol Analyzer// to visualize the timing of the data being sent. 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 " | ||
- | |||
- | 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 column half> | ||
- | |||
- | FIXME image | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | |||
- | === 2.5 Driving Communications === | ||
- | |||
- | The //Protocol Analyzer// may also be used to drive peripheral communications. To begin, click the Master tab. | ||
- | |||
- | Set mode to Read Write. | ||
- | |||
- | h08 h38 h00 h64 h58 h00 h00 h00 h00 | ||
- | |||
- | </ | ||
- | <WRAP column half> | ||
- | |||
- | FIXME image | ||
- | |||
- | </ | ||
- | </ | ||
- | ==== 3. Protocol Analyzer User Interface Overview ==== | ||
- | |||
- | ---- | ||
- | {{tag> |