Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:digital-discovery:i2c-protocol-viewer [2022/09/12 19:57] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:digital-discovery:i2c-protocol-viewer [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== I2C Protocol Viewer ====== | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | {{reference: | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ===== Introduction ===== | ||
| + | This workspace is set up to generate I2C signals with the Protocol Analyzer' | ||
| + | To learn more about the I2C protocol, its [[https:// | ||
| + | ---- | ||
| + | ===== Inventory ===== | ||
| + | * A Discovery Device with Digital I/O: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * //An Analog Discovery (Legacy) can also be used.// | ||
| + | * {{reference: | ||
| + | * Two 1-5 KΩ Resistors (Ideally 4.7 KΩ) and a breadboard | ||
| + | |||
| + | ---- | ||
| + | ===== Setup Instructions ===== | ||
| + | ==== 1. Hardware Setup ==== | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | Plug your Discovery device into your computer via a USB cable. | ||
| + | |||
| + | Since I2C uses open collectors on the inputs/ | ||
| + | |||
| + | Since I2C protocol uses open collector inputs/ | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ---- | ||
| + | ==== 2. Software Setup ==== | ||
| + | Download and extract the WaveForms workspace from the {{reference: | ||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | Open WaveForms. Upon launch, WaveForms will generate a prompt asking to switch to the device used with the workspace. As this is the device originally used when the workspace was created and archived, select **No**. Navigate to //Settings -> Device Manager// in the menu bar at the top of the window, to check that the active device is your Discovery device. | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | Click the **Open Workspace** button on the Welcome tab. Navigate to and open the // | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ---- | ||
| + | ==== 3. Running the I2C Protocol Viewer ==== | ||
| + | The workspace is ready to use. | ||
| + | |||
| + | Regardless of the device used, the voltage output for the power supplies is configured for 3.3V. To pull the I2C lines high, enable the power supplies by clicking the Run button (green arrow) on the " | ||
| + | |||
| + | Press the " | ||
| + | |||
| + | **Note:** //To view the data through the Logic Analyzer while using the Protocol Analyzer, the Protocol Analyzer was placed into debug mode, which disables the Protocol Analyzer' | ||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | {{reference: | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | {{reference: | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | ---- | ||
| + | ===== Final Notes ===== | ||
| + | This workspace is a good starting point for testing an I2C device through WaveForms. By simply modifying the contents of the ASCII array, and the Write call's address argument, different values can be sent one of several I2C slave devices on the same bus. | ||
| + | |||
| + | For more guides and example projects for your Test and Measurement device, please visit its Resource Center, which can be found through this wiki's [[test-and-measurement: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||
| + | |||
| + | {{tag> | ||

