Search the Community

Showing results for tags 'da2'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. Hi, I've been trying to get the PMOD DA2 (just Channel 1 for now) working on a fleet of Arduino Leonardos via the ICSP header. I'm getting bizarre (jumpy, non-monotonic) voltages out of it and I'm stumped. Things get particularly squirrely around outputting 2048 counts (half scale) - I do believe that my upper/lower byte math is correct, so i think the issue is with the SPI writing/sequencing. Has anyone had any luck putting a DA2 on a Leonardo via ICSP? I've attached my (not working) test sketch. Any idea what's wrong? I poked around the web and this forum, but can't seem to find any working examples or advice. This is my first attempt at using the ICSP port, so it's possible that I've not done it properly. For a moment I did think that specifically defining MSBFIRST would fix it, but it didn't. I'm also not 100% sure about the clock phase and polarity settings (SPI_MODE3) - what you see in the code is from an example that I found (here: https://www.hackster.io/56141/using-the-pmod-da2-with-arduino-uno-e47768 - but that doesn't seem to work for me either). /************************************************************************ * FILENAME: PMOD_DA2 * * Leonardo Pins: * * Chip Select (CS): Leonardo DIO Pin 10 (to DA2 pin 1) * Serial Clock (SCK): Leonardo ICSP Pin 3 (to DA2 pin 4) * MOSI (Data): Leonardo ICSP Pin4 (to DA2 pin 2) * ************************************************************************/ Ideas or suggestions? Where'd I go wrong? Bruce PMOD_DA2.ino EDIT: I've attached a scope trace of the output when I use the following code (snippet) - ramping to 4000 counts in 250 count increments: // OUTPUT & RAMP VARIABLES const int AnalogMaxValue = 4000; // hardcoded max DAC value, proportional to FLOW RATE (motor velocity), range is 0 to 4095 const int AnalogStepSize = 250; const int StepDelayTime = 10; // [milliseconds] delay between analog updates during ramp-up, milliseconds const int SPI_write_delay = 5 ; // [milliseconds] (delay after writing data, before asserting ChipSelect) int upper_byte = 0x00; // upper byte of speed command, to be sent via SPI port to PMOD_DA2 int lower_byte = 0x00; // lower byte of speed command, to be sent via SPI port to PMOD_DA2 int i = 0; // test variable void setup() { // set up pin definitions pinMode(PMOD_CS_Pin, OUTPUT); // PMOD chip select (for Channel #1, Channel #2 is not being used) // set up SPI port SPI.begin(); // initialization of SPI port SPI.setDataMode(SPI_MODE3); // configuration of SPI communication in mode 3 SPI.setClockDivider(SPI_CLOCK_DIV16); // configuration of clock at 1MHz SPI.setBitOrder(MSBFIRST); Write_To_DAC(0); // write zero to the DAC via SPI to initialize } void loop() { for(i=0; i<=AnalogMaxValue; i=i+AnalogStepSize){ Write_To_DAC( i ); // write the Analog value to the DAC via SPI delay(StepDelayTime); } }
  2. Hello I am new to FPGAs, and I'm using Pmods AD1 and DA2 in a control application on ZedBoard, using VIVADO and SDK. Is there any tutorial or hint to know how to start the design and interfacing between ZedBoard and these pmods. Thanks. Elie.
  3. Hello Everyone, Is there any good resource or tutorial to interface DAC with Zybo board, i would like to interface the DA2 pmod with zybo by making a custom ip in Vivado (VHDL) and accessing that in Xilinx SDK. If anyone have experience let me know.
  4. xilinx_forever

    pmodda2

    i have a pmod da2, i use it with basys2 board I use the refcomp design given by digilent, fixing the digitals values I simulate, and implement it on board, verified signal with digital analyser... put a scope on analog outputs... everything seams to be good, but no anlog value on the output! Some one could help me? thank you