CKV Posted January 20, 2018 Share Posted January 20, 2018 Can I implement the ADC and DAC at the same time using Pmod IOXP: I/O Expansion Module on Virtex ultra scale+ FPGA? Thanks in advance. Link to comment Share on other sites More sharing options...
JColvin Posted February 6, 2018 Share Posted February 6, 2018 Hi @CKV, Since they are both 6-pin modules, yes, that combination will also work. Well, I guess the Pmod AD2 as a I2C based Pmod only has 4 pins (it shows 8 since it was designed with the idea that it can be part of a "daisy chain", but you will only need to attach one of the rows of 4 pins via a cable as mentioned earlier). Let me know if you have any other questions. Thanks, JColvin Link to comment Share on other sites More sharing options...
danny Posted July 3, 2018 Share Posted July 3, 2018 Well Jon, I don't have arduino yet. But thank you anyway. The logic should be the same. Thanks, Danny Link to comment Share on other sites More sharing options...
jpeyron Posted July 3, 2018 Share Posted July 3, 2018 Hi @danny, I believe you need to send 0x08 to the the address 0x28 as shown in the below Adruino code void Init_AD7991(void) { Wire.beginTransmission(AD7991_Adresse); Wire.write(0x08); // configuration of the I2C communication in HIGH SPEED Mode Wire.write(0x10); // configuration of Pmod AD2 (read of V0) Wire.endTransmission(); } thank you, Jon Link to comment Share on other sites More sharing options...
danny Posted July 3, 2018 Share Posted July 3, 2018 Hi Jon. Actually, I was working on my own vhdl code for a specific aplication with high speed in ISE software because in the resource center I haven't found a code for high speed mode, only standar mode, which works perfect. thanks, Danny Link to comment Share on other sites More sharing options...
jpeyron Posted July 3, 2018 Share Posted July 3, 2018 Hi @danny, I would use the hackster.io arduino demo which is set to high speed mode here as a reference to what you need to do in your project. Are you using the Pmod AD2 IP core here and microblaze or are you using the VHDL code from the resource center here? thank you, Jon Link to comment Share on other sites More sharing options...
danny Posted July 3, 2018 Share Posted July 3, 2018 Hi JColvin, I am using Nexys 4 and trying to make Pmod AD2 works in high speed (3.4Mhz) but I couldn't. I used the code diligent provided and works fine but only in standar mode (100khz). I followed the sequence showed in page 25 of AD7991 datasheet but there is no way I can make it work. It also says something about fast mode (400khz) but I haven't found any instruction to put ad7991 in fast mode neither. Do you have something that can help me to work in high speed mode? I will really apreciate it. Regards, Danny Link to comment Share on other sites More sharing options...
JColvin Posted February 8, 2018 Share Posted February 8, 2018 Hi @CKV, Based on page 8 of the datasheet for the embedded part of the Pmod AD2 (and provided my math is correct), I believe the maximum throughput rate for the Pmod AD2 using the 3.4 MHz frequency for I2C, would be a bit shy of 140 kHz. Let me know if you have any other questions. Thank you, JColvin Link to comment Share on other sites More sharing options...
CKV Posted February 7, 2018 Author Share Posted February 7, 2018 Hi JColvin, Thank you for the reply. I can change from nexys 3 UCF to Virtex ultra scale+ XDC for those VHDL codes. The main module needs 100MHz clock, I can provide that frequency from one of the clock generators on Virtex ultra scale+. What would be the maximum AD2 conversion rate? Link to comment Share on other sites More sharing options...
JColvin Posted February 7, 2018 Share Posted February 7, 2018 Hi @CKV, Yes, that is correct, though looking at the project you might also need to change the vhdl for the clock portions if you have a different system clock frequency than the Nexys 3. I imagine if you are using a newer Virtex board, that you will likely be using Vivado which uses .xdc files as the constraint files rather than .ucf, but the principle is the same. Let me know if you have any other questions. Thank you, JColvin Link to comment Share on other sites More sharing options...
CKV Posted February 7, 2018 Author Share Posted February 7, 2018 Hi JColvin, Thank you for the reply. yes AD2 is the 4 pin (2x4=8) module. For AD2 and DA1 digilent having the VHDL reference codes for Nexys 3 board.(https://reference.digilentinc.com/reference/pmod/pmodad2/start). Can I use same codes for any FPGA device by changing UCF file? Link to comment Share on other sites More sharing options...
CKV Posted February 6, 2018 Author Share Posted February 6, 2018 Hi JColvin, Can I use AD2 and DA1 simultaneously by connecting to my 12 pin pmod on virtex ultra scale+? I found reference VHDL codes in digilent for both so I am planning to use the AD2 and DA1, instead of AD1 and DA4. Link to comment Share on other sites More sharing options...
CKV Posted January 26, 2018 Author Share Posted January 26, 2018 Hi JColvin, Thank you for the reply. Link to comment Share on other sites More sharing options...
jpeyron Posted January 24, 2018 Share Posted January 24, 2018 Hi @CKV, One of our community members also has an hdl project for the Pmod AD1 here as well. thank you Jon Link to comment Share on other sites More sharing options...
JColvin Posted January 24, 2018 Share Posted January 24, 2018 Hi @CKV, We have a IP Core for a Pmod AD1 available on our GitHub here. It does not appear that we have an IP Core currently available for the Pmod DA4 (I'll ask if one can be created), but as a Pmod that uses the SPI protocol, it will implemented in a similar fashion to the Pmod NAV. Since you are using a non-Digilent board, when adding the IP to your project you will need to also make the Pmod interface external and then change your xdc file to constrain the pins. Let me know if you have any questions. Thanks, JColvin Link to comment Share on other sites More sharing options...
CKV Posted January 24, 2018 Author Share Posted January 24, 2018 Hi JColvin, Thank you for the reply. So now by using the pmod splitter cable, I can connect both ADC and DAC, also I can send and receive data from DA/AD simultaneously. If I buy AD1 and DA4 from Digilent, will they provide example RTL code? Link to comment Share on other sites More sharing options...
JColvin Posted January 23, 2018 Share Posted January 23, 2018 Hi @CKV, Yes, you can use both Pmod simultaneously directly with your board. The catch here though is that you will need to use some cables to connect the two Pmods to the Pmod port (female receptacle is easiest in my mind), such as this cable since the two Pmods will not both physically fit into the two halves of the port. Realistically though, any cable that has 100 mil pitch between the wires will work. Let me know if you have any questions. Link to comment Share on other sites More sharing options...
CKV Posted January 23, 2018 Author Share Posted January 23, 2018 Hi JColvin, Thank you for the reply. I would like to use Pmod AD1: Two 12-bit A/D Inputs and Pmod DA4: Eight 12-bit D/A Outputs, Both are the 6-pin Devices. My Board Virtex ultra scale+ have the 12 pin PMOD (8-I/O and 2-Vdd and 2-GND). Can I use 6pins for connecting ADC and another 6pins for DAC Simultaneously? Here I am attaching my Board PMOD pin Information. Link to comment Share on other sites More sharing options...
JColvin Posted January 22, 2018 Share Posted January 22, 2018 Hello @CKV, I'm not certain which ADC and DAC you are referring to, but if they can communicate with a host board using 8 or less I/O pins at a voltage range between 1.65V and 3.6V (as per the datasheet for the embedded chip on the Pmod IOXP), then they can both be used on the Pmod IOXP. It should be noted though that the Pmod is more akin to a multiplexer so you will not to be able to communicate to the ADC and DAC simultaneously through the Pmod; you will only be able to address them one at a time. The Pmod IOXP also communicates via I2C at a rate up to 1 MHz, so depending on your requirements it may be too slow of a data acquisition rate for both the DAC and ADC to send data to and from the Virtex Ultra Scale+ FPGA. Thanks, JColvin Link to comment Share on other sites More sharing options...
Question
CKV
Can I implement the ADC and DAC at the same time using Pmod IOXP: I/O Expansion Module on Virtex ultra scale+ FPGA?
Thanks in advance.
Link to comment
Share on other sites
18 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.