MarcusD

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. Hey attila. Is there also a way of sending data via this I2S Interpreter rather than just recording them? (so that I could establish a bidirectional communication?) Can I do both of these things via C/C++ and the DWF Library? PS: Is it also possible to do both with the script tool?
  2. Hello. I am trying to record I2S data with a sample rate of 96 kHz. So far I managed to use the "Logic tool" but I have still a problem remaining. 1) The device is sending a 0xFCCF for the left channel and 0xFAAF on the right channel but for some reason the last bit is always missing. I tried to fix this issue with an ending bit but it did not help. If I pretend that the data channel is just one, everything is working fine but I also need to somehow keep the information if it is the left or right channel. How can I do this? 2) Since I just want to do the acquisition to have the data in a file, is there a I2S code example available? Kind regards, Marcus.
  3. I have further questions about the sample rates. Currently I want to log data from a SPI interface with a SCK of 21 Mhz and I want to save the captured data as a file afterwards. I don't need a continues stream of the data. A few hundreds milliseconds would be sufficient enough. I managed to see the correct data with the "Protocol tool", though I had to add a delay into my code, otherwise WaveForms would warn me of "Samples lost.". The delay was 1 ms long and I would like to remove it from my code. So I thought I should rather use the "Logic Tool" with the "Record Mode" so that the buffer can be filled and then send to my Computer without overwhelming the USB Port, but I just receive rubbish there. Even with the 1ms delay between the SPI messages. I am not sure how I can fix this issue and I hope someone can help me here.
  4. Hello. I want to use my Analog Discovery 2 to acquire SPI data (as I currently do using the "Protocol tool") and make them available in MATLAB or vice versa. I found a toolbox in MATLAB called "Data Acquisition Toolbox", but it appears that it is mainly made for analog measurements rather than digital (SPI) ones. The WaveForm SDK was marked as legacy and I could not find any further information for using the SDK for digital signals anyway. Right now I guess the only way to accomplish what I require is not possible. Instead, I will always have to use a file as a buffer and the "Script tool" for loading or storing this file. Am I correct in thinking this?
  5. Hello attila! Thank you so much! That fixed my problem. In the end I was just too silly to use the program correctly! It looks like this now: I do not have any further questions. Thank you for your help though! I am very happy with the AD2 and also with the software. Kind regards!
  6. I am trying to use the WaveForms SPI Logger function to establish a communication between a STM32 and my PC. Everything works fine if I use slow SPI clockrates (slower than ~1Mhz) but I need rates up to 2.5 Mhz (or at least 1.3 Mhz). Is the Analog Discovery 2 even capabel of reading these fast pin changes? Are maybe my settings incorrect? I don't have any problems with clockrates of 320 kHz or 640 kHz, but WaveForms is just showing me rubbish at 1.25 Mhz, as you can see in the Screenshot. I would have expected to see the letters "ABC" which I am sending currently from the master.