DAC Channel synchronisation

Applications, development tools, FPGA, C, WEB
Post Reply
Martin
Posts: 4
Joined: Thu Feb 12, 2015 1:14 pm

DAC Channel synchronisation

Post by Martin » Thu Feb 12, 2015 3:56 pm

Hi,

I am trying to generate a differential sine wave with the two DAC channels. I modified the generate.c file to fill both g_awg_cha_mem[] and g_awg_cha_mem[] with the corresponding data. Is there an easy way to synchronize the output of both channels?
Has anyone tried something similar?

I'd appreciate any help.

Thanks,
Martin

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: DAC Channel synchronisation

Post by Nils Roos » Fri Feb 13, 2015 1:05 pm

The two DAC channels run from the same clock, and can be started simultaneously, since the software triggers for both are located in one register.

So if you reset the ASG, set both channels up with sample data, frequency, amplitude and offset and then write 0x00110011 to the configuration register, both channels start generating output synchronously.

Martin
Posts: 4
Joined: Thu Feb 12, 2015 1:14 pm

Re: DAC Channel synchronisation

Post by Martin » Mon Feb 16, 2015 11:21 am

Thanks, this helped me a lot.
But I had to reset the state machines as well, therefore the configuration register needs to be 0x00510051.

emmazhang
Posts: 2
Joined: Thu Apr 02, 2015 9:21 pm

Re: DAC Channel synchronisation

Post by emmazhang » Thu Apr 02, 2015 9:49 pm

Hi, I have the same question about channel synchronisation. Could you please tell me how to do it? Thank you in advance.

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: DAC Channel synchronisation

Post by Nils Roos » Thu Apr 02, 2015 11:52 pm

You cannot do it from the web-apps.
After loading the waveforms into the bufffers, you need to open a console and use the monitor utility, or you write a program that does it.
Either way, after setting up your parameters, write 0x00400040 to the DAC configuration register (0x40200000) to reset the ASG, followed by 0x00110011 to the same address to simultaneously start both channels.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 91 guests