Differences

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

Link to this comparison view

Both sides previous revision Previous revision
learn:instrumentation:tutorials:waveforms-logic-analyzer:start [2020/05/07 22:26]
Arthur Brown
learn:instrumentation:tutorials:waveforms-logic-analyzer:start [2020/05/22 23:39] (current)
Arthur Brown [2. Using the Logic Analyzer]
Line 57: Line 57:
 //This section walks through setting up the //Logic Analyzer// to capture an incoming data signal// //This section walks through setting up the //Logic Analyzer// to capture an incoming data signal//
  
-<WRAP group> +<WRAP group> <WRAP column half> 
-<WRAP column half> +=== 2.1 Hardware ​Setup === 
-=== 2.1 Software ​Setup === +Choose two of your device'​s digital pins, one of which will act as an inputand one of which will act as output. Connect these two pins together ​to create a simple loopback, as seen in the image to the rightTake note of which pins are used, as WaveForms must be told which pins it is to use.
-On the left panelselect the "​Click ​to Add channels"​ (1 in image at right) or the green plus button ({{:​learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​symbol_plus.png?​nolink}}). The menu that pops up allows signals ​to be added as individual lines, a bus, a standard protocol, or a custom protocol. To add individual lines, select "​Signal"​ (2) and use CTRL and/or SHIFT to select multiple lines. For now, select DIO 0 and click "​Ok"​.+
  
