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

Re: Sine wave in No-os driver FMcomms1-ebz

$
0
0

Now i changed in main.c:

//dds_setup(fmcSel, 1000000, 1000000);

  dac_dma_setup(fmcSel);

 

That is how I am able to generate a arbitrary wave defined by Sine_lut_i [ ] and sine_lut_q [ ].

Now what i whatched (in     void dac_dma_setup(uint32_t sel)        function in test.c):

if (PCORE_VERSION_MAJOR(hdl_version) > 7)

    {

dac_write(ADI_REG_CHAN_CNTRL_7(0), 0);  // line 1
dac_write(ADI_REG_CHAN_CNTRL_7(1), 0);  // line 2
dac_write(ADI_REG_CNTRL_1, 0x0);
dac_write(ADI_REG_CNTRL_1, 0x1);

    }

    else

    {

dac_write(ADI_REG_CNTRL_2, ADI_DATA_FORMAT | ADI_DATA_SEL(DATA_SEL_DMA));
dac_write(ADI_REG_CNTRL_1, 0x0);
dac_write(ADI_REG_CNTRL_1, 0x1);

    }

is not working by any change in value of line 1 and line 2

 

Regards,

Vibhooti


Viewing all articles
Browse latest Browse all 28044

Trending Articles



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