Jump to content

JAlaj

Members
  • Posts

    44
  • Joined

  • Last visited

Everything posted by JAlaj

  1. Thanks JColvin I have not attempted this capture yet. I am trying to understand the overall setup using Digilent Discovery. If drive strength becomes bottleneck, then i will have to design Buffer ckt on board. But i was first curious to understand the HW requirements, and settings in GUI. Regarding your suggestion of different SPI pattern generator and Logic Analyzer, do you mean i should use two Digital Discoveries HW?
  2. Thanks Attila I was trying that but i couldn't understand how FIFO will work here. Since Digilent DD has limited memory, it has to dump data into file to empty buffer and collect next set of data. But how do i make it synchronous. Would be great, if you can share one example code. I was trying to follow example code in script, but didn't get much help
  3. Hello Attila, I am trying to capture SPI data every 1ms. Its a 16 bit SPI capture. My target is to capture data for 3 hours. Periodic capture is required as i need to perform FFT on this data. I am unable to achieve this. Please suggest the best way
  4. Hello Team, Please suggest if there is any available hardware wherein i can have 32 MISO lines, 1Chip select, 1 CLK and 1 MOSI Thanks, Jalaj
  5. Thanks Attila Is there a way to dump data in text file and capture simultaneously so that i never hit the memory limit, something like filling/emptying FIFO Also, how do you dump the 15 MISOs data in text file Regarding your question on read/write in my SPI commands....my part works on below SPI format bit15 , bit[14:0] if bit 15 is 0, then its a read command for part if bit 15 is 1, then its a write command for part... so if give Write (16, 0x0055), then i am reading address 55 if i give Write (16, 0x0055) followed by another Write (16, 0x00AA)....here i am writing register 55 with data AA Regards JAlaj
  6. Hello Attila i tried the Sensor tab as you suggested Attached is my script. i want to configure my part first and then read data iteratively I see there is huge delay between commands outside the loop function(refer attached logic analyzer snap). Please suggest how it can be minimized Additionally it would be nice if the logic analyzer displays correct data even if i zoom after capturing large data
  7. Hello Attila Thanks for sharing the command help My objective is to read data from 24 MISOs. 24 slaves will have common CS, CLK and MOSI This Digilent 16 bit SPI Master will keep sending commands to 24 slaves and i need to capture 24 MISOs. Need to capture this data in file. This communication need to run continuously for 24 hrs. The sampling rate needs to be around 200us , means CS falling to falling edge is 200us. I am struggling to achieve this via Digilent as i am still not able to do this for 1 slave (MISO) Would appreciate if you can suggest some script. I tried following Sensor examples you mentioned earlier, but couldn't follow much. Regards Jalaj
  8. Hello Attila Please suggest if there is any documentation about the commands used in various examples. what is the syntax used, and response expected out of those commands Thanks, Jalaj
  9. Hello Using Sensor tab, i was following 3rd example. I couldn't understand example 1 and 2. In example 3, how do i read the reg 0x330, hex address is 330. Please suggest. Moreover, the max limit on number of samples is 1M. How do i go beyond that
  10. Thanks Attila Where can i see the details about commands used in example menu. Basically, i am trying to understand about the commands used and intent in this example function loop(){ var rg = CmdRead(8, 0xF2, 0, 8, 6); // DATA X Y Z // convert data bits to signed value relative to gravitational constant var x = data2g(rg[1], rg[0]); var y = data2g(rg[3], rg[2]); var z = data2g(rg[5], rg[4]); // total acceleration var s = sqrt(sqr(x)+sqr(y)+sqr(z)); if(!FileAppendLine("~/Desktop/default.csv", [s, z, y, z])) return "File write failed"; rgG.push(s); return true;
  11. Thanks Attila, this works how do i dump all the MISO data in a file read via Sensor tab Also, how do i capture multiple MISO via this sensor tab and dump all data in csv
  12. Thanks, but still the CS disabled time is very high after the command is done. How can i shorten that time too. I want to minimize the over all time to sample data faster Regards, Jalaj
  13. Image attached for Chip select, i want cobtrol the chip select low and high duration
  14. When i captured the Chip select, CLK, MOSI on oscilloscope, it seems that CS falling to rising delay is in order of millisec. Even when my clock is in Mhz. Can i reduce/control the CS delay
  15. Thanks Attila, got it. Is there any example too for multi MISO feature, would be great if i can directly use it
  16. Hello I am looking to use Digital Discovery to capture 16 bit SPI data on multiple slaves, all slaves will have CS, MOSI and CLK shorted, and MISO line will be individual for each slave. I want to capture continuous data for 24 hrs and dump it in a text file I also want to power up the part using same HW, so that i can capture SPI right after power up Pls suggest, Thanks, Jalaj
  17. Thanks Attila We do not have a slave device at present which can understand JTAG command and respond accordingly. The idea is to use Digilent discovery HW to act as JTAG master to send command and decode the response. As you mentioned to use SPI, and last shifted bit with TMS high. Just curious, how the response on JTAG will be decoded. Do you have any example, just for reference purpose. It will help to understand the command/response.
  18. Hello Team, After a successful implementation of SWD, i am now looking to communicate via JTAG protocol using Digilent Discovery. Please route me to any available example for same Thanks, Jalaj
  19. Thanks a lot Attila I really appreciate the awesome support. You are setting the new standards and increasing our expectations. Regards, Jalaj
  20. Thanks Attila We are planning to use Digital Discovery extensively in our project. We are using SPI,I2C, JTAG and SWD Just wanted to know if there is a roadmap for JTAG and SWD LabVIEW support. I understand it has been a recent development and I truly appreciate that you put a lot of hard work to get it done. Would be great to have a LabVIEW based utility for same Many Thanks, Jalaj
  21. Thank You Shalin and Attila. I appreciate the good work and prompt responses from both sides to close the gaps. Moving forward we would like to develop LabView based automation for this application. Would be great, if you can suggest Shalin about the library and .dll files etc. to be used. Regards, Jalaj
  22. Hello I am trying to use Digilent discovery for 16 bit SPI communication. I want to capture 2 million samples by reading three registers again and again, 2 million times. Need to sample the MISO data at 200kHz. And i need to dump these 2 million MISO data samples in text file. Please suggest how to proceed. Thanks, Jalaj
  23. Hello Attila, yes, you are right. The SWD you implemented is as per specifications and i remember you asked for Logic Analyzer data to debug why we are not able to communicate with part. Shalin, I think you should share both the scenarios, one in which part is able to communicate (wherein you are sending commands via different SWD hardware (Seger). You should capture the same via Logic Analyzer and share both command and response. In second case, you send the command via Digilent Discovery, and then capture the command and response on Logic Analyzer. Then it will be easier to compare Regards, Jalaj
×
×
  • Create New...