element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Digilent, a National Instruments Company
  • Products
  • Manufacturers
  • Digilent, a National Instruments Company
  • More
  • Cancel
Digilent, a National Instruments Company
Blog Analyzing DAC, ADC, and SPI Data with the Analog Discovery Studio
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Digilent, a National Instruments Company to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: alexwonglik1
  • Date Created: 19 Feb 2020 8:04 AM Date Created
  • Views 2531 views
  • Likes 4 likes
  • Comments 0 comments
  • cmod
  • s7
  • analog discovery studio
  • spi data
  • dac
  • spi
  • digilent blog
  • digilent
  • pmod r2r
  • adc
  • pmod
  • analog discovery
  • cmod s7
  • oscilloscope.
Related
Recommended

Analyzing DAC, ADC, and SPI Data with the Analog Discovery Studio

alexwonglik1
alexwonglik1
19 Feb 2020

image

 

The Analog Discovery StudioAnalog Discovery Studio functions as a mixed-signal oscilloscope. In this demo, we use several instruments in Analog Discovery Studio.

 

  1. Oscilloscope - view analog data from a resistor ladder Digital to Analog Converter (DAC)
  2. Logic Analyzer - view and decode an ADC's SPI bus
  3. Waveform Generator - stimulate the ADC's analog inputs

 

The Cmod S7Cmod S7 , Xilinx Spartan 7 Breadboardable Module, is used in this project to implement a SPI master module, repeatedly sending data captured by the FPGA's onboard two-channel analog-to-digital converter (ADC). This data is also sent to the Pmod R2R, a resistor ladder digital-to-analog converter (DAC), to be converted back to analog data. The Analog Discovery Studio is used to provide analog signals to the Cmod S7's analog input pins, capture analog voltages from the Pmod R2RPmod R2R, and to control and capture data from the SPI module implemented in the Cmod S7's FPGA.

 

Inventory for this project:

  • Analog Discovery StudioAnalog Discovery Studio with:
    • Breadboard Canvas
    • MTE Cables
    • Power Supply
    • USB A to B Cable for connection to host computer
  • Cmod S7-25Cmod S7-25 breadboardable FPGA development board, with:
    • MicroUSB Cable for programming and power
  • Pmod R2RPmod R2R resistor ladder DAC
  • Computer with the following software installed:
    • Digilent WaveForms
    • Digilent Adept

 

 

Operating the Demo

The analog signals generated on the Wavegen pins can be modified by changing the configurations of each channel in the Wavegen 1 pane. By default, channel 1 is set to output 0 Volts DC, and channel 2 is set to ramp from 0 to 3 Volts over 200 microseconds. These waveforms can be seen in the sequence output by the Cmod S7 in the Scope 1 pane. Both the SPI module and the R2R alternate between outputting data captured from channel 1 and channel 2, switching the channel every 20 microseconds.

 

By default, the demo uses SPI mode 0. This can be changed by changing the state of the CPOL and CPHA buttons in the StaticIO instrument. When changing the SPI mode, make sure to also modify the Active and Sample settings of the SPI bus in the Scope 1 pane.

 

The RESET button and ENABLE switch in the StaticIO instrument are used to control the SPI module programmed into the Cmod S7, resetting the module, and enabling/disabling it, respectively.

In the Scope 1 instrument, the yellow plot line, Channel 1, represents voltage data captured from Scope channel 1. The red plot line, Math 1, represents the data transferred over SPI from the Cmod S7, converted into voltage from raw 8-bit digital samples.

 

image

 

 

Read more on how to implement the project on the Digilent Blog.

https://reference.digilentinc.com/reference/instrumentation/analog-discovery-studio/cmod-s7-demo

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube