Zufaruu Posted March 13 Posted March 13 (edited) 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 March 13 by Zufaruu Adding explanation
1 Cristian.Fatu Posted March 14 Posted March 14 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 Zufaruu 1
0 Zufaruu Posted March 18 Author Posted March 18 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 Cristian.Fatu 1
0 Cristian.Fatu Posted March 18 Posted March 18 You are always welcome, I am glad to hear that things work. Good luck, and write us when you have questions. Zufaruu 1
Question
Zufaruu
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 ZufaruuAdding explanation
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now