Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

Streaming tx with AD9364

$
0
0

Hi,

We wish to streaming some data out of the fmcomms4/AD9364 board. Luckily, we found there is a piece of sample code  Re: AD9361 Streaming Transmit. We disabled the cyclic bit, downloaded the latest HDL reference design and the latest linux kernel, and then rebuilt the kernel with the modified bitstream. We uncommented these code in the iio_stream sample to send sine waves for testing:

for (j = 0; j < blocks[i].block.bytes_used / 8; j++) {

  blocks[i].addr[j*4] = cos(2 * M_PI * j / 16) * 0x7fff;

  blocks[i].addr[j*4+1] = sin(2 * M_PI * j / 16) * 0x7fff;

  }

And we set the sample rate to 30.72M. My understanding is this code will produce a sine wave @(sample rate/16). However, it does not seem to work - there was only carrier sent out. Is there additional work should be done for streaming out data with AD9364?


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>