-To use the //Logic Analyzer//, some signals must be applied to the digital ​input/outputs usedThis guide uses the //Pattern Generator// instrument ​to apply a signal to DIO 0For a detailed tutorial on using the //Pattern Generator// instrumentplease see the [[learn:​instrumentation:​tutorials:​waveforms-pattern-generator:​start|]] guide.+**Note:​** ​//Digital pins that work as both input and output can be used in both modes at the same time. If desired, one such pin can be chosen for both input and output for this guide. In this situation, no additional hardware setup is required./
 +</​WRAP>​ <WRAP column half> 
 +{{ :​learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​default-hardware.png?​nolink&​600 |}} 
 +</WRAP> </WRAP> 
 +---- 
 +A [[https://store.digilentinc.com/​digital-discovery-high-speed-adapter-and-logic-probes/​|High Speed Adapter]] is available for the Digital Discovery which can be used to take advantage of the highest sampling frequencies the device offers. 
 +--> Click here if using the Digital Discovery High Speed Adapter # 
 +<WRAP group> <WRAP column half> 
 +This adapter should be connected to the Digital Discovery'​s "HIGH SPEED INPUTS"​ pin group with the Ground symbols (downward facing arrows) pointing to the bottom of the device. While the adapter can be connected "​upside down"doing so will result in the pin names shown in the [[https://​reference.digilentinc.com/​reference/​instrumentation/digital-discovery/​reference-manual#​accessories|Digital Discovery Reference Manual]] not matching the actual pin names. Note that these pins cannot be used for digital output.
  
-Return to WaveForms'​ Welcome page by clicking on its tab at the top left of the screen ​and select ​//​Patterns//​. Alternatively,​ press the green plus button next to "​Welcome"​ in the tab to add the instrument ​(3)On the left panelselect ​the "Click to Add channels"​ button or the green plus button ({{:​learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​symbol_plus.png?​nolink}}). From "​Signal"​ select ​DIO 0 and click "​Ok"​. Under the **Type** column, choose //Clock// and leave the other settings in their default state.  +If desired, one of these input pins can be used in this guide, along with any of the Digital Discovery'​s output-capable pins. Connect one of the provided black/red differential probes to the High Speed Adapter. Make sure that the black cable is connected to the side with the ground arrow. The black cable should be connected to the ground of the device under test (in this case, the Digital Discovery'​s ground). The red cable (the positive side of the p/n differential pair) should be connected to the chosen digital output. 
-</​WRAP>​ +</​WRAP>​ <WRAP column half> 
-<WRAP column half> +{{ :​learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​high-speed-hardware.png?​nolink&​600 |}} 
-{{learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​2.1a.png?​600}} +</​WRAP>​ </​WRAP>​ 
-</​WRAP>​ +<-- 
-</​WRAP>​ +---- 
-<WRAP group> +<WRAP group> <WRAP column half> 
-<WRAP column half> +=== 2.2 Software Setup === 
-=== 2.Capture Data  ===+In the //Logic Analyzer// instrument that was previously opened, in the left panel, select the "Click to Add channels"​ or the green plus button ({{:​learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​symbol_plus.png?​nolink}}). The menu that pops up allows signals to be added as individual lines, a bus, a standard protocol, or a custom protocol. To add individual pins as their own lines, select "​Signal"​ and use CTRL and/or SHIFT to select multiple pins from the list that pops up. For now, select only the pin you chose as input and click the **Add** button. 
 +</​WRAP>​ <WRAP column half> 
 +{{ :​learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​add-channels.png?​nolink&​600 |}} 
 +</​WRAP>​ </​WRAP>​ 
 + 
 +<WRAP group> <WRAP column half> 
 +Next, check the sampling frequency which will be used for the digital input. Depending on the Test and Measurement device used, some frequencies may only be available with certain groups of pins. These frequency and pin requirements can be discovered through dropdowns in the Logic Analyzer instrument'​s toolbar, pictured to the right, as well as through the device'​s Reference Manual. If the device used does not support variable sampling frequencies,​ these dropdowns will be grayed out. 
 +</​WRAP>​ <WRAP column half> 
 +{{ :​learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​frequency-selection.png?​nolink&​600 |}} 
 + 
 +{{ :​learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​pin-selection.png?​nolink&​600 |}} 
 +</​WRAP>​ </​WRAP>​ 
 + 
 +<WRAP group> <WRAP column half> 
 +To use the //Logic Analyzer//, some signal/s must be applied to the digital input/s used. This guide uses the device'​s //Pattern Generator// instrument to apply a signal to the chosen digital input pin through the chosen digital output pin. For a detailed tutorial on using the //Pattern Generator// instrument, please see the [[learn:​instrumentation:​tutorials:​waveforms-pattern-generator:​start|]] guide. 
 + 
 +Return to WaveForms'​ Welcome page by clicking on its tab at the top left of the window ​and click the //​Patterns// ​button. Alternatively,​ press the green plus button next to "​Welcome"​ in the tabs list to add the instrument. 
 +</​WRAP>​ <WRAP column half> 
 +{{ :​learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​add-patterns.png?​nolink&​600 |}} 
 +</​WRAP>​ </​WRAP>​ 
 + 
 +<WRAP group> <WRAP column half> 
 +As before, in the left paneclick the "Click to Add channels"​ button or the green plus button ({{:​learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​symbol_plus.png?​nolink}}). From "​Signal"​ select ​the pin chosen as digital output ​and click the **Add** button. Under the **Type** column, choose //Clock// and leave the other settings in their default state. 
 +</​WRAP>​ <WRAP column half> 
 +{{ :learn:​instrumentation:​tutorials:​waveforms-logic-analyzer:​choose-type.png?nolink&600 |}} 
 +</​WRAP>​ </​WRAP>​ 
 +---- 
 +<WRAP group> <WRAP column half> 
 +=== 2.Capture Data ===
 Click the //Pattern Generator'​s//​ Run button ({{:​learn:​instrumentation:​tutorials:​waveforms-buttons:​waveforms-run.png?​nolink}}) in the control bar (1 in the image to the right) to begin outputting the signal on digital input/​output pin 0. Click the //Pattern Generator'​s//​ Run button ({{:​learn:​instrumentation:​tutorials:​waveforms-buttons:​waveforms-run.png?​nolink}}) in the control bar (1 in the image to the right) to begin outputting the signal on digital input/​output pin 0.
  
Line 80: Line 115:
  
 To save the captured data, select "​File"​ (4) from the top of the window and choose either "Save Acquisition"​ (allows for WaveForms to reopen the instrument with the data preloaded) or "​Export"​ (allows export of a .csv file or a screenshot). To save the captured data, select "​File"​ (4) from the top of the window and choose either "Save Acquisition"​ (allows for WaveForms to reopen the instrument with the data preloaded) or "​Export"​ (allows export of a .csv file or a screenshot).
-</​WRAP>​ +</​WRAP>​ <WRAP column half>
-<WRAP column half>+
 {{learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​2.2.png?​600}} {{learn:​instrumentation:​tutorials:​analog-discovery-studio-logic-analyzer:​2.2.png?​600}}
-</​WRAP>​ +</​WRAP>​ </​WRAP>​
-</​WRAP>​ +
 ---- ----
 ==== 3. Logic Analyzer User Interface Overview ==== ==== 3. Logic Analyzer User Interface Overview ====