Search the Community

Showing results for tags 'spi'.

  • 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
    • Test and Measurement
    • 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

  1. Dear Attila Please find enclosed the following . This took more than 4 hours to prepare all the documentation please treat as such. I am using the latest version of Digilent Waveforms and the latest Waveforms SDK. - Master Javascript driver for Digilent Analogue Discover AD2 which can be used inside Waveforms - SPI Setup , read & write & Initialise (1) . Status NOT Working . Needs Digilent Help to fix (%%) - I2C Setup , read & write & Initialise (2) . Status NOT Working . Needs Digilent Help to fix - UART Setup , read & write &
  2. Hi With the waveforms tool is it possible using python scripting in the Waveforms platform to do the following ?? Use the Digilent Analogue discovery 2 - Attach a device like a PMOD device eg accelerometer https://store.digilentinc.com/pmod-acl-3-axis-accelerometer/ using the Analogue discovery 2 ability to chat SPI & IC2 - pmod DEVICES SUPPORT 12-pin Pmod connector with SPI interface and 2×4-pin I²C interface - Then using the read information from the PMOD device treat it like an extra oscilloscope channel . Either as a Analog channel
  3. Hi Attila Have you have had almost 2 years to paste up a working example of how to get a PMOD ACL2 working but I still can not finding a working example any where. This is the latest code for from the last time Is there any chance you will actually spend the time to get this to work .. I feel it is not so good that a good tool like AD2 is being not supported. Best wishes & friendly greetings SIB Direct_protocol_test.dwf3work SPI_test.dwf3work SPI_test_2.dwf3work SPI_test_3.dwf3work SPI_test_4.dwf3work SPI_test_5_test.dwf3work
  4. // This posted here so that Google and Bing search the script to help other users of Digilent Analog Discovery AD2 // and Digilent wave forms find programming examples which are very difficult to find. // This driver is work in progress . SPI & I2C functionality not working yet . // for use with Digilent Analog Discovery AD2 script engine. // // Attila : Please leave this post up on the forum as I spent a very long time curating the script to find all the // small example pieces of code . // // ------------------------------
  5. Hello, to load data into a serial DAC, a separate latch pulse is needed at the end of an SPI transfer. I tried to achieve this using a Custom SPI protocol and adding control for an extra output pin. According to help file: I modified an example script, but adding DIO.Set(31, 1) results in "Data transfer error", and WaveForms has to be restarted to recover from it. // Pmod DA1 - AD7303 // DIO.Set(31,1); // <-- uncommenting this line results in "Data transfer error", need to restart WaveForms to recover for(var i = 0; i < 50 & wait(0.1); i++){ var va
  6. Hello, I have connected the AD2 to Spy on an existing SPI Bus between a STM Controller and an IC provided by our Company, and am trying to just spy and log the traffic for tool verification reasons. When i use the Setup with the Waveforms GUI, everything works fine. It displays all Samples, the data looks ok, everything fine. As soon as I start using the tool via API (Python or C#, happens on both) the SPI Phase Settings seems to get ignored. I get flipping Bits all over the place, which is the same behaviour as if i set the Phase in the Waveforms GUI (Waveforms -> Protocol -
  7. pedro_uno

    MRAM PMOD

    Hello, I need to develop software to control an Magnetoresistive RAM (MRAM). I searched for an MRAM PMOD and found this item out of stock. https://www.tindie.com/products/alliedcw/pmod-mram-nonvolatile-memory/ The picture shows a Digilent board but I do not find it on your website. Do you have any of these on hand? Why don't they show on your site? Pete
  8. If I configure the SPI with mode 0 (polarity=0 and phase=0) and LSB in WaveForms SDK in the Digital Discovery or Analog Discovery 2, and I send the byte 163=0xA3=b10100011; I would see the following: Is it guaranteed that when there is a falling edge of SCLK, the MOSI takes the value just before the transition (the SCLK edge)? What I mean is; is the following image accurate:
  9. I have a device that has a single 16-bits SPI shift register (for both transmissions and receptions). It responds to falling edges of SCLK. The input of the shift register is connected to MOSI and the output to MISO, as the following figure. As the MOSI signal is input to the first flip-flop of the shift register, it should remain stable (not change) during a falling edge of SCLK, while MISO changes its value during a falling edge of SCLK. This way, MISO and MOSI signals are not synchronized. I want to communicate with this device using WaveForms SDK. Is there a w
  10. What is the good method transfering the eight bits via SPI to DPOT using a raspberry pi? spi.writebytes accepts int arrays only. many thnaks
  11. I am programming a Digital Discovery with WaveForms SDK (in Python) to communicate via SPI with an FPGA. The SPI comunication has 16 bit words. First, I have to send the address to read or write (the first bit of the 16 bit word indicates whether it is a read 0 or a write 1). Then, in the second 16 bit word, I read the data if it was a read operation, or I send the data if it was a write operation. I have the following code: # Imports from ctypes import * from dwfconstants import * import sys import time # Load dwf library if sys.platform.startswith("win"): dwf = cdll.LoadLibr
  12. I want to do the following with WaveForms SDK: communicate through 1.8 V SPI read 2 digital 1.8 V inputs generate a digital 1.8 V output generate a digital clock of 32768 Hz (low level 0 V and high level 1.8 V) Is this possible with a Digital Discovery or with an Analog Discovery 2 (or both)? I wanted to use an Analog Discovery 2, but I think I cannot set the digital voltage to 1.8 V (it is always 3.3 V). On the other hand, I do not know if a Digital Discovery does the trick, since: (Source: https://reference.digilentinc.com/reference/software/wave
  13. Dear All, Board in use: ARTY A7-100T Flash in use: FL128SAIF00 Spansion Goal: to write 10 bytes of user data to flash and then read it later to use it in code. Present status : I am using microblaze , along with axi quad spi, mig , clock wizard, small PL logic etc. in my block design. I am able to program the flash and I am able sucessfully use bootloader to load the srec image from flash when the board powers up. So flash reading/ writing is working for this purpose. Now I want to simply write few bytes to flash and then read it from microblaze code. For this I follow
  14. I'm having some difficulty setting up SPI to receive data from the the PmodALS. I'm using the 328PB board with the initialization and receive code below: void SPI_MasterInit(void) { DDRC |= (1<<PORTC1); //set SCK (PC1) to output. DDRC &= ~(1<<PORTC0); //Set MISO (PC0) as input. DDRE |= (1<<PORTE3) | (1<<PORTE2); // Set MOSI (PE3) to output and SS (PE2) to output // Enable SPI, Master SPCR1 |= (1<<SPE1) | (1<<MSTR1) | (1<<SPR10); //Set to /16 prescaler so peripheral PmodALS operate
  15. I would like to use 6 Pmod ISNS20 current sensors in a prototype application, and I would like to use an off-the-shelf interface board to connect to all the sensors. However, the Digilent Pmod HAT adapter (for Raspberry Pi) can only be used to connect to two SPI devices, so can't be used. Does anyone know of an interface board that I can use to connect to 6 SPI devices? I haven't selected a controller yet, so Arduino/Pi/etc boards would be Ok. I know that I can make an I/F board using GPIO pins to drive the various slave selects, and write software to handle this, but I would much prefer
  16. Hello I am creating a verilog module on the basys 3 board to interface with the Pmod DA3. I have tried running the module with the DA3 connected and wasn't getting any voltage reading. I have my sclk speed at 25Mhz. Below is my current code and screenshots of my test bench and the pmod outputs on an oscilloscope. Any help is appreciated. `timescale 1ns / 1ps module sclk( input clock, input reset, output sclk ); reg[24:0] count = 0; reg sclk = 0; always @ (posedge clock or posedge reset) begin if (reset ==1'b1)begin count <
  17. Hello, I tried posting this on the Xilinx forums but got no response. These forums look more active and friendly so hopefully somebody can help me. I am really stuck. I am trying to follow along with the "How To Store Your SDK Project in SPI Flash" tutorial (https://reference.digilentinc.com/learn/programmable-logic/tutorials/htsspisf/start), but I cannot get it to work. I am using an Artix-7 35T Arty FPGA Evaluation Kit. I am running Vivado v2017.2 (64-bit) and SDK v2017.2 on a Windows 10 machine. First, I created a simple "Hello World" program by follo
  18. Arduino is the SPI Master and therefore provides the clock, SPICLK through a PMOD. How do I receive the clock in a good way on the FPGA? Vivado does not approve of checking rising_edge(SPICLK) so I though I'd put a clock buffer or something in between (not that I know why or what they do but it sounds like a good idea). At some point Vivado told me to add "set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets {SPICLK_IBUF}]" to the constraints file, but I still got warnings and it didn't recommend I proceed. If I have the top level SPICLK connected to an IBUF_IBUFDISABLE with the
  19. Hello, I am building an SPI proof of concept for the Analog Discovery 2 in LabVIEW and I am unable to get the entire thing working, despite other successful LabVIEW projects that use the Analog Discovery 2. The issue I am having is that I am capable of generating an SPI message output where the AD2 is the master, but I am unable to get the expected response in the Rx array. The pinout is the clock is on pin 2, the chip select is on pin 1, the MOSI_SISO is on pin 4 and these three outputs are connected to an oscilloscope for observation. The MISO is on pin 7 and is connected to a pu
  20. Hello everyone, I’m a newbie on working on zedboard, and I want to use my Zedboard to communicate with Pmod MIC3 this time. I did a few researches about how to use the Pmod MIC3, and I think I found something useful in another post, link: https://forum.digilentinc.com/topic/19342-driver-code-for-pmod-acl2-and-pmod-mic3/ I’m really appreciate and thanks for their help, but unfortunately I still have no idea of how to make my Pmod MIC3 to run with my Zedboard. I know Pmod MIC3 is using SPI communication protocol and I read what SPI is, link: https://reference.digilentinc.com/learn/fund
  21. New Digital Discovery user. I did not purchase this device for its excellent documentation or thorough applications examples (which are not so great), but because it can capture SPI at 800MHz with the special adapter. I understand that the Digital Discovery will stream the captured data to memory and I can save it to disk. I'm debugging a difficult SPI issue, and need to see as much detail as possible (hence the 800MHz). Out test code captures some 30,000 rows of 14 consecutive 14-bit reads at an SPI clock speed of 27.5 MHz. This is a whole lot of data. We need to see the protocol capt
  22. Hi everybody! I got a new Digilent Cmod S7 Board (Spartan 7) and after some led blinking I'm trying to program a simple High Speed SPI transmitter (just sending "01010101" for the first attempt). For this I used the Vivado Clock-Wizzard to generate both a 300MHz clock (for internal signals) and the 150MHz SPI Clock itself out of my 12 MHz onboard oscillator using the "MMCM" and basically the standard settings. Now, my problem is, when I connect my Logic Analyzer (Digilent Digital Discovery) to the 150MHz SPI Serial Clock Pin (Pin 3, which is Package Pin M3) the Duty C
  23. Hi FPGA gurus ! Merry Christmas and happy new year to all of you FPGA lovers at Digilent ! I'm trying (unsuccessfully) to store Atlys HDMI demo to SPI/Flash so that whenever I turn the Atlys board on the project runs, without the need to upload and launch it through SDK. Atlys HDMI demo is a PLB based project and the only piece of info I can find about storing projects to SPI/Flash is for AXI based projects. Can anybody help me achieving this ? Any help would be greatly appreciated. Cheers
  24. azn103

    Cmod S6 Quad Spi

    I recently got a Cmod S6 and was able to program it just fine. Now I want to access the Quad SPI so I can load my program directly from the SPI rather than using the Digilent Adept program. The Cmod S6 did not show any references to how to program that part. How do you program the PROM?