Jump to content
  • 0

Generates signal from both channels using ZMOD DAC1411


Zufaruu

Question

Hi, i'm currently following this tutorial or demo linux using ZMOD DAC1411 from here. The demo only generates a signal from either channel 1 or channel 2. How to generate signal from both channels? I'm using Eclypse Z7 and Xilinx SDK 2019

Edited by Zufaruu
Adding explanation
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Hello,
In order to use both (or one) channels you have to:
1. Call allocChannelsBuffer to allocate the buffer, according to the desired size bufSize. It allocates a buffer of 32 bits values (for both channels).
2. Populate the buffer: For each sample (0 to bufSize -1), place in buffer a 32 bits value obtained like this: for each desired channels (two or one) call arrangeChannelData or arrangeSignedChannelData, providing a 16 bits value corresponding to that channel. From these 16 bits, only 14 bits will be used.
3. Call setData function to transfer the buffer to the DAC internal IP buffer
4. Call start function to start the DAC generation process.

For more details see https://digilent.com/reference/zmod/awg/zmoddac1411libraryuserguide

Link to comment
Share on other sites

  • 0
On 3/14/2024 at 8:30 PM, Cristian.Fatu said:

Hello,
In order to use both (or one) channels you have to:
1. Call allocChannelsBuffer to allocate the buffer, according to the desired size bufSize. It allocates a buffer of 32 bits values (for both channels).
2. Populate the buffer: For each sample (0 to bufSize -1), place in buffer a 32 bits value obtained like this: for each desired channels (two or one) call arrangeChannelData or arrangeSignedChannelData, providing a 16 bits value corresponding to that channel. From these 16 bits, only 14 bits will be used.
3. Call setData function to transfer the buffer to the DAC internal IP buffer
4. Call start function to start the DAC generation process.

For more details see https://digilent.com/reference/zmod/awg/zmoddac1411libraryuserguide

Thank you very much for the explanation. It's really helpful and it's worked :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...