Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
learn:instrumentation:tutorials:analog-discovery-studio-protocol-analyzer [2019/06/20 22:23] – [2. Using the Protocol Analyzer] Andrew Holzer | learn:instrumentation:tutorials:analog-discovery-studio-protocol-analyzer [2019/08/06 20:25] – [3. Protocol Analyzer User Interface Overview] Andrew Holzer | ||
---|---|---|---|
Line 67: | Line 67: | ||
==== 2. Using the Protocol Analyzer ==== | ==== 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 group> | ||
Line 73: | Line 75: | ||
=== 2.1 Hardware Setup === | === 2.1 Hardware Setup === | ||
- | This step describes setting up a simple loopback circuit that connects | + | To demonstrate the capabilities of the //Protocol Analyzer// instrument, this guide uses a [[: |
- | Connect | + | First, connect the Arduino' |
+ | |||
+ | Next, connect | ||
</ | </ | ||
Line 88: | Line 92: | ||
<WRAP column half> | <WRAP column half> | ||
- | === 2.2 === | + | === 2.2 Arduino Setup === |
+ | Note: //This guide assumes the Arduino 1.8.9 toolset is already installed// | ||
+ | |||
+ | Click Sketch> | ||
</ | </ | ||
<WRAP column half> | <WRAP column half> | ||
- | FIXME image | + | {{: |
</ | </ | ||
Line 101: | Line 108: | ||
<WRAP column half> | <WRAP column half> | ||
- | === 2.3 === | + | === 2.3 Software Setup === |
+ | |||
+ | Back in WaveForms, click the SPI tab below the menu bar. | ||
</ | </ | ||
<WRAP column half> | <WRAP column half> | ||
- | FIXME image | + | {{: |
</ | </ | ||
Line 114: | Line 123: | ||
<WRAP column half> | <WRAP column half> | ||
- | === 2.4 === | + | 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 match the PmodAD5 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> | <WRAP column half> | ||
- | FIXME image | + | {{: |
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP column half> | ||
+ | |||
+ | === 2.3 Protocol Spying === | ||
+ | |||
+ | Click {{: | ||
+ | |||
+ | </ | ||
+ | <WRAP column half> | ||
+ | |||
+ | {{: | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <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. | ||
+ | |||
+ | </ | ||
+ | <WRAP column half> | ||
+ | |||
+ | {{: | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP column half> | ||
+ | |||
+ | In order to show both the //Protocol Analyzer// and the //Logic Analyzer// instruments on the screen at once, click on the Docking Windows button () in the top right corner of the screen. | ||
+ | |||
+ | Note: To return to the default tabbed view later, click on the “Tabbed Windows” button () adjacent to the Docking Windows button. | ||
+ | |||
+ | Click the Docking Windows button, further up in the top right corner, to split the screen between the //Protocol Analyzer// and //Logic Analyzer// | ||
+ | |||
+ | </ | ||
+ | <WRAP column half> | ||
+ | |||
+ | {{: | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP column half> | ||
+ | |||
+ | 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> | ||
+ | |||
+ | {{: | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP column half> | ||
+ | |||
+ | === 2.5 Driving Communications === | ||
+ | |||
+ | The //Protocol Analyzer// may also be used to drive peripheral communications. To begin, remove the 4 data connections between the Arduino and PmodAD5, keeping the 5V and GND pins connected. Next, click the Master tab. | ||
+ | |||
+ | Set mode to Read Write. Next, in the Write (DQ0) section, write h08 h38 h00 h64 h58 h00 h00 h00 h00. Clicking the Execute button will execute the SPI transmission, | ||
+ | |||
+ | </ | ||
+ | <WRAP column half> | ||
+ | |||
+ | {{: | ||
</ | </ | ||
</ | </ | ||
==== 3. Protocol Analyzer User Interface Overview ==== | ==== 3. Protocol Analyzer User Interface Overview ==== | ||
+ | //This section describes the various controls present in the //Protocol Analyze// instrument. | ||
+ | <WRAP group> | ||
+ | <WRAP column half> | ||
+ | |||
+ | === 3.x === | ||
+ | |||
+ | </ | ||
+ | <WRAP column half> | ||
+ | |||
+ | </ | ||
+ | </ | ||
---- | ---- | ||
{{tag> | {{tag> |