Coder Social home page Coder Social logo

cmod-s7-25-xadc's Introduction

Cmod S7-25 XADC Demo

Introduction

This project demonstrates how to use the Cmod S7-25's analog input pins with a MicroBlaze soft-core processor. Ten times per second, the processor collects samples from the on-chip ADC and prints voltage readings from Analog input pins AIN_32 and AIN_33 out over the USB-UART bridge. Care should be taken not to exceed the 3.3V maximum of the analog input pins.

Using This Demo

Requirements:

Release Usage:

  1. Download and extract the release ZIP archive.

  2. Open the included XPR project in Vivado 2018.2 (<archive extracted location>/vivado_proj/Cmod-S7-25-XADC.xpr).

  3. In the toolbar at the top of the Vivado window, select File -> Export -> Export Hardware.

  4. Set "Export to" field to "" and check "Include bitstream" box then click "OK".

  5. In the toolbar at the top of the Vivado window, select File -> Launch SDK.

  6. Set "Exported location" and "Workspace" fields to "" then click "OK".

  7. With SDK opened, wait for the hardware platform to be imported.

  8. In the toolbar at the top of the SDK window, select File -> New -> Application Project.

  9. Fill out fields as in the table below. Most of the listed values will be the defaults, but are placed in the table for completeness.

Setting Value
Project name Cmod-S7-25-XADC
Use default location checked box
OS Platform standalone
Target Hardware: Hardware Platform design_1_wrapper_hw_platform_0
Target Hardware: Processor microblaze_0
Target Software: Language C
Target Software: Board Support Package Create New (Cmod-S7-25-XADC_bsp)
  1. Click "Next", then select "Empty Application" from the list of available templates. Then click "Finish".
  2. Expand the new application project (named "Cmod-S7-25-XADC") in the Project Explorer pane to the left of the SDK window.
  3. Right click on the "src" subdirectory of the application project and select Import
  4. In the "Select an import wizard" pane of the Import wizard, expand "General" and select "File System". Then click Next.
  5. Fill out fields on the "File system" screen as in the table below. Most of the listed values will be the defaults, but are placed in the table for completeness.
Setting Value
From directory <archive extracted location>/sdk_appsrc
Files to import pane: sdk_appsrc checked box
Into folder Cmod-S7-25-XADC/src
Options: Overwrite existing resources without warning checked box
Options: Create top-level folder unchecked box
  1. Click Finish.
  1. Plug in a test circuit to the Cmod S7-25's analog input pins.
  2. Open a serial terminal application (such as TeraTerm FIXME LINK) and connect it to the Cmod S7's serial port, using a baud rate of 9600.
  3. In the toolbar at the top of the SDK window, select Xilinx -> Program FPGA. Leave all fields as their defaults and click "Program".
  4. Right click on the "Cmod-S7-25-XADC" application project in the Project Explorer pane, and select "Run As -> Launch on Hardware (System Debugger)".
  5. Refer to the statements printed via the serial terminal application for instructions on how to use the demo.

For more information on how this project is version controlled refer to the Digilent Vivado Scripts Repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.